org.apache.felix.scrplugin.xml
Class ComponentDescriptorIO.XmlHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.felix.scrplugin.xml.ComponentDescriptorIO.XmlHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
ComponentDescriptorIO

protected static final class ComponentDescriptorIO.XmlHandler
extends DefaultHandler

A content handler for parsing the component descriptions.


Field Summary
protected  Components components
          The components container.
protected  Component currentComponent
          A reference to the current component.
protected  Service currentService
          The current service.
protected  boolean firstElement
          Flag for detecting the first element.
protected  boolean isComponent
          Flag for elements inside a component element
protected  String overrideNamespace
          Override namespace.
protected  Property pendingProperty
          Pending property.
 
Constructor Summary
protected ComponentDescriptorIO.XmlHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String name)
           
 void startElement(String uri, String localName, String name, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

protected final Components components
The components container.


currentComponent

protected Component currentComponent
A reference to the current component.


currentService

protected Service currentService
The current service.


pendingProperty

protected Property pendingProperty
Pending property.


firstElement

protected boolean firstElement
Flag for detecting the first element.


isComponent

protected boolean isComponent
Flag for elements inside a component element


overrideNamespace

protected String overrideNamespace
Override namespace.

Constructor Detail

ComponentDescriptorIO.XmlHandler

protected ComponentDescriptorIO.XmlHandler()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String name)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException
See Also:
DefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException
See Also:
DefaultHandler.characters(char[], int, int)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.