| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nodal.nav.Paths
Top level class for creating and managing Path instances. The only public methods here should be static factory methods.
| Method Summary | |
static PathOperator | 
createDirElementOp(java.lang.String str)
Create a PathOperator that selects a Document within a Directory.  | 
static PathOperator | 
createOp(java.lang.String name)
Create a PathOperator by name.  | 
static PathOperator | 
createOp(java.lang.String name,
         java.lang.String[] args)
Create a PathOperator by name and arguments.  | 
static PathOperator | 
createPropertyOp(java.lang.Object prop)
Create a "property" PathOperator that selects a property of the parent.  | 
static PathOperator | 
createRangeOp(int start,
              int end)
Create a "range" PathOperator with the given start and end values.  | 
static Path | 
directPath(Node node,
           Path docPath,
           Name nid)
Create a direct, bound Path to a given Node.  | 
static java.lang.String | 
encodeURLComponent(java.lang.String s)
Encode a URL component as a String.  | 
static Path | 
parse(java.lang.String s)
Parse a URL string to produce an interpreted Path.  | 
static Path | 
parseURI(java.net.URI uri)
Parse a URI to produce an interpreted Path.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public static Path directPath(Node node,
                              Path docPath,
                              Name nid)
node - a Node that we are creating the direct Path fordocPath - a Path to a document that provides a naming contextnid - the Name of the Node within this context
public static java.lang.String encodeURLComponent(java.lang.String s)
s - the unencoded string
public static Path parse(java.lang.String s)
                  throws Path.Failure
s - the URL string
Path.Failure - if this string produces an invalid Path
public static Path parseURI(java.net.URI uri)
                     throws Path.Failure
uri - the URI of the resource
Path.Failure - if this URI produces an invalid Path
public static PathOperator createOp(java.lang.String name)
                             throws Path.Failure
Path.Failure
public static PathOperator createOp(java.lang.String name,
                                    java.lang.String[] args)
                             throws Path.Failure
Path.Failurepublic static PathOperator createPropertyOp(java.lang.Object prop)
public static PathOperator createDirElementOp(java.lang.String str)
public static PathOperator createRangeOp(int start,
                                         int end)
start - the start index of the rangeend - the end index of the range
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||