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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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()