ch.ethz.mxquery.datamodel.xdm
Class Token
java.lang.Object
ch.ethz.mxquery.datamodel.xdm.Token
- Direct Known Subclasses:
- BinaryToken, BooleanToken, CommentToken, DateTimeToken, DateToken, DayTimeDurToken, DecimalToken, DoubleToken, DurationToken, FloatToken, GregorianToken, LongToken, NamedToken, ProcessingInstrToken, QNameToken, TextToken, TimeToken, YearMonthDurToken
public class Token
- extends java.lang.Object
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
END_SEQUENCE_TOKEN
public static final Token END_SEQUENCE_TOKEN
START_SEQUENCE_TOKEN
public static final Token START_SEQUENCE_TOKEN
MASK_GET_START_TAG
public static final int MASK_GET_START_TAG
MASK_CLEAN_START_TAG
public static final int MASK_CLEAN_START_TAG
Token
public Token(int eventType,
Identifier id,
XDMScope dynScope)
Token
public Token(Token token)
- Copy Constructor
- Parameters:
token
-
isAttribute
public boolean isAttribute()
getSchemaNormalizedValue
public java.lang.String getSchemaNormalizedValue()
setSchemaNormalizedValue
public void setSchemaNormalizedValue(java.lang.String schemaNormalizedValue)
setEventType
public void setEventType(int eventType)
getTypeAnnotation
public int getTypeAnnotation()
getQNameTokenValue
public QName getQNameTokenValue()
setNS
public void setNS(java.lang.String name)
getName
public java.lang.String getName()
getNS
public java.lang.String getNS()
getLocal
public java.lang.String getLocal()
setId
public void setId(Identifier id)
getId
public Identifier getId()
getEventType
public int getEventType()
getBoolean
public boolean getBoolean()
getDate
public MXQueryDate getDate()
getTime
public MXQueryTime getTime()
getDateTime
public MXQueryDateTime getDateTime()
getDuration
public MXQueryDuration getDuration()
getYearMonthDur
public MXQueryYearMonthDuration getYearMonthDur()
getDayTimeDur
public MXQueryDayTimeDuration getDayTimeDur()
getDouble
public MXQueryDouble getDouble()
getFloat
public MXQueryFloat getFloat()
getGregorian
public MXQueryGregorian getGregorian()
getBinary
public MXQueryBinary getBinary()
getNumber
public MXQueryNumber getNumber()
getLong
public long getLong()
getText
public java.lang.String getText()
getValueAsString
public java.lang.String getValueAsString()
toAttrToken
public Token toAttrToken(QName name,
XDMScope scope)
throws MXQueryException
- Throws:
MXQueryException
setDynamicScope
public void setDynamicScope(XDMScope ns)
getDynamicScope
public XDMScope getDynamicScope()
compare
public static int compare(Token t0,
Token t1)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(Token o)
throws MXQueryException
- Throws:
MXQueryException
compareTo
public int compareTo(Token o)
throws MXQueryException
- Throws:
MXQueryException
compare
public static int compare(Token comp1,
Token comp2,
int type1,
int type2)
throws MXQueryException
- Throws:
MXQueryException
copy
public Token copy()
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich