|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.datasource.RMEntity
public class RMEntity
This class represents an entity for an RMDataSource. It has a list of RMProperties, some of which are simple attributes and some of which are relationships.
Field Summary | |
---|---|
java.util.List |
_attributes
|
java.util.List |
_attributesSorted
|
java.lang.String |
_name
|
java.util.List |
_primaries
|
java.util.List |
_properties
|
java.util.List |
_relations
|
java.util.List |
_relationsSorted
|
RMSchema |
_schema
|
Constructor Summary | |
---|---|
RMEntity()
Creates an empty entity. |
|
RMEntity(java.lang.String name)
Creates an entity with the given name. |
Method Summary | |
---|---|
void |
addProperty(RMProperty aProperty)
Adds a given property. |
java.lang.Object |
clone()
Standard clone implementation. |
boolean |
equals(java.lang.Object obj)
Standard equals method. |
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement)
XML unarchival. |
RMProperty |
getAttribute(int anIndex)
Returns the attribute at the given index. |
RMProperty |
getAttribute(java.lang.String aName)
Returns the attribute with the given name. |
int |
getAttributeCount()
Returns the number of attributes. |
RMProperty |
getAttributeSorted(int anIndex)
Returns the attribute at the given index in a sorted attributes list. |
RMEntity |
getEntity(java.lang.String aKeyPath)
Returns the child entity for the key path evaluated from this entity. |
java.lang.String |
getName()
Returns the name of the entity. |
RMProperty |
getPrimary(int anIndex)
Returns the primary attribute at the given index. |
int |
getPrimaryCount()
Returns the number of primary attributes for this entity. |
RMProperty |
getProperty(int anIndex)
Returns the property at the given index. |
RMProperty |
getProperty(java.lang.String aName)
Returns the property with the given name. |
int |
getPropertyCount()
Returns the number of properties. |
int |
getPropertyIndex(java.lang.String aName)
Returns the property with the given name. |
RMProperty |
getRelation(int anIndex)
Returns the relation at the given index. |
RMProperty |
getRelation(java.lang.String aKeyPath)
Returns the relation for the given key path. |
int |
getRelationCount()
Returns the number of relations in the enity. |
RMProperty |
getRelationSorted(int anIndex)
Returns the relation at the given index in the sorted list of relations. |
RMSchema |
getSchema()
Returns the top level entity which is the schema. |
void |
removeProperty(java.lang.String name)
Removes a given property. |
void |
setName(java.lang.String aName)
Sets the name of the entity. |
java.lang.String |
toString()
Returns a string representation of entity (its name). |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver)
XML archival. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String _name
public RMSchema _schema
public java.util.List _properties
public java.util.List _attributes
public java.util.List _relations
public java.util.List _attributesSorted
public java.util.List _relationsSorted
public java.util.List _primaries
Constructor Detail |
---|
public RMEntity()
public RMEntity(java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String aName)
public RMSchema getSchema()
public int getPropertyCount()
public RMProperty getProperty(int anIndex)
public RMProperty getProperty(java.lang.String aName)
public int getPropertyIndex(java.lang.String aName)
public void addProperty(RMProperty aProperty)
public void removeProperty(java.lang.String name)
public int getAttributeCount()
public RMProperty getAttribute(int anIndex)
public RMProperty getAttribute(java.lang.String aName)
public RMProperty getAttributeSorted(int anIndex)
public int getRelationCount()
public RMProperty getRelation(int anIndex)
public RMProperty getRelation(java.lang.String aKeyPath)
public RMProperty getRelationSorted(int anIndex)
public RMEntity getEntity(java.lang.String aKeyPath)
public int getPrimaryCount()
public RMProperty getPrimary(int anIndex)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |