Interface NodeFactory
-
- All Superinterfaces:
GraphEntityFactory<Node>,ManagedIdEntityFactory<Node>
- All Known Implementing Classes:
NodeFactoryImpl
public interface NodeFactory extends GraphEntityFactory<Node>
Factory interface for creating node instances- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NodecreateNew()Create a new node (without registering)default NodecreateNew(org.locationtech.jts.geom.Point position, boolean syncXmlIdToId)Create a new node (without registering) and set its gemoetry and potentially sync its XML id to the underlying internal idNoderegisterNew()Create and register new nodeNoderegisterNew(org.locationtech.jts.geom.Point position, boolean syncXmlIdToId)Register a new node and set its geometry and potentially sync its XML id to the underlying internal id-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntityFactory
createUniqueDeepCopyOf, createUniqueShallowCopyOf, getIdGroupingToken, setIdGroupingToken
-
-
-
-
Method Detail
-
createNew
Node createNew()
Create a new node (without registering)- Returns:
- created node
-
createNew
default Node createNew(org.locationtech.jts.geom.Point position, boolean syncXmlIdToId)
Create a new node (without registering) and set its gemoetry and potentially sync its XML id to the underlying internal id- Parameters:
position- to usesyncXmlIdToId- when true set XML id to internal id, when false leave it null- Returns:
- created node
-
registerNew
Node registerNew()
Create and register new node- Returns:
- new node created
-
registerNew
Node registerNew(org.locationtech.jts.geom.Point position, boolean syncXmlIdToId)
Register a new node and set its geometry and potentially sync its XML id to the underlying internal id- Parameters:
position- to usesyncXmlIdToId- when true set XML id to internal id, when false leave it null- Returns:
- created and registered node
-
-