public class XmlHandler extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
firstElement
Flag for detecting the first element.
|
protected boolean |
isComponent
Flag for elements inside a component element
|
protected String |
overrideNamespace
Override namespace.
|
| Constructor and Description |
|---|
XmlHandler(org.osgi.framework.Bundle bundle,
BundleLogger logger,
boolean globalObsoleteFactoryComponentFactory,
boolean globalDelayedKeepInstances) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
List<ComponentMetadata> |
getComponentMetadataList()
Called to retrieve the service descriptors
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected boolean firstElement
protected String overrideNamespace
protected boolean isComponent
public XmlHandler(org.osgi.framework.Bundle bundle,
BundleLogger logger,
boolean globalObsoleteFactoryComponentFactory,
boolean globalDelayedKeepInstances)
public List<ComponentMetadata> getComponentMetadataList()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.