|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xquery.value.SequenceType
public class SequenceType
Represents an XQuery SequenceType and provides methods to check sequences and items against this type.
| Constructor Summary | |
|---|---|
SequenceType()
|
|
SequenceType(int primaryType,
int cardinality)
Construct a new SequenceType using the specified primary type and cardinality constants. |
|
| Method Summary | |
|---|---|
void |
checkCardinality(Sequence seq)
Check if the given sequence has the cardinality required by this sequence type. |
void |
checkType(int type)
Check the given type against the primary type declared in this SequenceType. |
boolean |
checkType(Item item)
Check a single item against this SequenceType. |
boolean |
checkType(Sequence seq)
Check the specified sequence against this SequenceType. |
int |
getCardinality()
Returns the expected cardinality. |
QName |
getNodeName()
|
int |
getPrimaryType()
Returns the primary type as one of the constants defined in Type. |
void |
setCardinality(int cardinality)
|
void |
setNodeName(QName qname)
|
void |
setPrimaryType(int type)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceType()
public SequenceType(int primaryType,
int cardinality)
primaryType - cardinality - | Method Detail |
|---|
public int getPrimaryType()
Type.
public void setPrimaryType(int type)
public int getCardinality()
Cardinality.
public void setCardinality(int cardinality)
public QName getNodeName()
public void setNodeName(QName qname)
public boolean checkType(Sequence seq)
throws XPathException
seq -
XPathException
XPathExceptionpublic boolean checkType(Item item)
item -
public void checkType(int type)
throws XPathException
type -
XPathException
public void checkCardinality(Sequence seq)
throws XPathException
seq -
XPathExceptionpublic String toString()
toString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||