SienaXML (v.2.0.0) API documentation

siena.xml.xpath
Class Predicate

java.lang.Object
  extended by siena.xml.xpath.Predicate
Direct Known Subclasses:
ComparisonPredicate, CompoundPredicate, EqualityPredicate, FunctionPredicate, PositionPredicate

public class Predicate
extends java.lang.Object

Abstract class that also acts as a factory for predicates.


Field Summary
static int COMPARE
           
static int COMPOUND
           
static int EQUALITY
           
static int FUNCTION
           
static int POSITION
           
 
Constructor Summary
protected Predicate(int type)
           
 
Method Summary
static Predicate buildPredicate(java.lang.String data)
          Given a string this method will construct a new predicate object based on the contents of the string.
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values

EQUALITY

public static final int EQUALITY
See Also:
Constant Field Values

POSITION

public static final int POSITION
See Also:
Constant Field Values

COMPOUND

public static final int COMPOUND
See Also:
Constant Field Values

COMPARE

public static final int COMPARE
See Also:
Constant Field Values
Constructor Detail

Predicate

protected Predicate(int type)
Method Detail

getType

public int getType()

buildPredicate

public static Predicate buildPredicate(java.lang.String data)
Given a string this method will construct a new predicate object based on the contents of the string. Note that the braces '[' nad ']' must also be included in the string.

Parameters:
data - String containing the predicate from the XPath statement.
Returns:
New Predicate object that represents the predicate passed in as a string.

SienaXML (v.2.0.0) API documentation

Copyright © 2000-2002 University of Colorado.
This documentation is maintained by Antonio Carzaniga