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 NFEAttributeConstraintcreateAttributeConstraint()Creates a new instance of NFEAttributeConstaint and automatically assigns an ID to it.NFEAttributeConstraintcreateAttributeConstraint(long attrConstraintId)Creates a new instance of NFEAttributeConstaint and sets the given ID.NFEAttributeDescriptorcreateAttributeDescriptor()Creates a new instance of NFEAttributeDescriptor.NFECardinalityRulecreateCardinalityRule()Creates a new instance of NFECardinalityRule with and automatically assigns an ID to itNFECardinalityRulecreateCardinalityRule(long ruleId)Creates a new instance of NFECardinalityRule with and sets the given IDNFECatalogcreateCatalog()Creates a new instance of NFECatalog and automatically assigns an ID to it.NFECatalogcreateCatalog(long catalogId)Creates a new instance of NFECatalog and sets the given ID.NFECatalogValuecreateCatalogValue()Creates a new instance of NFECatalogValue.NFEFeaturecreateFeature(long featureLayerId)Creates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId.NFEFeaturecreateFeature(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.NFEFeatureClasscreateFeatureClass()Creates a new instance of NFEFeatureClass and automatically assigns an ID to it.NFEFeatureClasscreateFeatureClass(long featureClassId)Creates a new instance of NFEFeatureClass and sets the given ID.NFEFeatureElementcreateFeatureElement(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.NFEFeatureElementcreateFeatureElement(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.NFEFeatureLayercreateFeatureLayer()Creates a new instance of NFEFeatureLayer.NFELineLineRulecreateLineLineRule()Creates a new instance of NFELineLineRule with and automatically assigns an ID to itNFELineLineRulecreateLineLineRule(long ruleId)Creates a new instance of NFELineLineRule with and sets the given IDNFELinePointRulecreateLinePointRule()Creates a new instance of NFELinePointRule with and automatically assigns an ID to itNFELinePointRulecreateLinePointRule(long ruleId)Creates a new instance of NFELinePointRule with and sets the given IDNFELinkcreateLink(long id, NFENode startNode, NFENode endNode)Creates a new instance of NFELink and sets the given ID.NFELinkcreateLink(NFENode startNode, NFENode endNode)Creates a new instance of NFELink and assigns an ID.NFENetworkcreateNetwork()Creates a new instance of NFENetwork class.NFENodecreateNode()Creates a new instance of NFENode and assigns an ID.NFENodecreateNode(long id)Creates a new instance of NFENode and sets the given ID.NFEPredefinedConnectedPointcreatePredefinedConnectedPoint()Creates a new instance of NFEPredefinedConnectedPoint with an ID assigned automatically.NFEPredefinedConnectedPointcreatePredefinedConnectedPoint(long predefConnPointId)Creates a new instance of NFEPredefinedConnectedPoint and sets the given ID.NFERuleInstancecreateRuleInstance()Creates a new instance of NFERuleInstance with and automatically assigns an ID to itNFERuleInstancecreateRuleInstance(long ruleInstanceId)Creates a new instance of NFERuleInstance with and sets the given IDNFEIdManagergetIdManager()Gets the NFEIdManager instance currently used.NFEModelgetModel()Returns the current NFEModel instancevoidsetIdManager(NFEIdManager idManager)Sets an instance of NFEIdManager which is used to assign ID's to newly created instances.voidsetModel(NFEModel model)Sets an instance of NFEModel.
-
-
-
Method Detail
-
setModel
public void setModel(NFEModel model)
Description copied from interface:NFEModelObjectFactorySets an instance of NFEModel.- Specified by:
setModelin interfaceNFEModelObjectFactory- Parameters:
model- an NFEModel instance
-
getModel
public NFEModel getModel()
Description copied from interface:NFEModelObjectFactoryReturns the current NFEModel instance- Specified by:
getModelin interfaceNFEModelObjectFactory- Returns:
- an NFEModel instance
-
setIdManager
public void setIdManager(NFEIdManager idManager)
Description copied from interface:NFEModelObjectFactorySets 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:
setIdManagerin interfaceNFEModelObjectFactory- Parameters:
idManager- an NFEIdManager instance
-
getIdManager
public NFEIdManager getIdManager()
Description copied from interface:NFEModelObjectFactoryGets the NFEIdManager instance currently used.- Specified by:
getIdManagerin interfaceNFEModelObjectFactory- Returns:
- an NFEIdManager instance
-
createNetwork
public NFENetwork createNetwork()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFENetwork class. This method does not assign an ID automatically to the newly created instance- Specified by:
createNetworkin interfaceNFEModelObjectFactory- Returns:
- an empty instance of NFENetwork
-
createNode
public NFENode createNode()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFENode and assigns an ID.- Specified by:
createNodein interfaceNFEModelObjectFactory- Returns:
- an instance of NFENode
-
createNode
public NFENode createNode(long id)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFENode and sets the given ID.- Specified by:
createNodein 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:NFEModelObjectFactoryCreates a new instance of NFELink and assigns an ID. The given start and end nodes are set to the newly created NFELink.- Specified by:
createLinkin 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:NFEModelObjectFactoryCreates 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:
createLinkin interfaceNFEModelObjectFactorystartNode- the link's start nodeendNode- the link's end node- Returns:
- an instance of NFELink
-
createFeatureLayer
public NFEFeatureLayer createFeatureLayer()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEFeatureLayer. This method does not assign an ID.- Specified by:
createFeatureLayerin interfaceNFEModelObjectFactory- Returns:
- an empty instance of NFEFeatureLayer
-
createFeature
public NFEFeature createFeature(long featureLayerId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId.- Specified by:
createFeaturein 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:NFEModelObjectFactoryCreates a new instance of NFEFeature for the Feature Layer identified by the given featureLayerId and sets the given Feature ID.- Specified by:
createFeaturein 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:NFEModelObjectFactoryCreates 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:
createFeatureElementin 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:NFEModelObjectFactoryCreates 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:
createFeatureElementin 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:NFEModelObjectFactoryCreates a new instance of NFEFeatureClass and automatically assigns an ID to it.- Specified by:
createFeatureClassin interfaceNFEModelObjectFactory- Returns:
- an instance of NFEFeatureClass
-
createFeatureClass
public NFEFeatureClass createFeatureClass(long featureClassId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEFeatureClass and sets the given ID.- Specified by:
createFeatureClassin interfaceNFEModelObjectFactory- Parameters:
featureClassId- an ID for the newly created NFEFeatureClass instance- Returns:
- an instance of NFEFeatureClass
-
createAttributeDescriptor
public NFEAttributeDescriptor createAttributeDescriptor()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEAttributeDescriptor. An attribute descriptor does not contain an ID.- Specified by:
createAttributeDescriptorin interfaceNFEModelObjectFactory- Returns:
- an instance of NFEAttributeDescriptor
-
createAttributeConstraint
public NFEAttributeConstraint createAttributeConstraint()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEAttributeConstaint and automatically assigns an ID to it.- Specified by:
createAttributeConstraintin interfaceNFEModelObjectFactory- Returns:
- an instance of NFEAttributeConstraint
-
createAttributeConstraint
public NFEAttributeConstraint createAttributeConstraint(long attrConstraintId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEAttributeConstaint and sets the given ID.- Specified by:
createAttributeConstraintin interfaceNFEModelObjectFactory- Parameters:
attrConstraintId- an ID for the newly created NFEAttributeConstraint instance- Returns:
- an instance of NFEAttributeConstraint
-
createCatalog
public NFECatalog createCatalog()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFECatalog and automatically assigns an ID to it.- Specified by:
createCatalogin interfaceNFEModelObjectFactory- Returns:
- an instance of NFECatalog
-
createCatalog
public NFECatalog createCatalog(long catalogId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFECatalog and sets the given ID.- Specified by:
createCatalogin interfaceNFEModelObjectFactory- Parameters:
catalogId- an ID for the newly created NFECatalog instance- Returns:
- an instance of NFECatalog
-
createCatalogValue
public NFECatalogValue createCatalogValue()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFECatalogValue. An NFECatalogValue does not contain an ID.- Specified by:
createCatalogValuein interfaceNFEModelObjectFactory- Returns:
- an instance of NFECatalogValue
-
createPredefinedConnectedPoint
public NFEPredefinedConnectedPoint createPredefinedConnectedPoint()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEPredefinedConnectedPoint with an ID assigned automatically.- Specified by:
createPredefinedConnectedPointin interfaceNFEModelObjectFactory- Returns:
- an instance of NFEPredefinedConnectedPoint
-
createPredefinedConnectedPoint
public NFEPredefinedConnectedPoint createPredefinedConnectedPoint(long predefConnPointId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFEPredefinedConnectedPoint and sets the given ID.- Specified by:
createPredefinedConnectedPointin interfaceNFEModelObjectFactory- Parameters:
predefConnPointId- an ID for the newly created NFEPredefinedConnectedPoint instance- Returns:
- an instance of NFEPredefinedConnectedPoint
-
createLinePointRule
public NFELinePointRule createLinePointRule()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFELinePointRule with and automatically assigns an ID to it- Specified by:
createLinePointRulein interfaceNFEModelObjectFactory- Returns:
- an instance of NFELinePointRule
-
createLineLineRule
public NFELineLineRule createLineLineRule()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFELineLineRule with and automatically assigns an ID to it- Specified by:
createLineLineRulein interfaceNFEModelObjectFactory- Returns:
- an instance of NFELineLineRule
-
createLinePointRule
public NFELinePointRule createLinePointRule(long ruleId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFELinePointRule with and sets the given ID- Specified by:
createLinePointRulein 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:NFEModelObjectFactoryCreates a new instance of NFELineLineRule with and sets the given ID- Specified by:
createLineLineRulein interfaceNFEModelObjectFactory- Parameters:
ruleId- an ID for the newly created NFELineLineRule instance- Returns:
- an instance of NFELineLineRule
-
createRuleInstance
public NFERuleInstance createRuleInstance()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFERuleInstance with and automatically assigns an ID to it- Specified by:
createRuleInstancein interfaceNFEModelObjectFactory- Returns:
- an instance of NFERuleInstance
-
createRuleInstance
public NFERuleInstance createRuleInstance(long ruleInstanceId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFERuleInstance with and sets the given ID- Specified by:
createRuleInstancein interfaceNFEModelObjectFactory- Parameters:
ruleInstanceId- an ID for the newly created NFERuleInstance instance- Returns:
- an instance of NFERuleInstance
-
createCardinalityRule
public NFECardinalityRule createCardinalityRule()
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFECardinalityRule with and automatically assigns an ID to it- Specified by:
createCardinalityRulein interfaceNFEModelObjectFactory- Returns:
- an instance of NFECardinalityRule
-
createCardinalityRule
public NFECardinalityRule createCardinalityRule(long ruleId)
Description copied from interface:NFEModelObjectFactoryCreates a new instance of NFECardinalityRule with and sets the given ID- Specified by:
createCardinalityRulein interfaceNFEModelObjectFactory- Parameters:
ruleId- an ID for the newly created NFECardinalityRule instance- Returns:
- an instance of NFECardinalityRule
-
-