public class RMSchema
extends com.reportmill.base.RMObject
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.
|
void |
addEntity(RMEntity anEntity,
int anIndex)
Adds an entity to the list.
|
RMSchema |
clone()
Standard clone implementation.
|
java.util.List<RMEntity> |
createEntities()
Creates the entities list.
|
RMEntity |
createRootEntity()
Creates a root entity.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
RMSchema |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
java.util.List<RMEntity> |
getEntities()
Returns the list of entities.
|
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 name of the entity.
|
RMEntity |
getRootEntity()
Returns the root entity.
|
RMEntity |
getRootEntity(boolean doCreate)
Returns the root entity.
|
RMEntity |
removeEntity(int anIndex)
Removes an entity at given index.
|
int |
removeEntity(RMEntity anEntity)
Removes an entity from the list.
|
void |
setEntities(java.util.List<RMEntity> aList)
Sets the list of entities.
|
void |
setName(java.lang.String aName)
Sets the name of the entity.
|
java.lang.String |
toString()
Returns schema name.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
addListener, addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing
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 java.util.List<RMEntity> getEntities()
public void setEntities(java.util.List<RMEntity> aList)
public java.util.List<RMEntity> createEntities()
public void addEntity(RMEntity anEntity)
public void addEntity(RMEntity anEntity, int anIndex)
public RMEntity removeEntity(int anIndex)
public int removeEntity(RMEntity anEntity)
public RMEntity getEntity(java.lang.String aName)
public RMEntity getRootEntity()
public RMEntity getRootEntity(boolean doCreate)
public RMEntity createRootEntity()
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public RMSchema clone()
clone
in class com.reportmill.base.RMObject
public java.lang.String toString()
toString
in class com.reportmill.base.RMObject
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public RMSchema fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)