public class ActionManagerFactory
extends java.lang.Object
Constructor and Description |
---|
ActionManagerFactory() |
Modifier and Type | Method and Description |
---|---|
private void |
callCreateAction(COSBase aDict,
PreflightContext ctx,
java.util.List<AbstractActionManager> result,
java.util.Map<COSObjectKey,java.lang.Boolean> alreadyCreated)
Call the callCreateAction(COSBase, COSDocument, List
|
private void |
callCreateAction(COSBase aDict,
PreflightContext ctx,
java.util.List<AbstractActionManager> result,
java.lang.String additionActionKey,
java.util.Map<COSObjectKey,java.lang.Boolean> alreadyCreated)
Call the create action to add the ActionManager to the result list.
|
protected AbstractActionManager |
createActionManager(PreflightContext ctx,
COSDictionary action,
java.lang.String aaKey)
Create an instance of ActionManager according to the value of the S entry.
|
java.util.List<AbstractActionManager> |
getActionManagers(PreflightContext ctx,
COSDictionary dictionary)
This method extract actions from the given dictionary.
|
java.util.List<AbstractActionManager> |
getNextActions(PreflightContext ctx,
COSDictionary actionDictionary)
Returns all actions contained by the Next entry.
|
public final java.util.List<AbstractActionManager> getActionManagers(PreflightContext ctx, COSDictionary dictionary) throws ValidationException
ctx
- the preflight context.dictionary
- the dictionary to retrieve the actions from.ValidationException
private void callCreateAction(COSBase aDict, PreflightContext ctx, java.util.List<AbstractActionManager> result, java.util.Map<COSObjectKey,java.lang.Boolean> alreadyCreated) throws ValidationException
aDict
- a COSBase object (COSObject or COSDictionary) which represent the action dictionary.ctx
- the preflight context.result
- the list of ActionManager to updated if the aDict parameter is valid.alreadyCreated
- This map is used to know if an Action has already been validated. It is useful to avoid infinite loop
in an action which has a Next entry.ValidationException
private void callCreateAction(COSBase aDict, PreflightContext ctx, java.util.List<AbstractActionManager> result, java.lang.String additionActionKey, java.util.Map<COSObjectKey,java.lang.Boolean> alreadyCreated) throws ValidationException
aDict
- a COSBase object (COSObject or COSDictionary) which represent the action dictionary.ctx
- the preflight validation context.result
- the list of ActionManager to updated if the aDict parameter is valid.additionActionKey
- the Action identifier if it is an additional actionalreadyCreated
- This map is used to know if an Action has already been validated. It is useful to avoid infinite loop
in an action which has a Next entry.ValidationException
public final java.util.List<AbstractActionManager> getNextActions(PreflightContext ctx, COSDictionary actionDictionary) throws ValidationException
ctx
- the preflight context.actionDictionary
- the dictionary to retrieve the actions from.ValidationException
protected AbstractActionManager createActionManager(PreflightContext ctx, COSDictionary action, java.lang.String aaKey) throws ValidationException
ctx
- the preflight context.action
- the action dictionary used to instantiate the ActionManageraaKey
- the Action identifier if it is an additional actionValidationException