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

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.TermBinding
      extended by org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AllBinding, ChoiceBinding, SequenceBinding

public abstract class ModelGroupBinding
extends TermBinding
implements Cloneable

Version:
$Revision: 1.14 $
Author:
Alexey Loubyansky

Nested Class Summary
static class ModelGroupBinding.Cursor
           
 
Field Summary
protected  ParticleHandler handler
           
protected static Logger log
           
protected  boolean requiredParticle
           
 
Fields inherited from class org.jboss.xb.binding.sunday.unmarshalling.TermBinding
addMethodMetaData, classMetaData, mapEntryKey, mapEntryMetaData, mapEntryValue, propertyMetaData, putMethodMetaData, schema, skip, valueAdapter, valueMetaData
 
Constructor Summary
protected ModelGroupBinding(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.
 Object clone()
           
abstract  ElementBinding getArrayItem()
           
 ParticleHandler getHandler()
           
abstract  Collection getParticles()
           
 boolean hasRequiredParticle()
           
 boolean isModelGroup()
           
 boolean isSkip()
           
 boolean isWildcard()
           
 boolean mayStartWith(javax.xml.namespace.QName qName)
          This method is not actually used during parsing.
protected abstract  boolean mayStartWith(javax.xml.namespace.QName qName, Set set)
           
abstract  ModelGroupBinding.Cursor newCursor(ParticleBinding particle)
           
 void setHandler(ParticleHandler handler)
           
 
Methods inherited from class org.jboss.xb.binding.sunday.unmarshalling.TermBinding
getAddMethodMetaData, getClassMetaData, getMapEntryMetaData, getPropertyMetaData, getPutMethodMetaData, getSchema, getValueAdapter, getValueMetaData, isMapEntryKey, isMapEntryValue, setAddMethodMetaData, setClassMetaData, setMapEntryKey, setMapEntryMetaData, setMapEntryValue, setPropertyMetaData, setPutMethodMetaData, setSkip, setValueAdapter, setValueMetaData
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

requiredParticle

protected boolean requiredParticle

handler

protected ParticleHandler handler
Constructor Detail

ModelGroupBinding

protected ModelGroupBinding(SchemaBinding schema)
Method Detail

getHandler

public ParticleHandler getHandler()

setHandler

public void setHandler(ParticleHandler handler)

getArrayItem

public abstract ElementBinding getArrayItem()

addParticle

public 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.

Parameters:
particle -

getParticles

public abstract Collection getParticles()

hasRequiredParticle

public boolean hasRequiredParticle()

mayStartWith

public boolean mayStartWith(javax.xml.namespace.QName qName)
This method is not actually used during parsing. It's here only for internal tests.

Parameters:
qName - an element name
Returns:
true if the model group may start with the specified element

newCursor

public abstract ModelGroupBinding.Cursor newCursor(ParticleBinding particle)

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

mayStartWith

protected abstract boolean mayStartWith(javax.xml.namespace.QName qName,
                                        Set set)

isSkip

public boolean isSkip()
Specified by:
isSkip in class TermBinding

isModelGroup

public boolean isModelGroup()
Specified by:
isModelGroup in class TermBinding

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in class TermBinding


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.