Package org.opencms.gwt.client.property
Class CmsUrlNameValidator
java.lang.Object
org.opencms.gwt.client.property.CmsUrlNameValidator
- All Implemented Interfaces:
I_CmsValidator
Validator class for the URL name field in the property editor.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorDescriptionCmsUrlNameValidator
(String parentPath, org.opencms.util.CmsUUID id) Creates a new URL name validator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(I_CmsFormField field, I_CmsValidationController controller) If this method is called, the object should either validate the form field and report the result to the validation controller, or request asynchronous validation of the field from the validation controller.
-
Constructor Details
-
CmsUrlNameValidator
Creates a new URL name validator.- Parameters:
parentPath
- the parent path of the resource for which the URL name is being validatedid
- the id of the resource whose URL name is being validated
-
-
Method Details
-
validate
Description copied from interface:I_CmsValidator
If this method is called, the object should either validate the form field and report the result to the validation controller, or request asynchronous validation of the field from the validation controller.- Specified by:
validate
in interfaceI_CmsValidator
- Parameters:
field
- the form field to be validatedcontroller
- the validation controller- See Also:
-