Class Schema
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.snap.data.Schema
- All Implemented Interfaces:
- Archivable,- RMJSONArchiver.GetKeys,- RMPropertyChanger,- Cloneable
This class describes the structure of a data source by managing a list of entities.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds an entity to the list.voidAdds an entity to the list.clone()Standard clone implementation.protected EntityCreates a root entity.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the list of entities.getEntity(int anIndex) Returns the specific entity at the given index.Returns the schema entity with the given name.intReturns the number of entities in this schema.Returns keys for JSON archival.getName()Returns the name of the entity.Returns the root entity.getSite()Returns the WebSite the schema works for.removeEntity(int anIndex) Removes an entity at given index.intremoveEntity(Entity anEntity) Removes an entity from the list.voidsetEntities(List<Entity> theEntities) Sets a list of entities.voidSets the name of the entity.voidSets the WebSite the schema works for.toString()Returns schema name.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
Schemapublic Schema()Creates a new empty schema.
- 
SchemaCreates a new schema with the given name.
 
- 
- 
Method Details- 
getNameReturns the name of the entity.
- 
setNameSets the name of the entity.
- 
getSiteReturns the WebSite the schema works for.
- 
setSiteSets the WebSite the schema works for.
- 
getEntityCountpublic int getEntityCount()Returns the number of entities in this schema.
- 
getEntityReturns the specific entity at the given index.
- 
getEntitiesReturns the list of entities.
- 
setEntitiesSets a list of entities.
- 
addEntityAdds an entity to the list.
- 
addEntityAdds an entity to the list.
- 
removeEntityRemoves an entity at given index.
- 
removeEntityRemoves an entity from the list.
- 
getEntityReturns the schema entity with the given name.
- 
getRootEntityReturns the root entity.
- 
createRootEntityCreates a root entity.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMListenerList
 
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
 
- 
getJSONKeysReturns keys for JSON archival.- Specified by:
- getJSONKeysin interface- RMJSONArchiver.GetKeys
 
- 
toStringReturns schema name.
 
-