com.sap.tc.mobile.cfs.xml.api
Interface MIContentHandler

All Known Implementing Classes:
AbstractContentHandler, AbstractMIContentHandler, BaseContentHandler, InputContentHandler, MIXMLParser.CopyToWriterContentHandler, ModelContentHandler, RelationContentHandler

public interface MIContentHandler

MI XML parser content handler.

Author:
d039184

Method Summary
 void attribute(char[] name, int startName, int lengthName, char[] value, int startValue, int lengthValue)
          Called to handle single attribute.
 void characters(char[] ch, int start, int length)
          Called to handle characters.
 void endAttributes()
          Called to handle end of attributes for the element.
 void endDocument()
          Called on end of a document.
 void endElement(char[] localName, int start, int length)
          Called to handle end of the element.
 boolean startAttribute(char[] ch, int start, int length)
          This is called to indicate the start of the attribute represented by ch.
 void startDocument()
          Called on start of a document.
 void startElement(char[] localName, int start, int length)
          Called to handle start of the element.
 

Method Detail

startDocument

void startDocument()
Called on start of a document.


endDocument

void endDocument()
Called on end of a document.


characters

void characters(char[] ch,
                int start,
                int length)
Called to handle characters.

Parameters:
ch - character array.
start - start offset of first character.
length - length of the data.

startAttribute

boolean startAttribute(char[] ch,
                       int start,
                       int length)
This is called to indicate the start of the attribute represented by ch.

Parameters:
ch - character array
start - start offset of first character.
length - length of the data.
Returns:
returns true when the content handler is capable of accepting the attribute in parts else it will return false

startElement

void startElement(char[] localName,
                  int start,
                  int length)
Called to handle start of the element.

Parameters:
localName - element name array.
start - start offset of element name.
length - length of element name.

endElement

void endElement(char[] localName,
                int start,
                int length)
Called to handle end of the element.

Parameters:
localName - element name array.
start - start offset of element name.
length - length of element name.

attribute

void attribute(char[] name,
               int startName,
               int lengthName,
               char[] value,
               int startValue,
               int lengthValue)
Called to handle single attribute.

Parameters:
name - attribute name array.
startName - offset of attribute name.
lengthName - length of attribute name.
value - value array.
startValue - offset of value.
lengthValue - length of value.

endAttributes

void endAttributes()
Called to handle end of attributes for the element.