Input validators check user-entered input.

atg.cim.worker.common.AbsolutePathValidator

This bean returns true if the path to a given file is valid. For example:

C:/My_Dir/myFile

The validator determines whether the path to myFile is valid. Note that the validator does not check for the existence of myFile itself.

Properties:

atg.cim.worker.common.DirectoryExistsValidator

Returns true if the path entered is a valid path to an existing directory.

Properties:

atg.cim.worker.common.AllowOnlyAlphanumericInputValidator

This validator returns true if the input contains only alphanumeric characters.

Properties:

HelloWorld
atg.cim.worker.common.CannotBeBlankValidator

This validator returns true if the input is not empty. It can be used to ensure that the user did not leave an input field blank.

Properties:

atg.cim.worker.common.PortNumberInputValidator

This validator returns true if the input String is between 1 and 65535.

Properties:

atg.cim.worker.common.NoWhiteSpaceInputValidator

This validator returns true if the input contains no white-space characters.

Properties:

atg.cim.worker.common.FileExistsValidator

This validator returns true if the input is a path is to a valid file or directory.

Properties:

atg.cim.worker.common.AlwaysFalseValidator

This validator always returns false. Since Validators can be used to control flow in the CIM UI, you can use this validator to command it to do something without actually performing any test.

For example, after the user selects a wizard to run, CIM would normally display navigation options. Instead of this default behavior, you can force CIM to load the chosen wizard and then navigate to the next step with this XML snippet:

<validator id="AlwaysTrueValidator" phase="PRENAVIGATION">
  <onpass>
    <command type="EXECUTE_STEP_TASKS" />
    <command type="LOAD_PROCESS" />
  </onpass>
</validator>
atg.cim.worker.common.AlwaysTrueValidator

This validator always returns true. See atg.cim.AlwaysFalseValidator for usage suggestions.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices