Package org.camunda.bpm.model.xml
Interface Model
-
- All Known Implementing Classes:
ModelImpl
public interface Model
A model contains all defined types and the relationship between them. SeeModelBuilder.createInstance(java.lang.String)
to create a new model.- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getActualNamespace(java.lang.String alternativeNs)
Returns the actual namespace URI for an alternative namespace URIjava.lang.String
getAlternativeNamespace(java.lang.String actualNs)
Returns the alternative namespace URI for a namespace URIjava.util.Set<java.lang.String>
getAlternativeNamespaces(java.lang.String actualNs)
java.lang.String
getModelName()
Returns the model name, which is the identifier of this model.ModelElementType
getType(java.lang.Class<? extends ModelElementInstance> instanceClass)
Gets the definedModelElementType
of aModelElementInstance
.ModelElementType
getTypeForName(java.lang.String typeName)
Gets the definedModelElementType
for a type by its name.ModelElementType
getTypeForName(java.lang.String namespaceUri, java.lang.String typeName)
Gets the definedModelElementType
for a type by its name and namespace URI.java.util.Collection<ModelElementType>
getTypes()
Gets the collection of allModelElementType
defined in the model.
-
-
-
Method Detail
-
getTypes
java.util.Collection<ModelElementType> getTypes()
Gets the collection of allModelElementType
defined in the model.- Returns:
- the list of all defined element types of this model
-
getType
ModelElementType getType(java.lang.Class<? extends ModelElementInstance> instanceClass)
Gets the definedModelElementType
of aModelElementInstance
.- Parameters:
instanceClass
- the instance class to find the type for- Returns:
- the corresponding element type or null if no type is defined for the instance
-
getTypeForName
ModelElementType getTypeForName(java.lang.String typeName)
Gets the definedModelElementType
for a type by its name.- Parameters:
typeName
- the name of the type- Returns:
- the element type or null if no type is defined for the name
-
getTypeForName
ModelElementType getTypeForName(java.lang.String namespaceUri, java.lang.String typeName)
Gets the definedModelElementType
for a type by its name and namespace URI.- Parameters:
namespaceUri
- the namespace URI for the typetypeName
- the name of the type- Returns:
- the element type or null if no type is defined for the name and namespace URI
-
getModelName
java.lang.String getModelName()
Returns the model name, which is the identifier of this model.- Returns:
- the model name
-
getActualNamespace
java.lang.String getActualNamespace(java.lang.String alternativeNs)
Returns the actual namespace URI for an alternative namespace URI- Parameters:
alternativeNs
- the alternative namespace URI- Returns:
- the actual namespace URI or null if none is set
-
getAlternativeNamespace
java.lang.String getAlternativeNamespace(java.lang.String actualNs)
Returns the alternative namespace URI for a namespace URI- Parameters:
actualNs
- the actual namespace URI- Returns:
- the alternative namespace URI or null if none is set
-
getAlternativeNamespaces
java.util.Set<java.lang.String> getAlternativeNamespaces(java.lang.String actualNs)
-
-