|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.datasource.RMSchema
public class RMSchema
This class describes the structure of a datasource by managing a list of RMEntity.
Constructor Summary | |
---|---|
RMSchema()
Creates a new empty schema. |
|
RMSchema(java.lang.String aName)
Creates a new schema with the given name. |
Method Summary | |
---|---|
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. |
int |
indexOfEntity(RMEntity anEntity)
Returns the index of a given entity. |
void |
mergeSchema(RMSchema aSchema)
Merges a schema with this schema. |
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. |
Methods inherited from class com.reportmill.base.RMObject |
---|
addListener, addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RMSchema()
public RMSchema(java.lang.String aName)
Method Detail |
---|
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 int indexOfEntity(RMEntity anEntity)
public RMEntity getRootEntity()
public RMEntity createRootEntity()
public void mergeSchema(RMSchema aSchema)
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 java.lang.Object
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)
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |