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 voidaddAttributeDescriptor(NFEAttributeDescriptor attrDescriptor)Sets an attribute descriptor for the given attribute's namebooleanaddFeature(NFEFeature feature)Adds a feature to the feature layer.booleanaddFeatureClass(NFEFeatureClass featureClass)Adds a Feature Class instance to the Feature Layer.voidaddFeatures(java.util.Collection<NFEFeature> features)voidaddModelListener(NFEModelListener listener)booleancontainsFeature(NFEFeature feature)Tells whether the feature layer contains the given featureNFEFeatureLayercreateCopy()Returns object copy.NFEAttributeDescriptorgetAttributeDescriptor(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.NFEFeaturegetFeature(long featureId)Gets a feature identified by the given ID contained in the feature layerNFEFeatureClassgetFeatureClass(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.intgetHierarchyLevel()Gets the hierarchy level of the feature layerlonggetId()Gets the id of the feature layerNFEFeatureLayerMetadatagetMetadata()Gets the feature layer's metadatajava.lang.StringgetName()Gets the name of the feature layerNFENetworkgetNetwork()Gets the feature layer's networkFeatureLayerMetadata.FeatureLayerTypegetType()Gets the feature layer typeintgetZOrder()Gets the Z order of the feature layerprotected voidnotifyModelObjectAdded(java.lang.Object modelObject)protected voidnotifyModelObjectRemoved(java.lang.Object modelObject)protected <T> voidnotifyModelObjectsAdded(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)protected <T> voidnotifyModelObjectsRemoved(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)protected voidnotifyPropertyChanged(java.lang.Object modelObject, java.lang.String propertyName, java.lang.Object previousValue)NFEAttributeDescriptorremoveAttributeDescriptor(java.lang.String attrName)Removes the attribute descriptor with the given attribute's nameNFEFeatureremoveFeature(long featureId)Removes a feature identified by the given ID from the feature layerNFEFeatureClassremoveFeatureClass(long featureClassId)Removes a feature class identified by the given ID from the feature layervoidremoveModelListener(NFEModelListener listener)voidsetEventDispatcher(NFEEventDispatcher<NFEModelListener> eventDispatcher)Sets the event dispatcher.voidsetHierarchyLevel(int hierarchyLevel)Sets the Hierarchy Level of the feature layervoidsetId(long id)Sets the ID of the feature layervoidsetMetadata(NFEFeatureLayerMetadata metadata)Sets the feature layer's metadatavoidsetName(java.lang.String name)Sets the name of the feature layervoidsetNetwork(NFENetwork network)Sets the feature layer's networkvoidsetType(FeatureLayerMetadata.FeatureLayerType type)Sets the feature layer typevoidsetZOrder(int zOrder)Sets the Z order for the feature layer.
-
-
-
Method Detail
-
setId
public void setId(long id)
Description copied from class:NFEFeatureLayerSets the ID of the feature layer- Specified by:
setIdin classNFEFeatureLayer- Parameters:
id- the feature layer's ID
-
getId
public long getId()
Description copied from class:NFEFeatureLayerGets the id of the feature layer- Specified by:
getIdin classNFEFeatureLayer- Returns:
- the feature layer's ID
-
setName
public void setName(java.lang.String name)
Description copied from class:NFEFeatureLayerSets the name of the feature layer- Specified by:
setNamein classNFEFeatureLayer- Parameters:
name- the feature layer's name
-
getName
public java.lang.String getName()
Description copied from class:NFEFeatureLayerGets the name of the feature layer- Specified by:
getNamein classNFEFeatureLayer- Returns:
- the feature layer's name
-
setNetwork
public void setNetwork(NFENetwork network)
Description copied from class:NFEFeatureLayerSets the feature layer's network- Specified by:
setNetworkin classNFEFeatureLayer- Parameters:
network- a network instance
-
getNetwork
public NFENetwork getNetwork()
Description copied from class:NFEFeatureLayerGets the feature layer's network- Specified by:
getNetworkin classNFEFeatureLayer- Returns:
- a network instance
-
setMetadata
public void setMetadata(NFEFeatureLayerMetadata metadata)
Description copied from class:NFEFeatureLayerSets the feature layer's metadata- Specified by:
setMetadatain classNFEFeatureLayer- Parameters:
metadata- the feature layer's metadata
-
getMetadata
public NFEFeatureLayerMetadata getMetadata()
Description copied from class:NFEFeatureLayerGets the feature layer's metadata- Specified by:
getMetadatain classNFEFeatureLayer- Returns:
- the feature layer's metadata
-
setType
public void setType(FeatureLayerMetadata.FeatureLayerType type)
Description copied from class:NFEFeatureLayerSets the feature layer type- Specified by:
setTypein classNFEFeatureLayer- Parameters:
type- feature layer type
-
getType
public FeatureLayerMetadata.FeatureLayerType getType()
Description copied from class:NFEFeatureLayerGets the feature layer type- Specified by:
getTypein classNFEFeatureLayer- Returns:
- the feature layer type
-
setZOrder
public void setZOrder(int zOrder)
Description copied from class:NFEFeatureLayerSets 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:
setZOrderin classNFEFeatureLayer- Parameters:
zOrder- Z order value
-
getZOrder
public int getZOrder()
Description copied from class:NFEFeatureLayerGets the Z order of the feature layer- Specified by:
getZOrderin classNFEFeatureLayer- Returns:
- Z order value
-
setEventDispatcher
public void setEventDispatcher(NFEEventDispatcher<NFEModelListener> eventDispatcher)
Description copied from class:NFEFeatureLayerSets the event dispatcher.- Specified by:
setEventDispatcherin classNFEFeatureLayer- Parameters:
eventDispatcher- event dispatcher
-
getEventDispatcher
public NFEEventDispatcher<NFEModelListener> getEventDispatcher()
Description copied from class:NFEFeatureLayerReturns the event dispatcher.- Specified by:
getEventDispatcherin classNFEFeatureLayer- Returns:
- event dispatcher
-
setHierarchyLevel
public void setHierarchyLevel(int hierarchyLevel)
Description copied from class:NFEFeatureLayerSets the Hierarchy Level of the feature layer- Specified by:
setHierarchyLevelin classNFEFeatureLayer- Parameters:
hierarchyLevel- the feature layer's hierarchy level
-
getHierarchyLevel
public int getHierarchyLevel()
Description copied from class:NFEFeatureLayerGets the hierarchy level of the feature layer- Specified by:
getHierarchyLevelin classNFEFeatureLayer- Returns:
- the feature layer's hierarchy level
-
getAttributeDescriptors
public java.util.Collection<NFEAttributeDescriptor> getAttributeDescriptors()
Description copied from class:NFEFeatureLayerGets all the attribute descriptors of the feature layer- Specified by:
getAttributeDescriptorsin classNFEFeatureLayer- Returns:
- a collection containing all the feature layer's attribute descriptors
-
getAttributeDescriptor
public NFEAttributeDescriptor getAttributeDescriptor(java.lang.String attrName)
Description copied from class:NFEFeatureLayerGets the attribute descriptor for the given attribute's name- Specified by:
getAttributeDescriptorin 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:NFEFeatureLayerSets an attribute descriptor for the given attribute's name- Specified by:
addAttributeDescriptorin classNFEFeatureLayer- Parameters:
attrDescriptor- an attribute descriptor instance
-
removeAttributeDescriptor
public NFEAttributeDescriptor removeAttributeDescriptor(java.lang.String attrName)
Description copied from class:NFEFeatureLayerRemoves the attribute descriptor with the given attribute's name- Specified by:
removeAttributeDescriptorin 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:NFEFeatureLayerGets all the features in the feature layer.- Specified by:
getFeaturesin classNFEFeatureLayer- Returns:
- a collection containing features
-
getFeatures
public java.util.Collection<NFEFeature> getFeatures(long featureClassId)
Description copied from class:NFEFeatureLayerGets all the features with the given Feature Class in the Feature Layer.- Specified by:
getFeaturesin classNFEFeatureLayer- Returns:
-
addFeature
public boolean addFeature(NFEFeature feature)
Description copied from class:NFEFeatureLayerAdds a feature to the feature layer.- Specified by:
addFeaturein 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:NFEFeatureLayerTells whether the feature layer contains the given feature- Specified by:
containsFeaturein 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:NFEFeatureLayerGets a feature identified by the given ID contained in the feature layer- Specified by:
getFeaturein 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:NFEFeatureLayerRemoves a feature identified by the given ID from the feature layer- Specified by:
removeFeaturein 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:NFEFeatureLayerGets the feature classes defined for this feature layer- Specified by:
getFeatureClassesin classNFEFeatureLayer- Returns:
- a collection of feature classes
-
getFeatureClass
public NFEFeatureClass getFeatureClass(long featureClassId)
Description copied from class:NFEFeatureLayerGets a feature class which belongs on this feature layer.- Specified by:
getFeatureClassin 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:NFEFeatureLayerAdds a Feature Class instance to the Feature Layer. A Feature Class must only be related to one Feature Layer- Specified by:
addFeatureClassin classNFEFeatureLayer- Parameters:
featureClass- a feature class instance
-
removeFeatureClass
public NFEFeatureClass removeFeatureClass(long featureClassId)
Description copied from class:NFEFeatureLayerRemoves a feature class identified by the given ID from the feature layer- Specified by:
removeFeatureClassin 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:NFEFeatureLayerGets all the feature classes matching the given shape from the feature layer- Specified by:
getFeatureClassesin 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:
notifyPropertyChangedin classNFEFeatureLayer
-
notifyModelObjectAdded
protected void notifyModelObjectAdded(java.lang.Object modelObject)
- Specified by:
notifyModelObjectAddedin classNFEFeatureLayer
-
notifyModelObjectsAdded
protected <T> void notifyModelObjectsAdded(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)- Specified by:
notifyModelObjectsAddedin classNFEFeatureLayer
-
notifyModelObjectRemoved
protected void notifyModelObjectRemoved(java.lang.Object modelObject)
- Specified by:
notifyModelObjectRemovedin classNFEFeatureLayer
-
notifyModelObjectsRemoved
protected <T> void notifyModelObjectsRemoved(java.util.Collection<T> modelObjects, java.lang.Class<T> modelObjectsClass)- Specified by:
notifyModelObjectsRemovedin classNFEFeatureLayer
-
addModelListener
public void addModelListener(NFEModelListener listener)
- Specified by:
addModelListenerin classNFEFeatureLayer
-
removeModelListener
public void removeModelListener(NFEModelListener listener)
- Specified by:
removeModelListenerin classNFEFeatureLayer
-
createCopy
public NFEFeatureLayer createCopy()
Description copied from class:NFEFeatureLayerReturns object copy.- Specified by:
createCopyin classNFEFeatureLayer- Returns:
- object copy
-
-