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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAttributeName()TgetDefaultValue()java.util.List<Reference<?>>getIncomingReferences()java.lang.StringgetNamespaceUri()java.util.List<Reference<?>>getOutgoingReferences()ModelElementTypegetOwningElementType()TgetValue(ModelElementInstance modelElement)returns the value of the attribute.booleanisIdAttribute()booleanisRequired()voidsetValue(ModelElementInstance modelElement, T value)sets the value of the attribute.voidsetValue(ModelElementInstance modelElement, T value, boolean withReferenceUpdate)sets the value of the attribute.
-
-
-
Method Detail
-
getValue
T getValue(ModelElementInstance modelElement)
returns the value of the attribute.- Returns:
- the value of the attribute.
-
setValue
void setValue(ModelElementInstance modelElement, T value)
sets the value of the attribute.- Parameters:
value- the value of the attribute.
-
setValue
void setValue(ModelElementInstance modelElement, T value, boolean withReferenceUpdate)
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
java.lang.String getNamespaceUri()
- Returns:
- the namespaceUri
-
getAttributeName
java.lang.String getAttributeName()
- Returns:
- the attributeName
-
isIdAttribute
boolean isIdAttribute()
-
getOwningElementType
ModelElementType getOwningElementType()
-
getIncomingReferences
java.util.List<Reference<?>> getIncomingReferences()
-
getOutgoingReferences
java.util.List<Reference<?>> getOutgoingReferences()
-
-