Package com._1c.g5.v8.dt.xdto.validation
Class ValueTypeValidatorProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.xdto.validation.ValueTypeValidatorProvider
-
public class ValueTypeValidatorProvider extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ValueTypeValidatorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IValueTypeValidator
getDefaultValueValidator(ValueType valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
protected IValueTypeValidator
getDefaultValueValidator(Variety variety, org.eclipse.xtext.naming.QualifiedName typeName, QName itemType, org.eclipse.xtext.scoping.IScope scope)
GetsIValueTypeValidator
byVariety
, full name of the type and name of the it item list type (if available)IValueTypeValidator
getDefaultValueValidator(org.eclipse.xtext.resource.IEObjectDescription valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
IValueTypeValidator
getDefaultValueValidatorRecursively(ValueType valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
recursively find validator for base typeIValueTypeValidator
getDefaultValueValidatorRecursively(org.eclipse.xtext.resource.IEObjectDescription valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
recursively find validator for base typeprotected IValueTypeValidator
getPrimitiveTypeValidator(org.eclipse.xtext.naming.QualifiedName name)
GetsIValueTypeValidator
for primitive xdto type by itQualifiedName
protected IValueTypeValidator
getPrimitiveValidators(String typeName)
GetsIValueTypeValidator
for primitive xdto type by it name
-
-
-
Field Detail
-
PACKAGE_URI
public static final String PACKAGE_URI
- See Also:
- Constant Field Values
-
ANY_TYPE
public static final String ANY_TYPE
- See Also:
- Constant Field Values
-
ANY_SIMPLE_TYPE
public static final String ANY_SIMPLE_TYPE
- See Also:
- Constant Field Values
-
STRING_TYPE
public static final String STRING_TYPE
- See Also:
- Constant Field Values
-
BOOLEAN_TYPE
public static final String BOOLEAN_TYPE
- See Also:
- Constant Field Values
-
FLOAT_TYPE
public static final String FLOAT_TYPE
- See Also:
- Constant Field Values
-
DOUBLE_TYPE
public static final String DOUBLE_TYPE
- See Also:
- Constant Field Values
-
DECIMAL_TYPE
public static final String DECIMAL_TYPE
- See Also:
- Constant Field Values
-
DATE_TIME_TYPE
public static final String DATE_TIME_TYPE
- See Also:
- Constant Field Values
-
DURATION_TYPE
public static final String DURATION_TYPE
- See Also:
- Constant Field Values
-
TIME_TYPE
public static final String TIME_TYPE
- See Also:
- Constant Field Values
-
DATE_TYPE
public static final String DATE_TYPE
- See Also:
- Constant Field Values
-
G_MONTH_TYPE
public static final String G_MONTH_TYPE
- See Also:
- Constant Field Values
-
G_MONTH_DAY_TYPE
public static final String G_MONTH_DAY_TYPE
- See Also:
- Constant Field Values
-
G_DAY_TYPE
public static final String G_DAY_TYPE
- See Also:
- Constant Field Values
-
G_YEAR_TYPE
public static final String G_YEAR_TYPE
- See Also:
- Constant Field Values
-
G_YEAR_MONTH_TYPE
public static final String G_YEAR_MONTH_TYPE
- See Also:
- Constant Field Values
-
HEX_BINARY_TYPE
public static final String HEX_BINARY_TYPE
- See Also:
- Constant Field Values
-
BASE64_BINARY_TYPE
public static final String BASE64_BINARY_TYPE
- See Also:
- Constant Field Values
-
ANY_URI_TYPE
public static final String ANY_URI_TYPE
- See Also:
- Constant Field Values
-
QNAME_TYPE
public static final String QNAME_TYPE
- See Also:
- Constant Field Values
-
NOTATION_TYPE
public static final String NOTATION_TYPE
- See Also:
- Constant Field Values
-
NORMALIZED_STRING_TYPE
public static final String NORMALIZED_STRING_TYPE
- See Also:
- Constant Field Values
-
TOKEN_TYPE
public static final String TOKEN_TYPE
- See Also:
- Constant Field Values
-
LANGUAGE_TYPE
public static final String LANGUAGE_TYPE
- See Also:
- Constant Field Values
-
NAME_TYPE
public static final String NAME_TYPE
- See Also:
- Constant Field Values
-
NC_NAME_TYPE
public static final String NC_NAME_TYPE
- See Also:
- Constant Field Values
-
ID_TYPE
public static final String ID_TYPE
- See Also:
- Constant Field Values
-
ID_REF_TYPE
public static final String ID_REF_TYPE
- See Also:
- Constant Field Values
-
ID_REFS_TYPE
public static final String ID_REFS_TYPE
- See Also:
- Constant Field Values
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
ENTITIES_TYPE
public static final String ENTITIES_TYPE
- See Also:
- Constant Field Values
-
NM_TOKEN_TYPE
public static final String NM_TOKEN_TYPE
- See Also:
- Constant Field Values
-
NM_TOKENS_TYPE
public static final String NM_TOKENS_TYPE
- See Also:
- Constant Field Values
-
INTEGER_TYPE
public static final String INTEGER_TYPE
- See Also:
- Constant Field Values
-
NON_POSITIVE_INTEGER_TYPE
public static final String NON_POSITIVE_INTEGER_TYPE
- See Also:
- Constant Field Values
-
NEGATIVE_INTEGER_TYPE
public static final String NEGATIVE_INTEGER_TYPE
- See Also:
- Constant Field Values
-
LONG_TYPE
public static final String LONG_TYPE
- See Also:
- Constant Field Values
-
INT_TYPE
public static final String INT_TYPE
- See Also:
- Constant Field Values
-
SHORT_TYPE
public static final String SHORT_TYPE
- See Also:
- Constant Field Values
-
BYTE_TYPE
public static final String BYTE_TYPE
- See Also:
- Constant Field Values
-
NON_NEGATIVE_INTEGER_TYPE
public static final String NON_NEGATIVE_INTEGER_TYPE
- See Also:
- Constant Field Values
-
POSITIVE_INTEGER_TYPE
public static final String POSITIVE_INTEGER_TYPE
- See Also:
- Constant Field Values
-
UNSIGNED_LONG_TYPE
public static final String UNSIGNED_LONG_TYPE
- See Also:
- Constant Field Values
-
UNSIGNED_INT_TYPE
public static final String UNSIGNED_INT_TYPE
- See Also:
- Constant Field Values
-
UNSIGNED_SHORT_TYPE
public static final String UNSIGNED_SHORT_TYPE
- See Also:
- Constant Field Values
-
UNSIGNED_BYTE_TYPE
public static final String UNSIGNED_BYTE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultValueValidator
public IValueTypeValidator getDefaultValueValidator(ValueType valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
- Parameters:
valueType
- actualValueType
, can't benull
scope
-IScope
ofType
, can't benull
- Returns:
- found
IValueTypeValidator
, nevernull
-
getDefaultValueValidator
public IValueTypeValidator getDefaultValueValidator(org.eclipse.xtext.resource.IEObjectDescription valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
- Parameters:
valueType
- actual indexing element ofValueType
, can't benull
scope
-IScope
ofType
, can't benull
- Returns:
- found
IValueTypeValidator
, nevernull
-
getDefaultValueValidatorRecursively
public IValueTypeValidator getDefaultValueValidatorRecursively(ValueType valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
recursively find validator for base type- Parameters:
valueType
- actualValueType
, can't benull
scope
-IScope
ofType
, can't benull
- Returns:
- found
IValueTypeValidator
, nevernull
-
getDefaultValueValidatorRecursively
public IValueTypeValidator getDefaultValueValidatorRecursively(org.eclipse.xtext.resource.IEObjectDescription valueType, org.eclipse.xtext.scoping.IScope scope)
Gets actualIValueTypeValidator
recursively find validator for base type- Parameters:
valueType
- actual indexing element ofValueType
, can't benull
scope
-IScope
ofType
, can't benull
- Returns:
- found
IValueTypeValidator
, nevernull
-
getDefaultValueValidator
protected IValueTypeValidator getDefaultValueValidator(Variety variety, org.eclipse.xtext.naming.QualifiedName typeName, QName itemType, org.eclipse.xtext.scoping.IScope scope)
GetsIValueTypeValidator
byVariety
, full name of the type and name of the it item list type (if available)- Parameters:
variety
- actualVariety
of theValueType
, can't benull
typeName
- actual type name ofValueType
, can't benull
itemType
- name of the corresponding item list type, can benull
scope
-IScope
ofType
, can't benull
- Returns:
- found
IValueTypeValidator
, can benull
if validator wasn't found
-
getPrimitiveTypeValidator
protected IValueTypeValidator getPrimitiveTypeValidator(org.eclipse.xtext.naming.QualifiedName name)
GetsIValueTypeValidator
for primitive xdto type by itQualifiedName
- Parameters:
name
- name of primitive xdto type. all names of primitive type you can find in , can't benull
- Returns:
- found
IValueTypeValidator
ofnull
of there is no validator for this type
-
getPrimitiveValidators
protected IValueTypeValidator getPrimitiveValidators(String typeName)
GetsIValueTypeValidator
for primitive xdto type by it name- Parameters:
name
- name of primitive xdto type. all names of primitive type you can find in , can't benull
- Returns:
- found
IValueTypeValidator
ofnull
of there is no validator for this type
-
-