Package com.ribs.datasource
Class RMEntity
- java.lang.Object
- 
- com.ribs.datasource.RMEntity
 
- 
 public class RMEntity extends java.lang.ObjectThis class represents an entity for an RMDataSource. It has a list of RMProperties, some of which are simple attributes and some of which are relationships.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(RMProperty aProperty)Adds a given property.booleanequals(java.lang.Object obj)Standard equals method.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMPropertygetAttribute(int anIndex)Returns the attribute at the given index.RMPropertygetAttribute(java.lang.String aName)Returns the attribute with the given name.intgetAttributeCount()Returns the number of attributes.RMEntitygetEntity(java.lang.String aKeyPath)Returns the child entity for the key path evaluated from this entity.java.lang.StringgetName()Returns the name of the entity.RMPropertygetPrimary(int anIndex)Returns the primary attribute at the given index.intgetPrimaryCount()Returns the number of primary attributes for this entity.RMPropertygetProperty(int anIndex)Returns the property at the given index.RMPropertygetProperty(java.lang.String aName)Returns the property with the given name.intgetPropertyCount()Returns the number of properties.RMPropertygetRelation(int anIndex)Returns the relation at the given index.RMPropertygetRelation(java.lang.String aKeyPath)Returns the relation for the given key path.intgetRelationCount()Returns the number of relations in the enity.RMSchemagetSchema()Returns the top level entity which is the schema.voidremoveProperty(java.lang.String name)Removes a given property.voidsetName(java.lang.String aName)Sets the name of the entity.java.lang.StringtoString()Returns a string representation of entity (its name).RXElementtoXML(RXArchiver anArchiver)XML archival.
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name of the entity.
 - 
setNamepublic void setName(java.lang.String aName) Sets the name of the entity.
 - 
getSchemapublic RMSchema getSchema() Returns the top level entity which is the schema.
 - 
getPropertyCountpublic int getPropertyCount() Returns the number of properties.
 - 
getPropertypublic RMProperty getProperty(int anIndex) Returns the property at the given index.
 - 
getPropertypublic RMProperty getProperty(java.lang.String aName) Returns the property with the given name.
 - 
addPropertypublic void addProperty(RMProperty aProperty) Adds a given property.
 - 
removePropertypublic void removeProperty(java.lang.String name) Removes a given property.
 - 
getAttributeCountpublic int getAttributeCount() Returns the number of attributes.
 - 
getAttributepublic RMProperty getAttribute(int anIndex) Returns the attribute at the given index.
 - 
getAttributepublic RMProperty getAttribute(java.lang.String aName) Returns the attribute with the given name.
 - 
getRelationCountpublic int getRelationCount() Returns the number of relations in the enity.
 - 
getRelationpublic RMProperty getRelation(int anIndex) Returns the relation at the given index.
 - 
getRelationpublic RMProperty getRelation(java.lang.String aKeyPath) Returns the relation for the given key path.
 - 
getEntitypublic RMEntity getEntity(java.lang.String aKeyPath) Returns the child entity for the key path evaluated from this entity.
 - 
getPrimaryCountpublic int getPrimaryCount() Returns the number of primary attributes for this entity.
 - 
getPrimarypublic RMProperty getPrimary(int anIndex) Returns the primary attribute at the given index.
 - 
equalspublic boolean equals(java.lang.Object obj) Standard equals method.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of entity (its name).- Overrides:
- toStringin class- java.lang.Object
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 
- 
 
-