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

java.lang.Object
  extended by 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 Summary
AbstractIdFactory()
           
 
Method Summary
 NodeId createNodeId(NodeId parentId, Path path)
          
 NodeId createNodeId(String uniqueID)
          
 NodeId createNodeId(String uniqueID, Path path)
          
 PropertyId createPropertyId(NodeId parentId, Name propertyName)
          
 NodeId fromJcrIdentifier(String jcrIdentifier)
           
protected abstract  PathFactory getPathFactory()
          Subclassed need to define a PathFactory used to create IDs
 String toJcrIdentifier(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 NodeId createNodeId(NodeId parentId,
                           Path path)

Specified by:
createNodeId in interface IdFactory
See Also:
IdFactory.createNodeId(NodeId, Path)

createNodeId

public NodeId createNodeId(String uniqueID,
                           Path path)

Specified by:
createNodeId in interface IdFactory
See Also:
IdFactory.createNodeId(String, Path)

createNodeId

public NodeId createNodeId(String uniqueID)

Specified by:
createNodeId in interface IdFactory
See Also:
IdFactory.createNodeId(String)

createPropertyId

public PropertyId createPropertyId(NodeId parentId,
                                   Name propertyName)

Specified by:
createPropertyId in interface IdFactory
See Also:
IdFactory.createPropertyId(NodeId,Name)

toJcrIdentifier

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

fromJcrIdentifier

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

getPathFactory

protected abstract PathFactory getPathFactory()
Subclassed need to define a PathFactory used to create IDs

Returns:
a implementation of PathFactory.


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