Class ModelElementTypeImpl
java.lang.Object
org.camunda.bpm.model.xml.impl.type.ModelElementTypeImpl
- All Implemented Interfaces:
ModelElementType
- Author:
- Daniel Meyer
-
Constructor Summary
ConstructorDescriptionModelElementTypeImpl
(ModelImpl model, String name, Class<? extends ModelElementInstance> instanceType) -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelElementInstance
createModelElementInstance
(ModelTypeInstanceContext instanceContext) boolean
Collection<Attribute<?>>
Returns a list of all attributes, including the attributes of all base types.Attribute<?>
getAttribute
(String attributeName) Return the attribute for the attribute namegetChildElementCollection
(ModelElementType childElementType) protected List<DomElement>
getElementsByNameNs
(DomDocument document, String namespaceURI) getInstances
(ModelInstance modelInstance) Class<? extends ModelElementInstance>
getModel()
int
hashCode()
boolean
boolean
isBaseTypeOf
(ModelElementType elementType) Test if a element type is a base type of this type.newInstance
(ModelInstanceImpl modelInstance, DomElement domElement) newInstance
(ModelInstance modelInstance) void
registerAttribute
(Attribute<?> attribute) void
registerChildElementCollection
(ChildElementCollection<?> childElementCollection) void
registerChildElementType
(ModelElementType childElementType) void
registerExtendingType
(ModelElementType modelType) void
resolveBaseTypes
(List<ModelElementType> baseTypes) Resolve all types which are base types of this typevoid
resolveExtendingTypes
(Set<ModelElementType> allExtendingTypes) Resolve all types recursively which are extending this typevoid
setAbstract
(boolean isAbstract) void
setBaseType
(ModelElementTypeImpl baseType) void
setInstanceProvider
(ModelElementTypeBuilder.ModelTypeInstanceProvider<?> instanceProvider) void
setTypeNamespace
(String typeNamespace)
-
Constructor Details
-
ModelElementTypeImpl
public ModelElementTypeImpl(ModelImpl model, String name, Class<? extends ModelElementInstance> instanceType)
-
-
Method Details
-
newInstance
- Specified by:
newInstance
in interfaceModelElementType
-
newInstance
-
registerAttribute
-
registerChildElementType
-
registerChildElementCollection
-
registerExtendingType
-
createModelElementInstance
-
getAttributes
- Specified by:
getAttributes
in interfaceModelElementType
-
getTypeName
- Specified by:
getTypeName
in interfaceModelElementType
-
getInstanceType
- Specified by:
getInstanceType
in interfaceModelElementType
-
setTypeNamespace
-
getTypeNamespace
- Specified by:
getTypeNamespace
in interfaceModelElementType
-
setBaseType
-
setInstanceProvider
public void setInstanceProvider(ModelElementTypeBuilder.ModelTypeInstanceProvider<?> instanceProvider) -
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceModelElementType
-
setAbstract
public void setAbstract(boolean isAbstract) -
getExtendingTypes
- Specified by:
getExtendingTypes
in interfaceModelElementType
-
getAllExtendingTypes
- Specified by:
getAllExtendingTypes
in interfaceModelElementType
-
resolveExtendingTypes
Resolve all types recursively which are extending this type- Parameters:
allExtendingTypes
- set of calculated extending types
-
resolveBaseTypes
Resolve all types which are base types of this type- Parameters:
baseTypes
- list of calculated base types
-
getBaseType
- Specified by:
getBaseType
in interfaceModelElementType
-
getModel
- Specified by:
getModel
in interfaceModelElementType
-
getChildElementTypes
- Specified by:
getChildElementTypes
in interfaceModelElementType
-
getAllChildElementTypes
- Specified by:
getAllChildElementTypes
in interfaceModelElementType
-
getChildElementCollections
-
getAllChildElementCollections
-
getInstances
- Specified by:
getInstances
in interfaceModelElementType
-
getElementsByNameNs
-
isBaseTypeOf
Test if a element type is a base type of this type. So this type extends the given element type.- Parameters:
elementType
- the element type to test- Returns:
- true if
childElementTypeClass
is a base type of this type, else otherwise
-
getAllAttributes
Returns a list of all attributes, including the attributes of all base types.- Returns:
- the list of all attributes
-
getAttribute
Return the attribute for the attribute name- Specified by:
getAttribute
in interfaceModelElementType
- Parameters:
attributeName
- the name of the attribute- Returns:
- the attribute or null if it not exists
-
getChildElementCollection
-
hashCode
public int hashCode() -
equals
-