public class ChainTypeImpl extends Object implements OperationType
Modifier and Type | Field and Description |
---|---|
protected OperationChain |
chain |
protected String |
contributingComponent
The contribution fragment name.
|
protected OperationChainContribution |
contribution
The operation chain XMAP contribution
|
protected InvokableMethod[] |
methods
Invocable methods.
|
protected static Method |
runMethod |
protected AutomationService |
service
The service that registered the operation.
|
Constructor and Description |
---|
ChainTypeImpl(AutomationService service,
OperationChain chain,
OperationChainContribution contribution) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInputType
protected final OperationChain chain
protected AutomationService service
protected InvokableMethod[] methods
protected String contributingComponent
protected OperationChainContribution contribution
public ChainTypeImpl(AutomationService service, OperationChain chain, OperationChainContribution contribution)
public OperationChain getChain()
public Map<String,?> getChainParameters()
public Object newInstance(OperationContext ctx, Map<String,Object> args) throws OperationException, InvalidChainException
newInstance
in interface OperationType
OperationException
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 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(Class<?> chainInput, 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 static Method loadRunMethod()
protected String getParamDocumentationType(Class<?> type)
protected String getParamDocumentationType(Class<?> type, boolean isIterable)
public OperationChainContribution getContribution()
public List<InvokableMethod> getMethods()
getMethods
in interface OperationType
public int hashCode()
hashCode
in interface OperationType
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface OperationType
equals
in class Object
public static ChainTypeImpl typeof(OperationChain chain, boolean replace)
typeof
in interface OperationType
Copyright © 2017 Nuxeo. All rights reserved.