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

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

public abstract class ParticleBinder
extends java.lang.Object

Binds the content models of XSParticle as properties of the class that's being built.


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().
abstract  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.
abstract  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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

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