se.kth.cid.xml
Class XmlEventHandler
java.lang.Object
|
+--com.microstar.xml.HandlerBase
|
+--se.kth.cid.xml.XmlEventHandler
- All Implemented Interfaces:
- com.microstar.xml.XmlHandler
- public class XmlEventHandler
- extends com.microstar.xml.HandlerBase
This class handles the parse events that AElfred generates.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Mikael Nilsson
Methods inherited from class com.microstar.xml.HandlerBase |
endDocument, endExternalEntity, error, ignorableWhitespace, startDocument, startExternalEntity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlEventHandler
public XmlEventHandler(Catalog ncatalog)
- Constructs an XmlEventHandler using the given catalog.
- Parameters:
ncatalog
- the catalog to use. May be null, in which case AElfred
itself will resolve external entities.
reset
public void reset()
- Resets the handler, making it ready for a new document.
getDocument
public XmlDocument getDocument()
- Returns the parsed XML document.
Not valid before entire document has been parsed.
- Returns:
- the parsed XML document.
attribute
public void attribute(String aname,
String value,
boolean isSpecified)
throws Exception
- Overrides:
attribute
in class com.microstar.xml.HandlerBase
startElement
public void startElement(String elname)
throws Exception
- Overrides:
startElement
in class com.microstar.xml.HandlerBase
endElement
public void endElement(String elname)
throws Exception
- Overrides:
endElement
in class com.microstar.xml.HandlerBase
charData
public void charData(char[] ch,
int start,
int length)
throws Exception
- Overrides:
charData
in class com.microstar.xml.HandlerBase
doctypeDecl
public void doctypeDecl(String docType,
String pubID,
String sysID)
throws Exception
- Overrides:
doctypeDecl
in class com.microstar.xml.HandlerBase
processingInstruction
public void processingInstruction(String piName,
String piData)
throws Exception
- Overrides:
processingInstruction
in class com.microstar.xml.HandlerBase
resolveEntity
public Object resolveEntity(String publicId,
String systemId)
throws Exception
- Overrides:
resolveEntity
in class com.microstar.xml.HandlerBase
Centre for user-oriented IT -design