Package org.apache.ivy.osgi.obr.xml
Class OBRXMLParser.ResourceHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.ivy.osgi.util.DelegatingHandler
-
- org.apache.ivy.osgi.obr.xml.OBRXMLParser.ResourceHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
- Enclosing class:
- OBRXMLParser
static class OBRXMLParser.ResourceHandler extends DelegatingHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ivy.osgi.util.DelegatingHandler
DelegatingHandler.ChildElementHandler<DH extends DelegatingHandler>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BundleInfobundleInfoprivate static java.lang.StringDEFAULT_VERSION(package private) static java.lang.StringID(package private) static java.lang.StringPRESENTATION_NAME(package private) static java.lang.StringRESOURCE(package private) static java.lang.StringSYMBOLIC_NAME(package private) static java.lang.StringURI(package private) static java.lang.StringVERSION
-
Constructor Summary
Constructors Constructor Description ResourceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetCurrentElementIdentifier()Return an sort of identifier of the current element being parsed.protected voidhandleAttributes(org.xml.sax.Attributes atts)Called when the expected node is achieved; nothing to do by default.-
Methods inherited from class org.apache.ivy.osgi.util.DelegatingHandler
addChild, characters, doCharacters, doEndDocument, doEndElement, doEndPrefixMapping, doError, doFatalError, doIgnorableWhitespace, doNotationDecl, doProcessingInstruction, doSkippedEntity, doStartDocument, doStartElement, doStartPrefixMapping, doUnparsedEntityDecl, doWarning, endDocument, endElement, endPrefixMapping, error, fatalError, getBufferedChars, getLocation, getLocator, getName, getOptionalAttribute, getOptionalBooleanAttribute, getOptionalIntAttribute, getOptionalLongAttribute, getParent, getRequiredAttribute, getRequiredBooleanAttribute, getRequiredIntAttribute, getRequiredLongAttribute, ignorableWhitespace, isBufferingChar, log, log, notationDecl, processingInstruction, setBufferingChar, setDocumentLocator, setSkipOnError, skip, skippedEntity, startDocument, startElement, startPrefixMapping, stopDelegating, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
DEFAULT_VERSION
private static final java.lang.String DEFAULT_VERSION
- See Also:
- Constant Field Values
-
RESOURCE
static final java.lang.String RESOURCE
- See Also:
- Constant Field Values
-
ID
static final java.lang.String ID
- See Also:
- Constant Field Values
-
PRESENTATION_NAME
static final java.lang.String PRESENTATION_NAME
- See Also:
- Constant Field Values
-
SYMBOLIC_NAME
static final java.lang.String SYMBOLIC_NAME
- See Also:
- Constant Field Values
-
URI
static final java.lang.String URI
- See Also:
- Constant Field Values
-
VERSION
static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
bundleInfo
BundleInfo bundleInfo
-
-
Method Detail
-
handleAttributes
protected void handleAttributes(org.xml.sax.Attributes atts) throws org.xml.sax.SAXExceptionDescription copied from class:DelegatingHandlerCalled when the expected node is achieved; nothing to do by default.- Overrides:
handleAttributesin classDelegatingHandler- Parameters:
atts- the xml attributes attached to the expected node- Throws:
org.xml.sax.SAXException- in case the parsing should be completely stopped
-
getCurrentElementIdentifier
protected java.lang.String getCurrentElementIdentifier()
Description copied from class:DelegatingHandlerReturn an sort of identifier of the current element being parsed. It will only be used for logging purpose.- Overrides:
getCurrentElementIdentifierin classDelegatingHandler- Returns:
- an empty string by default
-
-