|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.xjc.reader.xmlschema.ParticleBinder
public abstract class ParticleBinder
Binds the content models of XSParticle
as properties of the class that's being built.
Field Summary | |
---|---|
protected BGMBuilder |
builder
|
Constructor Summary | |
---|---|
protected |
ParticleBinder()
|
Method Summary | ||
---|---|---|
void |
build(com.sun.xml.xsom.XSParticle p)
Builds the CPropertyInfo s 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. |
|
protected java.lang.String |
computeLabel(com.sun.xml.xsom.XSParticle p)
Computes the label of a given particle. |
|
protected ClassSelector |
getClassSelector()
|
|
protected CClassInfo |
getCurrentBean()
|
|
protected ErrorReporter |
getErrorReporter()
|
|
protected
|
getLocalCustomization(com.sun.xml.xsom.XSParticle p,
java.lang.Class<T> type)
|
|
protected BIProperty |
getLocalPropCustomization(com.sun.xml.xsom.XSParticle p)
Gets the BIProperty object that applies to the given particle. |
|
protected java.lang.String |
getSpecDefaultName(com.sun.xml.xsom.XSModelGroup mg,
boolean repeated)
Computes a name from unnamed model group by following the spec. |
|
protected java.lang.String |
makeJavaName(boolean isRepeated,
java.lang.String xmlName)
Converts an XML name to the corresponding Java name. |
|
protected java.lang.String |
makeJavaName(com.sun.xml.xsom.XSParticle p,
java.lang.String xmlName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final BGMBuilder builder
Constructor Detail |
---|
protected ParticleBinder()
Method Detail |
---|
public final void build(com.sun.xml.xsom.XSParticle p)
CPropertyInfo
s from the given particle
(and its descendants), and set them to the class returned by
ClassSelector.getCurrentBean()
.
public abstract void build(com.sun.xml.xsom.XSParticle p, java.util.Collection<com.sun.xml.xsom.XSParticle> forcedProps)
public abstract boolean checkFallback(com.sun.xml.xsom.XSParticle p)
protected final CClassInfo getCurrentBean()
protected final BIProperty getLocalPropCustomization(com.sun.xml.xsom.XSParticle p)
protected final <T extends BIDeclaration> T getLocalCustomization(com.sun.xml.xsom.XSParticle p, java.lang.Class<T> type)
protected final java.lang.String computeLabel(com.sun.xml.xsom.XSParticle p)
protected final java.lang.String makeJavaName(boolean isRepeated, java.lang.String xmlName)
protected final java.lang.String makeJavaName(com.sun.xml.xsom.XSParticle p, java.lang.String xmlName)
protected final java.lang.String getSpecDefaultName(com.sun.xml.xsom.XSModelGroup mg, boolean repeated) throws java.text.ParseException
repeated
- if the said model group is repeated more than once
java.text.ParseException
- If the method cannot generate a name. For example, when
a model group doesn't contain any element reference/declaration
at all.protected final ErrorReporter getErrorReporter()
protected final ClassSelector getClassSelector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |