public final Object _createValue( String literal, ValidationContext context ) { Object o = baseType._createValue(literal,context); if(o==null) return null; int r = ((Comparator)concreteType).compare(limitValue,o); if(!rangeCheck(r)) return null; return o; }
public final Object _createValue( String literal, ValidationContext context ) { Object o = baseType._createValue(literal,context); if(o==null) return null; int r = ((Comparator)concreteType).compare(limitValue,o); if(!rangeCheck(r)) return null; return o; }
public final Object _createValue( String literal, ValidationContext context ) { Object o = baseType._createValue(literal,context); if(o==null) return null; int r = ((Comparator)concreteType).compare(limitValue,o); if(!rangeCheck(r)) return null; return o; }
public final Object _createValue( String literal, ValidationContext context ) { Object o = baseType._createValue(literal,context); if(o==null) return null; int r = ((Comparator)concreteType).compare(limitValue,o); if(!rangeCheck(r)) return null; return o; }
public final Object _createValue( String literal, ValidationContext context ) { Object o = baseType._createValue(literal,context); if(o==null) return null; int r = ((Comparator)concreteType).compare(limitValue,o); if(!rangeCheck(r)) return null; return o; }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }
/** * check (min,max) facet specification and makes sure that * they are consistent * * @exception DatatypeException * when two facets are inconsistent */ private static void checkRangeConsistency(XSDatatypeImpl newType, String facetName1, String facetName2) throws DatatypeException { DataTypeWithFacet o1 = newType.getFacetObject(facetName1); DataTypeWithFacet o2 = newType.getFacetObject(facetName2); if (o1 != null && o2 != null) { final int c = ((Comparator)o1.getConcreteType()).compare(((RangeFacet)o1).limitValue, ((RangeFacet)o2).limitValue); if (c == Comparator.GREATER) throw reportFacetInconsistency(newType.displayName(), o1, facetName1, o2, facetName2); } }