Package org.opencms.gwt.shared
Class CmsValidationQuery
- java.lang.Object
-
- org.opencms.gwt.shared.CmsValidationQuery
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsValidationQuery extends java.lang.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
Constructors Modifier Constructor Description protected
CmsValidationQuery()
Hidden default constructor.CmsValidationQuery(java.lang.String validator, java.lang.String value, java.lang.String config)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConfig()
Gets the configuration string for the server-side validator.java.lang.String
getValidatorId()
Gets the class name of the server-side validator.java.lang.String
getValue()
Returns the value to validate.
-
-
-
Constructor Detail
-
CmsValidationQuery
public CmsValidationQuery(java.lang.String validator, java.lang.String value, java.lang.String config)
Constructor.- Parameters:
validator
- the server-side validator class namevalue
- the value to validateconfig
- the configuration string for the server-side validator
-
CmsValidationQuery
protected CmsValidationQuery()
Hidden default constructor.
-
-
Method Detail
-
getConfig
public java.lang.String getConfig()
Gets the configuration string for the server-side validator.- Returns:
- a configuration string
-
getValidatorId
public java.lang.String getValidatorId()
Gets the class name of the server-side validator.- Returns:
- the class name of the server-side validator
-
getValue
public java.lang.String getValue()
Returns the value to validate.- Returns:
- the value which should be validated
-
-