Package oracle.spatial.network.nfe.model
Class NFEBasicModelObjectFactory
- java.lang.Object
-
- oracle.spatial.network.nfe.model.NFEBasicModelObjectFactory
-
- All Implemented Interfaces:
NFEModelObjectFactory
public class NFEBasicModelObjectFactory extends java.lang.Object implements NFEModelObjectFactory
The dafault implementation of NFEModelObjectFactory
-
-
Constructor Summary
Constructors Constructor Description NFEBasicModelObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NFEAttributeConstraint
createAttributeConstraint()
Creates a new instance of NFEAttributeConstaint and automatically assigns an ID to it.NFEAttributeConstraint
createAttributeConstraint(long attrConstraintId)
Creates a new instance of NFEAttributeConstaint and sets the given ID.NFEAttributeDescriptor
createAttributeDescriptor()
Creates a new instance of NFEAttributeDescriptor.NFECardinalityRule
createCardinalityRule()
Creates a new instance of NFECardinalityRule with and automatically assigns an ID to itNFECardinalityRule
createCardinalityRule(long ruleId)
Creates a new instance of NFECardinalityRule with and sets the given IDNFECatalog
createCatalog()
Creates a new instance of NFECatalog and automatically assigns an ID to it.NFECatalog
createCatalog(long catalogId)
Creates a new instance of NFECatalog and sets the given ID.NFECatalogValue
createCatalogValue()
Creates a new instance of NFECatalogValue.NFEFeature
createFeature(long featureLayerId)
Creates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId.NFEFeature
createFeature(long featureLayerId, long featureId)
Creates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId and sets the given Feature ID.NFEFeatureClass
createFeatureClass()
Creates a new instance of NFEFeatureClass and automatically assigns an ID to it.NFEFeatureClass
createFeatureClass(long featureClassId)
Creates a new instance of NFEFeatureClass and sets the given ID.NFEFeatureElement
createFeatureElement(long featureLayerId)
Creates a new instance of NFEFeatureElement for the Feature Layer identified by the given featureLayerId and automatically sets a sequence number to the Feature Element.NFEFeatureElement
createFeatureElement(long featureLayerId, long sequence)
Creates a new instance of NFEFeatureElement for the Feature Layer identified by the given featureLayerId and sets the given sequence number to the Feature Element.NFEFeatureLayer
createFeatureLayer()
Creates a new instance of NFEFeatureLayer.NFELineLineRule
createLineLineRule()
Creates a new instance of NFELineLineRule with and automatically assigns an ID to itNFELineLineRule
createLineLineRule(long ruleId)
Creates a new instance of NFELineLineRule with and sets the given IDNFELinePointRule
createLinePointRule()
Creates a new instance of NFELinePointRule with and automatically assigns an ID to itNFELinePointRule
createLinePointRule(long ruleId)
Creates a new instance of NFELinePointRule with and sets the given IDNFELink
createLink(long id, NFENode startNode, NFENode endNode)
Creates a new instance of NFELink and sets the given ID.NFELink
createLink(NFENode startNode, NFENode endNode)
Creates a new instance of NFELink and assigns an ID.NFENetwork
createNetwork()
Creates a new instance of NFENetwork class.NFENode
createNode()
Creates a new instance of NFENode and assigns an ID.NFENode
createNode(long id)
Creates a new instance of NFENode and sets the given ID.NFEPredefinedConnectedPoint
createPredefinedConnectedPoint()
Creates a new instance of NFEPredefinedConnectedPoint with an ID assigned automatically.NFEPredefinedConnectedPoint
createPredefinedConnectedPoint(long predefConnPointId)
Creates a new instance of NFEPredefinedConnectedPoint and sets the given ID.NFERuleInstance
createRuleInstance()
Creates a new instance of NFERuleInstance with and automatically assigns an ID to itNFERuleInstance
createRuleInstance(long ruleInstanceId)
Creates a new instance of NFERuleInstance with and sets the given IDNFEIdManager
getIdManager()
Gets the NFEIdManager instance currently used.NFEModel
getModel()
Returns the current NFEModel instancevoid
setIdManager(NFEIdManager idManager)
Sets an instance of NFEIdManager which is used to assign ID's to newly created instances.void
setModel(NFEModel model)
Sets an instance of NFEModel.
-
-
-
Method Detail
-
setModel
public void setModel(NFEModel model)
Description copied from interface:NFEModelObjectFactory
Sets an instance of NFEModel.- Specified by:
setModel
in interfaceNFEModelObjectFactory
- Parameters:
model
- an NFEModel instance
-
getModel
public NFEModel getModel()
Description copied from interface:NFEModelObjectFactory
Returns the current NFEModel instance- Specified by:
getModel
in interfaceNFEModelObjectFactory
- Returns:
- an NFEModel instance
-
setIdManager
public void setIdManager(NFEIdManager idManager)
Description copied from interface:NFEModelObjectFactory
Sets an instance of NFEIdManager which is used to assign ID's to newly created instances. A default implementation is assigned automatically when a new NFEModel instance is created.- Specified by:
setIdManager
in interfaceNFEModelObjectFactory
- Parameters:
idManager
- an NFEIdManager instance
-
getIdManager
public NFEIdManager getIdManager()
Description copied from interface:NFEModelObjectFactory
Gets the NFEIdManager instance currently used.- Specified by:
getIdManager
in interfaceNFEModelObjectFactory
- Returns:
- an NFEIdManager instance
-
createNetwork
public NFENetwork createNetwork()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFENetwork class. This method does not assign an ID automatically to the newly created instance- Specified by:
createNetwork
in interfaceNFEModelObjectFactory
- Returns:
- an empty instance of NFENetwork
-
createNode
public NFENode createNode()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFENode and assigns an ID.- Specified by:
createNode
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFENode
-
createNode
public NFENode createNode(long id)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFENode and sets the given ID.- Specified by:
createNode
in interfaceNFEModelObjectFactory
- Parameters:
id
- a unique ID for the newly created NFENode instance- Returns:
- an NFENode instance
-
createLink
public NFELink createLink(NFENode startNode, NFENode endNode)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFELink and assigns an ID. The given start and end nodes are set to the newly created NFELink.- Specified by:
createLink
in interfaceNFEModelObjectFactory
- Parameters:
startNode
- the link's start nodeendNode
- the link's end node- Returns:
- an instance of NFELink
-
createLink
public NFELink createLink(long id, NFENode startNode, NFENode endNode)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFELink and sets the given ID. The given start and end nodes are set to the newly created NFELink.- Specified by:
createLink
in interfaceNFEModelObjectFactory
startNode
- the link's start nodeendNode
- the link's end node- Returns:
- an instance of NFELink
-
createFeatureLayer
public NFEFeatureLayer createFeatureLayer()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeatureLayer. This method does not assign an ID.- Specified by:
createFeatureLayer
in interfaceNFEModelObjectFactory
- Returns:
- an empty instance of NFEFeatureLayer
-
createFeature
public NFEFeature createFeature(long featureLayerId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId.- Specified by:
createFeature
in interfaceNFEModelObjectFactory
- Parameters:
featureLayerId
- an ID of an existing NFEFeatureLayer- Returns:
- an instance of NFEFeature
-
createFeature
public NFEFeature createFeature(long featureLayerId, long featureId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId and sets the given Feature ID.- Specified by:
createFeature
in interfaceNFEModelObjectFactory
- Parameters:
featureLayerId
- an ID of an existing NFEFeatureLayerfeatureId
- a unique ID for the newly created NFEFeature instance- Returns:
- an instance of NFEFeature
-
createFeatureElement
public NFEFeatureElement createFeatureElement(long featureLayerId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeatureElement for the Feature Layer identified by the given featureLayerId and automatically sets a sequence number to the Feature Element.- Specified by:
createFeatureElement
in interfaceNFEModelObjectFactory
- Parameters:
featureLayerId
- an ID of an existing NFEFeatureLayer- Returns:
- an instance of NFEFeatureElement
-
createFeatureElement
public NFEFeatureElement createFeatureElement(long featureLayerId, long sequence)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeatureElement for the Feature Layer identified by the given featureLayerId and sets the given sequence number to the Feature Element.- Specified by:
createFeatureElement
in interfaceNFEModelObjectFactory
- Parameters:
featureLayerId
- an ID of an existing NFEFeatureLayersequence
- a sequence number for the newly created Feature Element- Returns:
- an instance of NFEFeatureElement
-
createFeatureClass
public NFEFeatureClass createFeatureClass()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeatureClass and automatically assigns an ID to it.- Specified by:
createFeatureClass
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFEFeatureClass
-
createFeatureClass
public NFEFeatureClass createFeatureClass(long featureClassId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEFeatureClass and sets the given ID.- Specified by:
createFeatureClass
in interfaceNFEModelObjectFactory
- Parameters:
featureClassId
- an ID for the newly created NFEFeatureClass instance- Returns:
- an instance of NFEFeatureClass
-
createAttributeDescriptor
public NFEAttributeDescriptor createAttributeDescriptor()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEAttributeDescriptor. An attribute descriptor does not contain an ID.- Specified by:
createAttributeDescriptor
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFEAttributeDescriptor
-
createAttributeConstraint
public NFEAttributeConstraint createAttributeConstraint()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEAttributeConstaint and automatically assigns an ID to it.- Specified by:
createAttributeConstraint
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFEAttributeConstraint
-
createAttributeConstraint
public NFEAttributeConstraint createAttributeConstraint(long attrConstraintId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEAttributeConstaint and sets the given ID.- Specified by:
createAttributeConstraint
in interfaceNFEModelObjectFactory
- Parameters:
attrConstraintId
- an ID for the newly created NFEAttributeConstraint instance- Returns:
- an instance of NFEAttributeConstraint
-
createCatalog
public NFECatalog createCatalog()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFECatalog and automatically assigns an ID to it.- Specified by:
createCatalog
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFECatalog
-
createCatalog
public NFECatalog createCatalog(long catalogId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFECatalog and sets the given ID.- Specified by:
createCatalog
in interfaceNFEModelObjectFactory
- Parameters:
catalogId
- an ID for the newly created NFECatalog instance- Returns:
- an instance of NFECatalog
-
createCatalogValue
public NFECatalogValue createCatalogValue()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFECatalogValue. An NFECatalogValue does not contain an ID.- Specified by:
createCatalogValue
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFECatalogValue
-
createPredefinedConnectedPoint
public NFEPredefinedConnectedPoint createPredefinedConnectedPoint()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEPredefinedConnectedPoint with an ID assigned automatically.- Specified by:
createPredefinedConnectedPoint
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFEPredefinedConnectedPoint
-
createPredefinedConnectedPoint
public NFEPredefinedConnectedPoint createPredefinedConnectedPoint(long predefConnPointId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFEPredefinedConnectedPoint and sets the given ID.- Specified by:
createPredefinedConnectedPoint
in interfaceNFEModelObjectFactory
- Parameters:
predefConnPointId
- an ID for the newly created NFEPredefinedConnectedPoint instance- Returns:
- an instance of NFEPredefinedConnectedPoint
-
createLinePointRule
public NFELinePointRule createLinePointRule()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFELinePointRule with and automatically assigns an ID to it- Specified by:
createLinePointRule
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFELinePointRule
-
createLineLineRule
public NFELineLineRule createLineLineRule()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFELineLineRule with and automatically assigns an ID to it- Specified by:
createLineLineRule
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFELineLineRule
-
createLinePointRule
public NFELinePointRule createLinePointRule(long ruleId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFELinePointRule with and sets the given ID- Specified by:
createLinePointRule
in interfaceNFEModelObjectFactory
- Parameters:
ruleId
- an ID for the newly created NFELinePointRule instance- Returns:
- an instance of NFELinePointRule
-
createLineLineRule
public NFELineLineRule createLineLineRule(long ruleId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFELineLineRule with and sets the given ID- Specified by:
createLineLineRule
in interfaceNFEModelObjectFactory
- Parameters:
ruleId
- an ID for the newly created NFELineLineRule instance- Returns:
- an instance of NFELineLineRule
-
createRuleInstance
public NFERuleInstance createRuleInstance()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFERuleInstance with and automatically assigns an ID to it- Specified by:
createRuleInstance
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFERuleInstance
-
createRuleInstance
public NFERuleInstance createRuleInstance(long ruleInstanceId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFERuleInstance with and sets the given ID- Specified by:
createRuleInstance
in interfaceNFEModelObjectFactory
- Parameters:
ruleInstanceId
- an ID for the newly created NFERuleInstance instance- Returns:
- an instance of NFERuleInstance
-
createCardinalityRule
public NFECardinalityRule createCardinalityRule()
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFECardinalityRule with and automatically assigns an ID to it- Specified by:
createCardinalityRule
in interfaceNFEModelObjectFactory
- Returns:
- an instance of NFECardinalityRule
-
createCardinalityRule
public NFECardinalityRule createCardinalityRule(long ruleId)
Description copied from interface:NFEModelObjectFactory
Creates a new instance of NFECardinalityRule with and sets the given ID- Specified by:
createCardinalityRule
in interfaceNFEModelObjectFactory
- Parameters:
ruleId
- an ID for the newly created NFECardinalityRule instance- Returns:
- an instance of NFECardinalityRule
-
-