|
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.parser.MobyDataElement
public abstract class MobyDataElement
A general "envelope" that can carry real Biomoby data objects. The known sub-classes represents concepts from the Biomoby API (Simples and Collections, for example).
Note that this is an envelope so it does not contain any value (any real data).
Constructor Summary | |
---|---|
MobyDataElement()
Default constructor. |
Method Summary | |
---|---|
String |
format(int indent)
Return the same contents as toString() method but
indented by level expressed in the parameter 'indent'. |
String |
getName()
|
void |
setName(String name)
A name here means an article name of the top-level object. |
String |
toString()
Format all non-empty public members in a human-readable way. |
org.jdom.Element |
toXML()
Create an XML element representing this object. |
static org.jdom.Element |
toXML(String articleName)
Create an XML element representing this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MobyDataElement()
Method Detail |
---|
public String toString()
toString
in class Object
for making the returned string better indented
public String format(int indent)
toString()
method but
indented by level expressed in the parameter 'indent'. It is
useful when a hierarchy of objects call toString
methods on their children/members.
indent
- means a level of wanted indentation: number 1
means three spaces, number two six spaces, etc.
public org.jdom.Element toXML()
public static org.jdom.Element toXML(String articleName)
public void setName(String name)
public String getName()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |