Java Code Examples for org.relaxng.datatype.DatatypeException#UNKNOWN
The following examples show how to use
org.relaxng.datatype.DatatypeException#UNKNOWN .
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 TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }
Example 2
Source File: SchemaBuilderImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }
Example 3
Source File: SchemaBuilderImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }
Example 4
Source File: SchemaBuilderImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }
Example 5
Source File: SchemaBuilderImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }
Example 6
Source File: SchemaBuilderImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }
Example 7
Source File: SchemaBuilderImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void addParam(String name, String value, Context context, String ns, Location loc, Annotations anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); } catch (DatatypeException e) { String detail = e.getMessage(); int pos = e.getIndex(); String displayedParam; if (pos == DatatypeException.UNKNOWN) { displayedParam = null; } else { displayedParam = displayParam(value, pos); } if (displayedParam != null) { if (detail != null) { error("invalid_param_detail_display", detail, displayedParam, (Locator) loc); } else { error("invalid_param_display", displayedParam, (Locator) loc); } } else if (detail != null) { error("invalid_param_detail", detail, (Locator) loc); } else { error("invalid_param", (Locator) loc); } } }