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 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 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 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 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 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 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 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); }