org.jboss.xb.builder.runtime
Class ValueHandler

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler
      extended by org.jboss.xb.builder.runtime.ValueHandler

public class ValueHandler
extends CharactersHandler

ValueHandler.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler
DEFAULT, NOOP
 
Constructor Summary
ValueHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
          Create a new AbstractPropertyHandler
ValueHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo, org.jboss.beans.info.spi.BeanInfo beanInfo, String property)
          Create a new AbstractPropertyHandler
ValueHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo, org.jboss.reflect.spi.TypeInfo valueTypeInfo)
          Create a new ValueHandler.
 
Method Summary
 org.jboss.beans.info.spi.PropertyInfo getPropertyInfo()
          Get the property info
 void setValue(QName qName, ElementBinding element, Object owner, Object value)
           
 
Methods inherited from class org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler
unmarshal, unmarshalEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueHandler

public ValueHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
Create a new AbstractPropertyHandler

Parameters:
propertyInfo - the property
Throws:
IllegalArgumentException - for a null parameter

ValueHandler

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

Parameters:
propertyInfo - the property
valueTypeInfo - the type of the property to cast the value to before setting

ValueHandler

public ValueHandler(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                    org.jboss.beans.info.spi.BeanInfo beanInfo,
                    String property)
Create a new AbstractPropertyHandler

Parameters:
propertyInfo - the property
beanInfo - the wrapper class
property - the wrapper property
Throws:
IllegalArgumentException - for a null qName or property
Method Detail

getPropertyInfo

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

Returns:
the property info

setValue

public void setValue(QName qName,
                     ElementBinding element,
                     Object owner,
                     Object value)
Overrides:
setValue in class CharactersHandler


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