|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 MobyPrimaryData
public MobyDataType getDataType()
getDataType
in class MobyPrimaryData
public void setDataType(MobyDataType value)
setDataType
in class MobyPrimaryData
public MobyNamespace[] getNamespaces()
getNamespaces
in class MobyPrimaryData
public void setNamespaces(MobyNamespace[] value)
setNamespaces
in class MobyPrimaryData
public void addNamespace(MobyNamespace value)
addNamespace
in class MobyPrimaryData
public void removeNamespace(String namespaceName)
removeNamespace
in class MobyPrimaryData
public void removeNamespace(MobyNamespace value)
removeNamespace
in class MobyPrimaryData
public String toXML()
toXML
in class MobyData
public String toString()
toString
in class Object
public 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 |