Class APIOperation
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.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
- Direct Known Subclasses:
DeployedAPIOperation
APIOperation describes an API command used as part of an API schema. It also defines the structure of the
header information, request and response.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected SchemaType
protected SchemaType
protected SchemaType
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
author, encodingStandard, formula, formulaType, namespace, queries, usage, versionNumber
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
description, displayName, expression, expressionType, 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
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor used by subclassesAPIOperation
(APIOperation template) Copy/clone Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this object as the abstract SchemaElement class.Returns a clone of this object as the abstract SchemaType class.boolean
Compare the values of the supplied object with those stored in the current object.Return the command for this operationReturn the structure of the API header (or null if no header).Return the structure of the request parameters (request body).Return the structure of the response.int
hashCode()
Hash of propertiesvoid
setCommand
(String command) Set up the command for this operationvoid
setHeaderSchemaType
(SchemaType headerSchemaType) Set up the structure of the API header (or null if no header).void
setRequestSchemaType
(SchemaType requestSchemaType) Set up the structure of the request parameters (request body).void
setResponseSchemaType
(SchemaType responseSchemaType) Set up the structure of the response.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType
getAuthor, getEncodingStandard, getFormula, getFormulaType, getNamespace, getQueries, getUsage, getVersionNumber, setAuthor, setEncodingStandard, setFormula, setFormulaType, setNamespace, setQueries, setUsage, setVersionNumber
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaElement
getDescription, getDisplayName, getExpression, getExpressionType, getIsCalculatedValue, getIsDeprecated, setDescription, setDisplayName, setExpression, setExpressionType, setIsCalculatedValue, 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, setExtendedProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Field Details
-
command
-
headerSchemaType
-
requestSchemaType
-
responseSchemaType
-
-
Constructor Details
-
APIOperation
public APIOperation()Default constructor used by subclasses -
APIOperation
Copy/clone Constructor.- Parameters:
template
- template object to copy.
-
-
Method Details
-
getCommand
Return the command for this operation- Returns:
- String name
-
setCommand
Set up the command for this operation- Parameters:
command
- name
-
getHeaderSchemaType
Return the structure of the API header (or null if no header).- Returns:
- schema type
-
setHeaderSchemaType
Set up the structure of the API header (or null if no header).- Parameters:
headerSchemaType
- schema type
-
getRequestSchemaType
Return the structure of the request parameters (request body).- Returns:
- schema type
-
setRequestSchemaType
Set up the structure of the request parameters (request body).- Parameters:
requestSchemaType
- schema type
-
getResponseSchemaType
Return the structure of the response.- Returns:
- schema type
-
setResponseSchemaType
Set up the structure of the response.- Parameters:
responseSchemaType
- schema type
-
cloneSchemaElement
Returns a clone of this object as the abstract SchemaElement class.- Overrides:
cloneSchemaElement
in classSchemaType
- Returns:
- PrimitiveSchemaType object
-
cloneSchemaType
Returns a clone of this object as the abstract SchemaType class.- Overrides:
cloneSchemaType
in classSchemaType
- Returns:
- PrimitiveSchemaType object
-
toString
Standard toString method.- Overrides:
toString
in classSchemaType
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classSchemaType
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classSchemaType
- Returns:
- int
-