Package com._1c.g5.v8.dt.xdto.validation
Interface IValueTypeValidator
-
- All Known Implementing Classes:
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
,ValueTypeValidatorList
,ValueTypeValidatorUnion
public interface IValueTypeValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkDefaultValue(String value, ValueType type, org.eclipse.xtext.scoping.IScope scope)
CheckingProperty.getDefault()
valueboolean
checkEnumerations(String value, ValueType type)
Checks value ofXdtoUtil.FacetKind.ENUMERATION
boolean
checkPatterns(String value, ValueType type)
Checks value ofXdtoUtil.FacetKind.ENUMERATION
boolean
checkValueSpace(String value)
Checks string representation of facet value forValueType
int
compare(String value, String otherValue)
Comparing facet values
-
-
-
Method Detail
-
checkDefaultValue
boolean checkDefaultValue(String value, ValueType type, org.eclipse.xtext.scoping.IScope scope)
CheckingProperty.getDefault()
value
-
checkValueSpace
boolean checkValueSpace(String value)
Checks string representation of facet value forValueType
- Parameters:
value
- checking value, can't benull
- Returns:
true
ifvalue
is valid,false
otherwise
-
checkEnumerations
boolean checkEnumerations(String value, ValueType type)
Checks value ofXdtoUtil.FacetKind.ENUMERATION
- Parameters:
value
- checking value, can't benull
type
-ValueType
which value is checked, can't benull
- Returns:
true
if value is valid,false
otherwise
-
checkPatterns
boolean checkPatterns(String value, ValueType type)
Checks value ofXdtoUtil.FacetKind.ENUMERATION
- Parameters:
value
- checking value, can't benull
type
-ValueType
which value is checked, can't benull
- Returns:
true
if value is valid,false
otherwise
-
compare
int compare(String value, String otherValue)
Comparing facet values- 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.
-
-