Constructor and Description |
---|
ModelImpl(String modelName)
Create a new
Model with a model name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getModelName()
Returns the model name, which is the identifier of this model.
|
ModelElementType |
getType(Class<? extends ModelElementInstance> instanceClass)
Gets the defined
ModelElementType of a ModelElementInstance . |
ModelElementType |
getTypeForName(String typeName)
Gets the defined
ModelElementType for a type by its name. |
ModelElementType |
getTypeForName(String namespaceUri,
String typeName)
Gets the defined
ModelElementType for a type by its name and namespace URI. |
Collection<ModelElementType> |
getTypes()
Gets the collection of all
ModelElementType defined in the model. |
int |
hashCode() |
void |
registerType(ModelElementType modelElementType,
Class<? extends ModelElementInstance> instanceType)
Registers a
ModelElementType in this Model . |
public Collection<ModelElementType> getTypes()
Model
ModelElementType
defined in the model.public ModelElementType getType(Class<? extends ModelElementInstance> instanceClass)
Model
ModelElementType
of a ModelElementInstance
.public ModelElementType getTypeForName(String typeName)
Model
ModelElementType
for a type by its name.getTypeForName
in interface Model
typeName
- the name of the typepublic ModelElementType getTypeForName(String namespaceUri, String typeName)
Model
ModelElementType
for a type by its name and namespace URI.getTypeForName
in interface Model
namespaceUri
- the namespace URI for the typetypeName
- the name of the typepublic void registerType(ModelElementType modelElementType, Class<? extends ModelElementInstance> instanceType)
ModelElementType
in this Model
.modelElementType
- the element type to registerinstanceType
- the instance class of the type to registerpublic String getModelName()
Model
getModelName
in interface Model
Copyright © 2018. All rights reserved.