com.sun.tools.xjc.reader.relaxng

Class RELAXNGCompiler

public final class RELAXNGCompiler extends Object

Field Summary
Map<CClassInfo,DPattern>bindQueue
Classes that need to be bound.
Map<DPattern,CTypeInfo[]>classes
Patterns that are mapped to Java concepts.
Map<String,DatatypeLib>datatypes
Set<DDefine>defs
All named patterns in this schema.
DPatterngrammar
Schema to compile.
Modelmodel
Optionsopts
JPackagepkg
The package to which we generate the code into.
TypeUseBindertypeUseBinder
Constructor Summary
RELAXNGCompiler(DPattern grammar, JCodeModel codeModel, Options opts)
Method Summary
static Modelbuild(DPattern grammar, JCodeModel codeModel, Options opts)

Field Detail

bindQueue

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

classes

final Map<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.

datatypes

final Map<String,DatatypeLib> datatypes

defs

final Set<DDefine> defs
All named patterns in this schema.

grammar

final DPattern grammar
Schema to compile.

model

final Model model

opts

final Options opts

pkg

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

typeUseBinder

final TypeUseBinder typeUseBinder

Constructor Detail

RELAXNGCompiler

public RELAXNGCompiler(DPattern grammar, JCodeModel codeModel, Options opts)

Method Detail

build

public static Model build(DPattern grammar, JCodeModel codeModel, Options opts)