Class NFEBasicFeatureLayer
- java.lang.Object
-
- oracle.spatial.network.nfe.model.feature.NFEFeatureLayer
-
- oracle.spatial.network.nfe.model.feature.NFEBasicFeatureLayer
-
public class NFEBasicFeatureLayer extends NFEFeatureLayer
The default implementation ofNFEFeatureLayer
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.model.feature.NFEFeatureLayer
PROP_Z_ORDER
-
-
Constructor Summary
Constructors Constructor Description NFEBasicFeatureLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
Sets an attribute descriptor for the given attribute's nameboolean
addFeature(NFEFeature feature)
Adds a feature to the feature layer.boolean
addFeatureClass(NFEFeatureClass featureClass)
Adds a Feature Class instance to the Feature Layer.void
addFeatures(java.util.Collection<NFEFeature> features)
void
addModelListener(NFEModelListener listener)
boolean
containsFeature(NFEFeature feature)
Tells whether the feature layer contains the given featureNFEFeatureLayer
createCopy()
Returns object copy.NFEAttributeDescriptor
getAttributeDescriptor(java.lang.String attrName)
Gets the attribute descriptor for the given attribute's namejava.util.Collection<NFEAttributeDescriptor>
getAttributeDescriptors()
Gets all the attribute descriptors of the feature layerNFEEventDispatcher<NFEModelListener>
getEventDispatcher()
Returns the event dispatcher.NFEFeature
getFeature(long featureId)
Gets a feature identified by the given ID contained in the feature layerNFEFeatureClass
getFeatureClass(long featureClassId)
Gets a feature class which belongs on this feature layer.java.util.Collection<NFEFeatureClass>
getFeatureClasses()
Gets the feature classes defined for this feature layerjava.util.Collection<NFEFeatureClass>
getFeatureClasses(NFEFeatureShape shape)
Gets all the feature classes matching the given shape from the feature layerjava.util.Collection<NFEFeature>
getFeatures()
Gets all the features in the feature layer.java.util.Collection<NFEFeature>
getFeatures(long featureClassId)
Gets all the features with the given Feature Class in the Feature Layer.int
getHierarchyLevel()
Gets the hierarchy level of the feature layerlong
getId()
Gets the id of the feature layerNFEFeatureLayerMetadata
getMetadata()
Gets the feature layer's metadatajava.lang.String
getName()
Gets the name of the feature layerNFENetwork
getNetwork()
Gets the feature layer's networkFeatureLayerMetadata.FeatureLayerType
getType()
Gets the feature layer typeint
getZOrder()
Gets the Z order of the feature layerprotected void
notifyModelObjectAdded(java.lang.Object modelObject)
protected void
notifyModelObjectRemoved(java.lang.Object modelObject)
protected <T> void
notifyModelObjectsAdded(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)
protected <T> void
notifyModelObjectsRemoved(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)
protected void
notifyPropertyChanged(java.lang.Object modelObject, java.lang.String propertyName, java.lang.Object previousValue)
NFEAttributeDescriptor
removeAttributeDescriptor(java.lang.String attrName)
Removes the attribute descriptor with the given attribute's nameNFEFeature
removeFeature(long featureId)
Removes a feature identified by the given ID from the feature layerNFEFeatureClass
removeFeatureClass(long featureClassId)
Removes a feature class identified by the given ID from the feature layervoid
removeModelListener(NFEModelListener listener)
void
setEventDispatcher(NFEEventDispatcher<NFEModelListener> eventDispatcher)
Sets the event dispatcher.void
setHierarchyLevel(int hierarchyLevel)
Sets the Hierarchy Level of the feature layervoid
setId(long id)
Sets the ID of the feature layervoid
setMetadata(NFEFeatureLayerMetadata metadata)
Sets the feature layer's metadatavoid
setName(java.lang.String name)
Sets the name of the feature layervoid
setNetwork(NFENetwork network)
Sets the feature layer's networkvoid
setType(FeatureLayerMetadata.FeatureLayerType type)
Sets the feature layer typevoid
setZOrder(int zOrder)
Sets the Z order for the feature layer.
-
-
-
Method Detail
-
setId
public void setId(long id)
Description copied from class:NFEFeatureLayer
Sets the ID of the feature layer- Specified by:
setId
in classNFEFeatureLayer
- Parameters:
id
- the feature layer's ID
-
getId
public long getId()
Description copied from class:NFEFeatureLayer
Gets the id of the feature layer- Specified by:
getId
in classNFEFeatureLayer
- Returns:
- the feature layer's ID
-
setName
public void setName(java.lang.String name)
Description copied from class:NFEFeatureLayer
Sets the name of the feature layer- Specified by:
setName
in classNFEFeatureLayer
- Parameters:
name
- the feature layer's name
-
getName
public java.lang.String getName()
Description copied from class:NFEFeatureLayer
Gets the name of the feature layer- Specified by:
getName
in classNFEFeatureLayer
- Returns:
- the feature layer's name
-
setNetwork
public void setNetwork(NFENetwork network)
Description copied from class:NFEFeatureLayer
Sets the feature layer's network- Specified by:
setNetwork
in classNFEFeatureLayer
- Parameters:
network
- a network instance
-
getNetwork
public NFENetwork getNetwork()
Description copied from class:NFEFeatureLayer
Gets the feature layer's network- Specified by:
getNetwork
in classNFEFeatureLayer
- Returns:
- a network instance
-
setMetadata
public void setMetadata(NFEFeatureLayerMetadata metadata)
Description copied from class:NFEFeatureLayer
Sets the feature layer's metadata- Specified by:
setMetadata
in classNFEFeatureLayer
- Parameters:
metadata
- the feature layer's metadata
-
getMetadata
public NFEFeatureLayerMetadata getMetadata()
Description copied from class:NFEFeatureLayer
Gets the feature layer's metadata- Specified by:
getMetadata
in classNFEFeatureLayer
- Returns:
- the feature layer's metadata
-
setType
public void setType(FeatureLayerMetadata.FeatureLayerType type)
Description copied from class:NFEFeatureLayer
Sets the feature layer type- Specified by:
setType
in classNFEFeatureLayer
- Parameters:
type
- feature layer type
-
getType
public FeatureLayerMetadata.FeatureLayerType getType()
Description copied from class:NFEFeatureLayer
Gets the feature layer type- Specified by:
getType
in classNFEFeatureLayer
- Returns:
- the feature layer type
-
setZOrder
public void setZOrder(int zOrder)
Description copied from class:NFEFeatureLayer
Sets the Z order for the feature layer. The Z order can be used by a renderer to determine the sequence the Feature Layers should be rendered.- Specified by:
setZOrder
in classNFEFeatureLayer
- Parameters:
zOrder
- Z order value
-
getZOrder
public int getZOrder()
Description copied from class:NFEFeatureLayer
Gets the Z order of the feature layer- Specified by:
getZOrder
in classNFEFeatureLayer
- Returns:
- Z order value
-
setEventDispatcher
public void setEventDispatcher(NFEEventDispatcher<NFEModelListener> eventDispatcher)
Description copied from class:NFEFeatureLayer
Sets the event dispatcher.- Specified by:
setEventDispatcher
in classNFEFeatureLayer
- Parameters:
eventDispatcher
- event dispatcher
-
getEventDispatcher
public NFEEventDispatcher<NFEModelListener> getEventDispatcher()
Description copied from class:NFEFeatureLayer
Returns the event dispatcher.- Specified by:
getEventDispatcher
in classNFEFeatureLayer
- Returns:
- event dispatcher
-
setHierarchyLevel
public void setHierarchyLevel(int hierarchyLevel)
Description copied from class:NFEFeatureLayer
Sets the Hierarchy Level of the feature layer- Specified by:
setHierarchyLevel
in classNFEFeatureLayer
- Parameters:
hierarchyLevel
- the feature layer's hierarchy level
-
getHierarchyLevel
public int getHierarchyLevel()
Description copied from class:NFEFeatureLayer
Gets the hierarchy level of the feature layer- Specified by:
getHierarchyLevel
in classNFEFeatureLayer
- Returns:
- the feature layer's hierarchy level
-
getAttributeDescriptors
public java.util.Collection<NFEAttributeDescriptor> getAttributeDescriptors()
Description copied from class:NFEFeatureLayer
Gets all the attribute descriptors of the feature layer- Specified by:
getAttributeDescriptors
in classNFEFeatureLayer
- Returns:
- a collection containing all the feature layer's attribute descriptors
-
getAttributeDescriptor
public NFEAttributeDescriptor getAttributeDescriptor(java.lang.String attrName)
Description copied from class:NFEFeatureLayer
Gets the attribute descriptor for the given attribute's name- Specified by:
getAttributeDescriptor
in classNFEFeatureLayer
- Parameters:
attrName
- a name of a feature layer's attribute- Returns:
- an attribute descriptor instance
-
addAttributeDescriptor
public void addAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)
Description copied from class:NFEFeatureLayer
Sets an attribute descriptor for the given attribute's name- Specified by:
addAttributeDescriptor
in classNFEFeatureLayer
- Parameters:
attrDescriptor
- an attribute descriptor instance
-
removeAttributeDescriptor
public NFEAttributeDescriptor removeAttributeDescriptor(java.lang.String attrName)
Description copied from class:NFEFeatureLayer
Removes the attribute descriptor with the given attribute's name- Specified by:
removeAttributeDescriptor
in classNFEFeatureLayer
- Parameters:
attrName
- a name of a feature layer's attribute- Returns:
- an instance of an attribute descriptor or null if the feature layer does not contain such attribute
-
getFeatures
public java.util.Collection<NFEFeature> getFeatures()
Description copied from class:NFEFeatureLayer
Gets all the features in the feature layer.- Specified by:
getFeatures
in classNFEFeatureLayer
- Returns:
- a collection containing features
-
getFeatures
public java.util.Collection<NFEFeature> getFeatures(long featureClassId)
Description copied from class:NFEFeatureLayer
Gets all the features with the given Feature Class in the Feature Layer.- Specified by:
getFeatures
in classNFEFeatureLayer
- Returns:
-
addFeature
public boolean addFeature(NFEFeature feature)
Description copied from class:NFEFeatureLayer
Adds a feature to the feature layer.- Specified by:
addFeature
in classNFEFeatureLayer
- Parameters:
feature
- a feature instance
-
addFeatures
public void addFeatures(java.util.Collection<NFEFeature> features)
-
containsFeature
public boolean containsFeature(NFEFeature feature)
Description copied from class:NFEFeatureLayer
Tells whether the feature layer contains the given feature- Specified by:
containsFeature
in classNFEFeatureLayer
- Parameters:
feature
- a feature instance- Returns:
- true if the feature layer contains the feature
-
getFeature
public NFEFeature getFeature(long featureId)
Description copied from class:NFEFeatureLayer
Gets a feature identified by the given ID contained in the feature layer- Specified by:
getFeature
in classNFEFeatureLayer
- Parameters:
featureId
- a feature ID- Returns:
- a feature instance or null if the feature was not found
-
removeFeature
public NFEFeature removeFeature(long featureId)
Description copied from class:NFEFeatureLayer
Removes a feature identified by the given ID from the feature layer- Specified by:
removeFeature
in classNFEFeatureLayer
- Parameters:
featureId
- a feature ID- Returns:
- the removed feature instance or null if the feature could not be removed or was not found
-
getFeatureClasses
public java.util.Collection<NFEFeatureClass> getFeatureClasses()
Description copied from class:NFEFeatureLayer
Gets the feature classes defined for this feature layer- Specified by:
getFeatureClasses
in classNFEFeatureLayer
- Returns:
- a collection of feature classes
-
getFeatureClass
public NFEFeatureClass getFeatureClass(long featureClassId)
Description copied from class:NFEFeatureLayer
Gets a feature class which belongs on this feature layer.- Specified by:
getFeatureClass
in classNFEFeatureLayer
- Parameters:
featureClassId
- a feature class ID- Returns:
- a feature class instance or null if the feature class was not found
-
addFeatureClass
public boolean addFeatureClass(NFEFeatureClass featureClass)
Description copied from class:NFEFeatureLayer
Adds a Feature Class instance to the Feature Layer. A Feature Class must only be related to one Feature Layer- Specified by:
addFeatureClass
in classNFEFeatureLayer
- Parameters:
featureClass
- a feature class instance
-
removeFeatureClass
public NFEFeatureClass removeFeatureClass(long featureClassId)
Description copied from class:NFEFeatureLayer
Removes a feature class identified by the given ID from the feature layer- Specified by:
removeFeatureClass
in classNFEFeatureLayer
- Returns:
- the removed feature class or null if it could be removed or was not found
-
getFeatureClasses
public java.util.Collection<NFEFeatureClass> getFeatureClasses(NFEFeatureShape shape)
Description copied from class:NFEFeatureLayer
Gets all the feature classes matching the given shape from the feature layer- Specified by:
getFeatureClasses
in classNFEFeatureLayer
- Parameters:
shape
- a feature shape type- Returns:
- a collection of feature class instances
-
notifyPropertyChanged
protected void notifyPropertyChanged(java.lang.Object modelObject, java.lang.String propertyName, java.lang.Object previousValue)
- Specified by:
notifyPropertyChanged
in classNFEFeatureLayer
-
notifyModelObjectAdded
protected void notifyModelObjectAdded(java.lang.Object modelObject)
- Specified by:
notifyModelObjectAdded
in classNFEFeatureLayer
-
notifyModelObjectsAdded
protected <T> void notifyModelObjectsAdded(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)
- Specified by:
notifyModelObjectsAdded
in classNFEFeatureLayer
-
notifyModelObjectRemoved
protected void notifyModelObjectRemoved(java.lang.Object modelObject)
- Specified by:
notifyModelObjectRemoved
in classNFEFeatureLayer
-
notifyModelObjectsRemoved
protected <T> void notifyModelObjectsRemoved(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)
- Specified by:
notifyModelObjectsRemoved
in classNFEFeatureLayer
-
addModelListener
public void addModelListener(NFEModelListener listener)
- Specified by:
addModelListener
in classNFEFeatureLayer
-
removeModelListener
public void removeModelListener(NFEModelListener listener)
- Specified by:
removeModelListener
in classNFEFeatureLayer
-
createCopy
public NFEFeatureLayer createCopy()
Description copied from class:NFEFeatureLayer
Returns object copy.- Specified by:
createCopy
in classNFEFeatureLayer
- Returns:
- object copy
-
-