org.apache.jackrabbit.name
Class PathParser

java.lang.Object
  extended byorg.apache.jackrabbit.name.PathParser

public final class PathParser
extends Object

JCR content path parser. Instances of this class are used to parse JCR content path strings into resolvable path instances. A path parser instance is always associated with a given session that is used to resolve namespace prefixes within the parsed paths.


Constructor Summary
PathParser(Session session)
          Creates a path parser for the given session.
 
Method Summary
 Path parsePath(String path)
          Parses the given JCR content path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathParser

public PathParser(Session session)
Creates a path parser for the given session.

Parameters:
session - current session
Method Detail

parsePath

public Path parsePath(String path)
               throws IllegalArgumentException,
                      RepositoryException
Parses the given JCR content path.

Parameters:
path - JCR content path
Returns:
path instance
Throws:
IllegalArgumentException - if the given path is invalid
RepositoryException - if another error occurs


Copyright © 2004-2005 . All Rights Reserved.