Version: 1.1.1

org.inb.biomoby.shared.message
Class MobyObject

java.lang.Object
  extended by org.inb.biomoby.shared.message.AbstractMobyElement
      extended by org.inb.biomoby.shared.message.AbstractMobyObject
          extended by org.inb.biomoby.shared.message.MobyObject
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Annotation, AnnotationHits, AnyMobyObject, Array, BasicAnnotation, ByoDynOEDParameter, ByoDynTarget, CATHDomain, Clustering, CommentedObject, Domain, Element, ENSEMBLHomolog, ExpressionCore, FamilyBLOCKAnnotation, GOTerm, HierarchicalClustering, HMMPfam_Report, HMMSearch_Report, Image_Encoded, Interaction, InteractionMethod, Interactor, ISS_Report, LutefiskReport, Matrix, MultiParameter, OMIM, Parameter, Pattern, PepinfoReport, ProdomMotif, PrositeMotif, Rules, SCOPLayerNode, StructureDomain, Text__plain, TreeDet_Report, VirtualSequence, WeightedObject, Zip_Encoded

public class MobyObject
extends AbstractMobyObject
implements Serializable

Author:
Dmitry Repchevsky
See Also:
Serialized Form

Constructor Summary
MobyObject()
           
MobyObject(String id, String namespace)
           
 
Method Summary
 List<AbstractMobyObject> getAttributes()
          The method returns all elements (has, hasa as well as inherited from parent elements) Usually there is no need to use this method because datatype generated classes suppose to have apropriate getters and setters for their data.
 CrossReference getCrossReference()
          Return CrossReference block if present
 boolean putAttribute(String articleName, AbstractMobyObject object)
          The method adds an attribute to the object
 void removeAttribute(String articleName)
          Remove attribute from a list of attributes
 void removeCrossReference()
           
 void setCrossReference(CrossReference ref)
           
 String toString()
           
 
Methods inherited from class org.inb.biomoby.shared.message.AbstractMobyObject
getMobyId, getNamespace, setMobyId, setNamespace
 
Methods inherited from class org.inb.biomoby.shared.message.AbstractMobyElement
getArticleName, setArticleName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobyObject

public MobyObject()

MobyObject

public MobyObject(String id,
                  String namespace)
Method Detail

getAttributes

public List<AbstractMobyObject> getAttributes()
The method returns all elements (has, hasa as well as inherited from parent elements) Usually there is no need to use this method because datatype generated classes suppose to have apropriate getters and setters for their data. It could be used in case where there is no datatype tree structure available (for example the got an unknown datatype element).

Returns:
the list of all elements contained by thes object.

putAttribute

public boolean putAttribute(String articleName,
                            AbstractMobyObject object)
The method adds an attribute to the object

Parameters:
articleName - the name of the attribute to be added.
object - the attribute to be added (any moby object)

removeAttribute

public void removeAttribute(String articleName)
Remove attribute from a list of attributes

Parameters:
articleName - the name of an attribute to be removed

getCrossReference

public CrossReference getCrossReference()
Return CrossReference block if present

Returns:
CrossReference object or null if there is no one.

setCrossReference

public void setCrossReference(CrossReference ref)

removeCrossReference

public void removeCrossReference()

toString

public String toString()
Overrides:
toString in class AbstractMobyObject

Version: 1.1.1

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