org.jboss.xb.builder.runtime
Class AbstractPropertyHandler

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.AttributeHandler
      extended by org.jboss.xb.builder.runtime.AbstractPropertyHandler
Direct Known Subclasses:
CollectionPropertyHandler, MapPropertyHandler, NoopPropertyHandler, PropertyHandler, SimplePropertyHandler

public abstract class AbstractPropertyHandler
extends AttributeHandler

AbstractPropertyHandler

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
protected  org.jboss.logging.Logger log
          The log
protected  boolean trace
          Whether trace is enabled
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.AttributeHandler
NOOP
 
Constructor Summary
AbstractPropertyHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo, org.jboss.reflect.spi.TypeInfo propertyType)
          Create a new AbstractPropertyHandler
 
Method Summary
 void attribute(QName elemName, QName attrName, AttributeBinding binding, Object owner, Object value)
           
 void doHandle(Object parent, Object child, QName qName)
           
 org.jboss.beans.info.spi.PropertyInfo getPropertyInfo()
          Get the property info
 org.jboss.reflect.spi.TypeInfo getPropertyType()
          Get the property type
abstract  void handle(org.jboss.beans.info.spi.PropertyInfo propertyInfo, org.jboss.reflect.spi.TypeInfo propertyType, Object parent, Object child, QName qName)
          Handle the property
 
Methods inherited from class org.jboss.xb.binding.sunday.unmarshalling.AttributeHandler
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.jboss.logging.Logger log
The log


trace

protected boolean trace
Whether trace is enabled

Constructor Detail

AbstractPropertyHandler

public AbstractPropertyHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                               org.jboss.reflect.spi.TypeInfo propertyType)
Create a new AbstractPropertyHandler

Parameters:
propertyInfo - the property
propertyType - the property type
Throws:
IllegalArgumentException - for a null parameteers
Method Detail

getPropertyInfo

public org.jboss.beans.info.spi.PropertyInfo getPropertyInfo()
Get the property info

Returns:
the property info

getPropertyType

public org.jboss.reflect.spi.TypeInfo getPropertyType()
Get the property type

Returns:
the property type

doHandle

public void doHandle(Object parent,
                     Object child,
                     QName qName)

attribute

public void attribute(QName elemName,
                      QName attrName,
                      AttributeBinding binding,
                      Object owner,
                      Object value)
Specified by:
attribute in class AttributeHandler

handle

public abstract void handle(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                            org.jboss.reflect.spi.TypeInfo propertyType,
                            Object parent,
                            Object child,
                            QName qName)
Handle the property

Parameters:
propertyInfo - the property
parent - the parent
propertyType - the property type
child - the child
qName - the qName


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.