com.sap.tc.mobile.cfs.meta.mi25io
Class InputContentHandler

java.lang.Object
  extended by com.sap.tc.mobile.cfs.xml.api.AbstractMIContentHandler
      extended by com.sap.tc.mobile.cfs.meta.mi25io.AbstractContentHandler
          extended by com.sap.tc.mobile.cfs.meta.mi25io.BaseContentHandler
              extended by com.sap.tc.mobile.cfs.meta.mi25io.InputContentHandler
All Implemented Interfaces:
MIContentHandler

public class InputContentHandler
extends BaseContentHandler

Content handler for input tag on a field.

Author:
D044120

Field Summary
static java.lang.String XML_INPUTELEMENT
          XML tag for model class attribute element.
static java.lang.String XML_TYPE
          XML element for type
static java.lang.String XML_TYPE_CREATE
          XML constant for value of item type
static java.lang.String XML_TYPE_MODIFY
          XML constant for value of item type
 
Fields inherited from class com.sap.tc.mobile.cfs.meta.mi25io.BaseContentHandler
name, storageType, SYNC_KEY_NAME, SYNC_KEY_TOP_NAME, XML_NAME
 
Fields inherited from class com.sap.tc.mobile.cfs.meta.mi25io.AbstractContentHandler
model, parser
 
Constructor Summary
InputContentHandler()
           
 
Method Summary
 void attribute(char[] attributeName, int startAttributeName, int lengthAttributeName, char[] attributeValue, int startAttributeValue, int lengthAttributeValue)
          Called to handle single attribute.
 void characters(char[] ch, int start, int length)
          Called to handle characters.
 void endElement(char[] localName, int start, int length)
          Called to handle end of the element.
protected  void reset()
          Reset the handler.
 
Methods inherited from class com.sap.tc.mobile.cfs.meta.mi25io.BaseContentHandler
endAttributes
 
Methods inherited from class com.sap.tc.mobile.cfs.meta.mi25io.AbstractContentHandler
getModel, restoreHandler, setModel, setParser
 
Methods inherited from class com.sap.tc.mobile.cfs.xml.api.AbstractMIContentHandler
endDocument, startAttribute, startDocument, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_INPUTELEMENT

public static final java.lang.String XML_INPUTELEMENT
XML tag for model class attribute element.

See Also:
Constant Field Values

XML_TYPE

public static final java.lang.String XML_TYPE
XML element for type

See Also:
Constant Field Values

XML_TYPE_MODIFY

public static final java.lang.String XML_TYPE_MODIFY
XML constant for value of item type

See Also:
Constant Field Values

XML_TYPE_CREATE

public static final java.lang.String XML_TYPE_CREATE
XML constant for value of item type

See Also:
Constant Field Values
Constructor Detail

InputContentHandler

public InputContentHandler()
Method Detail

endElement

public void endElement(char[] localName,
                       int start,
                       int length)
Description copied from interface: MIContentHandler
Called to handle end of the element.

Specified by:
endElement in interface MIContentHandler
Overrides:
endElement in class AbstractMIContentHandler
Parameters:
localName - element name array.
start - start offset of element name.
length - length of element name.

reset

protected void reset()
Description copied from class: AbstractContentHandler
Reset the handler.

Overrides:
reset in class BaseContentHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Description copied from interface: MIContentHandler
Called to handle characters.

Specified by:
characters in interface MIContentHandler
Overrides:
characters in class AbstractMIContentHandler
Parameters:
ch - character array.
start - start offset of first character.
length - length of the data.

attribute

public void attribute(char[] attributeName,
                      int startAttributeName,
                      int lengthAttributeName,
                      char[] attributeValue,
                      int startAttributeValue,
                      int lengthAttributeValue)
Description copied from interface: MIContentHandler
Called to handle single attribute.

Specified by:
attribute in interface MIContentHandler
Overrides:
attribute in class BaseContentHandler
Parameters:
attributeName - attribute name array.
startAttributeName - offset of attribute name.
lengthAttributeName - length of attribute name.
attributeValue - value array.
startAttributeValue - offset of value.
lengthAttributeValue - length of value.