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, waitgetInputTypeprotected 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 OperationTypeOperationExceptionInvalidChainExceptionpublic AutomationService getService()
OperationTypegetService in interface OperationTypepublic String getId()
getId in interface OperationTypepublic String[] getAliases()
OperationTypegetAliases in interface OperationTypepublic Class<?> getType()
getType in interface OperationTypepublic OperationDocumentation getDocumentation() throws OperationException
getDocumentation in interface OperationTypeOperationExceptionprotected ArrayList<String> getSignature(OperationChainContribution.Operation[] operations) throws OperationException
operations - operations listing that chain contains.OperationExceptionprotected Class<?> getChainOutput(Class<?> chainInput, OperationChainContribution.Operation[] operations) throws OperationException
OperationExceptionpublic Class<?> getOperationOutput(Class<?> input, OperationType operationType)
protected InvokableMethod getTopMethod(InvokableMethod[] methods)
public String getContributingComponent()
OperationTypegetContributingComponent in interface OperationTypepublic InvokableMethod[] getMethodsMatchingInput(Class<?> in)
getMethodsMatchingInput in interface OperationTypeprotected 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 OperationTypepublic int hashCode()
hashCode in interface OperationTypehashCode in class Objectpublic boolean equals(Object obj)
equals in interface OperationTypeequals in class Objectpublic static ChainTypeImpl typeof(OperationChain chain, boolean replace)
typeof in interface OperationTypeCopyright © 2018 Nuxeo. All rights reserved.