| Modifier and Type | Field and Description |
|---|---|
| private String | aaKey
Action name in a Additional Action dictionary |
| protected COSDictionary | actionDictionary
The action dictionary checked by this class |
| private ActionManagerFactory | actionFact
ActionManager factory used to create new ActionManager |
| protected PreflightContext | context
The validation context |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractActionManager(ActionManagerFactory
Instance of ActionManagerFactory used to create ActionManager to check Next actions. amFact, COSDictionary the COSDictionary of the action wrapped by this class. adict, PreflightContext the validation context . ctx, String The name of the key which identify the action in a additional action dictionary. aaKey)
|
| Modifier and Type | Method and Description |
|---|---|
| public COSDictionary | |
| public String | |
| protected abstract boolean | Returns: True if the action is valid, false otherwise.This method must be implemented by inherited classes to process specific validation. |
| public boolean | |
| public boolean | Returns: the validation state.Call the |
| public boolean | Returns: the validation state of the Action dictionary.boolean to know if an additional action is authorized. additionalActionAuth)Validate an Action dictionary. |
| protected boolean | Returns: True if all Next Action are valid, false otherwise.This method create a list of Action Managers which represent actions in the Next entry of the current action dictionary. |
| aaKey | back to summary |
|---|---|
| private String aaKey Action name in a Additional Action dictionary | |
| actionDictionary | back to summary |
|---|---|
| protected COSDictionary actionDictionary The action dictionary checked by this class | |
| actionFact | back to summary |
|---|---|
| private ActionManagerFactory actionFact ActionManager factory used to create new ActionManager | |
| context | back to summary |
|---|---|
| protected PreflightContext context The validation context | |
| AbstractActionManager | back to summary |
|---|---|
pack-priv AbstractActionManager(ActionManagerFactory amFact, COSDictionary adict, PreflightContext ctx, String aaKey)
| |
| getActionDictionary | back to summary |
|---|---|
public COSDictionary getActionDictionary()
| |
| getAdditionalActionKey | back to summary |
|---|---|
public String getAdditionalActionKey()
| |
| innerValid | back to summary |
|---|---|
| protected abstract boolean innerValid() throws ValidationException This method must be implemented by inherited classes to process specific validation.
| |
| isAdditionalAction | back to summary |
|---|---|
public boolean isAdditionalAction()
| |
| valid | back to summary |
|---|---|
| public boolean valid() throws ValidationException Call the
| |
| valid | back to summary |
|---|---|
| public boolean valid(boolean additionalActionAuth) throws ValidationException Validate an Action dictionary. Return false if the dictionary is invalid (ex : missing key). If the ActionManager represents an AdditionalAction, this method returns false and updates the error list when the additionalActionAuth parameter is set to false. This method call the innerValid method to process specific checks according to the action type. If innerValid successes, all actions contained in the Next entry of the Action dictionary are validated.
| |
| validNextActions | back to summary |
|---|---|
| protected boolean validNextActions() throws ValidationException This method create a list of Action Managers which represent actions in the Next entry of the current action dictionary. For each Next Action, the innerValid is called and the method returns false if a validation fails.
| |