MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel.xdm
Class Token

java.lang.Object
  extended by 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


Field Summary
static Token END_SEQUENCE_TOKEN
           
static int MASK_CLEAN_START_TAG
           
static int MASK_GET_START_TAG
           
static Token START_SEQUENCE_TOKEN
           
 
Constructor Summary
Token(int eventType, Identifier id, XDMScope dynScope)
           
Token(Token token)
          Copy Constructor
 
Method Summary
static int compare(Token t0, Token t1)
           
static int compare(Token comp1, Token comp2, int type1, int type2)
           
 int compareTo(Token o)
           
 Token copy()
           
 boolean equals(java.lang.Object o)
           
 boolean equals(Token o)
           
 MXQueryBinary getBinary()
           
 boolean getBoolean()
           
 MXQueryDate getDate()
           
 MXQueryDateTime getDateTime()
           
 MXQueryDayTimeDuration getDayTimeDur()
           
 MXQueryDouble getDouble()
           
 MXQueryDuration getDuration()
           
 XDMScope getDynamicScope()
           
 int getEventType()
           
 MXQueryFloat getFloat()
           
 MXQueryGregorian getGregorian()
           
 Identifier getId()
           
 java.lang.String getLocal()
           
 long getLong()
           
 java.lang.String getName()
           
 java.lang.String getNS()
           
 MXQueryNumber getNumber()
           
 QName getQNameTokenValue()
           
 java.lang.String getSchemaNormalizedValue()
           
 java.lang.String getText()
           
 MXQueryTime getTime()
           
 int getTypeAnnotation()
           
 java.lang.String getValueAsString()
           
 MXQueryYearMonthDuration getYearMonthDur()
           
 int hashCode()
           
 boolean isAttribute()
           
 void setDynamicScope(XDMScope ns)
           
 void setEventType(int eventType)
           
 void setId(Identifier id)
           
 void setNS(java.lang.String name)
           
 void setSchemaNormalizedValue(java.lang.String schemaNormalizedValue)
           
 Token toAttrToken(QName name, XDMScope scope)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Token

public Token(int eventType,
             Identifier id,
             XDMScope dynScope)

Token

public Token(Token token)
Copy Constructor

Parameters:
token -
Method Detail

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

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich