org.apache.felix.scr.impl
Class XmlHandler

java.lang.Object
  extended by org.apache.felix.scr.impl.XmlHandler
All Implemented Interfaces:
KXml2SAXHandler

public class XmlHandler
extends Object
implements KXml2SAXHandler


Field Summary
protected  boolean firstElement
          Flag for detecting the first element.
protected  boolean isComponent
          Flag for elements inside a component element
static String NAMESPACE_URI
           
protected  String overrideNamespace
          Override namespace.
 
Method Summary
 void characters(String text)
          Method called when parsing text
 void endElement(String uri, String localName)
          Method called when a tag closes
 void processingInstruction(String target, String data)
           
 void setColumnNumber(int columnNumber)
           
 void setLineNumber(int lineNumber)
           
 void startElement(String uri, String localName, Properties attrib)
          Method called when a tag opens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_URI

public static final String NAMESPACE_URI
See Also:
Constant Field Values

firstElement

protected boolean firstElement
Flag for detecting the first element.


overrideNamespace

protected String overrideNamespace
Override namespace.


isComponent

protected boolean isComponent
Flag for elements inside a component element

Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         Properties attrib)
                  throws ParseException
Method called when a tag opens

Specified by:
startElement in interface KXml2SAXHandler
Parameters:
uri -
localName -
attrib -
Throws:
ParseException

endElement

public void endElement(String uri,
                       String localName)
Method called when a tag closes

Specified by:
endElement in interface KXml2SAXHandler
Parameters:
uri -
localName -

characters

public void characters(String text)
Description copied from interface: KXml2SAXHandler
Method called when parsing text

Specified by:
characters in interface KXml2SAXHandler
See Also:
KXml2SAXHandler.characters(java.lang.String)

processingInstruction

public void processingInstruction(String target,
                                  String data)
Specified by:
processingInstruction in interface KXml2SAXHandler
See Also:
KXml2SAXHandler.processingInstruction(java.lang.String, java.lang.String)

setLineNumber

public void setLineNumber(int lineNumber)
Specified by:
setLineNumber in interface KXml2SAXHandler
See Also:
KXml2SAXHandler.setLineNumber(int)

setColumnNumber

public void setColumnNumber(int columnNumber)
Specified by:
setColumnNumber in interface KXml2SAXHandler
See Also:
KXml2SAXHandler.setColumnNumber(int)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.