Package com.iizigo.project
Class AppIDValidator
java.lang.Object
com.iizigo.project.AppIDValidator
- All Implemented Interfaces:
- IEntryValidator
Class used to validate the App ID.
The App ID follows is 'like' a Java package name, i.e. lower case 'a-z' or '0-9' with optional '.' separator(s). The first character must be 'a-z'.
The value is case insensitive and converted to lower case, and the maximum length is 64 characters.
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- getDescription- (IPropertyEditorController controller, PropertyEditorInfo info, PropCnr[] parents, String[] options) Gets a description of the validation options.- validate- (IPropertyEditorController controller, PropertyEditorInfo info, PropCnr[] parents, String value, String[] options) Validates the property value after editing.
- Constructor Details- AppIDValidatorpublic AppIDValidator()Default constructor.
 
- Method Details- validatepublic String validate- (IPropertyEditorController controller, PropertyEditorInfo info, PropCnr[] parents, String value, String[] options) Validates the property value after editing. If this is successful, null is returned. Otherwise an error message string is returned that can be used as the tooltip text.- Specified by:
- validatein interface- IEntryValidator
- Parameters:
- controller- The controller of the property editor.
- info- Information about the item being edited.
- parents- Property containers of the property.
- value- The string value to set.
- options- Validation options, may be null for none.
- Returns:
- An error message or null for OK validation.
 
- getDescriptionpublic String getDescription- (IPropertyEditorController controller, PropertyEditorInfo info, PropCnr[] parents, String[] options) Gets a description of the validation options.- Specified by:
- getDescriptionin interface- IEntryValidator
- Parameters:
- controller- The controller of the property editor.
- info- Information about the item being edited.
- parents- Property containers of the property.
- options- Validation options, may be null for none.
- Returns:
- The descriptive string that can be prepended with e.g. "Enter ";