Package net.ssehub.easy.varModel.model
Interface IAttributableElement
-
- All Superinterfaces:
IAttributeAccess
- All Known Implementing Classes:
ConstantDecisionVariableDeclaration,DecisionVariableDeclaration,ExplicitTypeVariableDeclaration,Project,ProjectDecisionVariableDeclaration
public interface IAttributableElement extends IAttributeAccess
Interface to mark attributable elements. Classes implementing this interface shall consider the implementation ofIModelElement.propagateAttribute(Attribute).- Author:
- Marcel Lueder, Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanattribute(Attribute attribute)Attributes this element.java.lang.StringgetName()Method to get the name of the element.java.lang.StringgetQualifiedName()Returns the qualified name of this element.-
Methods inherited from interface net.ssehub.easy.varModel.model.IAttributeAccess
getAttribute, getAttribute, getAttributesCount, getParent
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Method to get the name of the element.- Returns:
- name of the element
-
getQualifiedName
java.lang.String getQualifiedName()
Returns the qualified name of this element.- Returns:
- the qualified name
-
attribute
boolean attribute(Attribute attribute)
Attributes this element.- Parameters:
attribute- the attribute to be added- Returns:
trueif the operation was successful,falseif the element is about being attributed multiple times with the same attribute
-
-