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 String
convertModelValueToXmlValue
(T modelValue) to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the modelprotected abstract T
convertXmlValueToModelValue
(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.boolean
boolean
void
registerIncoming
(Reference<?> ref) void
registerOutgoingReference
(Reference<?> ref) void
removeAttribute
(ModelElementInstance modelElement) void
setAttributeName
(String attributeName) void
setDefaultValue
(T defaultValue) void
setId()
Indicate whether this attribute is an Id attributevoid
setNamespaceUri
(String namespaceUri) void
setRequired
(boolean required) void
setValue
(ModelElementInstance modelElement, T value) sets the value of the attribute.void
setValue
(ModelElementInstance modelElement, T value, boolean withReferenceUpdate) sets the value of the attribute.void
unlinkReference
(ModelElementInstance modelElement, Object referenceIdentifier) void
updateIncomingReferences
(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:
getOwningElementType
in 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:Attribute
sets the value of the attribute. -
updateIncomingReferences
public void updateIncomingReferences(ModelElementInstance modelElement, String newIdentifier, String oldIdentifier) -
getDefaultValue
- Specified by:
getDefaultValue
in interfaceAttribute<T>
-
setDefaultValue
-
isRequired
public boolean isRequired()- Specified by:
isRequired
in interfaceAttribute<T>
-
setRequired
public void setRequired(boolean required) -
setNamespaceUri
- Parameters:
namespaceUri
- the namespaceUri to set
-
getNamespaceUri
- Specified by:
getNamespaceUri
in interfaceAttribute<T>
- Returns:
- the namespaceUri
-
isIdAttribute
public boolean isIdAttribute()- Specified by:
isIdAttribute
in interfaceAttribute<T>
-
setId
public void setId()Indicate whether this attribute is an Id attribute -
getAttributeName
- Specified by:
getAttributeName
in interfaceAttribute<T>
- Returns:
- the attributeName
-
setAttributeName
- Parameters:
attributeName
- the attributeName to set
-
removeAttribute
- Specified by:
removeAttribute
in interfaceAttribute<T>
-
unlinkReference
-
getIncomingReferences
- Specified by:
getIncomingReferences
in interfaceAttribute<T>
- Returns:
- the incomingReferences
-
getOutgoingReferences
- Specified by:
getOutgoingReferences
in interfaceAttribute<T>
- Returns:
- the outgoingReferences
-
registerOutgoingReference
-
registerIncoming
-