|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
メソッドの詳細 |
public NameClassBuilder getNameClassBuilder() throws BuildException
NameClassBuilder
, which is used to build name
classes for this SchemaBuilder
. The
NameClass
es that are built will then be
fed into this SchemaBuilder
to further build RELAX NG patterns.
BuildException
public ParsedPattern makeChoice(ParsedPattern[] patterns, int nPatterns, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeInterleave(ParsedPattern[] patterns, int nPatterns, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeGroup(ParsedPattern[] patterns, int nPatterns, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeOneOrMore(ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeZeroOrMore(ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeOptional(ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeList(ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeMixed(ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeEmpty(Location loc, Annotations anno)
public ParsedPattern makeNotAllowed(Location loc, Annotations anno)
public ParsedPattern makeText(Location loc, Annotations anno)
public ParsedPattern makeAttribute(ParsedNameClass nc, ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public ParsedPattern makeElement(ParsedNameClass nc, ParsedPattern p, Location loc, Annotations anno) throws BuildException
BuildException
public DataPatternBuilder makeDataPatternBuilder(java.lang.String datatypeLibrary, java.lang.String type, Location loc) throws BuildException
BuildException
public ParsedPattern makeValue(java.lang.String datatypeLibrary, java.lang.String type, java.lang.String value, Context c, java.lang.String ns, Location loc, Annotations anno) throws BuildException
BuildException
public Grammar makeGrammar(Scope parent)
parent
- The parent scope. null if there's no parent scope.
For example, if the complete document looks like the following:
Then when the outer-most
Grammar
is created, it will
receive the null parent.public ParsedPattern annotate(ParsedPattern p, Annotations anno) throws BuildException
BuildException
public ParsedPattern annotateAfter(ParsedPattern p, ParsedElementAnnotation e) throws BuildException
BuildException
public ParsedPattern commentAfter(ParsedPattern p, CommentList comments) throws BuildException
BuildException
public ParsedPattern makeExternalRef(Parseable current, java.lang.String uri, java.lang.String ns, Scope scope, Location loc, Annotations anno) throws BuildException, IllegalSchemaException
current
- Current grammar that we are parsing. This is what contains
externalRef.scope
- The parent scope. null if there's no parent scope.
See makeGrammar(Scope)
for more details about
when this parameter can be null.
BuildException
IllegalSchemaException
public Location makeLocation(java.lang.String systemId, int lineNumber, int columnNumber)
public Annotations makeAnnotations(CommentList comments, Context context)
public ElementAnnotationBuilder makeElementAnnotationBuilder(java.lang.String ns, java.lang.String localName, java.lang.String prefix, Location loc, CommentList comments, Context context)
public CommentList makeCommentList()
public ParsedPattern makeErrorPattern()
public boolean usesComments()
SchemaBuilder
is interested in actually parsing
comments, this method returns true.
Returning false allows the schema parser to speed up the processing by skiping comment-related handlings.
public ParsedPattern expandPattern(ParsedPattern p) throws BuildException, IllegalSchemaException
This hook typically allows as SchemaBuilder
to expand
notAllowed (if it's following the simplification as in the spec.)
BuildException
IllegalSchemaException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |