JBoss XML Binding 2.0.3.GA-redhat-2

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler
CharactersHandler.DefaultUnmarshalCharactersHandler, CharactersHandler.UnmarshalCharactersHandler
 
Field Summary
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler
DEFAULT, DEFAULT_UNMARSHAL_HANDLER, NOOP, NOOP_UNMARSHAL_HANDLER, unmarshalHandler
 
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

JBoss XML Binding 2.0.3.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.