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
ConstructorsConstructorDescriptionConstructs 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 TypeMethodDescriptionvoidvoidvoidMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDeclMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classDefaultHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classDefaultHandler- Throws:
SAXException
-