|
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.MobyPrimaryDataSet
public class MobyPrimaryDataSet
A container representing a way how a named collection of various primary data types is used in a service.
Constructor Summary | |
---|---|
MobyPrimaryDataSet(Element elem)
Construct this instance from a piece of XML. |
|
MobyPrimaryDataSet(String name)
Default constructor. |
Method Summary | |
---|---|
void |
addElement(MobyPrimaryDataSimple value)
|
void |
addNamespace(MobyNamespace value)
Add given namespace of all elements of this collection. |
MobyPrimaryDataSet |
clone()
Must be overwritten by a subclass. |
String |
format(int indent)
|
MobyDataType |
getDataType()
Return a data type of the first element of this collection (according the Biomoby API, however, all elements should have the same data type). |
MobyPrimaryDataSimple[] |
getElements()
|
MobyNamespace[] |
getNamespaces()
Return namespaces of the first element of this collection. |
void |
removeNamespace(MobyNamespace value)
Remove given namespace from all elements of this collection. |
void |
removeNamespace(String namespaceName)
Remove given namespace (defined by its name) from all elements of this collection. |
void |
setDataType(MobyDataType dataType)
Set given data type to all elements of this collection (according the Biomoby API all elements should have the same data type). |
void |
setElements(MobyPrimaryDataSimple[] value)
|
void |
setNamespaces(MobyNamespace[] value)
Set given namespaces of all elements of this collection. |
String |
toString()
|
String |
toXML()
Convert this instance to the 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 MobyPrimaryDataSet(String name)
public MobyPrimaryDataSet(Element elem)
Method Detail |
---|
public MobyPrimaryDataSet clone()
MobyPrimaryData
clone
in class MobyPrimaryData
public MobyPrimaryDataSimple[] getElements()
public void setElements(MobyPrimaryDataSimple[] value)
public void addElement(MobyPrimaryDataSimple value)
public MobyDataType getDataType()
getDataType
in class MobyPrimaryData
public void setDataType(MobyDataType dataType)
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 format(int indent)
format
in class MobyData
public String toString()
toString
in class Object
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |