public class APIOperation extends SchemaType
| Modifier and Type | Field and Description |
|---|---|
protected String |
command |
protected SchemaType |
headerSchemaType |
protected SchemaType |
requestSchemaType |
protected SchemaType |
responseSchemaType |
author, displayName, encodingStandard, usage, versionNumberadditionalProperties, meanings, qualifiedNameclassifications, extendedProperties, guid, type, url| Constructor and Description |
|---|
APIOperation()
Default constructor used by subclasses
|
APIOperation(APIOperation template)
Copy/clone Constructor the parentAsset is passed separately to the template because it is also
likely to be being cloned in the same operation and we want the definitions clone to point to the
asset clone and not the original asset.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaElement |
cloneSchemaElement()
Returns a clone of this object as the abstract SchemaElement class.
|
SchemaType |
cloneSchemaType()
Returns a clone of this object as the abstract SchemaType class.
|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getCommand()
Return the command for this operation
|
SchemaType |
getHeaderSchemaType()
Return the structure of the API header (or null if no header).
|
SchemaType |
getRequestSchemaType()
Return the structure of the request parameters (request body).
|
SchemaType |
getResponseSchemaType()
Return the structure of the response.
|
int |
hashCode()
Hash of properties
|
void |
setCommand(String command)
Set up the command for this operation
|
void |
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.
|
String |
toString()
Standard toString method.
|
getAuthor, getDisplayName, getEncodingStandard, getUsage, getVersionNumber, setAuthor, setDisplayName, setEncodingStandard, setUsage, setVersionNumbergetAdditionalProperties, getMeanings, getQualifiedName, setAdditionalProperties, setMeanings, setQualifiedNamegetClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURLprotected String command
protected SchemaType headerSchemaType
protected SchemaType requestSchemaType
protected SchemaType responseSchemaType
public APIOperation()
public APIOperation(APIOperation template)
template - template object to copy.public String getCommand()
public void setCommand(String command)
command - namepublic SchemaType getHeaderSchemaType()
public void setHeaderSchemaType(SchemaType headerSchemaType)
headerSchemaType - schema typepublic SchemaType getRequestSchemaType()
public void setRequestSchemaType(SchemaType requestSchemaType)
requestSchemaType - schema typepublic SchemaType getResponseSchemaType()
public void setResponseSchemaType(SchemaType responseSchemaType)
responseSchemaType - schema typepublic SchemaElement cloneSchemaElement()
cloneSchemaElement in class SchemaTypepublic SchemaType cloneSchemaType()
cloneSchemaType in class SchemaTypepublic String toString()
toString in class SchemaTypepublic boolean equals(Object objectToCompare)
equals in class SchemaTypeobjectToCompare - supplied objectpublic int hashCode()
hashCode in class ReferenceableCopyright © 2018–2020 ODPi. All rights reserved.