Class ModelElementTypeImpl
java.lang.Object
org.camunda.bpm.model.xml.impl.type.ModelElementTypeImpl
- All Implemented Interfaces:
ModelElementType
- Author:
- Daniel Meyer
-
Constructor Summary
ConstructorsConstructorDescriptionModelElementTypeImpl(ModelImpl model, String name, Class<? extends ModelElementInstance> instanceType) -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelElementInstancecreateModelElementInstance(ModelTypeInstanceContext instanceContext) booleanCollection<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()inthashCode()booleanbooleanisBaseTypeOf(ModelElementType elementType) Test if a element type is a base type of this type.newInstance(ModelInstanceImpl modelInstance, DomElement domElement) newInstance(ModelInstance modelInstance) voidregisterAttribute(Attribute<?> attribute) voidregisterChildElementCollection(ChildElementCollection<?> childElementCollection) voidregisterChildElementType(ModelElementType childElementType) voidregisterExtendingType(ModelElementType modelType) voidresolveBaseTypes(List<ModelElementType> baseTypes) Resolve all types which are base types of this typevoidresolveExtendingTypes(Set<ModelElementType> allExtendingTypes) Resolve all types recursively which are extending this typevoidsetAbstract(boolean isAbstract) voidsetBaseType(ModelElementTypeImpl baseType) voidsetInstanceProvider(ModelElementTypeBuilder.ModelTypeInstanceProvider<?> instanceProvider) voidsetTypeNamespace(String typeNamespace)
-
Constructor Details
-
ModelElementTypeImpl
public ModelElementTypeImpl(ModelImpl model, String name, Class<? extends ModelElementInstance> instanceType)
-
-
Method Details
-
newInstance
- Specified by:
newInstancein interfaceModelElementType
-
newInstance
-
registerAttribute
-
registerChildElementType
-
registerChildElementCollection
-
registerExtendingType
-
createModelElementInstance
-
getAttributes
- Specified by:
getAttributesin interfaceModelElementType
-
getTypeName
- Specified by:
getTypeNamein interfaceModelElementType
-
getInstanceType
- Specified by:
getInstanceTypein interfaceModelElementType
-
setTypeNamespace
-
getTypeNamespace
- Specified by:
getTypeNamespacein interfaceModelElementType
-
setBaseType
-
setInstanceProvider
public void setInstanceProvider(ModelElementTypeBuilder.ModelTypeInstanceProvider<?> instanceProvider) -
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceModelElementType
-
setAbstract
public void setAbstract(boolean isAbstract) -
getExtendingTypes
- Specified by:
getExtendingTypesin interfaceModelElementType
-
getAllExtendingTypes
- Specified by:
getAllExtendingTypesin 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:
getBaseTypein interfaceModelElementType
-
getModel
- Specified by:
getModelin interfaceModelElementType
-
getChildElementTypes
- Specified by:
getChildElementTypesin interfaceModelElementType
-
getAllChildElementTypes
- Specified by:
getAllChildElementTypesin interfaceModelElementType
-
getChildElementCollections
-
getAllChildElementCollections
-
getInstances
- Specified by:
getInstancesin 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
childElementTypeClassis 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:
getAttributein interfaceModelElementType- Parameters:
attributeName- the name of the attribute- Returns:
- the attribute or null if it not exists
-
getChildElementCollection
-
hashCode
public int hashCode() -
equals
-