org.opencms.gwt.shared
Class CmsValidationQuery

java.lang.Object
  extended by org.opencms.gwt.shared.CmsValidationQuery
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsValidationQuery
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable

A simple bean class which represents a validation request for a single form field.

Since:
8.0.0

Constructor Summary
protected CmsValidationQuery()
          Hidden default constructor.
  CmsValidationQuery(String validator, String value, String config)
          Constructor.
 
Method Summary
 String getConfig()
          Gets the configuration string for the server-side validator.
 String getValidatorId()
          Gets the class name of the server-side validator.
 String getValue()
          Returns the value to validate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsValidationQuery

public CmsValidationQuery(String validator,
                          String value,
                          String config)
Constructor.

Parameters:
validator - the server-side validator class name
value - the value to validate
config - the configuration string for the server-side validator

CmsValidationQuery

protected CmsValidationQuery()
Hidden default constructor.

Method Detail

getConfig

public String getConfig()
Gets the configuration string for the server-side validator.

Returns:
a configuration string

getValidatorId

public String getValidatorId()
Gets the class name of the server-side validator.

Returns:
the class name of the server-side validator

getValue

public String getValue()
Returns the value to validate.

Returns:
the value which should be validated