org.jboss.xb.builder.runtime
Class AppendingArrayRepeatableHandler
java.lang.Object
org.jboss.xb.builder.runtime.AppendingArrayRepeatableHandler
- All Implemented Interfaces:
- RepeatableParticleHandler
public class AppendingArrayRepeatableHandler
- extends Object
- implements RepeatableParticleHandler
This repeatable particle handler is used when repeatable particle handlers are actually disabled.
The reason is instead of creating, copying and setting a new array for every new element added,
it collects elements that appear one after another in XML and then appends to the current
property value.
- Version:
- $Revision: 1.1 $
- Author:
- Alexey Loubyansky
Method Summary |
void |
addTermValue(Object particleValue,
Object termValue,
QName elementName,
ParticleBinding particle,
ParticleBinding parentParticle,
ParticleHandler handler)
|
void |
endRepeatableParticle(Object parent,
Object o,
QName name,
ParticleBinding particle,
ParticleBinding parentParticle)
|
void |
handle(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
org.jboss.reflect.spi.TypeInfo propertyType,
Object parent,
Object child,
QName name)
|
Object |
startRepeatableParticle(Object parent,
QName startName,
ParticleBinding particle)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppendingArrayRepeatableHandler
public AppendingArrayRepeatableHandler(AbstractPropertyHandler propertyHandler)
handle
public void handle(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
org.jboss.reflect.spi.TypeInfo propertyType,
Object parent,
Object child,
QName name)
addTermValue
public void addTermValue(Object particleValue,
Object termValue,
QName elementName,
ParticleBinding particle,
ParticleBinding parentParticle,
ParticleHandler handler)
- Specified by:
addTermValue
in interface RepeatableParticleHandler
endRepeatableParticle
public void endRepeatableParticle(Object parent,
Object o,
QName name,
ParticleBinding particle,
ParticleBinding parentParticle)
- Specified by:
endRepeatableParticle
in interface RepeatableParticleHandler
startRepeatableParticle
public Object startRepeatableParticle(Object parent,
QName startName,
ParticleBinding particle)
- Specified by:
startRepeatableParticle
in interface RepeatableParticleHandler
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.