Interface NFECatalog
-
- All Known Implementing Classes:
NFEBasicCatalog
public interface NFECatalogA set of predefined values that can be assigned to a feature layer's attribute
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddCatalogValue(NFECatalogValue catalogValue)Adds a value to the catalogNFECatalogcreateCopy()Returns object copy.NFEAttributeTypegetAttributeType()Gets the catalog's type.java.lang.Object[]getCatalogSimpleValues()Gets the actual values (that is, not holders) defined in the catalogjava.util.Collection<NFECatalogValue>getCatalogValues()Gets all the values defined in the cataloglonggetId()Gets the catalog IDjava.lang.StringgetName()Gets the catalog's namebooleanremoveCatalogValue(NFECatalogValue catalogValue)Removes a value from the catalogvoidsetAttributeType(NFEAttributeType attributeType)Sets the catalog's type.voidsetId(long id)Sets the catalog IDvoidsetName(java.lang.String name)Sets the catalog's name
-
-
-
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
-
-