Interface Role

  • All Known Implementing Classes:
    RoleImpl

    public interface Role
    Interface describing a representation of the <role> element of a Process Model.
    • 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 language
        role - 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
      • getDescription

        String getDescription​(String role,
                              String language)
        Get description in specific language for the given role
        Parameters:
        language - description's language
        role - 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