Class Scope

    • Constructor Detail

      • Scope

        public Scope()
    • Method Detail

      • isDefaultEntry

        public boolean isDefaultEntry()
        Get the flag that indicates whether this scope is included in the default scope list.
        Returns:
        true if this scope is included in the default scope list. Otherwise, false.
      • setDefaultEntry

        public Scope setDefaultEntry​(boolean defaultEntry)
        Set the flag that indicates whether this scope is included in the default scope list.
        Parameters:
        defaultEntry - true to include this scope in the default scope list. Otherwise, false.
        Returns:
        this object.
      • getDescription

        public String getDescription()
        Get the description.
        Returns:
        The description.
      • setDescription

        public Scope setDescription​(String description)
        Set the description.
        Parameters:
        description - The description.
        Returns:
        this object.
      • getDescriptions

        public TaggedValue[] getDescriptions()
        Get descriptions for various languages.
        Returns:
        Descriptions.
        Since:
        1.5
      • setDescriptions

        public Scope setDescriptions​(TaggedValue[] descriptions)
        Set descriptions for various languages.
        Parameters:
        descriptions - Descriptions.
        Returns:
        this object.
        Since:
        1.5
      • getAttributes

        public Pair[] getAttributes()
        Get attributes.
        Returns:
        Attributes.
        Since:
        2.12
      • setAttributes

        public Scope setAttributes​(Pair[] attributes)
        Set attributes.
        Parameters:
        attributes - Attributes.
        Returns:
        this object.
        Since:
        2.12
      • setAttributes

        public Scope setAttributes​(Iterable<Pair> attributes)
        Set attributes.
        Parameters:
        attributes - Attributes.
        Returns:
        this object.
        Since:
        2.12
      • extractNames

        public static String[] extractNames​(Scope[] scopes)
        Extract scope names.
        Parameters:
        scopes - Scopes.
        Returns:
        Scope names. If scopes is null, null is returned.