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

java.lang.Object
  extended by com.sun.tools.xjc.reader.xmlschema.RawTypeSetBuilder
All Implemented Interfaces:
XSTermVisitor

public class RawTypeSetBuilder
extends Object
implements XSTermVisitor

Builds RawTypeSet for XML Schema.


Nested Class Summary
static class RawTypeSetBuilder.CClassRef
          Reference to a class that maps from an element.
 class RawTypeSetBuilder.CElementInfoRef
          Reference to a class that maps from an element.
static class RawTypeSetBuilder.WildcardRef
          Reference to a wildcard.
static class RawTypeSetBuilder.XmlTypeRef
          References to a type.
 
Field Summary
protected  BGMBuilder builder
           
 
Constructor Summary
RawTypeSetBuilder()
           
 
Method Summary
static RawTypeSet build(XSParticle p, boolean optional)
           
 void elementDecl(XSElementDecl decl)
           
 Set<RawTypeSet.Ref> getRefs()
          Gets the RawTypeSet.Refs that were built.
 void modelGroup(XSModelGroup group)
           
 void modelGroupDecl(XSModelGroupDecl decl)
           
 void wildcard(XSWildcard wc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

protected final BGMBuilder builder
Constructor Detail

RawTypeSetBuilder

public RawTypeSetBuilder()
Method Detail

build

public static RawTypeSet build(XSParticle p,
                               boolean optional)
Parameters:
optional - if this whole property is optional due to the occurence constraints on ancestors, set this to true. this will prevent the primitive types to be generated.

getRefs

public Set<RawTypeSet.Ref> getRefs()
Gets the RawTypeSet.Refs that were built.


wildcard

public void wildcard(XSWildcard wc)
Specified by:
wildcard in interface XSTermVisitor

modelGroupDecl

public void modelGroupDecl(XSModelGroupDecl decl)
Specified by:
modelGroupDecl in interface XSTermVisitor

modelGroup

public void modelGroup(XSModelGroup group)
Specified by:
modelGroup in interface XSTermVisitor

elementDecl

public void elementDecl(XSElementDecl decl)
Specified by:
elementDecl in interface XSTermVisitor