|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.pannenleiter.util.FragmentParser
FragmentParser -- parses a document fragment
| Field Summary | |
protected int |
addChilds
|
protected int |
addId
|
protected int |
addVersion
|
protected int |
attrOffset
|
protected int |
count
|
protected java.lang.String |
currentId
|
protected java.lang.String |
currentVersion
|
protected QueryFilter |
filter
|
protected int |
id
|
protected java.lang.String |
idText
|
protected XmlParser |
parser
|
protected int |
skip
|
protected org.xml.sax.helpers.AttributeListImpl |
theAttributeList
|
protected org.xml.sax.DocumentHandler |
theDocumentHandler
|
| Constructor Summary | |
FragmentParser()
|
|
| Method Summary | |
void |
attribute(java.lang.String aname,
java.lang.String value,
boolean isSpecified)
Handle an attribute assignment. |
void |
charData(char[] ch,
int start,
int length)
Handle character data. |
void |
comment(char[] ch,
int start,
int length)
|
void |
doctypeDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Handle a document type declaration. |
void |
endCDATA()
|
void |
endDoctype()
|
void |
endDocument()
Handle the end of the document. |
void |
endElement(java.lang.String element)
Handle the end of an element. |
void |
endExternalEntity(java.lang.String systemId)
Handle the end of an external entity. |
void |
error(java.lang.String message,
java.lang.String systemId,
int line,
int column)
Throw an exception for a fatal error. |
int |
getLength()
Return the number of attributes in this list. |
java.lang.String |
getName(int pos)
Return the name of an attribute in this list (by position). |
java.lang.String |
getType(int pos)
Return the type of an attribute in this list (by position). |
java.lang.String |
getType(java.lang.String name)
Return the type of an attribute in this list (by name). |
java.lang.String |
getValue(int pos)
Return the value of an attribute in this list (by position). |
java.lang.String |
getValue(java.lang.String name)
Return the value of an attribute in this list (by name). |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Handle ignorable whitespace. |
void |
parse(org.xml.sax.InputSource source)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Handle a processing instruction. |
java.lang.Object |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve an external entity. |
void |
setDbid(int id,
int version)
|
void |
setDocumentHandler(org.xml.sax.DocumentHandler handler)
|
void |
setFilter(QueryFilter filter)
|
void |
startCDATA()
|
void |
startDocument()
Handle the start of the document. |
void |
startElement(java.lang.String element)
Handle the start of an element. |
void |
startExternalEntity(java.lang.String systemId)
Handle the start of an external entity. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected org.xml.sax.DocumentHandler theDocumentHandler
protected org.xml.sax.helpers.AttributeListImpl theAttributeList
protected int id
protected java.lang.String idText
protected int addId
protected int addVersion
protected int addChilds
protected int attrOffset
protected java.lang.String currentId
protected java.lang.String currentVersion
protected int count
protected int skip
protected QueryFilter filter
protected XmlParser parser
| Constructor Detail |
public FragmentParser()
| Method Detail |
public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
public void setDbid(int id,
int version)
public void setFilter(QueryFilter filter)
public void parse(org.xml.sax.InputSource source)
throws org.xml.sax.SAXException,
java.io.IOException
public int getLength()
public java.lang.String getName(int pos)
public java.lang.String getType(int pos)
public java.lang.String getType(java.lang.String name)
public java.lang.String getValue(int pos)
public java.lang.String getValue(java.lang.String name)
public void startDocument()
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#startDocument
public void endDocument()
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#endDocument
public java.lang.Object resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
The default implementation simply returns the supplied system identifier.
com.microstar.xml.XmlHandler#resolveEntity
public void startExternalEntity(java.lang.String systemId)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#startExternalEntity
public void endExternalEntity(java.lang.String systemId)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#endExternalEntity
public void doctypeDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#doctypeDecl
public void attribute(java.lang.String aname,
java.lang.String value,
boolean isSpecified)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#attribute
public void startElement(java.lang.String element)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#startElement
public void endElement(java.lang.String element)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#endElement
public void charData(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#charData
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#ignorableWhitespace
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
The default implementation does nothing.
com.microstar.xml.XmlHandler#processingInstruction
public void error(java.lang.String message,
java.lang.String systemId,
int line,
int column)
throws org.xml.sax.SAXException
The default implementation throws XmlException.
com.microstar.xml.XmlHandler#error
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
public void startCDATA()
throws org.xml.sax.SAXException
public void endCDATA()
throws org.xml.sax.SAXException
public void endDoctype()
throws org.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||