com.smartbear.swagger4j
Enum Operation.Method
java.lang.Object
java.lang.Enum<Operation.Method>
com.smartbear.swagger4j.Operation.Method
- All Implemented Interfaces:
- Serializable, Comparable<Operation.Method>
- Enclosing interface:
- Operation
public static enum Operation.Method
- extends Enum<Operation.Method>
These are the methods supported by Swagger 1.2 - more to come
GET
public static final Operation.Method GET
POST
public static final Operation.Method POST
PUT
public static final Operation.Method PUT
DELETE
public static final Operation.Method DELETE
HEAD
public static final Operation.Method HEAD
OPTIONS
public static final Operation.Method OPTIONS
PATCH
public static final Operation.Method PATCH
values
public static Operation.Method[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Operation.Method c : Operation.Method.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Operation.Method valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2013. All Rights Reserved.