org.jboss.javabean.plugins.xml
Class PropertyInterceptor
java.lang.Object
org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor
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
| Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.DefaultElementInterceptor |
INSTANCE |
| 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 |
INTERCEPTOR
public static final PropertyInterceptor INTERCEPTOR
- The interceptor
PropertyInterceptor
public PropertyInterceptor()
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.