protected void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException { if( checkLexicalConstraint(content) ) return; if( exps.length==1 ) throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_1,patterns[0]) ); else throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_MANY) ); }
protected void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException { if( checkLexicalConstraint(content) ) return; if( exps.length==1 ) throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_1,patterns[0]) ); else throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_MANY) ); }
protected void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException { if( checkLexicalConstraint(content) ) return; if( exps.length==1 ) throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_1,patterns[0]) ); else throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_MANY) ); }
protected void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException { if( checkLexicalConstraint(content) ) return; if( exps.length==1 ) throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_1,patterns[0]) ); else throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_MANY) ); }
protected void diagnoseByFacet(String content, ValidationContext context) throws DatatypeException { if( checkLexicalConstraint(content) ) return; if( exps.length==1 ) throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_1,patterns[0]) ); else throw new DatatypeException( DatatypeException.UNKNOWN, localize(ERR_PATTERN_MANY) ); }
public PatternFacet( String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_PATTERN, facets.isFixed(FACET_PATTERN) ); // TODO : am I supposed to implement my own regexp validator? // at this time, I use Xerces' one. Vector regExps = facets.getVector(FACET_PATTERN); patterns = (String[]) regExps.toArray(new String[regExps.size()]); try { compileRegExps(); } catch( ParseException pe ) { // in case regularExpression is not a correct pattern throw new DatatypeException( localize( ERR_PARSE_ERROR, pe.getMessage() ) ); } }
public PatternFacet( String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_PATTERN, facets.isFixed(FACET_PATTERN) ); // TODO : am I supposed to implement my own regexp validator? // at this time, I use Xerces' one. Vector regExps = facets.getVector(FACET_PATTERN); patterns = (String[]) regExps.toArray(new String[regExps.size()]); try { compileRegExps(); } catch( ParseException pe ) { // in case regularExpression is not a correct pattern throw new DatatypeException( localize( ERR_PARSE_ERROR, pe.getMessage() ) ); } }
public PatternFacet( String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_PATTERN, facets.isFixed(FACET_PATTERN) ); // TODO : am I supposed to implement my own regexp validator? // at this time, I use Xerces' one. Vector regExps = facets.getVector(FACET_PATTERN); patterns = (String[]) regExps.toArray(new String[regExps.size()]); try { compileRegExps(); } catch( ParseException pe ) { // in case regularExpression is not a correct pattern throw new DatatypeException( localize( ERR_PARSE_ERROR, pe.getMessage() ) ); } }
public PatternFacet( String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_PATTERN, facets.isFixed(FACET_PATTERN) ); // TODO : am I supposed to implement my own regexp validator? // at this time, I use Xerces' one. Vector regExps = facets.getVector(FACET_PATTERN); patterns = (String[]) regExps.toArray(new String[regExps.size()]); try { compileRegExps(); } catch( ParseException pe ) { // in case regularExpression is not a correct pattern throw new DatatypeException( localize( ERR_PARSE_ERROR, pe.getMessage() ) ); } }
public PatternFacet( String nsUri, String typeName, XSDatatypeImpl baseType, TypeIncubator facets ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_PATTERN, facets.isFixed(FACET_PATTERN) ); // TODO : am I supposed to implement my own regexp validator? // at this time, I use Xerces' one. Vector regExps = facets.getVector(FACET_PATTERN); patterns = (String[]) regExps.toArray(new String[regExps.size()]); try { compileRegExps(); } catch( ParseException pe ) { // in case regularExpression is not a correct pattern throw new DatatypeException( localize( ERR_PARSE_ERROR, pe.getMessage() ) ); } }