Version: 1.1.1

org.biomoby.shared.parser
Class MobyCollection

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

public class MobyCollection
extends MobyDataElement

A specialized "envelope" that can carry a collection of other envelopes (represented by MobySimples objects), and giving them a name known as an article name for top-level object.

Version:
$Id: MobyCollection.java,v 1.3 2006/02/12 18:47:40 senger Exp $
Author:
Martin Senger

Constructor Summary
MobyCollection()
          Default constructor.
 
Method Summary
 void addData(MobySimple data)
          Add one more element to this envelope.
 MobySimple[] getData()
          Get the contents of this envelope.
 void setData(MobySimple[] data)
          Fill this envelope with the objects carrying inside real data objects.
 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[] simples)
           
 
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

MobyCollection

public MobyCollection()
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[] simples)

setData

public void setData(MobySimple[] data)
Fill this envelope with the objects carrying inside real data objects.


addData

public void addData(MobySimple data)
Add one more element to this envelope.


getData

public MobySimple[] getData()
Get the contents of this envelope.


Version: 1.1.1

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