Package com.ribs.datasource
Class RMSchema
- java.lang.Object
- 
- com.ribs.datasource.RMSchema
 
- 
 public class RMSchema extends java.lang.ObjectThis class describes the structure of a datasource by managing a list of RMEntity.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntity(RMEntity anEntity)Adds an entity to the list.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMEntitygetEntity(int anIndex)Returns the specific entity at the given index.RMEntitygetEntity(java.lang.String aName)Returns the schema entity with the given name.intgetEntityCount()Returns the number of entities in this schema.java.lang.StringgetName()Returns the schema name.static RMPropertygetRelation(RMEntity anEntity, java.lang.String aKeyPath)Returns the relation for the given key path evaluated from the given entity.RMEntitygetRootEntity()Returns the root entity.voidremoveEntity(RMEntity anEntity)Removes an entity from the list.voidsetName(java.lang.String aName)Sets the schema name.java.lang.StringtoString()Returns schema name.RXElementtoXML(RXArchiver anArchiver)XML archival.
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Returns the schema name.
 - 
setNamepublic void setName(java.lang.String aName) Sets the schema name.
 - 
getEntityCountpublic int getEntityCount() Returns the number of entities in this schema.
 - 
getEntitypublic RMEntity getEntity(int anIndex) Returns the specific entity at the given index.
 - 
addEntitypublic void addEntity(RMEntity anEntity) Adds an entity to the list.
 - 
removeEntitypublic void removeEntity(RMEntity anEntity) Removes an entity from the list.
 - 
getEntitypublic RMEntity getEntity(java.lang.String aName) Returns the schema entity with the given name.
 - 
getRootEntitypublic RMEntity getRootEntity() Returns the root entity.
 - 
getRelationpublic static RMProperty getRelation(RMEntity anEntity, java.lang.String aKeyPath) Returns the relation for the given key path evaluated from the given entity.
 - 
toStringpublic java.lang.String toString() Returns schema 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.
 
- 
 
-