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

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
All Implemented Interfaces:
MIContentHandler
Direct Known Subclasses:
InputContentHandler, ModelContentHandler, RelationContentHandler

public class BaseContentHandler
extends AbstractContentHandler

BaseContentHandler is extending the AbstractContentHandler and implements base support for parsing metadata XML files. It's base class for all other content handler.

Author:
D044120

Field Summary
protected  java.lang.String name
          Name attribute.
protected  StorageType storageType
          Storage type attribute.
static java.lang.String SYNC_KEY_NAME
          Constant with name of the SYNC_KEY field
static java.lang.String SYNC_KEY_TOP_NAME
          Constant with name of the SYNC_KEY_TOP field
static java.lang.String XML_NAME
          XML attribute tag for class/attribute/type technical name.
 
Fields inherited from class com.sap.tc.mobile.cfs.meta.mi25io.AbstractContentHandler
model, parser
 
Constructor Summary
BaseContentHandler()
           
 
Method Summary
 void attribute(char[] attributeName, int startAttributeName, int lengthAttributeName, char[] attributeValue, int startAttributeValue, int lengthAttributeValue)
          Called to handle single attribute.
 void endAttributes()
          Called to handle end of attributes for the element.
protected  void reset()
          Reset the handler.
 
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
characters, endDocument, endElement, startAttribute, startDocument, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NAME

public static final java.lang.String XML_NAME
XML attribute tag for class/attribute/type technical name.

See Also:
Constant Field Values

storageType

protected StorageType storageType
Storage type attribute.


name

protected java.lang.String name
Name attribute.


SYNC_KEY_NAME

public static final java.lang.String SYNC_KEY_NAME
Constant with name of the SYNC_KEY field

See Also:
Constant Field Values

SYNC_KEY_TOP_NAME

public static final java.lang.String SYNC_KEY_TOP_NAME
Constant with name of the SYNC_KEY_TOP field

See Also:
Constant Field Values
Constructor Detail

BaseContentHandler

public BaseContentHandler()
Method Detail

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 AbstractMIContentHandler
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.

endAttributes

public void endAttributes()
Description copied from interface: MIContentHandler
Called to handle end of attributes for the element.

Specified by:
endAttributes in interface MIContentHandler
Overrides:
endAttributes in class AbstractMIContentHandler

reset

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

Overrides:
reset in class AbstractContentHandler