public final class SchemaBuilderImpl extends java.lang.Object implements org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>
| Modifier and Type | Field and Description |
|---|---|
private DatatypeFactory |
dtf |
private org.kohsuke.rngom.nc.NameClassBuilderImpl |
ncb |
private com.sun.codemodel.JClass |
string |
| Constructor and Description |
|---|
SchemaBuilderImpl(com.sun.codemodel.JCodeModel codeModel) |
| Modifier and Type | Method and Description |
|---|---|
Leaf |
annotate(Leaf leaf,
AnnotationsImpl annotations) |
Leaf |
annotateAfter(Leaf leaf,
org.kohsuke.rngom.ast.om.ParsedElementAnnotation parsedElementAnnotation) |
Leaf |
commentAfter(Leaf leaf,
CommentListImpl commentList) |
Leaf |
expandPattern(Leaf leaf) |
org.kohsuke.rngom.ast.builder.NameClassBuilder |
getNameClassBuilder() |
private com.sun.codemodel.JType |
getType(java.lang.String datatypeLibrary,
java.lang.String type) |
AnnotationsImpl |
makeAnnotations(CommentListImpl commentList,
org.kohsuke.rngom.parse.Context context) |
Leaf |
makeAttribute(org.kohsuke.rngom.nc.NameClass nameClass,
Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeChoice(java.util.List<Leaf> leaves,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
CommentListImpl |
makeCommentList() |
org.kohsuke.rngom.ast.builder.DataPatternBuilder |
makeDataPatternBuilder(java.lang.String datatypeLibrary,
java.lang.String type,
org.kohsuke.rngom.ast.util.LocatorImpl locator) |
Leaf |
makeElement(org.kohsuke.rngom.nc.NameClass nameClass,
Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
org.kohsuke.rngom.ast.builder.ElementAnnotationBuilder<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> |
makeElementAnnotationBuilder(java.lang.String ns,
java.lang.String localName,
java.lang.String prefix,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
CommentListImpl commentList,
org.kohsuke.rngom.parse.Context context) |
Leaf |
makeEmpty(org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeErrorPattern() |
Leaf |
makeExternalRef(org.kohsuke.rngom.parse.Parseable current,
java.lang.String uri,
java.lang.String ns,
org.kohsuke.rngom.ast.builder.Scope<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> scope,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
org.kohsuke.rngom.ast.builder.Grammar<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> |
makeGrammar(org.kohsuke.rngom.ast.builder.Scope<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> scope) |
Leaf |
makeGroup(java.util.List<Leaf> leaves,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeInterleave(java.util.List<Leaf> leaves,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeList(Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
org.kohsuke.rngom.ast.util.LocatorImpl |
makeLocation(java.lang.String systemId,
int lineNumber,
int columnNumber) |
Leaf |
makeMixed(Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeNotAllowed(org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeOneOrMore(Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeOptional(Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeText(org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeValue(java.lang.String datatypeLibrary,
java.lang.String type,
java.lang.String value,
org.kohsuke.rngom.parse.Context c,
java.lang.String ns,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
Leaf |
makeZeroOrMore(Leaf leaf,
org.kohsuke.rngom.ast.util.LocatorImpl locator,
AnnotationsImpl annotations) |
private Leaf |
merge(java.util.List<Leaf> leaves) |
boolean |
usesComments() |
private final org.kohsuke.rngom.nc.NameClassBuilderImpl ncb
private final com.sun.codemodel.JClass string
private final DatatypeFactory dtf
public SchemaBuilderImpl(com.sun.codemodel.JCodeModel codeModel)
public Leaf expandPattern(Leaf leaf) throws org.kohsuke.rngom.ast.builder.BuildException
expandPattern in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic org.kohsuke.rngom.ast.builder.NameClassBuilder getNameClassBuilder()
throws org.kohsuke.rngom.ast.builder.BuildException
getNameClassBuilder in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeChoice(java.util.List<Leaf> leaves, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeChoice in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeInterleave(java.util.List<Leaf> leaves, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeInterleave in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeGroup(java.util.List<Leaf> leaves, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeGroup in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeOneOrMore(Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeOneOrMore in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeZeroOrMore(Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeZeroOrMore in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeOptional(Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeOptional in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeList(Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeList in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeMixed(Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeMixed in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeEmpty(org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations)
makeEmpty in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public Leaf makeNotAllowed(org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations)
makeNotAllowed in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public Leaf makeText(org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations)
makeText in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public Leaf makeAttribute(org.kohsuke.rngom.nc.NameClass nameClass, Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeAttribute in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeElement(org.kohsuke.rngom.nc.NameClass nameClass, Leaf leaf, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeElement in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic org.kohsuke.rngom.ast.builder.DataPatternBuilder makeDataPatternBuilder(java.lang.String datatypeLibrary,
java.lang.String type,
org.kohsuke.rngom.ast.util.LocatorImpl locator)
throws org.kohsuke.rngom.ast.builder.BuildException
makeDataPatternBuilder in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionprivate com.sun.codemodel.JType getType(java.lang.String datatypeLibrary,
java.lang.String type)
public Leaf makeValue(java.lang.String datatypeLibrary, java.lang.String type, java.lang.String value, org.kohsuke.rngom.parse.Context c, java.lang.String ns, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
makeValue in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic org.kohsuke.rngom.ast.builder.Grammar<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> makeGrammar(org.kohsuke.rngom.ast.builder.Scope<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> scope)
makeGrammar in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public Leaf annotate(Leaf leaf, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException
annotate in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf annotateAfter(Leaf leaf, org.kohsuke.rngom.ast.om.ParsedElementAnnotation parsedElementAnnotation) throws org.kohsuke.rngom.ast.builder.BuildException
annotateAfter in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionpublic Leaf makeErrorPattern()
makeErrorPattern in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public boolean usesComments()
usesComments in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public Leaf makeExternalRef(org.kohsuke.rngom.parse.Parseable current, java.lang.String uri, java.lang.String ns, org.kohsuke.rngom.ast.builder.Scope<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> scope, org.kohsuke.rngom.ast.util.LocatorImpl locator, AnnotationsImpl annotations) throws org.kohsuke.rngom.ast.builder.BuildException, org.kohsuke.rngom.parse.IllegalSchemaException
makeExternalRef in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildExceptionorg.kohsuke.rngom.parse.IllegalSchemaExceptionpublic org.kohsuke.rngom.ast.util.LocatorImpl makeLocation(java.lang.String systemId,
int lineNumber,
int columnNumber)
makeLocation in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public AnnotationsImpl makeAnnotations(CommentListImpl commentList, org.kohsuke.rngom.parse.Context context)
makeAnnotations in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public org.kohsuke.rngom.ast.builder.ElementAnnotationBuilder<Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl> makeElementAnnotationBuilder(java.lang.String ns, java.lang.String localName, java.lang.String prefix, org.kohsuke.rngom.ast.util.LocatorImpl locator, CommentListImpl commentList, org.kohsuke.rngom.parse.Context context)
makeElementAnnotationBuilder in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public CommentListImpl makeCommentList()
makeCommentList in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>public Leaf commentAfter(Leaf leaf, CommentListImpl commentList) throws org.kohsuke.rngom.ast.builder.BuildException
commentAfter in interface org.kohsuke.rngom.ast.builder.SchemaBuilder<org.kohsuke.rngom.nc.NameClass,Leaf,org.kohsuke.rngom.ast.om.ParsedElementAnnotation,org.kohsuke.rngom.ast.util.LocatorImpl,AnnotationsImpl,CommentListImpl>org.kohsuke.rngom.ast.builder.BuildException