org.ucl.xpath
Class SeqType

java.lang.Object
  extended byorg.ucl.xpath.SeqType

public class SeqType
extends java.lang.Object

represents a Sequence types used for matching expected arguments of functions


Field Summary
static int OCC_NONE
           
static int OCC_PLUS
           
static int OCC_QMARK
           
static int OCC_STAR
           
 
Constructor Summary
SeqType(AnyType t)
           
SeqType(AnyType t, int occ)
          sequence type
SeqType(int occ)
           
SeqType(SequenceType st, StaticContext sc)
           
 
Method Summary
 ResultSequence match(ResultSequence args)
          matches args
 int occurence()
           
 AnyType type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OCC_NONE

public static final int OCC_NONE
See Also:
Constant Field Values

OCC_STAR

public static final int OCC_STAR
See Also:
Constant Field Values

OCC_PLUS

public static final int OCC_PLUS
See Also:
Constant Field Values

OCC_QMARK

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

SeqType

public SeqType(AnyType t,
               int occ)
sequence type

Parameters:
t - is any type
occ - is an integer in the sequence.

SeqType

public SeqType(int occ)
Parameters:
occ - is an integer in the sequence.

SeqType

public SeqType(SequenceType st,
               StaticContext sc)
Parameters:
st - is a sequence type.
sc - is a static context.

SeqType

public SeqType(AnyType t)
Parameters:
t - is an any type.
Method Detail

occurence

public int occurence()
Returns:
an integer.

type

public AnyType type()
Returns:
a type.

match

public ResultSequence match(ResultSequence args)
                     throws DynamicError
matches args

Parameters:
args - is a result sequence
Returns:
a result sequence
Throws:
a - dynamic error
DynamicError