Interface Role
-
- All Known Implementing Classes:
RoleImpl
public interface Role
Interface describing a representation of the <role> element of a Process Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addLabel(ContextualDesignation label)
Add a labelString
getDescription(String role, String language)
Get description in specific language for the given roleContextualDesignations
getDescriptions()
Get all the descriptionsString
getLabel(String role, String language)
Get label in specific language for the given roleContextualDesignations
getLabels()
Get all the labelsString
getName()
Get the name of the Rolevoid
setName(String name)
Set the name of the Role
-
-
-
Method Detail
-
getName
String getName()
Get the name of the Role- Returns:
- role's name
-
setName
void setName(String name)
Set the name of the Role- Parameters:
name
- role's name
-
getLabel
String getLabel(String role, String language)
Get label in specific language for the given role- Parameters:
language
- label's languagerole
- role for which the label is- Returns:
- wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
-
getLabels
ContextualDesignations getLabels()
Get all the labels- Returns:
- an object containing the collection of the labels
-
addLabel
void addLabel(ContextualDesignation label)
Add a label
-
getDescription
String getDescription(String role, String language)
Get description in specific language for the given role- Parameters:
language
- description's languagerole
- role for which the description is- Returns:
- wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
-
getDescriptions
ContextualDesignations getDescriptions()
Get all the descriptions- Returns:
- an object containing the collection of the descriptions
-
-