com.thaiopensource.validate.nrl
Class Path

java.lang.Object
  extended by com.thaiopensource.validate.nrl.Path

 class Path
extends Object


Nested Class Summary
(package private) static class Path.ParseException
           
 
Field Summary
private static int AFTER_NAME
           
private static int AFTER_SLASH
           
private static int IN_NAME
           
private  Vector names
           
private  boolean root
           
private static int START
           
 
Constructor Summary
Path(boolean root, Vector names)
           
 
Method Summary
(package private)  Vector getNames()
           
(package private)  boolean isRoot()
           
static void main(String[] args)
           
private static String makeName(String str, int start, int end)
           
(package private) static Vector parse(String str)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

root

private final boolean root

names

private final Vector names

START

private static final int START
See Also:
Constant Field Values

IN_NAME

private static final int IN_NAME
See Also:
Constant Field Values

AFTER_NAME

private static final int AFTER_NAME
See Also:
Constant Field Values

AFTER_SLASH

private static final int AFTER_SLASH
See Also:
Constant Field Values
Constructor Detail

Path

Path(boolean root,
     Vector names)
Method Detail

isRoot

boolean isRoot()

getNames

Vector getNames()

toString

public String toString()
Overrides:
toString in class Object

parse

static Vector parse(String str)
             throws Path.ParseException
Throws:
Path.ParseException

makeName

private static String makeName(String str,
                               int start,
                               int end)
                        throws Path.ParseException
Throws:
Path.ParseException

main

public static void main(String[] args)
                 throws Path.ParseException
Throws:
Path.ParseException