org.jboss.xb.binding.sunday.unmarshalling
Class ChoiceBinding

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.TermBinding
      extended by org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding
          extended by org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding
All Implemented Interfaces:
PositionFactory

public class ChoiceBinding
extends ModelGroupBinding

Version:
$Revision: 3903 $
Author:
Alexey Loubyansky

Field Summary
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding
handler, requiredParticle
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.TermBinding
addMethodMetaData, beforeMarshallingCallback, beforeSetParentCallback, classMetaData, mapEntryKey, mapEntryMetaData, mapEntryValue, propertyMetaData, putMethodMetaData, qName, repeatableHandler, schema, skip, valueAdapter, valueMetaData
 
Constructor Summary
ChoiceBinding(SchemaBinding schema)
           
 
Method Summary
 void addParticle(ParticleBinding particle)
          Model group that is passed in as an argument to this method must be fully populated with element, wildcard and child model group bindings.
 ElementBinding getArrayItem()
           
 String getGroupType()
           
 Collection<ParticleBinding> getParticles()
           
 Position newPosition(QName qName, Attributes attrs, ParticleBinding choiceParticle)
           
 
Methods inherited from class org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding
getElement, getHandler, hasRequiredParticle, isElement, isModelGroup, isSkip, isWildcard, setHandler, toString
 
Methods inherited from class org.jboss.xb.binding.sunday.unmarshalling.TermBinding
getAddMethodMetaData, getBeforeMarshallingCallback, getBeforeSetParentCallback, getClassMetaData, getMapEntryMetaData, getPropertyMetaData, getPutMethodMetaData, getQName, getRepeatableHandler, getSchema, getValueAdapter, getValueMetaData, isMapEntryKey, isMapEntryValue, setAddMethodMetaData, setBeforeMarshallingCallback, setBeforeSetParentCallback, setClassMetaData, setMapEntryKey, setMapEntryMetaData, setMapEntryValue, setPropertyMetaData, setPutMethodMetaData, setQName, setRepeatableHandler, setSkip, setValueAdapter, setValueMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChoiceBinding

public ChoiceBinding(SchemaBinding schema)
Method Detail

getArrayItem

public ElementBinding getArrayItem()
Specified by:
getArrayItem in class ModelGroupBinding

addParticle

public void addParticle(ParticleBinding particle)
Description copied from class: ModelGroupBinding
Model group that is passed in as an argument to this method must be fully populated with element, wildcard and child model group bindings.

Overrides:
addParticle in class ModelGroupBinding
Parameters:
particle - the particle

getParticles

public Collection<ParticleBinding> getParticles()
Specified by:
getParticles in class ModelGroupBinding

newPosition

public Position newPosition(QName qName,
                            Attributes attrs,
                            ParticleBinding choiceParticle)

getGroupType

public String getGroupType()
Specified by:
getGroupType in class ModelGroupBinding


Copyright © 2010 JBoss Inc.. All Rights Reserved.