public class Operation extends AbstractAsset implements IOperation
IOperation.MethodType| Constructor and Description |
|---|
Operation() |
Operation(String name,
String description,
IOperation.MethodType method,
IProperty targetSchema,
IProperty schema) |
Operation(String name,
String description,
IOperation.MethodType method,
IProperty targetSchema,
IProperty schema,
boolean genericOperation) |
Operation(String name,
String description,
IOperation.MethodType method,
IProperty targetSchema,
IProperty schema,
String href) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHref()
Gets the href of this Operation
|
IOperation.MethodType |
getMethod()
gets the method type of operation
|
String |
getRel()
Gets the rel of this Operation
|
IProperty |
getSchema()
gets the lists of input arguments
|
String |
getSource()
Gets the source of Operation
|
IProperty |
getTargetSchema()
gets the type of the returned object
|
boolean |
hasMultipleArguments()
Utility method to check if operation have multiple arguments
|
boolean |
isGenericOperation()
Represent if operation is generic in nature, which means it allow FDM author to add/remove argument of operation.
|
void |
setGenericOperation(boolean genericOperation)
Sets true if this is generic operation
|
void |
setRel(String rel) |
void |
setSource(String source)
sets the source of Operation
|
getDescription, getId, getName, getTitle, setDescription, setId, setName, setTitlegetDescription, getId, getName, getTitlepublic Operation()
public Operation(String name, String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema)
public Operation(String name, String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation)
public String getRel()
getRel in interface IOperationpublic void setRel(String rel)
public String getHref()
getHref in interface IOperationpublic IOperation.MethodType getMethod()
getMethod in interface IOperationIOperation.MethodTypepublic IProperty getTargetSchema()
getTargetSchema in interface IOperationpublic IProperty getSchema()
getSchema in interface IOperationpublic boolean hasMultipleArguments()
hasMultipleArguments in interface IOperationpublic String getSource()
getSource in interface IOperationpublic void setSource(String source)
IOperationsetSource in interface IOperationpublic boolean isGenericOperation()
isGenericOperation in interface IOperationpublic void setGenericOperation(boolean genericOperation)
genericOperation - Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.