org.yasl.xmlobjects.impl
Class ObjectCreateElementHandler

java.lang.Object
  extended byorg.yasl.xmlobjects.impl.BaseElementHandler
      extended byorg.yasl.xmlobjects.impl.ObjectCreateElementHandler
All Implemented Interfaces:
ElementHandler
Direct Known Subclasses:
MapElementHandler

public class ObjectCreateElementHandler
extends org.yasl.xmlobjects.impl.BaseElementHandler

Version:
1.0
Author:
not attributable

Field Summary
protected static String ATTR_BUNDLE
           
protected static String ATTR_CLASS
           
protected static String ATTR_KEY
           
protected static String ATTR_KEY_TYPE
           
protected static String ATTR_LOCALE
           
protected static String ATTR_METHOD
           
protected static String ATTR_RETURNED_CLASS
           
protected static String ATTR_TYPE
           
protected static String ATTR_VALUE
           
protected  KeyResolver keyResolver
           
protected  Logger logger
           
protected  LinkedList objInstantiatorStack
           
protected  PropertyResolver propertyResolver
           
 
Constructor Summary
ObjectCreateElementHandler(LinkedList objInstantiatorStack, KeyResolver keyResolver, Logger logger, PropertyResolver propertyResolver)
           
 
Method Summary
protected  String getClassName(Attributes atts)
           
protected  String getKey(Attributes atts)
           
protected  String getKeyType(Attributes atts)
           
protected  String getOptionalAttrValue(Attributes atts, String attrName)
           
protected  String getRequiredAttrValue(Attributes atts, String attrName)
           
 void handleEndElement()
          Method called when the close tag instance is encountered.
 void handleStartElement(Attributes atts)
          Method called when an open tag instance is encountered.
protected  boolean isPropertyKey(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objInstantiatorStack

protected final LinkedList objInstantiatorStack

keyResolver

protected final KeyResolver keyResolver

ATTR_KEY

protected static final String ATTR_KEY
See Also:
Constant Field Values

ATTR_KEY_TYPE

protected static final String ATTR_KEY_TYPE
See Also:
Constant Field Values

ATTR_BUNDLE

protected static final String ATTR_BUNDLE
See Also:
Constant Field Values

ATTR_CLASS

protected static final String ATTR_CLASS
See Also:
Constant Field Values

ATTR_RETURNED_CLASS

protected static final String ATTR_RETURNED_CLASS
See Also:
Constant Field Values

ATTR_TYPE

protected static final String ATTR_TYPE
See Also:
Constant Field Values

ATTR_VALUE

protected static final String ATTR_VALUE
See Also:
Constant Field Values

ATTR_METHOD

protected static final String ATTR_METHOD
See Also:
Constant Field Values

ATTR_LOCALE

protected static final String ATTR_LOCALE
See Also:
Constant Field Values

logger

protected final Logger logger

propertyResolver

protected final PropertyResolver propertyResolver
Constructor Detail

ObjectCreateElementHandler

public ObjectCreateElementHandler(LinkedList objInstantiatorStack,
                                  KeyResolver keyResolver,
                                  Logger logger,
                                  PropertyResolver propertyResolver)
Method Detail

getClassName

protected String getClassName(Attributes atts)

getKey

protected String getKey(Attributes atts)

getKeyType

protected String getKeyType(Attributes atts)

handleStartElement

public void handleStartElement(Attributes atts)
                        throws SAXException
Description copied from interface: ElementHandler
Method called when an open tag instance is encountered.

Parameters:
atts - Attributes
Throws:
SAXException

handleEndElement

public void handleEndElement()
                      throws SAXException
Description copied from interface: ElementHandler
Method called when the close tag instance is encountered.

Throws:
SAXException

getOptionalAttrValue

protected String getOptionalAttrValue(Attributes atts,
                                      String attrName)

getRequiredAttrValue

protected String getRequiredAttrValue(Attributes atts,
                                      String attrName)

isPropertyKey

protected boolean isPropertyKey(String value)