public class RMSchema
extends java.lang.Object
Constructor and Description |
---|
RMSchema()
Creates a new empty schema.
|
RMSchema(java.lang.String aName)
Creates a new schema with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntity(RMEntity anEntity)
Adds an entity to the list.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
RMEntity |
getEntity(int anIndex)
Returns the specific entity at the given index.
|
RMEntity |
getEntity(java.lang.String aName)
Returns the schema entity with the given name.
|
int |
getEntityCount()
Returns the number of entities in this schema.
|
java.lang.String |
getName()
Returns the schema name.
|
static RMProperty |
getRelation(RMEntity anEntity,
java.lang.String aKeyPath)
Returns the relation for the given key path evaluated from the given entity.
|
RMEntity |
getRootEntity()
Returns the root entity.
|
void |
removeEntity(RMEntity anEntity)
Removes an entity from the list.
|
void |
setName(java.lang.String aName)
Sets the schema name.
|
java.lang.String |
toString()
Returns schema name.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
public RMSchema()
public RMSchema(java.lang.String aName)
public java.lang.String getName()
public void setName(java.lang.String aName)
public int getEntityCount()
public RMEntity getEntity(int anIndex)
public void addEntity(RMEntity anEntity)
public void removeEntity(RMEntity anEntity)
public RMEntity getEntity(java.lang.String aName)
public RMEntity getRootEntity()
public static RMProperty getRelation(RMEntity anEntity, java.lang.String aKeyPath)
public java.lang.String toString()
toString
in class java.lang.Object
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)