public Pattern makePattern(SourceLocation loc, AnnotationsImpl anno) throws BuildException { if (dtb != null) { try { dtb.createDatatype(); } catch (DatatypeException e){ diagnoseDatatypeException("invalid_params_detail", "invalid_params", e, loc); } } return finishPattern(p, loc, anno); }
public void addParam(String name, String value, Context context, String ns, SourceLocation loc, AnnotationsImpl anno) throws BuildException { Param param = new Param(name, value); param.setContext(new NamespaceContextImpl(context)); finishAnnotated(param, loc, anno); p.getParams().add(param); if (dtb != null) { try { dtb.addParameter(name, value, context); } catch (DatatypeException e) { diagnoseDatatypeException("invalid_param_detail", "invalid_param", e, loc); } } }
public void addParam(String name, String value, Context context, String ns, Locator loc, AnnotationsImpl anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); params.add(name); params.add(value); } 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, loc); else error("invalid_param_display", displayedParam, loc); } else if (detail != null) error("invalid_param_detail", detail, loc); else error("invalid_param", loc); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
public void addParam(String name, String value, Context context, String ns, Locator loc, AnnotationsImpl anno) throws BuildException { try { dtb.addParameter(name, value, new ValidationContextImpl(context, ns)); params.add(name); params.add(value); } 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, loc); else error("invalid_param_display", displayedParam, loc); } else if (detail != null) error("invalid_param_detail", detail, loc); else error("invalid_param", loc); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
protected void endSelf() { final String facet = startTag.getAttribute("name"); if(facet==null) reader.reportError( RELAXNGReader.ERR_MISSING_ATTRIBUTE, startTag.qName, "name" ); else { try { ((DataState)parentState).typeBuilder.addParameter( facet, text.toString(), reader ); } catch( DatatypeException dte ) { reader.reportError( RELAXNGReader.ERR_BAD_FACET, facet, dte.getMessage() ); } } super.endSelf(); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
protected void endSelf() { final String facet = startTag.getAttribute("name"); if(facet==null) reader.reportError( RELAXNGReader.ERR_MISSING_ATTRIBUTE, startTag.qName, "name" ); else { try { ((DataState)parentState).typeBuilder.addParameter( facet, text.toString(), reader ); } catch( DatatypeException dte ) { reader.reportError( RELAXNGReader.ERR_BAD_FACET, facet, dte.getMessage() ); } } super.endSelf(); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
protected void endSelf() { final String facet = startTag.getAttribute("name"); if(facet==null) reader.reportError( RELAXNGReader.ERR_MISSING_ATTRIBUTE, startTag.qName, "name" ); else { try { ((DataState)parentState).typeBuilder.addParameter( facet, text.toString(), reader ); } catch( DatatypeException dte ) { reader.reportError( RELAXNGReader.ERR_BAD_FACET, facet, dte.getMessage() ); } } super.endSelf(); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
protected void endSelf() { final String facet = startTag.getAttribute("name"); if(facet==null) reader.reportError( RELAXNGReader.ERR_MISSING_ATTRIBUTE, startTag.qName, "name" ); else { try { ((DataState)parentState).typeBuilder.addParameter( facet, text.toString(), reader ); } catch( DatatypeException dte ) { reader.reportError( RELAXNGReader.ERR_BAD_FACET, facet, dte.getMessage() ); } } super.endSelf(); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
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); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
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); } } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }
public Datatype createDatatype(String type) throws DatatypeException { return createDatatypeBuilder(type).createDatatype(); } }