|
JBoss XML Binding 2.0.3.GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xb.builder.runtime.GroupBeanHandler
public class GroupBeanHandler
A GroupBeanHandler. Before creating a new instance for the group during unmarshalling, this handler will try to obtain the current value of the group from the parent object using the property the group is bound to. If the current group value is not null then it will be returned, otherwise a new instance will be created. This is necessary to support unordered sequences. If the property for the group is not readable then the step to get the group value will be skipped. It doesn't have to be a requirement for the property to be readable.
Field Summary | |
---|---|
protected BeanAdapterFactory |
beanAdapterFactory
The BeanAdapter |
protected QName |
groupName
|
protected static org.jboss.logging.Logger |
log
The log |
protected String |
name
The bean name |
protected boolean |
trace
Whether trace is enabled |
Constructor Summary | |
---|---|
GroupBeanHandler(String name,
BeanAdapterFactory beanAdapterFactory,
ModelGroupBinding group)
|
Method Summary | |
---|---|
Object |
endParticle(Object o,
QName qName,
ParticleBinding particle)
|
void |
setParent(Object parent,
Object o,
QName qName,
ParticleBinding particle,
ParticleBinding parentParticle)
|
Object |
startParticle(Object parent,
QName qName,
ParticleBinding particle,
Attributes attrs,
NamespaceContext nsCtx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.jboss.logging.Logger log
protected boolean trace
protected String name
protected BeanAdapterFactory beanAdapterFactory
protected QName groupName
Constructor Detail |
---|
public GroupBeanHandler(String name, BeanAdapterFactory beanAdapterFactory, ModelGroupBinding group)
Method Detail |
---|
public Object startParticle(Object parent, QName qName, ParticleBinding particle, Attributes attrs, NamespaceContext nsCtx)
startParticle
in interface ParticleHandler
public void setParent(Object parent, Object o, QName qName, ParticleBinding particle, ParticleBinding parentParticle)
setParent
in interface ParticleHandler
public Object endParticle(Object o, QName qName, ParticleBinding particle)
endParticle
in interface ParticleHandler
|
JBoss XML Binding 2.0.3.GA-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |