ModeShape Distribution 3.5.0.Final

org.modeshape.jcr
Class Connectors.PathMapping

java.lang.Object
  extended by org.modeshape.jcr.Connectors.PathMapping
Enclosing class:
Connectors

protected static final class Connectors.PathMapping
extends Object


Constructor Summary
protected Connectors.PathMapping(Path externalPath, Path internalPath, String workspaceName)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 WorkspaceAndPath resolveExternalPathToInternal(Path externalPath, PathFactory pathFactory)
          Attempt to resolve the supplied external path to an internal path.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connectors.PathMapping

protected Connectors.PathMapping(Path externalPath,
                                 Path internalPath,
                                 String workspaceName)
Method Detail

resolveExternalPathToInternal

public WorkspaceAndPath resolveExternalPathToInternal(Path externalPath,
                                                      PathFactory pathFactory)
Attempt to resolve the supplied external path to an internal path. This method returns null if this mapping is not applicable for the given external path.

Parameters:
externalPath - the external path of a node in the tree of content exposed by the connector; this path is from the point of view of the connector.
pathFactory - the path factory; may not be null
Returns:
the resolved repository path in a given workspace, or null if this mapping did not apply to the supplied external path

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

ModeShape Distribution 3.5.0.Final

Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.