Modifier and Type | Field and Description |
---|---|
static EntityType |
TYPE
The entity type.
|
Constructor and Description |
---|
CfgModel()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Entity entity)
Adds the specified entity.
|
void |
addModule(CfgModule module)
Adds the specified module to the model.
|
void |
addModules(java.util.Collection<CfgModule> modules)
Adds modules collection.
|
java.util.Collection<CfgModule> |
getModules()
Returns internal modules.
|
equals, getEntityType, hashCode, toString
public static final EntityType TYPE
public void add(Entity entity)
Able to add entity of the CfgModel
type.
add
in class Entity
entity
- entity to be addedjava.lang.IllegalArgumentException
- when argument is null
;RetrascopeRuntimeException
- when the specified entity
is not of CfgModel
type.public java.util.Collection<CfgModule> getModules()
public void addModules(java.util.Collection<CfgModule> modules)
modules
- modules collectionjava.lang.IllegalArgumentException
- when argument is null
.public void addModule(CfgModule module)
module
- modulejava.lang.IllegalArgumentException
- when argument is null
.