org.jboss.javabean.plugins.xml
Class PropertyInterceptor

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor
      extended by org.jboss.javabean.plugins.xml.PropertyInterceptor
All Implemented Interfaces:
org.jboss.xb.binding.sunday.unmarshalling.ElementInterceptor

public class PropertyInterceptor
extends org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor

Interceptor for the property element that adds the Property to the Holder parent.

Version:
$Revision:$
Author:
Adrian Brock, Scott.Stark@jboss.org

Field Summary
static PropertyInterceptor INTERCEPTOR
          The interceptor
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor
INSTANCE
 
Constructor Summary
PropertyInterceptor()
           
 
Method Summary
 void add(Object parent, Object child, QName name)
          Add a property to the bean.
 
Methods inherited from class org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor
attributes, characters, endElement, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERCEPTOR

public static final PropertyInterceptor INTERCEPTOR
The interceptor

Constructor Detail

PropertyInterceptor

public PropertyInterceptor()
Method Detail

add

public void add(Object parent,
                Object child,
                QName name)
Add a property to the bean. If the parent value is a Ctor the bean had no explicit contstructor element and the instance must be created by the default ctor. Otherwise, the property is added to teh Ctor as params. If the parent value is not a Ctor the Property is a value to set on the bean.

Specified by:
add in interface org.jboss.xb.binding.sunday.unmarshalling.ElementInterceptor
Overrides:
add in class org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor
Parameters:
parent - Holder containing either a Ctor or javabean instance.
child - - the Property instance to add


Copyright ? 2007 JBoss Inc.. All Rights Reserved.