Class APIOperation
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.GovernedReferenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.APIOperation
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DeployedAPIOperation
public class APIOperation extends SchemaType
APIOperation describes an API command used as part of an API schema. It also defines the structure of the header information, request and response.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcommandprotected SchemaTypeheaderSchemaTypeprotected SchemaTyperequestSchemaTypeprotected SchemaTyperesponseSchemaType-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
author, encodingStandard, formula, namespace, queries, usage, versionNumber
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
description, displayName, expression, isCalculatedValue, isDeprecated
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.GovernedReferenceable
meanings, searchKeywords
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties, url
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description APIOperation()Default constructor used by subclassesAPIOperation(APIOperation template)Copy/clone Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaElementcloneSchemaElement()Returns a clone of this object as the abstract SchemaElement class.SchemaTypecloneSchemaType()Returns a clone of this object as the abstract SchemaType class.booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetCommand()Return the command for this operationSchemaTypegetHeaderSchemaType()Return the structure of the API header (or null if no header).SchemaTypegetRequestSchemaType()Return the structure of the request parameters (request body).SchemaTypegetResponseSchemaType()Return the structure of the response.inthashCode()Hash of propertiesvoidsetCommand(String command)Set up the command for this operationvoidsetHeaderSchemaType(SchemaType headerSchemaType)Set up the structure of the API header (or null if no header).voidsetRequestSchemaType(SchemaType requestSchemaType)Set up the structure of the request parameters (request body).voidsetResponseSchemaType(SchemaType responseSchemaType)Set up the structure of the response.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
getAuthor, getEncodingStandard, getFormula, getNamespace, getQueries, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setFormula, setNamespace, setQueries, setUsage, setVersionNumber
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
getDescription, getDisplayName, getExpression, getIsDeprecated, isCalculatedValue, setCalculatedValue, setDescription, setDisplayName, setExpression, setIsDeprecated
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.GovernedReferenceable
getMeanings, getSearchKeywords, setMeanings, setSearchKeywords
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, getURL, setExtendedProperties, setURL
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersions
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Field Detail
-
command
protected String command
-
headerSchemaType
protected SchemaType headerSchemaType
-
requestSchemaType
protected SchemaType requestSchemaType
-
responseSchemaType
protected SchemaType responseSchemaType
-
-
Constructor Detail
-
APIOperation
public APIOperation()
Default constructor used by subclasses
-
APIOperation
public APIOperation(APIOperation template)
Copy/clone Constructor.- Parameters:
template- template object to copy.
-
-
Method Detail
-
getCommand
public String getCommand()
Return the command for this operation- Returns:
- String name
-
setCommand
public void setCommand(String command)
Set up the command for this operation- Parameters:
command- name
-
getHeaderSchemaType
public SchemaType getHeaderSchemaType()
Return the structure of the API header (or null if no header).- Returns:
- schema type
-
setHeaderSchemaType
public void setHeaderSchemaType(SchemaType headerSchemaType)
Set up the structure of the API header (or null if no header).- Parameters:
headerSchemaType- schema type
-
getRequestSchemaType
public SchemaType getRequestSchemaType()
Return the structure of the request parameters (request body).- Returns:
- schema type
-
setRequestSchemaType
public void setRequestSchemaType(SchemaType requestSchemaType)
Set up the structure of the request parameters (request body).- Parameters:
requestSchemaType- schema type
-
getResponseSchemaType
public SchemaType getResponseSchemaType()
Return the structure of the response.- Returns:
- schema type
-
setResponseSchemaType
public void setResponseSchemaType(SchemaType responseSchemaType)
Set up the structure of the response.- Parameters:
responseSchemaType- schema type
-
cloneSchemaElement
public SchemaElement cloneSchemaElement()
Returns a clone of this object as the abstract SchemaElement class.- Overrides:
cloneSchemaElementin classSchemaType- Returns:
- PrimitiveSchemaType object
-
cloneSchemaType
public SchemaType cloneSchemaType()
Returns a clone of this object as the abstract SchemaType class.- Overrides:
cloneSchemaTypein classSchemaType- Returns:
- PrimitiveSchemaType object
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classSchemaType- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classSchemaType- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classSchemaType- Returns:
- int
-
-