Class AbstractIdFactory
java.lang.Object
org.apache.jackrabbit.spi.commons.identifier.AbstractIdFactory
- All Implemented Interfaces:
IdFactory
- Direct Known Subclasses:
IdFactoryImpl
AbstractIdFactory
...-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNodeId
(String uniqueID) Creates a newNodeId
from the given unique id.createNodeId
(String uniqueID, Path path) Creates a newNodeId
from the given unique id (which identifies an ancestorNode
) and the givenPath
object.createNodeId
(NodeId parentId, Path path) Creates a newNodeId
from the given parent id and the givenPath
object.createPropertyId
(NodeId parentId, Name propertyName) Creates a newPropertyId
from the given parent id and property name.fromJcrIdentifier
(String jcrIdentifier) Create a newNodeId
from the given JCR string representation.toJcrIdentifier
(NodeId nodeId) Returns the JCR string representation of the givennodeId
.
-
Constructor Details
-
AbstractIdFactory
public AbstractIdFactory()
-
-
Method Details
-
createNodeId
Creates a newNodeId
from the given parent id and the givenPath
object.- Specified by:
createNodeId
in interfaceIdFactory
- Parameters:
parentId
-path
-- Returns:
- a new
NodeId
. - See Also:
-
createNodeId
Creates a newNodeId
from the given unique id (which identifies an ancestorNode
) and the givenPath
object.- Specified by:
createNodeId
in interfaceIdFactory
- Parameters:
uniqueID
-path
-- Returns:
- a new
NodeId
. - See Also:
-
createNodeId
Creates a newNodeId
from the given unique id.- Specified by:
createNodeId
in interfaceIdFactory
- Parameters:
uniqueID
-- Returns:
- a new
NodeId
. - See Also:
-
createPropertyId
Creates a newPropertyId
from the given parent id and property name.- Specified by:
createPropertyId
in interfaceIdFactory
- Parameters:
parentId
-propertyName
-- Returns:
- a new
PropertyId
. - See Also:
-
toJcrIdentifier
Description copied from interface:IdFactory
Returns the JCR string representation of the givennodeId
.- Specified by:
toJcrIdentifier
in interfaceIdFactory
- Returns:
- a JCR node identifier string.
- See Also:
-
fromJcrIdentifier
Description copied from interface:IdFactory
Create a newNodeId
from the given JCR string representation.- Specified by:
fromJcrIdentifier
in interfaceIdFactory
- Parameters:
jcrIdentifier
-- Returns:
- a new
NodeId
. - See Also:
-