Interface TypeValidator
-
- All Known Implementing Classes:
AreaTypeComputer
,CyrillicTypeComputer
,EmptyTypeComputer
,FqnTypeComputer
,KeysTypeComputer
,KeyTypeComputer
,LatinTypeComputer
,MethodNameTypeComputer
,NonWordsTypeComputer
,NstrTypeComputer
,QueryDcsTypeComputer
,QueryTypeComputer
,SortColumnsTypeComputer
,UuidTypeComputer
public interface TypeValidator
The common interface allows to checkStringLiteral
content is valid for declared content type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getSupportedType()
Returns the supported type ID of the string literal content validator.org.eclipse.core.runtime.IStatus
validate(StringLiteral literal, List<String> content, org.eclipse.xtext.util.CancelIndicator monitor)
Checks that content of string literal is valid for the declared content type.
-
-
-
Method Detail
-
getSupportedType
String getSupportedType()
Returns the supported type ID of the string literal content validator.- Returns:
- the supported type, cannot return
null
.
-
validate
org.eclipse.core.runtime.IStatus validate(StringLiteral literal, List<String> content, org.eclipse.xtext.util.CancelIndicator monitor)
Checks that content of string literal is valid for the declared content type.- Parameters:
literal
- the string literal, cannot benull
.content
- the content of lines of the string literal, cannot benull
.monitor
- the monitor to check cancel status, cannot benull
.- Returns:
- the status of validation, cannot return
null
.
-
-