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.String
getAttributeName()
T
getDefaultValue()
java.util.List<Reference<?>>
getIncomingReferences()
java.lang.String
getNamespaceUri()
java.util.List<Reference<?>>
getOutgoingReferences()
ModelElementType
getOwningElementType()
T
getValue(ModelElementInstance modelElement)
returns the value of the attribute.boolean
isIdAttribute()
boolean
isRequired()
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.
-
-
-
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()
-
-