Package org.geotools.ysld.validate
Class ScalarValidator
- Object
-
- YsldValidateHandler
-
- ScalarValidator
-
- Direct Known Subclasses:
ColorValidator
,ExpressionValidator
,FilterValidator
,NameValidator
public abstract class ScalarValidator extends YsldValidateHandler
-
-
Constructor Summary
Constructors Constructor Description ScalarValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
alias(AliasEvent evt, YsldValidateContext context)
void
scalar(ScalarEvent evt, YsldValidateContext context)
protected abstract String
validate(String value, ScalarEvent evt, YsldValidateContext context)
-
Methods inherited from class YsldValidateHandler
endMapping, endSequence, mapping, sequence
-
-
-
-
Method Detail
-
alias
public void alias(AliasEvent evt, YsldValidateContext context)
- Overrides:
alias
in classYsldValidateHandler
-
scalar
public void scalar(ScalarEvent evt, YsldValidateContext context)
- Overrides:
scalar
in classYsldValidateHandler
-
validate
protected abstract String validate(String value, ScalarEvent evt, YsldValidateContext context)
- Returns:
- Null if the value successfully validates, otherwise a String containing the validation error message.
-
-