Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.xmlschema

pack-priv final Class ExpressionParticleBinder

extends ParticleBinder
Class Inheritance
Imports
java.util.Collection, com.sun.tools.xjc.model.CPropertyInfo, .Multiplicity, com.sun.tools.xjc.reader.RawTypeSet, com.sun.tools.xjc.reader.gbind.ConnectedComponent, .Element, .Expression, .Graph, com.sun.tools.xjc.reader.xmlschema.bindinfo.BIProperty, org.glassfish.jaxb.core.v2.model.core.WildcardMode, com.sun.xml.xsom.XSParticle

ParticleBinder that uses ExpressionBuilder et al for better, more intuitive (but non spec-conforming) binding.
Author
Kohsuke Kawaguchi

Field Summary

Inherited from com.sun.tools.xjc.reader.xmlschema.ParticleBinder:
builder

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
build(XSParticle p, Collection<XSParticle> forcedProps)

Implements abstract com.sun.tools.xjc.reader.xmlschema.ParticleBinder.build.

The version of the build method that forces a specified set of particles to become a property.

private void
buildProperty(ConnectedComponent cc)

Builds a property ouf ot a connected component.

public boolean
checkFallback(XSParticle p)

Implements abstract com.sun.tools.xjc.reader.xmlschema.ParticleBinder.checkFallback.

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.

private XSParticle
findSourceParticle(ConnectedComponent cc)

Finds a XSParticle that can serve as the representative property of the given ConnectedComponent.

Inherited from com.sun.tools.xjc.reader.xmlschema.ParticleBinder:
buildcomputeLabelgetClassSelectorgetCurrentBeangetErrorReportergetLocalCustomizationgetLocalPropCustomizationgetSpecDefaultNamemakeJavaNamemakeJavaName

Constructor Detail

ExpressionParticleBinderback to summary
pack-priv ExpressionParticleBinder()

Method Detail

buildback to summary
public void build(XSParticle p, Collection<XSParticle> forcedProps)

Implements abstract com.sun.tools.xjc.reader.xmlschema.ParticleBinder.build.

Doc from com.sun.tools.xjc.reader.xmlschema.ParticleBinder.build.

The version of the build method that forces a specified set of particles to become a property.

Annotations
@Override
buildPropertyback to summary
private void buildProperty(ConnectedComponent cc)

Builds a property ouf ot a connected component.

checkFallbackback to summary
public boolean checkFallback(XSParticle p)

Implements abstract com.sun.tools.xjc.reader.xmlschema.ParticleBinder.checkFallback.

Doc from com.sun.tools.xjc.reader.xmlschema.ParticleBinder.checkFallback.

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.

Annotations
@Override
findSourceParticleback to summary
private XSParticle findSourceParticle(ConnectedComponent cc)

Finds a XSParticle that can serve as the representative property of the given ConnectedComponent. The representative property is used for reporting an error location and taking BIProperty customization. Right now, the algorithm is just pick the first one with BIProperty, but one can think of a better algorithm, such as taking a choice of (A|B) if CC={A,B}.