org.inb.biomoby.shared.message
Class MobyObject
java.lang.Object
org.inb.biomoby.shared.message.AbstractMobyElement
org.inb.biomoby.shared.message.AbstractMobyObject
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
MobyObject
public MobyObject()
MobyObject
public MobyObject(String id,
String namespace)
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
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010