private static class SchemaBuilderImpl.IncludeImpl extends java.lang.Object implements Include, Div
GrammarSection.Combine| Modifier and Type | Field and Description |
|---|---|
private SchemaBuilderImpl.GrammarImpl |
grammar |
private SchemaBuilderImpl.Override |
overrides |
private SchemaBuilderImpl |
sb |
COMBINE_CHOICE, COMBINE_INTERLEAVE, START| Modifier | Constructor and Description |
|---|---|
private |
IncludeImpl(SchemaBuilderImpl sb,
SchemaBuilderImpl.GrammarImpl grammar) |
| Modifier and Type | Method and Description |
|---|---|
void |
define(java.lang.String name,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc,
Annotations anno)
Called when a pattern is defined.
|
void |
endDiv(Location loc,
Annotations anno) |
void |
endInclude(Parseable current,
java.lang.String uri,
java.lang.String ns,
Location loc,
Annotations anno) |
Div |
makeDiv()
Called when <div> is found.
|
Include |
makeInclude()
Returns null if already in an include.
|
void |
topLevelAnnotation(ParsedElementAnnotation ea)
Called when an annotation is found.
|
void |
topLevelComment(CommentList comments)
Called when a comment is found.
|
private SchemaBuilderImpl sb
private SchemaBuilderImpl.Override overrides
private SchemaBuilderImpl.GrammarImpl grammar
private IncludeImpl(SchemaBuilderImpl sb, SchemaBuilderImpl.GrammarImpl grammar)
public void define(java.lang.String name,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc,
Annotations anno)
throws BuildException
GrammarSectiondefine in interface GrammarSectionname - Name of the pattern. For the definition by a <start/> element,
this parameter is the same as GrammarSection.START.
to test if it's a named pattern definition or the start pattern definition.combine - null or GrammarSection.COMBINE_CHOICE or GrammarSection.COMBINE_INTERLEAVE depending
on the value of the combine attribute.pattern - The pattern to be defined.BuildExceptionpublic void endDiv(Location loc, Annotations anno) throws BuildException
endDiv in interface DivBuildExceptionpublic void topLevelAnnotation(ParsedElementAnnotation ea) throws BuildException
GrammarSectiontopLevelAnnotation in interface GrammarSectionBuildExceptionpublic void topLevelComment(CommentList comments) throws BuildException
GrammarSectiontopLevelComment in interface GrammarSectionBuildExceptionpublic Div makeDiv()
GrammarSectionmakeDiv in interface GrammarSectionDiv object will receive callbacks for structures
inside the <div> element.public void endInclude(Parseable current, java.lang.String uri, java.lang.String ns, Location loc, Annotations anno) throws BuildException
endInclude in interface Includecurrent - The current document we are parsing.
This is the document that contains an include.BuildExceptionpublic Include makeInclude()
GrammarSectionmakeInclude in interface GrammarSection