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 java.lang.Object implements IdFactory
AbstractIdFactory... 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractIdFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeIdcreateNodeId(java.lang.String uniqueID)Creates a newNodeIdfrom the given unique id.NodeIdcreateNodeId(java.lang.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(java.lang.String jcrIdentifier)Create a newNodeIdfrom the given JCR string representation.java.lang.StringtoJcrIdentifier(NodeId nodeId)Returns the JCR string representation of the givennodeId. 
 - 
 
- 
- 
Method Detail
- 
createNodeId
public NodeId createNodeId(NodeId parentId, Path path)
Creates a newNodeIdfrom the given parent id and the givenPathobject.- Specified by:
 createNodeIdin interfaceIdFactory- Returns:
 - a new 
NodeId. - See Also:
 IdFactory.createNodeId(NodeId, Path)
 
- 
createNodeId
public NodeId createNodeId(java.lang.String uniqueID, Path path)
Creates a newNodeIdfrom the given unique id (which identifies an ancestorNode) and the givenPathobject.- Specified by:
 createNodeIdin interfaceIdFactory- Returns:
 - a new 
NodeId. - See Also:
 IdFactory.createNodeId(String, Path)
 
- 
createNodeId
public NodeId createNodeId(java.lang.String uniqueID)
Creates a newNodeIdfrom the given unique id.- Specified by:
 createNodeIdin interfaceIdFactory- Returns:
 - a new 
NodeId. - See Also:
 IdFactory.createNodeId(String)
 
- 
createPropertyId
public PropertyId createPropertyId(NodeId parentId, Name propertyName)
Creates a newPropertyIdfrom the given parent id and property name.- Specified by:
 createPropertyIdin interfaceIdFactory- Returns:
 - a new 
PropertyId. - See Also:
 IdFactory.createPropertyId(NodeId,Name)
 
- 
toJcrIdentifier
public java.lang.String toJcrIdentifier(NodeId nodeId)
Description copied from interface:IdFactoryReturns the JCR string representation of the givennodeId.- Specified by:
 toJcrIdentifierin interfaceIdFactory- Returns:
 - a JCR node identifier string.
 - See Also:
 IdFactory.toJcrIdentifier(NodeId)
 
- 
fromJcrIdentifier
public NodeId fromJcrIdentifier(java.lang.String jcrIdentifier)
Description copied from interface:IdFactoryCreate a newNodeIdfrom the given JCR string representation.- Specified by:
 fromJcrIdentifierin interfaceIdFactory- Returns:
 - a new 
NodeId. - See Also:
 IdFactory.fromJcrIdentifier(String)
 
 - 
 
 -