Package org.apache.ivy.osgi.p2
Class P2MetadataParser.RequiredHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.ivy.osgi.util.DelegatingHandler
-
- org.apache.ivy.osgi.p2.P2MetadataParser.RequiredHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
- Enclosing class:
- P2MetadataParser
private class P2MetadataParser.RequiredHandler 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) java.lang.String
name
private static java.lang.String
NAME
(package private) java.lang.String
namespace
private static java.lang.String
NAMESPACE
(package private) boolean
optional
private static java.lang.String
OPTIONAL
(package private) VersionRange
range
private static java.lang.String
RANGE
private static java.lang.String
REQUIRED
-
Constructor Summary
Constructors Constructor Description RequiredHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleAttributes(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, getCurrentElementIdentifier, 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
-
REQUIRED
private static final java.lang.String REQUIRED
- See Also:
- Constant Field Values
-
NAMESPACE
private static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
-
RANGE
private static final java.lang.String RANGE
- See Also:
- Constant Field Values
-
OPTIONAL
private static final java.lang.String OPTIONAL
- See Also:
- Constant Field Values
-
namespace
java.lang.String namespace
-
name
java.lang.String name
-
range
VersionRange range
-
optional
boolean optional
-
-
Method Detail
-
handleAttributes
protected void handleAttributes(org.xml.sax.Attributes atts) throws org.xml.sax.SAXParseException
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:
org.xml.sax.SAXParseException
-
-