com.sun.tools.xjc.reader.relaxng
Class RELAXNGCompiler

java.lang.Object
  extended by com.sun.tools.xjc.reader.relaxng.RELAXNGCompiler

public final class RELAXNGCompiler
extends Object


Field Summary
(package private)  Map<CClassInfo,org.kohsuke.rngom.digested.DPattern> bindQueue
          Classes that need to be bound.
(package private)  Map<org.kohsuke.rngom.digested.DPattern,CTypeInfo[]> classes
          Patterns that are mapped to Java concepts.
(package private)  Map<String,DatatypeLib> datatypes
           
(package private)  Set<org.kohsuke.rngom.digested.DDefine> defs
          All named patterns in this schema.
(package private)  org.kohsuke.rngom.digested.DPattern grammar
          Schema to compile.
(package private)  Model model
           
(package private)  Options opts
           
(package private)  com.sun.codemodel.JPackage pkg
          The package to which we generate the code into.
(package private)  TypeUseBinder typeUseBinder
           
 
Constructor Summary
RELAXNGCompiler(org.kohsuke.rngom.digested.DPattern grammar, com.sun.codemodel.JCodeModel codeModel, Options opts)
           
 
Method Summary
static Model build(org.kohsuke.rngom.digested.DPattern grammar, com.sun.codemodel.JCodeModel codeModel, Options opts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grammar

final org.kohsuke.rngom.digested.DPattern grammar
Schema to compile.


defs

final Set<org.kohsuke.rngom.digested.DDefine> defs
All named patterns in this schema.


opts

final Options opts

model

final Model model

pkg

final com.sun.codemodel.JPackage pkg
The package to which we generate the code into.


datatypes

final Map<String,DatatypeLib> datatypes

classes

final Map<org.kohsuke.rngom.digested.DPattern,CTypeInfo[]> classes
Patterns that are mapped to Java concepts.

The value is an array because we map elements with finite names to multiple classes. TODO: depending on the type of the key, the type of the values can be further restricted. Make this into its own class to represent those constraints better.


bindQueue

final Map<CClassInfo,org.kohsuke.rngom.digested.DPattern> bindQueue
Classes that need to be bound. The value is the content model to be bound.


typeUseBinder

final TypeUseBinder typeUseBinder
Constructor Detail

RELAXNGCompiler

public RELAXNGCompiler(org.kohsuke.rngom.digested.DPattern grammar,
                       com.sun.codemodel.JCodeModel codeModel,
                       Options opts)
Method Detail

build

public static Model build(org.kohsuke.rngom.digested.DPattern grammar,
                          com.sun.codemodel.JCodeModel codeModel,
                          Options opts)