org.apache.jackrabbit.spi.commons.identifier
Class AbstractIdFactory

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.identifier.AbstractIdFactory
All Implemented Interfaces:
org.apache.jackrabbit.spi.IdFactory
Direct Known Subclasses:
IdFactoryImpl

public abstract class AbstractIdFactory
extends Object
implements org.apache.jackrabbit.spi.IdFactory

AbstractIdFactory...


Constructor Summary
AbstractIdFactory()
           
 
Method Summary
 org.apache.jackrabbit.spi.NodeId createNodeId(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Path path)
          
 org.apache.jackrabbit.spi.NodeId createNodeId(String uniqueID)
          
 org.apache.jackrabbit.spi.NodeId createNodeId(String uniqueID, org.apache.jackrabbit.spi.Path path)
          
 org.apache.jackrabbit.spi.PropertyId createPropertyId(org.apache.jackrabbit.spi.NodeId parentId, org.apache.jackrabbit.spi.Name propertyName)
          
 org.apache.jackrabbit.spi.NodeId fromJcrIdentifier(String jcrIdentifier)
           
protected abstract  org.apache.jackrabbit.spi.PathFactory getPathFactory()
          Subclassed need to define a PathFactory used to create IDs
 String toJcrIdentifier(org.apache.jackrabbit.spi.NodeId nodeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIdFactory

public AbstractIdFactory()
Method Detail

createNodeId

public org.apache.jackrabbit.spi.NodeId createNodeId(org.apache.jackrabbit.spi.NodeId parentId,
                                                     org.apache.jackrabbit.spi.Path path)

Specified by:
createNodeId in interface org.apache.jackrabbit.spi.IdFactory
See Also:
IdFactory.createNodeId(NodeId, Path)

createNodeId

public org.apache.jackrabbit.spi.NodeId createNodeId(String uniqueID,
                                                     org.apache.jackrabbit.spi.Path path)

Specified by:
createNodeId in interface org.apache.jackrabbit.spi.IdFactory
See Also:
IdFactory.createNodeId(String, Path)

createNodeId

public org.apache.jackrabbit.spi.NodeId createNodeId(String uniqueID)

Specified by:
createNodeId in interface org.apache.jackrabbit.spi.IdFactory
See Also:
IdFactory.createNodeId(String)

createPropertyId

public org.apache.jackrabbit.spi.PropertyId createPropertyId(org.apache.jackrabbit.spi.NodeId parentId,
                                                             org.apache.jackrabbit.spi.Name propertyName)

Specified by:
createPropertyId in interface org.apache.jackrabbit.spi.IdFactory
See Also:
IdFactory.createPropertyId(NodeId,Name)

toJcrIdentifier

public String toJcrIdentifier(org.apache.jackrabbit.spi.NodeId nodeId)
Specified by:
toJcrIdentifier in interface org.apache.jackrabbit.spi.IdFactory
See Also:
IdFactory.toJcrIdentifier(NodeId)

fromJcrIdentifier

public org.apache.jackrabbit.spi.NodeId fromJcrIdentifier(String jcrIdentifier)
Specified by:
fromJcrIdentifier in interface org.apache.jackrabbit.spi.IdFactory
See Also:
IdFactory.fromJcrIdentifier(String)

getPathFactory

protected abstract org.apache.jackrabbit.spi.PathFactory getPathFactory()
Subclassed need to define a PathFactory used to create IDs

Returns:
a implementation of PathFactory.


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.