com.sun.tools.xjc.reader.xmlschema
Class ParticleBinder

java.lang.Object
  extended by com.sun.tools.xjc.reader.xmlschema.BindingComponent
      extended by com.sun.tools.xjc.reader.xmlschema.ParticleBinder

public final class ParticleBinder
extends BindingComponent

Binds the content models.


Constructor Summary
ParticleBinder()
           
 
Method Summary
 void build(com.sun.xml.xsom.XSParticle p)
          Builds the CPropertyInfos from the given particle (and its descendants), and set them to the class returned by ClassSelector.getCurrentBean().
 void build(com.sun.xml.xsom.XSParticle p, java.util.Collection<com.sun.xml.xsom.XSParticle> forcedProps)
          The version of the build method that forces a specified set of particles to become a property.
 boolean checkFallback(com.sun.xml.xsom.XSParticle p)
          Similar to the build method but this method only checks if the BGM that will be built by the build method will do the fallback (map all the properties into one list) or not.
 
Methods inherited from class com.sun.tools.xjc.reader.xmlschema.BindingComponent
getClassSelector, getErrorReporter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleBinder

public ParticleBinder()
Method Detail

build

public void build(com.sun.xml.xsom.XSParticle p)
Builds the CPropertyInfos from the given particle (and its descendants), and set them to the class returned by ClassSelector.getCurrentBean().


build

public void build(com.sun.xml.xsom.XSParticle p,
                  java.util.Collection<com.sun.xml.xsom.XSParticle> forcedProps)
The version of the build method that forces a specified set of particles to become a property.


checkFallback

public boolean checkFallback(com.sun.xml.xsom.XSParticle p)
Similar to the build method but this method only checks if the BGM that will be built by the build method will do the fallback (map all the properties into one list) or not.

Returns:
false if the fallback will not happen.