siena.xml.xpath
Class Predicate
java.lang.Object
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.
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 |
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
Predicate
protected Predicate(int type)
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.
Copyright © 2000-2002 University of Colorado.
This documentation is maintained by Antonio Carzaniga