Class NFEBasicFeature
- java.lang.Object
-
- oracle.spatial.network.nfe.model.NFEBasicModelObject
-
- oracle.spatial.network.nfe.model.feature.NFEFeature
-
- oracle.spatial.network.nfe.model.feature.NFEBasicFeature
-
- All Implemented Interfaces:
NFEModelObject
public class NFEBasicFeature extends NFEFeature
The default implementation ofNFEFeature
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.model.feature.NFEFeature
PROP_PARENT_FEATURE_ID, PROP_PARENT_FEATURE_LAYER_ID
-
Fields inherited from interface oracle.spatial.network.nfe.model.NFEModelObject
EFLAG_EXISTING, EFLAG_REMOVED
-
-
Constructor Summary
Constructors Constructor Description NFEBasicFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addFeatureElement(NFEFeatureElement featureElement)
Adds a feature element to the featurevoid
addFeatureElements(java.util.List<NFEFeatureElement> featureElements)
Adds all the feature elements in the collection to the featureNFEFeature
createCopy()
Returns object copy.java.lang.Object
getAttribute(java.lang.String attributeName)
Gets the value of the attribute with the given nameNFEFeatureClass
getFeatureClass()
Gets the feature class of the featurejava.util.List<NFEFeatureElement>
getFeatureElements()
Gets all the feature elements in the featureNFEFeatureLayer
getFeatureLayer()
Gets the feature's feature layerlong
getId()
Gets the feature's IDjava.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 featureboolean
removeFeatureElement(NFEFeatureElement featureElement)
Removes the given feature element from the featurevoid
removeFeatureElements(java.util.Collection<NFEFeatureElement> featureElements)
Removes from the feature all the feature elements in the collectionvoid
setAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
Sets the value of the attribute with the given namevoid
setFeatureClass(NFEFeatureClass featureClass)
Sets the feature class of the featurevoid
setFeatureLayer(NFEFeatureLayer featureLayer)
Sets the feature's feature layervoid
setId(long id)
Sets the feature's IDvoid
setParentFeatureId(long parentFeatId)
Sets the feature's parent feature IDvoid
setParentFeatureLayerId(long parentFeatLayerId)
Sets the feature layer ID of the feature's parent feature.-
Methods inherited from class oracle.spatial.network.nfe.model.feature.NFEFeature
notifyModelObjectAdded, notifyModelObjectRemoved, notifyModelObjectsAdded, notifyModelObjectsRemoved, notifyPropertyChanged
-
Methods inherited from class oracle.spatial.network.nfe.model.NFEBasicModelObject
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
-
-
-
-
Method Detail
-
setFeatureLayer
public void setFeatureLayer(NFEFeatureLayer featureLayer)
Description copied from class:NFEFeature
Sets the feature's feature layer- Specified by:
setFeatureLayer
in classNFEFeature
- Parameters:
featureLayer
- a feature layer instance
-
getFeatureLayer
public NFEFeatureLayer getFeatureLayer()
Description copied from class:NFEFeature
Gets the feature's feature layer- Specified by:
getFeatureLayer
in classNFEFeature
- Returns:
- a feature layer instance
-
setId
public void setId(long id)
Description copied from class:NFEFeature
Sets the feature's ID- Specified by:
setId
in classNFEFeature
- Parameters:
id
- a feature ID
-
getId
public long getId()
Description copied from class:NFEFeature
Gets the feature's ID- Specified by:
getId
in classNFEFeature
- Returns:
- a feature ID
-
setParentFeatureId
public void setParentFeatureId(long parentFeatId)
Description copied from class:NFEFeature
Sets the feature's parent feature ID- Specified by:
setParentFeatureId
in classNFEFeature
- Parameters:
parentFeatId
- a feature ID
-
getParentFeatureId
public long getParentFeatureId()
Description copied from class:NFEFeature
Gets the feature's parent feature ID (if any)- Specified by:
getParentFeatureId
in classNFEFeature
- Returns:
- a feature ID or -1 if the feature does not have a parent feature
-
setParentFeatureLayerId
public void setParentFeatureLayerId(long parentFeatLayerId)
Description copied from class:NFEFeature
Sets the feature layer ID of the feature's parent feature. The parent can be from a higher hierarchy feature layer or from a feature layer in another model.- Specified by:
setParentFeatureLayerId
in classNFEFeature
- Parameters:
parentFeatLayerId
- a feature layer ID
-
getParentFeatureLayerId
public long getParentFeatureLayerId()
Description copied from class:NFEFeature
Gets the feature layer ID of the feature's parent feature- Specified by:
getParentFeatureLayerId
in classNFEFeature
- Returns:
- a feature layer ID
-
setFeatureClass
public void setFeatureClass(NFEFeatureClass featureClass)
Description copied from class:NFEFeature
Sets the feature class of the feature- Specified by:
setFeatureClass
in classNFEFeature
- Parameters:
featureClass
- a feature class instance
-
getFeatureClass
public NFEFeatureClass getFeatureClass()
Description copied from class:NFEFeature
Gets the feature class of the feature- Specified by:
getFeatureClass
in classNFEFeature
- Returns:
- a feature class instance
-
getKey
public java.lang.String getKey()
Description copied from class:NFEFeature
Returns the feature's key. The key is a unique identifier among features of any Feature Layer. It has the following format: FeatureLayerId_FeautureId- Specified by:
getKey
in classNFEFeature
- Returns:
- Returns the Feature's key
-
setAttribute
public void setAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
Description copied from class:NFEFeature
Sets the value of the attribute with the given name- Specified by:
setAttribute
in classNFEFeature
- Parameters:
attributeName
- an attribute nameattributeValue
- the value of the attribute
-
getAttribute
public java.lang.Object getAttribute(java.lang.String attributeName)
Description copied from class:NFEFeature
Gets the value of the attribute with the given name- Specified by:
getAttribute
in classNFEFeature
- Parameters:
attributeName
- an attribute name- Returns:
- the value of the attribute or null if the attribute does not exist or has not been set
-
addFeatureElement
public boolean addFeatureElement(NFEFeatureElement featureElement)
Description copied from class:NFEFeature
Adds a feature element to the feature- Specified by:
addFeatureElement
in classNFEFeature
- Parameters:
featureElement
- a feature element instance- Returns:
- true if the feature could be added to the feature
-
addFeatureElements
public void addFeatureElements(java.util.List<NFEFeatureElement> featureElements)
Description copied from class:NFEFeature
Adds all the feature elements in the collection to the feature- Specified by:
addFeatureElements
in classNFEFeature
- Parameters:
featureElements
- a collection of feature element instances
-
getFeatureElements
public java.util.List<NFEFeatureElement> getFeatureElements()
Description copied from class:NFEFeature
Gets all the feature elements in the feature- Specified by:
getFeatureElements
in classNFEFeature
- Returns:
- a list of feature element instances.
-
removeFeatureElement
public boolean removeFeatureElement(NFEFeatureElement featureElement)
Description copied from class:NFEFeature
Removes the given feature element from the feature- Specified by:
removeFeatureElement
in classNFEFeature
- Parameters:
featureElement
- a feature element instance- Returns:
- true if the feature element was removed
-
removeFeatureElements
public void removeFeatureElements(java.util.Collection<NFEFeatureElement> featureElements)
Description copied from class:NFEFeature
Removes from the feature all the feature elements in the collection- Specified by:
removeFeatureElements
in classNFEFeature
- Parameters:
featureElements
- a collection of feature element instances
-
createCopy
public NFEFeature createCopy()
Description copied from class:NFEFeature
Returns object copy.- Specified by:
createCopy
in classNFEFeature
- Returns:
- object copy
-
-