Interface WithTagValuesOrStereotypes
-
- All Known Subinterfaces:
Model,ObjectModel,ObjectModelAssociationClass,ObjectModelAttribute,ObjectModelClass,ObjectModelClassifier,ObjectModelElement,ObjectModelEnumeration,ObjectModelInterface,ObjectModelOperation,ObjectModelPackage,ObjectModelParameter,StateModel
- All Known Implementing Classes:
ObjectModelAssociationClassImpl,ObjectModelAttributeImpl,ObjectModelClassifierImpl,ObjectModelClassImpl,ObjectModelElementImpl,ObjectModelEnumerationImpl,ObjectModelImpl,ObjectModelInterfaceImpl,ObjectModelOperationImpl,ObjectModelPackageImpl,ObjectModelParameterImpl,StateModelImpl
public interface WithTagValuesOrStereotypesCreated on 4/26/14.- Since:
- 2.9
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddStereotype(String stereotypeName)voidaddTagValue(String tagValue, String value)Adds the givenvalueassociated to thetagValue.Set<String>getStereotypes()StringgetTagValue(String tagValue)Returns the tagValue corresponding to the given name, or null if the element has no associated tagValue for this name.Map<String,String>getTagValues()Returns the tagValues associated with this element.booleanhasStereotype(String stereotypeName)booleanhasTagValue(String tagValue)Returns whether this element has a tagValue corresponding to the given name, or not.voidremoveStereotype(String stereotypeName)voidremoveTagValue(String tagvalue)
-
-
-
Method Detail
-
hasStereotype
boolean hasStereotype(String stereotypeName)
-
addStereotype
void addStereotype(String stereotypeName)
-
removeStereotype
void removeStereotype(String stereotypeName)
-
getTagValues
Map<String,String> getTagValues()
Returns the tagValues associated with this element. For each entry, the key is the name of the tagValue, the value is the value of the tagValue :-)- Returns:
- a Map containing all tagValues associated with this element
-
getTagValue
String getTagValue(String tagValue)
Returns the tagValue corresponding to the given name, or null if the element has no associated tagValue for this name.- Parameters:
tagValue- tag value key- Returns:
- the value of the found tagValue, or null if the element has no associated tagValue for this name.
-
addTagValue
void addTagValue(String tagValue, String value)
Adds the givenvalueassociated to thetagValue. Note: If a previous tag value was definied, then it will be replaced.- Parameters:
tagValue- the name of the tag valuevalue- the value to associate- Since:
- 2.1.2
-
hasTagValue
boolean hasTagValue(String tagValue)
Returns whether this element has a tagValue corresponding to the given name, or not.- Parameters:
tagValue- tag value name- Returns:
- a boolean indicating whether this element has a tagValue corresponding to the given name, or not.
-
removeTagValue
void removeTagValue(String tagvalue)
-
-