public class A3CMLSaxWrapper extends DefaultHandler implements A3CMLWrapper
Modifier and Type | Field and Description |
---|---|
protected A3CMLConfig |
a3cmlConfig |
(package private) String |
conf
Working attribute used during configuration's
|
(package private) String |
configName
Name of configuration to get from the file.
|
(package private) A3CMLDomain |
domain
Working attribute used during domain's definition between start and
end element.
|
(package private) String |
jvmArgs
Working attribute used during jvmArgs' definition between start and
end element.
|
(package private) A3CMLNat |
nat
Working attribute used during nat' definition between start and
end element.
|
(package private) A3CMLNetwork |
network
Working attribute used during network's definition between start and
end element.
|
(package private) A3CMLProperty |
property
Working attribute used during service's definition between start and
end element.
|
(package private) A3CMLServer |
server
Working attribute used during server's definition between start and
end element.
|
(package private) A3CMLService |
service
Working attribute used during service's definition between start and
end element.
|
Constructor and Description |
---|
A3CMLSaxWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
endDocument()
Finalizes parsing of a document.
|
void |
endElement(String uri,
String localName,
String rawName)
Receive notification of the end of an element.
|
void |
error(SAXParseException e)
Handles notification of a recoverable parser error.
|
void |
fatalError(SAXParseException e)
Handles notification of a non-recoverable parser error.
|
A3CMLConfig |
parse(Reader cfgReader,
String cfgName)
Parses the xml file named
cfgFileName and calls handler
methods. |
void |
startDocument()
Initializes parsing of a document.
|
void |
startElement(String uri,
String localName,
String rawName,
Attributes atts)
Receive notification of the start of an element.
|
void |
warning(SAXParseException e)
Handles notification of a parser warning.
|
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
protected A3CMLConfig a3cmlConfig
String configName
String conf
A3CMLDomain domain
A3CMLServer server
A3CMLNetwork network
A3CMLService service
A3CMLProperty property
String jvmArgs
A3CMLNat nat
public A3CMLConfig parse(Reader cfgReader, String cfgName) throws Exception
cfgFileName
and calls handler
methods. Calls only methode startDocument()
,
startElement
, endElement
and
endDocument
.parse
in interface A3CMLWrapper
cfgReader
- the Reader to read the configuration from.cfgName
- the name of the configurationException
- unspecialized errorpublic void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
e
- The warning information encoded as an exception.SAXException
- Any SAX exception, possibly wrapping another exception.public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
e
- The warning information encoded as an exception.SAXException
- Any SAX exception, possibly wrapping another exception.public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
e
- The warning information encoded as an exception.SAXException
- Any SAX exception, possibly wrapping another exception.public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
- unspecialized errorpublic void startElement(String uri, String localName, String rawName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- The Namespace URIlocalName
- The local namerawName
- The qualified nameatts
- The attributes attached to the element.SAXException
- unspecialized errorpublic void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
uri
- The Namespace URIlocalName
- The local namerawName
- The qualified nameSAXException
- unspecialized errorpublic void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- unspecialized errorCopyright © 2023 ScalAgent D.T.. All rights reserved.