Class NFEFeatureClass
- java.lang.Object
-
- oracle.spatial.network.nfe.model.feature.NFEFeatureClass
-
- Direct Known Subclasses:
NFEBasicFeatureClass
public abstract class NFEFeatureClass extends java.lang.Object
Base class for representing a feature class. A feature class contains information about the shape and visual style of a feature. It constraints the type of feature elements and the value of the attributes of a feature. A feature class can be seen as a template for creating features. A feature layer must contain at least one feature class definition before any feature is added to this feature layer.
-
-
Constructor Summary
Constructors Constructor Description NFEFeatureClass()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
addAttributeConstraint(NFEAttributeConstraint attrConstraint)
Adds an attribute constraint to the feature classabstract void
addPredefinedConnectedPoint(NFEPredefinedConnectedPoint predefConnPoint)
Adds a predefined connected point descriptor to the feature classabstract NFEFeatureClass
createCopy()
Returns object copy.abstract java.util.Collection<NFEAttributeConstraint>
getAttributeConstraints()
Gets all the attribute constraint contained by the feature classabstract NFEFeatureLayer
getFeatureLayer()
Gets the feature class' feature layerabstract long
getId()
Gets the feature class' IDabstract int
getMaxInConnections()
Gets the maximum number of in connections when the feature class' shape type is pointabstract int
getMaxOutConnections()
Gets the maximum number of out connections when the feature class' shape type is pointabstract java.lang.String
getName()
Gets the feature class' nameabstract java.util.List<NFEPredefinedConnectedPoint>
getPredefinedConnectedPoints()
Gets the predefined connected points set to the feature class when the shape type is LINE or COMPLEX_LINEabstract NFEFeatureShape
getShape()
Gets the feature class' feature shape typeabstract oracle.sdovis.style.Style
getStyle()
Gets the SDO style instance assigned to the feature classabstract java.lang.String
getStyleName()
Gets the name of the style associated to this styleabstract boolean
removeAttributeContraint(NFEAttributeConstraint attrConstraint)
Removes an attribute constraint from the feature classabstract boolean
removePredefinedConnectedPoint(NFEPredefinedConnectedPoint predefConnPoint)
Removes the give predefined connected point descriptor from the feature classabstract void
setFeatureLayer(NFEFeatureLayer featureLayer)
Sets the feature class' feature layerabstract void
setId(long id)
Sets the feature class' IDabstract void
setMaxInConnections(int maxInConnections)
Sets the maximum number of in connections when the feature class' shape type is pointabstract void
setMaxOutConnections(int maxOutConnections)
Gets the maximum number of out connections when the feature class' shape type is pointabstract void
setName(java.lang.String name)
Sets the feature class' nameabstract void
setShape(NFEFeatureShape shape)
Sets the feature class' feature shape typeabstract void
setStyle(oracle.sdovis.style.Style style)
Sets the SDO style instance assigned to the feature class.abstract void
setStyleName(java.lang.String styleName)
Sets the name of the style associated to this style.
-
-
-
Method Detail
-
getId
public abstract long getId()
Gets the feature class' ID- Returns:
- a feature class ID
-
setId
public abstract void setId(long id)
Sets the feature class' ID- Parameters:
id
- a feature class ID
-
getFeatureLayer
public abstract NFEFeatureLayer getFeatureLayer()
Gets the feature class' feature layer- Returns:
- a feature layer instance
-
setFeatureLayer
public abstract void setFeatureLayer(NFEFeatureLayer featureLayer)
Sets the feature class' feature layer- Parameters:
featureLayer
- a feature layer instance
-
getName
public abstract java.lang.String getName()
Gets the feature class' name- Returns:
- the feature class' name
-
setName
public abstract void setName(java.lang.String name)
Sets the feature class' name- Parameters:
name
- the feature class' name
-
getShape
public abstract NFEFeatureShape getShape()
Gets the feature class' feature shape type- Returns:
- a feature shape type
-
setShape
public abstract void setShape(NFEFeatureShape shape)
Sets the feature class' feature shape type- Parameters:
shape
- a feature shape type
-
getMaxInConnections
public abstract int getMaxInConnections()
Gets the maximum number of in connections when the feature class' shape type is point- Returns:
- the maximum number of in connections
-
setMaxInConnections
public abstract void setMaxInConnections(int maxInConnections)
Sets the maximum number of in connections when the feature class' shape type is point- Parameters:
maxInConnections
- the maximum number of in connections
-
getMaxOutConnections
public abstract int getMaxOutConnections()
Gets the maximum number of out connections when the feature class' shape type is point- Returns:
- the maximum number of out connections
-
setMaxOutConnections
public abstract void setMaxOutConnections(int maxOutConnections)
Gets the maximum number of out connections when the feature class' shape type is point- Parameters:
maxOutConnections
- the maximum number of out connections
-
getStyleName
public abstract java.lang.String getStyleName()
Gets the name of the style associated to this style- Returns:
- a style name
-
setStyleName
public abstract void setStyleName(java.lang.String styleName)
Sets the name of the style associated to this style. This name is used to reference the style in the database.- Parameters:
styleName
- a style name
-
getStyle
public abstract oracle.sdovis.style.Style getStyle()
Gets the SDO style instance assigned to the feature class- Returns:
- an SDO style instance
-
setStyle
public abstract void setStyle(oracle.sdovis.style.Style style)
Sets the SDO style instance assigned to the feature class. More information about how to define styles is available in the in the User's Guide for Oracle MapViewer.- Parameters:
style
- an SDO style instance
-
getAttributeConstraints
public abstract java.util.Collection<NFEAttributeConstraint> getAttributeConstraints()
Gets all the attribute constraint contained by the feature class- Returns:
- a collection of attribute constraint instances
-
addAttributeConstraint
public abstract void addAttributeConstraint(NFEAttributeConstraint attrConstraint)
Adds an attribute constraint to the feature class- Parameters:
attrConstraint
- an attribute constraint instance
-
removeAttributeContraint
public abstract boolean removeAttributeContraint(NFEAttributeConstraint attrConstraint)
Removes an attribute constraint from the feature class- Parameters:
attrConstraint
- an attribute constraint instance- Returns:
- true if the attribute was removed
-
getPredefinedConnectedPoints
public abstract java.util.List<NFEPredefinedConnectedPoint> getPredefinedConnectedPoints()
Gets the predefined connected points set to the feature class when the shape type is LINE or COMPLEX_LINE- Returns:
- a list of predefined feature point descriptors
-
addPredefinedConnectedPoint
public abstract void addPredefinedConnectedPoint(NFEPredefinedConnectedPoint predefConnPoint)
Adds a predefined connected point descriptor to the feature class- Parameters:
predefConnPoint
- a predefined connected point descriptor
-
removePredefinedConnectedPoint
public abstract boolean removePredefinedConnectedPoint(NFEPredefinedConnectedPoint predefConnPoint)
Removes the give predefined connected point descriptor from the feature class- Parameters:
predefConnPoint
- a predefined connected point descriptor- Returns:
- true if the element was removed
-
createCopy
public abstract NFEFeatureClass createCopy()
Returns object copy.- Returns:
- object copy
-
-