Class AbstractIdFactory
- java.lang.Object
- 
- org.apache.jackrabbit.spi.commons.identifier.AbstractIdFactory
 
- 
- All Implemented Interfaces:
- IdFactory
 - Direct Known Subclasses:
- IdFactoryImpl
 
 public abstract class AbstractIdFactory extends Object implements IdFactory AbstractIdFactory...
- 
- 
Constructor SummaryConstructors Constructor Description AbstractIdFactory()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description NodeIdcreateNodeId(String uniqueID)Creates a newNodeIdfrom the given unique id.NodeIdcreateNodeId(String uniqueID, Path path)Creates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.NodeIdcreateNodeId(NodeId parentId, Path path)Creates a newNodeIdfrom the given parent id and the givenPathobject.PropertyIdcreatePropertyId(NodeId parentId, Name propertyName)Creates a newPropertyIdfrom the given parent id and property name.NodeIdfromJcrIdentifier(String jcrIdentifier)Create a newNodeIdfrom the given JCR string representation.protected abstract PathFactorygetPathFactory()Subclassed need to define a PathFactory used to create IDsStringtoJcrIdentifier(NodeId nodeId)Returns the JCR string representation of the givennodeId.
 
- 
- 
- 
Method Detail- 
createNodeIdpublic NodeId createNodeId(NodeId parentId, Path path) Creates a newNodeIdfrom the given parent id and the givenPathobject.- Specified by:
- createNodeIdin interface- IdFactory
- Returns:
- a new NodeId.
- See Also:
- IdFactory.createNodeId(NodeId, Path)
 
 - 
createNodeIdpublic NodeId createNodeId(String uniqueID, Path path) Creates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.- Specified by:
- createNodeIdin interface- IdFactory
- Returns:
- a new NodeId.
- See Also:
- IdFactory.createNodeId(String, Path)
 
 - 
createNodeIdpublic NodeId createNodeId(String uniqueID) Creates a newNodeIdfrom the given unique id.- Specified by:
- createNodeIdin interface- IdFactory
- Returns:
- a new NodeId.
- See Also:
- IdFactory.createNodeId(String)
 
 - 
createPropertyIdpublic PropertyId createPropertyId(NodeId parentId, Name propertyName) Creates a newPropertyIdfrom the given parent id and property name.- Specified by:
- createPropertyIdin interface- IdFactory
- Returns:
- a new PropertyId.
- See Also:
- IdFactory.createPropertyId(NodeId,Name)
 
 - 
toJcrIdentifierpublic String toJcrIdentifier(NodeId nodeId) Description copied from interface:IdFactoryReturns the JCR string representation of the givennodeId.- Specified by:
- toJcrIdentifierin interface- IdFactory
- Returns:
- a JCR node identifier string.
- See Also:
- IdFactory.toJcrIdentifier(NodeId)
 
 - 
fromJcrIdentifierpublic NodeId fromJcrIdentifier(String jcrIdentifier) Description copied from interface:IdFactoryCreate a newNodeIdfrom the given JCR string representation.- Specified by:
- fromJcrIdentifierin interface- IdFactory
- Returns:
- a new NodeId.
- See Also:
- IdFactory.fromJcrIdentifier(String)
 
 - 
getPathFactoryprotected abstract PathFactory getPathFactory() Subclassed need to define a PathFactory used to create IDs- Returns:
- a implementation of PathFactory.
 
 
- 
 
-