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, setTitle
getDescription, getId, getName, getTitle
public 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 IOperation
public void setRel(String rel)
public String getHref()
getHref
in interface IOperation
public IOperation.MethodType getMethod()
getMethod
in interface IOperation
IOperation.MethodType
public IProperty getTargetSchema()
getTargetSchema
in interface IOperation
public IProperty getSchema()
getSchema
in interface IOperation
public boolean hasMultipleArguments()
hasMultipleArguments
in interface IOperation
public String getSource()
getSource
in interface IOperation
public void setSource(String source)
IOperation
setSource
in interface IOperation
public boolean isGenericOperation()
isGenericOperation
in interface IOperation
public void setGenericOperation(boolean genericOperation)
genericOperation
- Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.