Class NFEBasicCatalog

  • All Implemented Interfaces:
    NFECatalog

    public class NFEBasicCatalog
    extends java.lang.Object
    implements NFECatalog
    The default implementation of NFECatalog
    • Constructor Detail

      • NFEBasicCatalog

        public NFEBasicCatalog()
    • Method Detail

      • getId

        public long getId()
        Description copied from interface: NFECatalog
        Gets the catalog ID
        Specified by:
        getId in interface NFECatalog
        Returns:
        the catalog ID
      • setId

        public void setId​(long id)
        Description copied from interface: NFECatalog
        Sets the catalog ID
        Specified by:
        setId in interface NFECatalog
        Parameters:
        id - the catalog ID
      • getName

        public java.lang.String getName()
        Description copied from interface: NFECatalog
        Gets the catalog's name
        Specified by:
        getName in interface NFECatalog
        Returns:
        the catalog's name
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: NFECatalog
        Sets the catalog's name
        Specified by:
        setName in interface NFECatalog
        Parameters:
        name - the catalog's name
      • getAttributeType

        public NFEAttributeType getAttributeType()
        Description copied from interface: NFECatalog
        Gets the catalog's type. This is the type of the values stored at the catalog
        Specified by:
        getAttributeType in interface NFECatalog
        Returns:
        an attribute type value
      • setAttributeType

        public void setAttributeType​(NFEAttributeType attributeType)
        Description copied from interface: NFECatalog
        Sets the catalog's type. This is the type of the values stored at the catalog
        Specified by:
        setAttributeType in interface NFECatalog
        Parameters:
        attributeType - an attribute type value
      • getCatalogValues

        public java.util.Collection<NFECatalogValue> getCatalogValues()
        Description copied from interface: NFECatalog
        Gets all the values defined in the catalog
        Specified by:
        getCatalogValues in interface NFECatalog
        Returns:
        a collection containing all values of the catalog
      • addCatalogValue

        public boolean addCatalogValue​(NFECatalogValue catalogValue)
        Description copied from interface: NFECatalog
        Adds a value to the catalog
        Specified by:
        addCatalogValue in interface NFECatalog
        Parameters:
        catalogValue - a catalog value holder. The value type must match the catalog type
        Returns:
      • removeCatalogValue

        public boolean removeCatalogValue​(NFECatalogValue catalogValue)
        Description copied from interface: NFECatalog
        Removes a value from the catalog
        Specified by:
        removeCatalogValue in interface NFECatalog
        Parameters:
        catalogValue - a catalog value holder
        Returns:
        true if the value was removed
      • getCatalogSimpleValues

        public java.lang.Object[] getCatalogSimpleValues()
        Description copied from interface: NFECatalog
        Gets the actual values (that is, not holders) defined in the catalog
        Specified by:
        getCatalogSimpleValues in interface NFECatalog
        Returns:
        an array of values as objects
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object