org.kohsuke.rngom.parse.host
クラス SchemaBuilderHost
java.lang.Object
org.kohsuke.rngom.parse.host.Base
org.kohsuke.rngom.parse.host.SchemaBuilderHost
- すべての実装インタフェース:
- SchemaBuilder
- 直系の既知のサブクラス:
- CheckingSchemaBuilder
- public class SchemaBuilderHost
- extends Base
- implements SchemaBuilder
- 作成者:
- Kohsuke Kawaguchi (kk@kohsuke.org)
メソッドの概要 |
ParsedPattern |
annotate(ParsedPattern _p,
Annotations _anno)
|
ParsedPattern |
annotateAfter(ParsedPattern _p,
ParsedElementAnnotation _e)
|
ParsedPattern |
commentAfter(ParsedPattern _p,
CommentList _comments)
|
ParsedPattern |
expandPattern(ParsedPattern _p)
Called after all the parsing is done.
|
NameClassBuilder |
getNameClassBuilder()
Returns the NameClassBuilder , which is used to build name
classes for this SchemaBuilder . |
Annotations |
makeAnnotations(CommentList _comments,
Context context)
|
ParsedPattern |
makeAttribute(ParsedNameClass _nc,
ParsedPattern _p,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeChoice(ParsedPattern[] patterns,
int nPatterns,
Location _loc,
Annotations _anno)
|
CommentList |
makeCommentList()
|
DataPatternBuilder |
makeDataPatternBuilder(java.lang.String datatypeLibrary,
java.lang.String type,
Location _loc)
|
ParsedPattern |
makeElement(ParsedNameClass _nc,
ParsedPattern _p,
Location _loc,
Annotations _anno)
|
ElementAnnotationBuilder |
makeElementAnnotationBuilder(java.lang.String ns,
java.lang.String localName,
java.lang.String prefix,
Location _loc,
CommentList _comments,
Context context)
|
ParsedPattern |
makeEmpty(Location _loc,
Annotations _anno)
|
ParsedPattern |
makeErrorPattern()
|
ParsedPattern |
makeExternalRef(Parseable current,
java.lang.String uri,
java.lang.String ns,
Scope _scope,
Location _loc,
Annotations _anno)
|
Grammar |
makeGrammar(Scope _parent)
|
ParsedPattern |
makeGroup(ParsedPattern[] patterns,
int nPatterns,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeInterleave(ParsedPattern[] patterns,
int nPatterns,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeList(ParsedPattern _p,
Location _loc,
Annotations _anno)
|
Location |
makeLocation(java.lang.String systemId,
int lineNumber,
int columnNumber)
|
ParsedPattern |
makeMixed(ParsedPattern _p,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeNotAllowed(Location _loc,
Annotations _anno)
|
ParsedPattern |
makeOneOrMore(ParsedPattern _p,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeOptional(ParsedPattern _p,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeText(Location _loc,
Annotations _anno)
|
ParsedPattern |
makeValue(java.lang.String datatypeLibrary,
java.lang.String type,
java.lang.String value,
Context c,
java.lang.String ns,
Location _loc,
Annotations _anno)
|
ParsedPattern |
makeZeroOrMore(ParsedPattern _p,
Location _loc,
Annotations _anno)
|
boolean |
usesComments()
If this SchemaBuilder is interested in actually parsing
comments, this method returns true.
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaBuilderHost
public SchemaBuilderHost(SchemaBuilder lhs,
SchemaBuilder rhs)
annotate
public ParsedPattern annotate(ParsedPattern _p,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の annotate
- 例外:
BuildException
annotateAfter
public ParsedPattern annotateAfter(ParsedPattern _p,
ParsedElementAnnotation _e)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の annotateAfter
- 例外:
BuildException
commentAfter
public ParsedPattern commentAfter(ParsedPattern _p,
CommentList _comments)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の commentAfter
- 例外:
BuildException
expandPattern
public ParsedPattern expandPattern(ParsedPattern _p)
throws BuildException,
IllegalSchemaException
- インタフェース
SchemaBuilder
の記述:
- Called after all the parsing is done.
This hook typically allows as SchemaBuilder
to expand
notAllowed (if it's following the simplification as in the spec.)
- 定義:
- インタフェース
SchemaBuilder
内の expandPattern
- 例外:
BuildException
IllegalSchemaException
getNameClassBuilder
public NameClassBuilder getNameClassBuilder()
throws BuildException
- インタフェース
SchemaBuilder
の記述:
- Returns the
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.
- 定義:
- インタフェース
SchemaBuilder
内の getNameClassBuilder
- 戻り値:
- always return a non-null valid object. This method can (and
probably should) always return the same object.
- 例外:
BuildException
makeAnnotations
public Annotations makeAnnotations(CommentList _comments,
Context context)
- 定義:
- インタフェース
SchemaBuilder
内の makeAnnotations
makeAttribute
public ParsedPattern makeAttribute(ParsedNameClass _nc,
ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeAttribute
- 例外:
BuildException
makeChoice
public ParsedPattern makeChoice(ParsedPattern[] patterns,
int nPatterns,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeChoice
- 例外:
BuildException
makeCommentList
public CommentList makeCommentList()
- 定義:
- インタフェース
SchemaBuilder
内の makeCommentList
makeDataPatternBuilder
public DataPatternBuilder makeDataPatternBuilder(java.lang.String datatypeLibrary,
java.lang.String type,
Location _loc)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeDataPatternBuilder
- 例外:
BuildException
makeElement
public ParsedPattern makeElement(ParsedNameClass _nc,
ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeElement
- 例外:
BuildException
makeElementAnnotationBuilder
public ElementAnnotationBuilder makeElementAnnotationBuilder(java.lang.String ns,
java.lang.String localName,
java.lang.String prefix,
Location _loc,
CommentList _comments,
Context context)
- 定義:
- インタフェース
SchemaBuilder
内の makeElementAnnotationBuilder
makeEmpty
public ParsedPattern makeEmpty(Location _loc,
Annotations _anno)
- 定義:
- インタフェース
SchemaBuilder
内の makeEmpty
makeErrorPattern
public ParsedPattern makeErrorPattern()
- 定義:
- インタフェース
SchemaBuilder
内の makeErrorPattern
makeExternalRef
public ParsedPattern makeExternalRef(Parseable current,
java.lang.String uri,
java.lang.String ns,
Scope _scope,
Location _loc,
Annotations _anno)
throws BuildException,
IllegalSchemaException
- 定義:
- インタフェース
SchemaBuilder
内の makeExternalRef
- パラメータ:
current
- Current grammar that we are parsing. This is what contains
externalRef._scope
- The parent scope. null if there's no parent scope.
See SchemaBuilder.makeGrammar(Scope)
for more details about
when this parameter can be null.
- 例外:
BuildException
IllegalSchemaException
makeGrammar
public Grammar makeGrammar(Scope _parent)
- 定義:
- インタフェース
SchemaBuilder
内の makeGrammar
- パラメータ:
_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.
makeGroup
public ParsedPattern makeGroup(ParsedPattern[] patterns,
int nPatterns,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeGroup
- 例外:
BuildException
makeInterleave
public ParsedPattern makeInterleave(ParsedPattern[] patterns,
int nPatterns,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeInterleave
- 例外:
BuildException
makeList
public ParsedPattern makeList(ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeList
- 例外:
BuildException
makeLocation
public Location makeLocation(java.lang.String systemId,
int lineNumber,
int columnNumber)
- 定義:
- インタフェース
SchemaBuilder
内の makeLocation
makeMixed
public ParsedPattern makeMixed(ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeMixed
- 例外:
BuildException
makeNotAllowed
public ParsedPattern makeNotAllowed(Location _loc,
Annotations _anno)
- 定義:
- インタフェース
SchemaBuilder
内の makeNotAllowed
makeOneOrMore
public ParsedPattern makeOneOrMore(ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeOneOrMore
- 例外:
BuildException
makeZeroOrMore
public ParsedPattern makeZeroOrMore(ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeZeroOrMore
- 例外:
BuildException
makeOptional
public ParsedPattern makeOptional(ParsedPattern _p,
Location _loc,
Annotations _anno)
throws BuildException
- 定義:
- インタフェース
SchemaBuilder
内の makeOptional
- 例外:
BuildException
makeText
public ParsedPattern makeText(Location _loc,
Annotations _anno)
- 定義:
- インタフェース
SchemaBuilder
内の makeText
makeValue
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
- 定義:
- インタフェース
SchemaBuilder
内の makeValue
- 例外:
BuildException
usesComments
public boolean usesComments()
- インタフェース
SchemaBuilder
の記述:
- If this
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.
- 定義:
- インタフェース
SchemaBuilder
内の usesComments