JBoss XML Binding 2.0.3.GA

org.jboss.xb.builder.runtime
Class MapPropertyHandler

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.AttributeHandler
      extended by org.jboss.xb.builder.runtime.AbstractPropertyHandler
          extended by org.jboss.xb.builder.runtime.MapPropertyHandler

public class MapPropertyHandler
extends AbstractPropertyHandler

MapPropertyHandler.

Version:
$Revision: 1.1 $
Author:
Alexey Loubyansky, Ales Justin

Field Summary
 
Fields inherited from class org.jboss.xb.builder.runtime.AbstractPropertyHandler
log, trace
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.AttributeHandler
NOOP
 
Constructor Summary
MapPropertyHandler(org.jboss.config.spi.Configuration config, org.jboss.beans.info.spi.BeanAccessMode beanAccessMode, org.jboss.beans.info.spi.PropertyInfo propertyInfo, org.jboss.reflect.spi.TypeInfo propertyType, boolean wrapped)
          Create a new MapPropertyHandler.
 
Method Summary
protected  void checkPut(Map<Object,Object> map, Object key, Object value)
          Check values before they are put into map.
 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.builder.runtime.AbstractPropertyHandler
attribute, doHandle, getPropertyInfo, getPropertyType
 
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
 

Constructor Detail

MapPropertyHandler

public MapPropertyHandler(org.jboss.config.spi.Configuration config,
                          org.jboss.beans.info.spi.BeanAccessMode beanAccessMode,
                          org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                          org.jboss.reflect.spi.TypeInfo propertyType,
                          boolean wrapped)
Create a new MapPropertyHandler.

Parameters:
config - the configuration
propertyInfo - the property
propertyType - the property type
wrapped - the wrapped flag
Throws:
IllegalArgumentException - for a null qName or property
Method Detail

handle

public void handle(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                   org.jboss.reflect.spi.TypeInfo propertyType,
                   Object parent,
                   Object child,
                   QName qName)
Description copied from class: AbstractPropertyHandler
Handle the property

Specified by:
handle in class AbstractPropertyHandler
Parameters:
propertyInfo - the property
propertyType - the property type
parent - the parent
child - the child
qName - the qName

checkPut

protected void checkPut(Map<Object,Object> map,
                        Object key,
                        Object value)
Check values before they are put into map.

Parameters:
map - the map
key - the key
value - the value

JBoss XML Binding 2.0.3.GA

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