|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.steptools.stdev.Model
public class Model
A unit of persistence for STEP data. A model is the in-memory representation for the data in a STEP File. A model holds the EntityInstances, as well some management data.
The instances are contained in population objects.
In addition, the model may contain properties which are used to annotate
the in-memory representation of the data.
| Constructor Summary | |
|---|---|
Model()
|
|
Model(SchemaBase sch)
Create a model with the specified schema as the default schema |
|
| Method Summary | |
|---|---|
void |
addProperty(java.lang.Object key,
java.lang.Object value)
Adds a property to the model. |
PopulationBase |
getPopulation()
Gets the default population in model. |
PopulationBase |
getPopulation(java.lang.Object id)
Gets the requested population be identifier. |
java.util.Collection |
getPopulations()
Gets all the populations in model |
java.lang.Object |
getProperty(java.lang.Object key)
Gets the property for the specified key |
PopulationBase |
newPopulation(SchemaBase sch,
java.lang.Object id)
Creates a new population in the model. |
java.util.Set |
propertyKeys()
Gets all the property keys |
void |
removePopulation(java.lang.Object id)
Removes a population from the model |
void |
removePopulation(PopulationBase sect)
Removes a population from the model |
void |
removeProperty(java.lang.Object key)
Removed the property for the specified key |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model(SchemaBase sch)
sch - The schemapublic Model()
| Method Detail |
|---|
public PopulationBase newPopulation(SchemaBase sch,
java.lang.Object id)
throws DuplicatePopulationIDException
sch - The schema for which to create a population.id - The identifier for the newly created section.
DuplicateSectionIDException - - When a population already exists
with the given identifier
DuplicatePopulationIDExceptionpublic void removePopulation(PopulationBase sect)
pop - The population to remove.public void removePopulation(java.lang.Object id)
id - The identifier for the population to remove.public java.util.Collection getPopulations()
public PopulationBase getPopulation()
public PopulationBase getPopulation(java.lang.Object id)
id - The identifier of the population to retreive.
public void addProperty(java.lang.Object key,
java.lang.Object value)
RemoveListener interface, in which case, they will be notified
when an instance is removed from any population in the model.
key - The identifier for the property.value - The object that acts as the property.public java.lang.Object getProperty(java.lang.Object key)
key - The identifier for the property.
public void removeProperty(java.lang.Object key)
key - The identifier for the property.public java.util.Set propertyKeys()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||