public class ChainTypeImpl extends Object implements OperationType
Modifier and Type | Field and Description |
---|---|
protected String[] |
aliases
The operation ID Aliases array.
|
protected OperationChain |
chain |
protected Map<String,Object> |
chainParameters
Chain/Operation Parameters.
|
protected String |
contributingComponent
The contribution fragment name.
|
protected OperationChainContribution |
contribution
The operation chain XMAP contribution
|
protected String |
id
The operation ID - used for lookups.
|
protected String |
inputType
The input type of a chain/operation.
|
protected InvokableMethod |
method
A method of operation type
|
protected InvokableMethod[] |
methods
Invocable methods.
|
protected OperationParameters[] |
operations
The operations listing.
|
protected Class<?> |
outputChain
An output of operation type
|
protected OperationDocumentation.Param[] |
params
Chain/Operation Parameters.
|
protected AutomationService |
service
The service that registered the operation.
|
Constructor and Description |
---|
ChainTypeImpl(AutomationService service,
OperationChain chain) |
ChainTypeImpl(AutomationService service,
OperationChain chain,
OperationChainContribution contribution) |
protected final OperationChain chain
protected Map<String,Object> chainParameters
protected AutomationService service
protected OperationDocumentation.Param[] params
protected InvokableMethod[] methods
protected String contributingComponent
protected OperationParameters[] operations
protected OperationChainContribution contribution
protected Class<?> outputChain
protected InvokableMethod method
protected String inputType
public ChainTypeImpl(AutomationService service, OperationChain chain)
public ChainTypeImpl(AutomationService service, OperationChain chain, OperationChainContribution contribution)
public OperationChain getChain()
public Map<String,Object> getChainParameters()
public Object newInstance(OperationContext ctx, Map<String,Object> args) throws OperationNotFoundException, InvalidChainException
newInstance
in interface OperationType
OperationNotFoundException
InvalidChainException
public AutomationService getService()
OperationType
getService
in interface OperationType
public String getId()
getId
in interface OperationType
public String[] getAliases()
OperationType
getAliases
in interface OperationType
public Class<?> getType()
getType
in interface OperationType
public String getInputType()
OperationType
getInputType
in interface OperationType
public OperationDocumentation getDocumentation() throws OperationException
getDocumentation
in interface OperationType
OperationException
protected ArrayList<String> getSignature(OperationChainContribution.Operation[] operations) throws OperationException
operations
- operations listing that chain contains.OperationException
protected Class<?> getChainOutput(OperationChainContribution.Operation[] operations) throws OperationException
OperationException
public Class<?> getOperationOutput(Class<?> input, OperationType operationType)
protected InvokableMethod getTopMethod(InvokableMethod[] methods)
public String getContributingComponent()
OperationType
getContributingComponent
in interface OperationType
public InvokableMethod[] getMethodsMatchingInput(Class<?> in)
getMethodsMatchingInput
in interface OperationType
protected InvokableMethod runMethod()
protected String getParamDocumentationType(Class<?> type)
protected String getParamDocumentationType(Class<?> type, boolean isIterable)
public OperationChainContribution getContribution()
public List<InvokableMethod> getMethods()
getMethods
in interface OperationType
Copyright © 2016 Nuxeo SA. All rights reserved.