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 WithTagValuesOrStereotypes
Created on 4/26/14.- Since:
- 2.9
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addStereotype(String stereotypeName)
void
addTagValue(String tagValue, String value)
Adds the givenvalue
associated to thetagValue
.Set<String>
getStereotypes()
String
getTagValue(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.boolean
hasStereotype(String stereotypeName)
boolean
hasTagValue(String tagValue)
Returns whether this element has a tagValue corresponding to the given name, or not.void
removeStereotype(String stereotypeName)
void
removeTagValue(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 givenvalue
associated 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)
-
-