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:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- OBRXMLParser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ivy.osgi.util.DelegatingHandler
DelegatingHandler.ChildElementHandler<DH extends DelegatingHandler>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BundleInfo
private static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
(package private) static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return an sort of identifier of the current element being parsed.protected void
handleAttributes
(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
Methods inherited from class org.xml.sax.helpers.DefaultHandler
resolveEntity
-
Field Details
-
DEFAULT_VERSION
- See Also:
-
RESOURCE
- See Also:
-
ID
- See Also:
-
PRESENTATION_NAME
- See Also:
-
SYMBOLIC_NAME
- See Also:
-
URI
- See Also:
-
VERSION
- See Also:
-
bundleInfo
BundleInfo bundleInfo
-
-
Constructor Details
-
ResourceHandler
public ResourceHandler()
-
-
Method Details
-
handleAttributes
Description copied from class:DelegatingHandler
Called when the expected node is achieved; nothing to do by default.- Overrides:
handleAttributes
in classDelegatingHandler
- Parameters:
atts
- the xml attributes attached to the expected node- Throws:
SAXException
- in case the parsing should be completely stopped
-
getCurrentElementIdentifier
Description copied from class:DelegatingHandler
Return an sort of identifier of the current element being parsed. It will only be used for logging purpose.- Overrides:
getCurrentElementIdentifier
in classDelegatingHandler
- Returns:
- an empty string by default
-