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

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

public class LocationStep
extends Object

A concurrent XPath location step. Consists of an axis, a node test, and a predicate.

Author:
neil

Constructor Summary
LocationStep(Axis axis, String nodeTest, String[] predicates)
          Create a new location step with the given axis, node test, and predicate.
 
Method Summary
 String asCXPath()
          Get the concurrent XPath representaton of this location step.
 Axis getAxis()
          Get the axis for this location step.
 String getNodeTest()
          Get the node test for this location step.
 List getPredicates()
          Get the predicates for this location step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationStep

public LocationStep(Axis axis,
                    String nodeTest,
                    String[] predicates)
Create a new location step with the given axis, node test, and predicate.

Parameters:
axis - the axis.
nodeTest - the node test, as a string.
predicates - the predicates as strings.
Method Detail

getAxis

public Axis getAxis()
Get the axis for this location step.

Returns:
Returns the axis.

getNodeTest

public String getNodeTest()
Get the node test for this location step.

Returns:
Returns the node test string.

getPredicates

public List getPredicates()
Get the predicates for this location step.

Returns:
Returns a list of strings expressing the predicates.

asCXPath

public String asCXPath()
Get the concurrent XPath representaton of this location step.

Returns:
Returns a string expressing this location step as CXML.