Interface NFECatalog

  • All Known Implementing Classes:
    NFEBasicCatalog

    public interface NFECatalog
    A set of predefined values that can be assigned to a feature layer's attribute
    • Method Detail

      • getId

        long getId()
        Gets the catalog ID
        Returns:
        the catalog ID
      • setId

        void setId​(long id)
        Sets the catalog ID
        Parameters:
        id - the catalog ID
      • getName

        java.lang.String getName()
        Gets the catalog's name
        Returns:
        the catalog's name
      • setName

        void setName​(java.lang.String name)
        Sets the catalog's name
        Parameters:
        name - the catalog's name
      • getAttributeType

        NFEAttributeType getAttributeType()
        Gets the catalog's type. This is the type of the values stored at the catalog
        Returns:
        an attribute type value
      • setAttributeType

        void setAttributeType​(NFEAttributeType attributeType)
        Sets the catalog's type. This is the type of the values stored at the catalog
        Parameters:
        attributeType - an attribute type value
      • getCatalogValues

        java.util.Collection<NFECatalogValue> getCatalogValues()
        Gets all the values defined in the catalog
        Returns:
        a collection containing all values of the catalog
      • addCatalogValue

        boolean addCatalogValue​(NFECatalogValue catalogValue)
        Adds a value to the catalog
        Parameters:
        catalogValue - a catalog value holder. The value type must match the catalog type
        Returns:
      • removeCatalogValue

        boolean removeCatalogValue​(NFECatalogValue catalogValue)
        Removes a value from the catalog
        Parameters:
        catalogValue - a catalog value holder
        Returns:
        true if the value was removed
      • getCatalogSimpleValues

        java.lang.Object[] getCatalogSimpleValues()
        Gets the actual values (that is, not holders) defined in the catalog
        Returns:
        an array of values as objects
      • createCopy

        NFECatalog createCopy()
        Returns object copy.
        Returns:
        object copy