public class NFEBasicFeature extends NFEFeature
NFEFeature
PROP_PARENT_FEATURE_ID, PROP_PARENT_FEATURE_LAYER_ID
EFLAG_EXISTING, EFLAG_REMOVED
Constructor and Description |
---|
NFEBasicFeature() |
Modifier and Type | Method and Description |
---|---|
boolean |
addFeatureElement(NFEFeatureElement featureElement)
Adds a feature element to the feature
|
void |
addFeatureElements(java.util.List<NFEFeatureElement> featureElements)
Adds all the feature elements in the collection to the feature
|
NFEFeature |
createCopy()
Returns object copy.
|
java.lang.Object |
getAttribute(java.lang.String attributeName)
Gets the value of the attribute with the given name
|
NFEFeatureClass |
getFeatureClass()
Gets the feature class of the feature
|
java.util.List<NFEFeatureElement> |
getFeatureElements()
Gets all the feature elements in the feature
|
NFEFeatureLayer |
getFeatureLayer()
Gets the feature's feature layer
|
long |
getId()
Gets the feature's ID
|
java.lang.String |
getKey()
Returns the feature's key.
|
long |
getParentFeatureId()
Gets the feature's parent feature ID (if any)
|
long |
getParentFeatureLayerId()
Gets the feature layer ID of the feature's parent feature
|
boolean |
removeFeatureElement(NFEFeatureElement featureElement)
Removes the given feature element from the feature
|
void |
removeFeatureElements(java.util.Collection<NFEFeatureElement> featureElements)
Removes from the feature all the feature elements in the collection
|
void |
setAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
Sets the value of the attribute with the given name
|
void |
setFeatureClass(NFEFeatureClass featureClass)
Sets the feature class of the feature
|
void |
setFeatureLayer(NFEFeatureLayer featureLayer)
Sets the feature's feature layer
|
void |
setId(long id)
Sets the feature's ID
|
void |
setParentFeatureId(long parentFeatId)
Sets the feature's parent feature ID
|
void |
setParentFeatureLayerId(long parentFeatLayerId)
Sets the feature layer ID of the feature's parent feature.
|
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
public void setFeatureLayer(NFEFeatureLayer featureLayer)
NFEFeature
setFeatureLayer
in class NFEFeature
featureLayer
- a feature layer instancepublic NFEFeatureLayer getFeatureLayer()
NFEFeature
getFeatureLayer
in class NFEFeature
public void setId(long id)
NFEFeature
setId
in class NFEFeature
id
- a feature IDpublic long getId()
NFEFeature
getId
in class NFEFeature
public void setParentFeatureId(long parentFeatId)
NFEFeature
setParentFeatureId
in class NFEFeature
parentFeatId
- a feature IDpublic long getParentFeatureId()
NFEFeature
getParentFeatureId
in class NFEFeature
public void setParentFeatureLayerId(long parentFeatLayerId)
NFEFeature
setParentFeatureLayerId
in class NFEFeature
parentFeatLayerId
- a feature layer IDpublic long getParentFeatureLayerId()
NFEFeature
getParentFeatureLayerId
in class NFEFeature
public void setFeatureClass(NFEFeatureClass featureClass)
NFEFeature
setFeatureClass
in class NFEFeature
featureClass
- a feature class instancepublic NFEFeatureClass getFeatureClass()
NFEFeature
getFeatureClass
in class NFEFeature
public java.lang.String getKey()
NFEFeature
getKey
in class NFEFeature
public void setAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
NFEFeature
setAttribute
in class NFEFeature
attributeName
- an attribute nameattributeValue
- the value of the attributepublic java.lang.Object getAttribute(java.lang.String attributeName)
NFEFeature
getAttribute
in class NFEFeature
attributeName
- an attribute namepublic boolean addFeatureElement(NFEFeatureElement featureElement)
NFEFeature
addFeatureElement
in class NFEFeature
featureElement
- a feature element instancepublic void addFeatureElements(java.util.List<NFEFeatureElement> featureElements)
NFEFeature
addFeatureElements
in class NFEFeature
featureElements
- a collection of feature element instancespublic java.util.List<NFEFeatureElement> getFeatureElements()
NFEFeature
getFeatureElements
in class NFEFeature
public boolean removeFeatureElement(NFEFeatureElement featureElement)
NFEFeature
removeFeatureElement
in class NFEFeature
featureElement
- a feature element instancepublic void removeFeatureElements(java.util.Collection<NFEFeatureElement> featureElements)
NFEFeature
removeFeatureElements
in class NFEFeature
featureElements
- a collection of feature element instancespublic NFEFeature createCopy()
NFEFeature
createCopy
in class NFEFeature