MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.update.store.llImpl
Class LLToken

java.lang.Object
  extended by ch.ethz.mxquery.update.store.llImpl.LLToken
Direct Known Subclasses:
LLEndToken, LLNormalToken, LLRefToken, LLStartToken

public abstract class LLToken
extends java.lang.Object

Baseclass of the elements that a token list resp. an XML store can contain.


Constructor Summary
LLToken()
          Constructor for SimpleStartToken and SimpleEndToken
LLToken(Token token)
           
 
Method Summary
abstract  LLToken copy()
           
 void deleteMe()
          Deletes this token from the List (if this token is really in the List)
 int getDepth()
           
 LLToken getEndEl()
          Returns End Token of this token.
 Identifier getId()
           
 java.lang.String getLocal()
           
 java.lang.String getName()
           
 LLToken getNext()
          During getNext must be checked if tokens must be materialized.
 java.lang.String getNS()
           
 LLToken getParent()
           
 LLToken getPrev()
           
static LLToken getSibling(LLToken st)
           
 java.lang.String getValueAsString()
           
 void insertAfter(LLToken token)
          Inserts the passed token after this into the token list.
 void insertAfter(TokenList tokenList)
          Inserts the elements of the passed token list after this into the token list.
 void insertBefore(LLToken token)
          Inserts the passed token before this into the token list.
 void insertBefore(TokenList tokenList)
          Inserts the passed token list before this into the token list.
 boolean isAttribute()
           
 void setDepth(int depth)
           
 void setEndEl(LLToken end)
           
 void setName(QName newName)
           
abstract  void setNext(LLToken next)
           
 void setParent(LLToken parent)
           
abstract  void setPrev(LLToken prev)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LLToken

public LLToken(Token token)

LLToken

public LLToken()
Constructor for SimpleStartToken and SimpleEndToken

Method Detail

getPrev

public final LLToken getPrev()

setPrev

public abstract void setPrev(LLToken prev)

getNext

public final LLToken getNext()
                      throws MXQueryException
During getNext must be checked if tokens must be materialized.

Returns:
the next token
Throws:
MXQueryException

setNext

public abstract void setNext(LLToken next)

setParent

public void setParent(LLToken parent)

getParent

public LLToken getParent()

setEndEl

public void setEndEl(LLToken end)

getEndEl

public LLToken getEndEl()
                 throws MXQueryException
Returns End Token of this token.
If the End Token is a lazy token => materializes the next token till the End Token is not a lazy element anymore.

Returns:
the end token of this (element) token
Throws:
MXQueryException

getId

public Identifier getId()

isAttribute

public boolean isAttribute()

getDepth

public int getDepth()

setDepth

public void setDepth(int depth)

getValueAsString

public java.lang.String getValueAsString()
                                  throws MXQueryException
Throws:
MXQueryException

getName

public java.lang.String getName()

getNS

public java.lang.String getNS()

getLocal

public java.lang.String getLocal()

setName

public void setName(QName newName)
             throws MXQueryException
Throws:
MXQueryException

insertAfter

public void insertAfter(LLToken token)
                 throws MXQueryException
Inserts the passed token after this into the token list.

Parameters:
token -
Throws:
MXQueryException

insertAfter

public void insertAfter(TokenList tokenList)
                 throws MXQueryException
Inserts the elements of the passed token list after this into the token list.

Parameters:
tokenList -
Throws:
MXQueryException

insertBefore

public void insertBefore(LLToken token)
Inserts the passed token before this into the token list.

Parameters:
token -

insertBefore

public void insertBefore(TokenList tokenList)
                  throws MXQueryException
Inserts the passed token list before this into the token list.

Parameters:
tokenList -
Throws:
MXQueryException

deleteMe

public void deleteMe()
              throws MXQueryException
Deletes this token from the List (if this token is really in the List)

Throws:
MXQueryException

getSibling

public static LLToken getSibling(LLToken st)
                          throws MXQueryException
Throws:
MXQueryException

copy

public abstract LLToken copy()
                      throws MXQueryException
Throws:
MXQueryException

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich