Package repast.simphony.integration
Class MessageCenterHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
repast.simphony.integration.MessageCenterHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
A handler for XML parsing errors that forwards the errors on to the MessageCenter.
- Author:
- Jerry Vos
-
Constructor Summary
ConstructorDescriptionConstructs a default MessageCenterHandler.MessageCenterHandler
(String fileName) Constructs a MessageCenterHandler that will include the specified file name in the messages it outputs. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
MessageCenterHandler
public MessageCenterHandler()Constructs a default MessageCenterHandler. This will not include a file name in its messages. -
MessageCenterHandler
Constructs a MessageCenterHandler that will include the specified file name in the messages it outputs.- Parameters:
fileName
- the name of the file this handler is working on, to be included in any messages output
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- Throws:
SAXException
-