Interface Attribute<T>
- Type Parameters:
T-
- All Known Implementing Classes:
AttributeImpl,BooleanAttribute,DoubleAttribute,EnumAttribute,IntegerAttribute,NamedEnumAttribute,StringAttribute
public interface Attribute<T>
- Author:
- meyerd
-
Method Summary
Modifier and TypeMethodDescriptiongetValue(ModelElementInstance modelElement) returns the value of the attribute.booleanbooleanvoidsetValue(ModelElementInstance modelElement, T value) sets the value of the attribute.voidsetValue(ModelElementInstance modelElement, T value, boolean withReferenceUpdate) sets the value of the attribute.
-
Method Details
-
getValue
returns the value of the attribute.- Returns:
- the value of the attribute.
-
setValue
sets the value of the attribute.- Parameters:
value- the value of the attribute.
-
setValue
sets the value of the attribute.- Parameters:
value- the value of the attribute.withReferenceUpdate- true to update id references in other elements, false otherwise
-
getDefaultValue
T getDefaultValue() -
isRequired
boolean isRequired() -
getNamespaceUri
String getNamespaceUri()- Returns:
- the namespaceUri
-
getAttributeName
String getAttributeName()- Returns:
- the attributeName
-
isIdAttribute
boolean isIdAttribute() -
getOwningElementType
ModelElementType getOwningElementType() -
getIncomingReferences
-
getOutgoingReferences
-