public class ModelElementTypeImpl extends Object implements ModelElementType
| Constructor and Description |
|---|
ModelElementTypeImpl(ModelImpl model,
String name,
Class<? extends ModelElementInstance> instanceType) |
public ModelElementTypeImpl(ModelImpl model, String name, Class<? extends ModelElementInstance> instanceType)
public ModelElementInstance newInstance(ModelInstance modelInstance)
newInstance in interface ModelElementTypepublic ModelElementInstance newInstance(ModelInstanceImpl modelInstance, DomElement domElement)
public void registerAttribute(Attribute<?> attribute)
public void registerChildElementType(ModelElementType childElementType)
public void registerChildElementCollection(ChildElementCollection<?> childElementCollection)
public void registerExtendingType(ModelElementType modelType)
protected ModelElementInstance createModelElementInstance(ModelTypeInstanceContext instanceContext)
public final List<Attribute<?>> getAttributes()
getAttributes in interface ModelElementTypepublic String getTypeName()
getTypeName in interface ModelElementTypepublic Class<? extends ModelElementInstance> getInstanceType()
getInstanceType in interface ModelElementTypepublic void setTypeNamespace(String typeNamespace)
public String getTypeNamespace()
getTypeNamespace in interface ModelElementTypepublic void setBaseType(ModelElementTypeImpl baseType)
public void setInstanceProvider(ModelElementTypeBuilder.ModelTypeInstanceProvider<?> instanceProvider)
public boolean isAbstract()
isAbstract in interface ModelElementTypepublic void setAbstract(boolean isAbstract)
public Collection<ModelElementType> getExtendingTypes()
getExtendingTypes in interface ModelElementTypepublic Collection<ModelElementType> getAllExtendingTypes()
getAllExtendingTypes in interface ModelElementTypepublic void resolveExtendingTypes(Set<ModelElementType> allExtendingTypes)
allExtendingTypes - set of calculated extending typespublic void resolveBaseTypes(List<ModelElementType> baseTypes)
baseTypes - list of calculated base typespublic ModelElementType getBaseType()
getBaseType in interface ModelElementTypepublic Model getModel()
getModel in interface ModelElementTypepublic List<ModelElementType> getChildElementTypes()
getChildElementTypes in interface ModelElementTypepublic List<ModelElementType> getAllChildElementTypes()
getAllChildElementTypes in interface ModelElementTypepublic List<ChildElementCollection<?>> getChildElementCollections()
public List<ChildElementCollection<?>> getAllChildElementCollections()
public Collection<ModelElementInstance> getInstances(ModelInstance modelInstance)
getInstances in interface ModelElementTypepublic boolean isBaseTypeOf(ModelElementType elementType)
elementType - the element type to testchildElementTypeClass is a base type of this type, else otherwisepublic Collection<Attribute<?>> getAllAttributes()
public Attribute<?> getAttribute(String attributeName)
getAttribute in interface ModelElementTypeattributeName - the name of the attributepublic ChildElementCollection<?> getChildElementCollection(ModelElementType childElementType)
Copyright © 2018. All rights reserved.