Class InputRegExp

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, ValueValidator, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable
Direct Known Subclasses:
InputCurrency, InputDouble, InputEmail, InputFileName, InputLong, InputTel, InputTime, InputTimeRange

@Component @Configurable public class InputRegExp extends Input
This class extends the behaviour of the Input adding a particular validation. The InputRegExp value can be indeed validate against a regular expression allowing the developer to establish to which constraints the value introduced by the user must undergo in order to be considered valid.
See Also:
GCApi:
component
  • Field Details

    • _regexp

      protected String _regexp
  • Constructor Details

    • InputRegExp

      public InputRegExp()
  • Method Details

    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Input
    • setREGEXP

      public void setREGEXP(String s)
      Sets the regular expression against which the field will be validated. The pattern must be compatible with that indicated in the java documentation (https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html)
      Parameters:
      s - The regular expression used for the validation
    • validate

      protected void validate(org.apache.ecs.html.Input i, EntitySet es, boolean ro)
      Overrides:
      validate in class Input
    • validateConcreteValue

      protected void validateConcreteValue(String name, Object value, boolean strong, Map arriving) throws ValidationException
      Overrides:
      validateConcreteValue in class Input
      Throws:
      ValidationException
    • setModelProperties

      public void setModelProperties(@NotNull @NotNull DataAttribute dataAttribute)
      Description copied from interface: overit.geocall.ux.edm.ModelConfigurable
      Sets the model properties based on the provided DataAttribute.
      Specified by:
      setModelProperties in interface overit.geocall.ux.edm.ModelConfigurable
      Overrides:
      setModelProperties in class Input
      Parameters:
      dataAttribute - a non-null DataAttribute used to set model properties