edu.berkeley.cs.db.yfilterplus.xmltree
Class ParsingContext

java.lang.Object
  |
  +--edu.berkeley.cs.db.yfilterplus.xmltree.ParsingContext
All Implemented Interfaces:
java.io.Serializable

public class ParsingContext
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ParsingContext()
           
ParsingContext(java.lang.String eleName)
           
ParsingContext(java.lang.String eleName, int id)
           
ParsingContext(java.lang.String eleName, int id, java.util.HashMap attrs, int position)
           
ParsingContext(java.lang.String eleName, int id, java.util.HashMap attrs, int position, java.lang.String data)
           
ParsingContext(java.lang.String eleName, int id, int parentId, java.util.HashMap attrs, int position)
           
ParsingContext(java.lang.String eleName, int id, int parentId, java.util.HashMap attrs, java.lang.String[] orderedAttrNames, int position)
           
 
Method Summary
 void addChild(ParsingContext c)
           
 void appendElementData(java.lang.String textNode)
           
 int compareTo(ParsingContext c)
           
 java.util.Map getAttributes()
           
 java.lang.String getAttributeValue(java.lang.String attrName)
           
 int getChildPosition(java.lang.String childName)
           
 java.util.LinkedList getChildren()
           
 java.lang.String getChildTextData()
           
 java.lang.String getElementData()
          this function returns the string-value of an element (see XPath 1.0 Sec 5.2) TODO: this function is not the right one for serialization
 java.lang.String getElementName()
           
 int getEventId()
           
 int getParentId()
           
 int getPosition()
           
 short getPositionShort()
           
 boolean hasElementData()
           
 boolean isDummy()
           
 boolean isEndElement()
           
 void print()
           
 void printToFile(java.io.PrintWriter pw)
           
 boolean textDataEquals(java.lang.String target)
           
 java.lang.String toString()
           
 java.lang.String toXMLString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsingContext

public ParsingContext()

ParsingContext

public ParsingContext(java.lang.String eleName)

ParsingContext

public ParsingContext(java.lang.String eleName,
                      int id)

ParsingContext

public ParsingContext(java.lang.String eleName,
                      int id,
                      java.util.HashMap attrs,
                      int position)

ParsingContext

public ParsingContext(java.lang.String eleName,
                      int id,
                      int parentId,
                      java.util.HashMap attrs,
                      int position)

ParsingContext

public ParsingContext(java.lang.String eleName,
                      int id,
                      int parentId,
                      java.util.HashMap attrs,
                      java.lang.String[] orderedAttrNames,
                      int position)

ParsingContext

public ParsingContext(java.lang.String eleName,
                      int id,
                      java.util.HashMap attrs,
                      int position,
                      java.lang.String data)
Method Detail

isDummy

public boolean isDummy()

isEndElement

public boolean isEndElement()

compareTo

public int compareTo(ParsingContext c)

appendElementData

public void appendElementData(java.lang.String textNode)

addChild

public void addChild(ParsingContext c)

getChildPosition

public int getChildPosition(java.lang.String childName)

getChildren

public java.util.LinkedList getChildren()

getPosition

public int getPosition()

getPositionShort

public short getPositionShort()

getElementName

public java.lang.String getElementName()

getAttributes

public java.util.Map getAttributes()

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attrName)

getElementData

public java.lang.String getElementData()
this function returns the string-value of an element (see XPath 1.0 Sec 5.2) TODO: this function is not the right one for serialization


getChildTextData

public java.lang.String getChildTextData()

getEventId

public int getEventId()

getParentId

public int getParentId()

hasElementData

public boolean hasElementData()

textDataEquals

public boolean textDataEquals(java.lang.String target)

printToFile

public void printToFile(java.io.PrintWriter pw)

print

public void print()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXMLString

public java.lang.String toXMLString()