com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder Java Examples

The following examples show how to use com.sun.xml.internal.rngom.ast.builder.DataPatternBuilder. 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: SchemaBuilderImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #2
Source File: SchemaBuilderImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #3
Source File: SchemaBuilderImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #4
Source File: SchemaBuilderImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #5
Source File: SchemaBuilderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #6
Source File: SchemaBuilderImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #7
Source File: SchemaBuilderImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #8
Source File: SchemaBuilderImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary, String type, Location loc)
        throws BuildException {
    DatatypeLibrary dl = datatypeLibraryFactory.createDatatypeLibrary(datatypeLibrary);
    if (dl == null) {
        error("unrecognized_datatype_library", datatypeLibrary, (Locator) loc);
    } else {
        try {
            return new DataPatternBuilderImpl(dl.createDatatypeBuilder(type));
        } catch (DatatypeException e) {
            String detail = e.getMessage();
            if (detail != null) {
                error("unsupported_datatype_detail", datatypeLibrary, type, detail, (Locator) loc);
            } else {
                error("unrecognized_datatype", datatypeLibrary, type, (Locator) loc);
            }
        }
    }
    return new DummyDataPatternBuilder();
}
 
Example #9
Source File: CompactSyntax.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #10
Source File: CompactSyntax.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
 
Example #11
Source File: SchemaBuilderHost.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #12
Source File: CompactSyntax.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #13
Source File: SchemaBuilderHost.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #14
Source File: CompactSyntax.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
 
Example #15
Source File: CompactSyntax.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #16
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #17
Source File: CompactSyntax.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
 
Example #18
Source File: SchemaBuilderHost.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #19
Source File: SchemaBuilderHost.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #20
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #21
Source File: CompactSyntax.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
 
Example #22
Source File: SchemaBuilderHost.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #23
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #24
Source File: CompactSyntax.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
 
Example #25
Source File: SchemaBuilderHost.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #26
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #27
Source File: CompactSyntax.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}
 
Example #28
Source File: SchemaBuilderHost.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public DataPatternBuilder makeDataPatternBuilder(String datatypeLibrary,
    String type, Location _loc) throws BuildException {
    LocationHost loc = cast(_loc);

    return new DataPatternBuilderHost(
        lhs.makeDataPatternBuilder(datatypeLibrary, type, loc.lhs),
        rhs.makeDataPatternBuilder(datatypeLibrary, type, loc.rhs) );
}
 
Example #29
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void Params(DataPatternBuilder dpb) throws ParseException {
  jj_consume_token(11);
  label_18:
  while (true) {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 1:
    case 5:
    case 6:
    case 7:
    case 10:
    case 13:
    case 14:
    case 15:
    case 16:
    case 17:
    case 18:
    case 19:
    case 26:
    case 27:
    case 31:
    case 32:
    case 33:
    case 34:
    case 35:
    case 36:
    case DOCUMENTATION:
    case DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT:
    case IDENTIFIER:
    case ESCAPED_IDENTIFIER:
      ;
      break;
    default:
      jj_la1[53] = jj_gen;
      break label_18;
    }
    Param(dpb);
  }
  jj_consume_token(12);
}
 
Example #30
Source File: CompactSyntax.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
final public void Param(DataPatternBuilder dpb) throws ParseException {
LocatedString name;
Annotations a;
String value;
  a = Annotations();
  name = UnprefixedName();
  jj_consume_token(2);
                                                a = addCommentsToLeadingAnnotations(a);
  value = Literal();
  dpb.addParam(name.getString(), value, getContext(), defaultNamespace, name.getLocation(), a);
}