|
ReportMill 12 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 data source by managing a list of entities.
| 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. |
void |
mergeSchema(RMSchema aSchema,
boolean doCreateEntities,
boolean doCreateProperties)
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 RMEntity getRootEntity()
public RMEntity createRootEntity()
public void mergeSchema(RMSchema aSchema,
boolean doCreateEntities,
boolean doCreateProperties)
public boolean equals(java.lang.Object anObj)
equals in class java.lang.Objectpublic RMSchema clone()
clone in class com.reportmill.base.RMObjectpublic 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)
|
ReportMill 12 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||