Class AttributeImpl<T>
java.lang.Object
org.camunda.bpm.model.xml.impl.type.attribute.AttributeImpl<T>
- All Implemented Interfaces:
Attribute<T>
- Direct Known Subclasses:
BooleanAttribute,DoubleAttribute,EnumAttribute,IntegerAttribute,NamedEnumAttribute,StringAttribute
Base class for implementing primitive value attributes
- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringconvertModelValueToXmlValue(T modelValue) to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the modelprotected abstract TconvertXmlValueToModelValue(String rawValue) to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the modelgetValue(ModelElementInstance modelElement) returns the value of the attribute.booleanbooleanvoidregisterIncoming(Reference<?> ref) voidregisterOutgoingReference(Reference<?> ref) voidremoveAttribute(ModelElementInstance modelElement) voidsetAttributeName(String attributeName) voidsetDefaultValue(T defaultValue) voidsetId()Indicate whether this attribute is an Id attributevoidsetNamespaceUri(String namespaceUri) voidsetRequired(boolean required) voidsetValue(ModelElementInstance modelElement, T value) sets the value of the attribute.voidsetValue(ModelElementInstance modelElement, T value, boolean withReferenceUpdate) sets the value of the attribute.voidunlinkReference(ModelElementInstance modelElement, Object referenceIdentifier) voidupdateIncomingReferences(ModelElementInstance modelElement, String newIdentifier, String oldIdentifier)
-
Method Details
-
convertXmlValueToModelValue
to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model- Returns:
- the converted value
-
convertModelValueToXmlValue
to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model- Returns:
- the converted value
-
getOwningElementType
- Specified by:
getOwningElementTypein interfaceAttribute<T>
-
getValue
returns the value of the attribute. -
setValue
sets the value of the attribute. the value of the attribute. -
setValue
Description copied from interface:Attributesets the value of the attribute. -
updateIncomingReferences
public void updateIncomingReferences(ModelElementInstance modelElement, String newIdentifier, String oldIdentifier) -
getDefaultValue
- Specified by:
getDefaultValuein interfaceAttribute<T>
-
setDefaultValue
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceAttribute<T>
-
setRequired
public void setRequired(boolean required) -
setNamespaceUri
- Parameters:
namespaceUri- the namespaceUri to set
-
getNamespaceUri
- Specified by:
getNamespaceUriin interfaceAttribute<T>- Returns:
- the namespaceUri
-
isIdAttribute
public boolean isIdAttribute()- Specified by:
isIdAttributein interfaceAttribute<T>
-
setId
public void setId()Indicate whether this attribute is an Id attribute -
getAttributeName
- Specified by:
getAttributeNamein interfaceAttribute<T>- Returns:
- the attributeName
-
setAttributeName
- Parameters:
attributeName- the attributeName to set
-
removeAttribute
- Specified by:
removeAttributein interfaceAttribute<T>
-
unlinkReference
-
getIncomingReferences
- Specified by:
getIncomingReferencesin interfaceAttribute<T>- Returns:
- the incomingReferences
-
getOutgoingReferences
- Specified by:
getOutgoingReferencesin interfaceAttribute<T>- Returns:
- the outgoingReferences
-
registerOutgoingReference
-
registerIncoming
-