public class ComponentConfigurationParser extends DefaultHandler implements Serializable
| Constructor and Description |
|---|
ComponentConfigurationParser(String[] keys) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Process the character data for current tag.
|
void |
endDocument()
End of document processing.
|
void |
endElement(String uri,
String localName,
String qName)
Process the end element tag.
|
ComponentConfiguration |
getComponentConfiguration() |
static void |
main(String[] args) |
static ComponentConfigurationParser |
parse(String uriString,
String[] keys) |
static ComponentConfigurationParser |
parseFromString(String xmlData,
String[] keys) |
void |
startDocument()
Start of document processing.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Process the new element.
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic ComponentConfigurationParser(String[] keys)
public ComponentConfiguration getComponentConfiguration()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - is any SAX exception,
possibly wrapping another exception.public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - is any SAX exception,
possibly wrapping another exception.public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - is the Namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is not being performed.localName - is the The local name (without prefix), or the empty
string if Namespace processing is not being performed.qName - is the qualified name (with prefix), or the empty string
if qualified names are not available.attributes - is the attributes attached to the element. If there
are no attributes, it shall be an empty Attributes object.SAXException - is any SAX exception,
possibly wrapping another exception.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - are the element's characters.start - is the start position in the character array.length - is the number of characters to use from the
character array.SAXException - is any SAX exception,
possibly wrapping another exception.public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandleruri - is the Namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is not being performed.localName - is the The local name (without prefix), or the empty
string if Namespace processing is not being performed.qName - is the qualified name (with prefix), or the empty
string if qualified names are not available.SAXException - is any SAX exception,
possibly wrapping another exception.public static ComponentConfigurationParser parse(String uriString, String[] keys) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
uriString - keys - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static ComponentConfigurationParser parseFromString(String xmlData, String[] keys) throws MalformedURLException, ParserConfigurationException, SAXException, URISyntaxException, IOException
xmlData - keys - MalformedURLExceptionParserConfigurationExceptionSAXExceptionURISyntaxExceptionIOExceptionpublic static void main(String[] args)
args - Copyright © 2011-2016 OpenESB Community. All Rights Reserved.