com.smartbear.swagger4j
Enum Parameter.ParamType

java.lang.Object
  extended by java.lang.Enum<Parameter.ParamType>
      extended by com.smartbear.swagger4j.Parameter.ParamType
All Implemented Interfaces:
Serializable, Comparable<Parameter.ParamType>
Enclosing interface:
Parameter

public static enum Parameter.ParamType
extends Enum<Parameter.ParamType>

Parameter type - see https://github.com/wordnik/swagger-core/wiki/Parameters


Enum Constant Summary
body
           
form
           
header
           
path
           
query
           
 
Method Summary
static Parameter.ParamType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Parameter.ParamType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

path

public static final Parameter.ParamType path

query

public static final Parameter.ParamType query

body

public static final Parameter.ParamType body

header

public static final Parameter.ParamType header

form

public static final Parameter.ParamType form
Method Detail

values

public static Parameter.ParamType[] 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 (Parameter.ParamType c : Parameter.ParamType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Parameter.ParamType 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.