public class NFEBasicCatalog extends java.lang.Object implements NFECatalog
NFECatalog
Constructor and Description |
---|
NFEBasicCatalog() |
Modifier and Type | Method and Description |
---|---|
boolean |
addCatalogValue(NFECatalogValue catalogValue)
Adds a value to the catalog
|
NFECatalog |
createCopy()
Returns object copy.
|
NFEAttributeType |
getAttributeType()
Gets the catalog's type.
|
java.lang.Object[] |
getCatalogSimpleValues()
Gets the actual values (that is, not holders) defined in the catalog
|
java.util.Collection<NFECatalogValue> |
getCatalogValues()
Gets all the values defined in the catalog
|
long |
getId()
Gets the catalog ID
|
java.lang.String |
getName()
Gets the catalog's name
|
boolean |
removeCatalogValue(NFECatalogValue catalogValue)
Removes a value from the catalog
|
void |
setAttributeType(NFEAttributeType attributeType)
Sets the catalog's type.
|
void |
setId(long id)
Sets the catalog ID
|
void |
setName(java.lang.String name)
Sets the catalog's name
|
java.lang.String |
toString() |
public long getId()
NFECatalog
getId
in interface NFECatalog
public void setId(long id)
NFECatalog
setId
in interface NFECatalog
id
- the catalog IDpublic java.lang.String getName()
NFECatalog
getName
in interface NFECatalog
public void setName(java.lang.String name)
NFECatalog
setName
in interface NFECatalog
name
- the catalog's namepublic NFEAttributeType getAttributeType()
NFECatalog
getAttributeType
in interface NFECatalog
public void setAttributeType(NFEAttributeType attributeType)
NFECatalog
setAttributeType
in interface NFECatalog
attributeType
- an attribute type valuepublic java.util.Collection<NFECatalogValue> getCatalogValues()
NFECatalog
getCatalogValues
in interface NFECatalog
public boolean addCatalogValue(NFECatalogValue catalogValue)
NFECatalog
addCatalogValue
in interface NFECatalog
catalogValue
- a catalog value holder. The value type must match the catalog typepublic boolean removeCatalogValue(NFECatalogValue catalogValue)
NFECatalog
removeCatalogValue
in interface NFECatalog
catalogValue
- a catalog value holderpublic java.lang.Object[] getCatalogSimpleValues()
NFECatalog
getCatalogSimpleValues
in interface NFECatalog
public java.lang.String toString()
toString
in class java.lang.Object
public NFECatalog createCopy()
NFECatalog
createCopy
in interface NFECatalog