private void addPrecisionParam(String str) throws DatatypeException { if (!(base.getPrimitive() instanceof DecimalDatatype)) error("precision_not_derived_from_decimal"); int scale = convertNonNegativeInteger(str); if (scale <= 0) error("precision_not_positive_integer"); base = new PrecisionRestrictDatatype(base, scale); }
private void addScaleParam(String str) throws DatatypeException { if (!(base.getPrimitive() instanceof DecimalDatatype)) error("scale_not_derived_from_decimal"); int scale = convertNonNegativeInteger(str); if (scale < 0) error("scale_not_non_negative_integer"); base = new ScaleRestrictDatatype(base, scale); }
private void addMaxExclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MaxExclusiveRestrictDatatype(base, getLimit(value, context), value); }
private int getLength(String str) throws DatatypeException { if (base.getMeasure() == null) error("no_length"); int len = convertNonNegativeInteger(str); if (len < 0) error("length_not_non_negative_integer"); return len; }
private void addMaxInclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MaxInclusiveRestrictDatatype(base, getLimit(value, context), value); }
private void addMinExclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MinExclusiveRestrictDatatype(base, getLimit(value, context), value); }
private void addMinInclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MinInclusiveRestrictDatatype(base, getLimit(value, context), value); }
Object getValue(String str, ValidationContext vc) throws DatatypeException { Object obj = super.getValue(str, vc); checkRestriction(obj); return obj; }
private void addPrecisionParam(String str) throws DatatypeException { if (!(base.getPrimitive() instanceof DecimalDatatype)) error("precision_not_derived_from_decimal"); int scale = convertNonNegativeInteger(str); if (scale <= 0) error("precision_not_positive_integer"); base = new PrecisionRestrictDatatype(base, scale); }
private void addScaleParam(String str) throws DatatypeException { if (!(base.getPrimitive() instanceof DecimalDatatype)) error("scale_not_derived_from_decimal"); int scale = convertNonNegativeInteger(str); if (scale < 0) error("scale_not_non_negative_integer"); base = new ScaleRestrictDatatype(base, scale); }
private int getLength(String str) throws DatatypeException { if (base.getMeasure() == null) error("no_length"); int len = convertNonNegativeInteger(str); if (len < 0) error("length_not_non_negative_integer"); return len; }
private void addMaxExclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MaxExclusiveRestrictDatatype(base, getLimit(value, context), value); }
private void addMaxInclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MaxInclusiveRestrictDatatype(base, getLimit(value, context), value); }
private void addMinExclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MinExclusiveRestrictDatatype(base, getLimit(value, context), value); }
Object getValue(String str, ValidationContext vc) throws DatatypeException { Object obj = super.getValue(str, vc); checkRestriction(obj); return obj; }
private void addPrecisionParam(String str) throws DatatypeException { if (!(base.getPrimitive() instanceof DecimalDatatype)) error("precision_not_derived_from_decimal"); int scale = convertNonNegativeInteger(str); if (scale <= 0) error("precision_not_positive_integer"); base = new PrecisionRestrictDatatype(base, scale); }
private void addScaleParam(String str) throws DatatypeException { if (!(base.getPrimitive() instanceof DecimalDatatype)) error("scale_not_derived_from_decimal"); int scale = convertNonNegativeInteger(str); if (scale < 0) error("scale_not_non_negative_integer"); base = new ScaleRestrictDatatype(base, scale); }
private void addMaxExclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MaxExclusiveRestrictDatatype(base, getLimit(value, context), value); }
private void addMaxInclusiveParam(String value, ValidationContext context) throws DatatypeException { base = new MaxInclusiveRestrictDatatype(base, getLimit(value, context), value); }
Object getValue(String str, ValidationContext vc) throws DatatypeException { Object obj = super.getValue(str, vc); checkRestriction(obj); return obj; }