com.sun.xml.internal.rngom.ast.util.LocatorImpl Java Examples
The following examples show how to use
com.sun.xml.internal.rngom.ast.util.LocatorImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DSchemaBuilderImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) { String qname; if(prefix==null) qname = localName; else qname = prefix+':'+localName; return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname)); }
Example #2
Source File: DSchemaBuilderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public ElementAnnotationBuilder makeElementAnnotationBuilder(String ns, String localName, String prefix, LocatorImpl loc, CommentListImpl comments, Context context) { String qname; if(prefix==null) qname = localName; else qname = prefix+':'+localName; return new ElementAnnotationBuilderImpl(dom.createElementNS(ns,qname)); }
Example #3
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeZeroOrMore(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DZeroOrMorePattern(),p,loc),loc,anno); }
Example #4
Source File: CommentListImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public void addComment(String value, LocatorImpl loc) throws BuildException { // TODO }
Example #5
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public DPattern makeZeroOrMore(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DZeroOrMorePattern(),p,loc),loc,anno); }
Example #6
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public DPattern makeOptional(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DOptionalPattern(),p,loc),loc,anno); }
Example #7
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public DPattern makeOneOrMore(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DOneOrMorePattern(),p,loc),loc,anno); }
Example #8
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public DPattern makeChoice(List<DPattern> patterns, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addAll(new DChoicePattern(),patterns),loc,anno); }
Example #9
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public DPattern makeText(LocatorImpl loc, Annotation anno) { return wrap(new DTextPattern(),loc,anno); }
Example #10
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
static DPattern wrap( DPattern p, LocatorImpl loc, Annotation anno ) { p.location = loc; if(anno!=null) p.annotation = anno.getResult(); return p; }
Example #11
Source File: SchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public Location makeLocation(String systemId, int lineNumber, int columnNumber) { return new LocatorImpl(systemId, lineNumber, columnNumber); }
Example #12
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public DPattern makeInterleave(List<DPattern> patterns, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addAll(new DInterleavePattern(),patterns),loc,anno); }
Example #13
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeNotAllowed(LocatorImpl loc, Annotation anno) { return wrap(new DNotAllowedPattern(),loc,anno); }
Example #14
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeEmpty(LocatorImpl loc, Annotation anno) { return wrap(new DEmptyPattern(),loc,anno); }
Example #15
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeMixed(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DMixedPattern(),p,loc),loc,anno); }
Example #16
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeList(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DListPattern(),p,loc),loc,anno); }
Example #17
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeOptional(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DOptionalPattern(),p,loc),loc,anno); }
Example #18
Source File: GrammarBuilderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ParsedPattern makeRef(String name, Location loc, Annotations anno) throws BuildException { return DSchemaBuilderImpl.wrap( new DRefPattern(grammar.getOrAdd(name)), (LocatorImpl)loc, (Annotation)anno ); }
Example #19
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeOneOrMore(DPattern p, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addBody(new DOneOrMorePattern(),p,loc),loc,anno); }
Example #20
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeGroup(List<DPattern> patterns, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addAll(new DGroupPattern(),patterns),loc,anno); }
Example #21
Source File: Annotation.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void addAttribute(String ns, String localName, String prefix, String value, LocatorImpl loc) throws BuildException { a.attributes.put(new QName(ns,localName,prefix), new DAnnotation.Attribute(ns,localName,prefix,value,loc)); }
Example #22
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public DPattern makeChoice(List<DPattern> patterns, LocatorImpl loc, Annotation anno) throws BuildException { return wrap(addAll(new DChoicePattern(),patterns),loc,anno); }
Example #23
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
static DUnaryPattern addBody( DUnaryPattern parent, ParsedPattern _body, LocatorImpl loc ) { parent.setChild( (DPattern)_body ); return parent; }
Example #24
Source File: DSchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
static DPattern wrap( DPattern p, LocatorImpl loc, Annotation anno ) { p.location = loc; if(anno!=null) p.annotation = anno.getResult(); return p; }
Example #25
Source File: SchemaBuilderImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public Location makeLocation(String systemId, int lineNumber, int columnNumber) { return new LocatorImpl(systemId, lineNumber, columnNumber); }
Example #26
Source File: DSchemaBuilderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
static DUnaryPattern addBody( DUnaryPattern parent, ParsedPattern _body, LocatorImpl loc ) { parent.setChild( (DPattern)_body ); return parent; }
Example #27
Source File: Annotation.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void addAttribute(String ns, String localName, String prefix, String value, LocatorImpl loc) throws BuildException { a.attributes.put(new QName(ns,localName,prefix), new DAnnotation.Attribute(ns,localName,prefix,value,loc)); }
Example #28
Source File: GrammarBuilderImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public ParsedPattern makeRef(String name, Location loc, Annotations anno) throws BuildException { return DSchemaBuilderImpl.wrap( new DRefPattern(grammar.getOrAdd(name)), (LocatorImpl)loc, (Annotation)anno ); }
Example #29
Source File: DSchemaBuilderImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public DPattern makeNotAllowed(LocatorImpl loc, Annotation anno) { return wrap(new DNotAllowedPattern(),loc,anno); }
Example #30
Source File: DSchemaBuilderImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public DPattern makeExternalRef(Parseable current, String uri, String ns, Scope<DPattern, ElementWrapper, LocatorImpl, Annotation, CommentListImpl> scope, LocatorImpl loc, Annotation anno) throws BuildException, IllegalSchemaException { // TODO return null; }