|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biomoby.shared.MobyData
org.biomoby.shared.MobyPrimaryData
org.biomoby.shared.MobyPrimaryDataSimple
public class MobyPrimaryDataSimple
A container representing a way how various primary data types are used in a service. It points to a MobyDataType where the real data type is stored, and to a MobyNamespace where the namespace is stored.
| Constructor Summary | |
|---|---|
MobyPrimaryDataSimple()
Default constructor. |
|
MobyPrimaryDataSimple(Element elem)
Construct this instance from a piece of XML. |
|
MobyPrimaryDataSimple(String name)
Normal constructor. |
|
| Method Summary | |
|---|---|
void |
addNamespace(MobyNamespace value)
Add one namespace to already existing ones (but only if a namespace of the same name does not exist yet). |
MobyPrimaryDataSimple |
clone()
Must be overwritten by a subclass. |
String |
format(int indent)
|
MobyDataType |
getDataType()
|
MobyNamespace[] |
getNamespaces()
Return all namespaces defined in this data container. |
void |
removeNamespace(MobyNamespace value)
Remove given namespace. |
void |
removeNamespace(String namespaceName)
Remove namespace given by its name. |
void |
setDataType(MobyDataType value)
|
void |
setNamespaces(MobyNamespace[] value)
Replace all existing namespaces (if any) by a new array of namespaces. |
String |
toString()
|
String |
toXML()
Convert this instance into XML. |
| Methods inherited from class org.biomoby.shared.MobyPrimaryData |
|---|
isPrimary |
| Methods inherited from class org.biomoby.shared.MobyData |
|---|
getId, getName, getUserData, setId, setName, setUserData |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MobyPrimaryDataSimple()
public MobyPrimaryDataSimple(String name)
public MobyPrimaryDataSimple(Element elem)
| Method Detail |
|---|
public MobyPrimaryDataSimple clone()
MobyPrimaryData
clone in class MobyPrimaryDatapublic MobyDataType getDataType()
getDataType in class MobyPrimaryDatapublic void setDataType(MobyDataType value)
setDataType in class MobyPrimaryDatapublic MobyNamespace[] getNamespaces()
getNamespaces in class MobyPrimaryDatapublic void setNamespaces(MobyNamespace[] value)
setNamespaces in class MobyPrimaryDatapublic void addNamespace(MobyNamespace value)
addNamespace in class MobyPrimaryDatapublic void removeNamespace(String namespaceName)
removeNamespace in class MobyPrimaryDatapublic void removeNamespace(MobyNamespace value)
removeNamespace in class MobyPrimaryDatapublic String toXML()
toXML in class MobyDatapublic String toString()
toString in class Objectpublic String format(int indent)
format in class MobyData
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||