Package com.ribs.datasource
Class RMSchema
java.lang.Object
com.ribs.datasource.RMSchema
This class describes the structure of a datasource by managing a list of RMEntity.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds an entity to the list.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getEntity(int anIndex) Returns the specific entity at the given index.Returns the schema entity with the given name.intReturns the number of entities in this schema.getName()Returns the schema name.static RMPropertygetRelation(RMEntity anEntity, String aKeyPath) Returns the relation for the given key path evaluated from the given entity.Returns the root entity.voidremoveEntity(RMEntity anEntity) Removes an entity from the list.voidSets the schema name.toString()Returns schema name.toXML(RXArchiver anArchiver) XML archival.
- 
Constructor Details- 
RMSchemapublic RMSchema()Creates a new empty schema.
- 
RMSchemaCreates a new schema with the given name.
 
- 
- 
Method Details- 
getNameReturns the schema name.
- 
setNameSets the schema name.
- 
getEntityCountpublic int getEntityCount()Returns the number of entities in this schema.
- 
getEntityReturns the specific entity at the given index.
- 
addEntityAdds an entity to the list.
- 
removeEntityRemoves an entity from the list.
- 
getEntityReturns the schema entity with the given name.
- 
getRootEntityReturns the root entity.
- 
getRelationReturns the relation for the given key path evaluated from the given entity.
- 
toStringReturns schema name.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-