Package com._1c.g5.v8.dt.xdto.validation
Class ValueTypeValidatorAtomic.DecimalTypeValidator
- java.lang.Object
-
- com._1c.g5.v8.dt.xdto.validation.ValueTypeValidatorAtomic
-
- com._1c.g5.v8.dt.xdto.validation.ValueTypeValidatorAtomic.DecimalTypeValidator
-
- All Implemented Interfaces:
IValueTypeValidator
- Enclosing class:
- ValueTypeValidatorAtomic
protected static class ValueTypeValidatorAtomic.DecimalTypeValidator extends ValueTypeValidatorAtomic
IValueTypeValidator
for primitive type "Decimal"
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.xdto.validation.ValueTypeValidatorAtomic
ValueTypeValidatorAtomic.AnyURITypeValidator, ValueTypeValidatorAtomic.Base64BinaryTypeValidator, ValueTypeValidatorAtomic.BooleanTypeValidator, ValueTypeValidatorAtomic.DateTimeTypeValidator, ValueTypeValidatorAtomic.DecimalTypeValidator, ValueTypeValidatorAtomic.DoubleTypeValidator, ValueTypeValidatorAtomic.DurationTypeValidator, ValueTypeValidatorAtomic.FloatTypeValidator, ValueTypeValidatorAtomic.GDayTypeValidator, ValueTypeValidatorAtomic.GMonthDayTypeValidator, ValueTypeValidatorAtomic.GMonthTypeValidator, ValueTypeValidatorAtomic.GYearMonthTypeValidator, ValueTypeValidatorAtomic.GYearTypeValidator, ValueTypeValidatorAtomic.HexBinaryTypeValidator, ValueTypeValidatorAtomic.NotationTypeValidator, ValueTypeValidatorAtomic.QNameTypeValidator, ValueTypeValidatorAtomic.StringTypeValidator
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.xdto.validation.ValueTypeValidatorAtomic
DATE_SEPARATOR, DATE_SIZE, MONTH_DAY_SIZE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DecimalTypeValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkValueSpace(String value)
Checks string representation of facet value forValueType
int
compare(String value, String otherValue)
Comparing facet valuesprotected Number
getValue(String value)
-
Methods inherited from class com._1c.g5.v8.dt.xdto.validation.ValueTypeValidatorAtomic
checkDefaultValue, checkEnumerations, checkNCName, checkPatterns, checkTimeZone, hexToBin, isDigitOrPeriodOrSign, maxDayInMonthFor
-
-
-
-
Method Detail
-
checkValueSpace
public boolean checkValueSpace(String value)
Description copied from interface:IValueTypeValidator
Checks string representation of facet value forValueType
- Specified by:
checkValueSpace
in interfaceIValueTypeValidator
- Overrides:
checkValueSpace
in classValueTypeValidatorAtomic
- Parameters:
value
- checking value, can't benull
- Returns:
true
ifvalue
is valid,false
otherwise
-
compare
public int compare(String value, String otherValue)
Description copied from interface:IValueTypeValidator
Comparing facet values- Specified by:
compare
in interfaceIValueTypeValidator
- Overrides:
compare
in classValueTypeValidatorAtomic
- Parameters:
value
- the first value for comparing, can't benull
otherValue
- the second value for comparing, can't benull
- Returns:
- the value 0 if arguments are equal ; a value less than 0 if the first value less that the second; and a value greater than 0 if the first value greater that the second.
-
-