Version: 1.1.1

org.biomoby.shared.parser
Class MobySimple

java.lang.Object
  extended by org.biomoby.shared.parser.MobyDataElement
      extended by org.biomoby.shared.parser.MobySimple

public class MobySimple
extends MobyDataElement

A specialized "envelope" that can carry one real Biomoby data object, and gives it (usually) a name, also known as an article name for top-level object.

Version:
$Id: MobySimple.java,v 1.2 2006/02/07 14:11:06 senger Exp $
Author:
Martin Senger

Constructor Summary
MobySimple()
          Default constructor.
 
Method Summary
 MobyObject getData()
          Return the contents of this envelope.
 void setData(MobyObject data)
          Fill this envelope with a Biomoby 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, org.jdom.Element data)
           
 
Methods inherited from class org.biomoby.shared.parser.MobyDataElement
format, getName, setName, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobySimple

public MobySimple()
Default constructor.

Method Detail

toString

public String toString()
Description copied from class: MobyDataElement
Format all non-empty public members in a human-readable way.

Overrides:
toString in class MobyDataElement
Returns:
a formatted string
See Also:
for making the returned string better indented

toXML

public org.jdom.Element toXML()
Description copied from class: MobyDataElement
Create an XML element representing this object.

Overrides:
toXML in class MobyDataElement
Returns:
a jDom element that can be easily incorporated into bigger a XML document

toXML

public static org.jdom.Element toXML(String articleName,
                                     org.jdom.Element data)

setData

public void setData(MobyObject data)
Fill this envelope with a Biomoby object.


getData

public MobyObject getData()
Return the contents of this envelope.


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010