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, warning
protected 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 ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.