public class ModelPopulation extends Object
| Constructor and Description |
|---|
ModelPopulation(FileInputStream input) |
| Modifier and Type | Method and Description |
|---|---|
EntityInstance |
getEntity(Integer id) |
String |
getEntityPrefix() |
HashMap<Integer,EntityInstance> |
getInstances() |
Vector<EntityInstance> |
getInstancesOfFirstNonAbstractTypes(String typeName)
Given an (abstract) supertype recursively descends down the subtype axis
until the first layer first layer of concrete types is found and returns
all instances
|
Vector<EntityInstance> |
getInstancesOfType(String typeName) |
Vector<EntityInstance> |
getInstancesOfType(String typeName,
boolean includeSubClasses) |
SchemaDefinition |
getSchema() |
Path |
getSchemaFile() |
void |
load() |
void |
setInstances(HashMap<Integer,EntityInstance> instances) |
void |
setSchema(SchemaDefinition schema) |
void |
setSchemaFile(Path schemaFile) |
public ModelPopulation(FileInputStream input)
public SchemaDefinition getSchema()
public void setSchema(SchemaDefinition schema)
public Path getSchemaFile()
public void setSchemaFile(Path schemaFile)
public void load()
public HashMap<Integer,EntityInstance> getInstances()
public void setInstances(HashMap<Integer,EntityInstance> instances)
public EntityInstance getEntity(Integer id)
public Vector<EntityInstance> getInstancesOfType(String typeName)
public Vector<EntityInstance> getInstancesOfFirstNonAbstractTypes(String typeName)
typeName - the (abstract) type namepublic Vector<EntityInstance> getInstancesOfType(String typeName, boolean includeSubClasses)
public String getEntityPrefix()
Copyright © 2018 OpenSource BIM. All rights reserved.