|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.opends.testqa.monitoringclient.ConfigHandler
public class ConfigHandler
Parse a XML config file.
| Constructor Summary | |
|---|---|
ConfigHandler(MonitoringClient client,
java.util.Properties parsedArguments)
The constructor of the handler. |
|
| Method Summary | |
|---|---|
void |
endDocument()
At the end of the file, set the configuration of the client. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Verify the syntax of the XML file. |
void |
error(org.xml.sax.SAXParseException e)
Display an error an exit the application. |
void |
fatalError(org.xml.sax.SAXParseException e)
Display a fatal error an exit the application. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Set the document locator to display information about the line or column number of the error. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
If an element is open, set the parameters of the client or add an attribute to monitor. |
void |
warning(org.xml.sax.SAXParseException e)
Display a warning. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigHandler(MonitoringClient client,
java.util.Properties parsedArguments)
client - The main class of the clientparsedArguments - The parsed arguments| Method Detail |
|---|
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerlocator - The locator used for display informations about the line and
the column number of the error.
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - The Namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is not being performed.localName - The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - The qualified name (with prefix), or the empty string if
qualified names are not available.attributes - The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping
another exception.
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - The Namespace URI, or the empty string if the element has
no Namespace URI or if Namespace processing is not being performed.localName - The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName - The qualified name (with prefix), or the empty string if
qualified names are not available.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping
another exception.
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - Any SAX exception, possibly wrapping
another exception.
public void warning(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlere - Any SAX exception, possibly wrapping another exception.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping
another exception.
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlere - The warning information encoded as an exception.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping
another exception.
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlere - The warning information encoded as an exception.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping
another exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||