Package com.ribs.datasource
Class RMEntity
java.lang.Object
com.ribs.datasource.RMEntity
This 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.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddProperty(RMProperty aProperty) Adds a given property.booleanStandard equals method.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getAttribute(int anIndex) Returns the attribute at the given index.getAttribute(String aName) Returns the attribute with the given name.intReturns the number of attributes.Returns the child entity for the key path evaluated from this entity.getName()Returns the name of the entity.getPrimary(int anIndex) Returns the primary attribute at the given index.intReturns the number of primary attributes for this entity.getProperty(int anIndex) Returns the property at the given index.getProperty(String aName) Returns the property with the given name.intReturns the number of properties.getRelation(int anIndex) Returns the relation at the given index.getRelation(String aKeyPath) Returns the relation for the given key path.intReturns the number of relations in the enity.Returns the top level entity which is the schema.voidremoveProperty(String name) Removes a given property.voidSets the name of the entity.toString()Returns a string representation of entity (its name).toXML(RXArchiver anArchiver) XML archival.
- 
Constructor Details- 
RMEntitypublic RMEntity()Creates an empty entity.
- 
RMEntityCreates an entity with the given name.
 
- 
- 
Method Details- 
getNameReturns the name of the entity.
- 
setNameSets the name of the entity.
- 
getSchemaReturns the top level entity which is the schema.
- 
getPropertyCountpublic int getPropertyCount()Returns the number of properties.
- 
getPropertyReturns the property at the given index.
- 
getPropertyReturns the property with the given name.
- 
addPropertyAdds a given property.
- 
removePropertyRemoves a given property.
- 
getAttributeCountpublic int getAttributeCount()Returns the number of attributes.
- 
getAttributeReturns the attribute at the given index.
- 
getAttributeReturns the attribute with the given name.
- 
getRelationCountpublic int getRelationCount()Returns the number of relations in the enity.
- 
getRelationReturns the relation at the given index.
- 
getRelationReturns the relation for the given key path.
- 
getEntityReturns the child entity for the key path evaluated from this entity.
- 
getPrimaryCountpublic int getPrimaryCount()Returns the number of primary attributes for this entity.
- 
getPrimaryReturns the primary attribute at the given index.
- 
equalsStandard equals method.
- 
toStringReturns a string representation of entity (its name).
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-