edu.uky.rch.ept.data.filesystem.cxpath
Class Axis

java.lang.Object
  extended byedu.uky.rch.ept.data.filesystem.cxpath.Axis

public final class Axis
extends Object

An XPath axis. Uses the typesafe enum pattern.

Author:
neil

Field Summary
static Axis ANCESTOR
           
static Axis ANCESTOR_OR_SELF
           
static Axis ATTRIBUTE
           
static Axis CHILD
           
static Axis DESCENDANT
           
static Axis DESCENDANT_OR_SELF
           
static Axis FOLLOWING
           
static Axis FOLLOWING_SIBLING
           
static Axis INTERSECTING
           
static Axis NAMESPACE
           
static Axis OVERLAPPING
           
static Axis PARENT
           
static Axis PRECEDING
           
static Axis PRECEDING_SIBLING
           
 
Method Summary
static Axis byName(String name)
          Return the Axis object with the specified name.
 String getName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHILD

public static final Axis CHILD

PARENT

public static final Axis PARENT

DESCENDANT

public static final Axis DESCENDANT

DESCENDANT_OR_SELF

public static final Axis DESCENDANT_OR_SELF

ANCESTOR

public static final Axis ANCESTOR

ANCESTOR_OR_SELF

public static final Axis ANCESTOR_OR_SELF

OVERLAPPING

public static final Axis OVERLAPPING

INTERSECTING

public static final Axis INTERSECTING

FOLLOWING

public static final Axis FOLLOWING

FOLLOWING_SIBLING

public static final Axis FOLLOWING_SIBLING

PRECEDING

public static final Axis PRECEDING

PRECEDING_SIBLING

public static final Axis PRECEDING_SIBLING

ATTRIBUTE

public static final Axis ATTRIBUTE

NAMESPACE

public static final Axis NAMESPACE
Method Detail

getName

public String getName()

toString

public String toString()

byName

public static Axis byName(String name)
                   throws InvalidAxisException
Return the Axis object with the specified name.

Parameters:
name - the name of the axis.
Returns:
an Axis object.
Throws:
InvalidAxisException - if there is no axis with the given name.