Enum HTTPMethod
- java.lang.Object
-
- java.lang.Enum<HTTPMethod>
-
- com._1c.g5.v8.dt.metadata.mdclass.HTTPMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<HTTPMethod>
,org.eclipse.emf.common.util.Enumerator
public enum HTTPMethod extends Enum<HTTPMethod> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'HTTP Method', and utility methods for working with them.- See Also:
MdClassPackage.getHTTPMethod()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
The 'Any' literal object.CONNECT
The 'CONNECT' literal object.COPY
The 'COPY' literal object.DELETE
The 'DELETE' literal object.GET
The 'GET' literal object.LOCK
The 'LOCK' literal object.MERGE
The 'MERGE' literal object.MKCOL
The 'MKCOL' literal object.MOVE
The 'MOVE' literal object.OPTIONS
The 'OPTIONS' literal object.PATCH
The 'PATCH' literal object.POST
The 'POST' literal object.PROPFIND
The 'PROPFIND' literal object.PROPPATCH
The 'PROPPATCH' literal object.PUT
The 'PUT' literal object.TRACE
The 'TRACE' literal object.UNLOCK
The 'UNLOCK' literal object.
-
Field Summary
Fields Modifier and Type Field Description static int
ANY_VALUE
The 'Any' literal value.static int
CONNECT_VALUE
The 'CONNECT' literal value.static int
COPY_VALUE
The 'COPY' literal value.static int
DELETE_VALUE
The 'DELETE' literal value.static int
GET_VALUE
The 'GET' literal value.static int
LOCK_VALUE
The 'LOCK' literal value.static int
MERGE_VALUE
The 'MERGE' literal value.static int
MKCOL_VALUE
The 'MKCOL' literal value.static int
MOVE_VALUE
The 'MOVE' literal value.static int
OPTIONS_VALUE
The 'OPTIONS' literal value.static int
PATCH_VALUE
The 'PATCH' literal value.static int
POST_VALUE
The 'POST' literal value.static int
PROPFIND_VALUE
The 'PROPFIND' literal value.static int
PROPPATCH_VALUE
The 'PROPPATCH' literal value.static int
PUT_VALUE
The 'PUT' literal value.static int
TRACE_VALUE
The 'TRACE' literal value.static int
UNLOCK_VALUE
The 'UNLOCK' literal value.static List<HTTPMethod>
VALUES
A public read-only list of all the 'HTTP Method' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HTTPMethod
get(int value)
Returns the 'HTTP Method' literal with the specified integer value.static HTTPMethod
get(String literal)
Returns the 'HTTP Method' literal with the specified literal value.static HTTPMethod
getByName(String name)
Returns the 'HTTP Method' literal with the specified name.String
getLiteral()
String
getName()
int
getValue()
String
toString()
Returns the literal value of the enumerator, which is its string representation.static HTTPMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static HTTPMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final HTTPMethod GET
The 'GET' literal object.- See Also:
GET_VALUE
-
PUT
public static final HTTPMethod PUT
The 'PUT' literal object.- See Also:
PUT_VALUE
-
POST
public static final HTTPMethod POST
The 'POST' literal object.- See Also:
POST_VALUE
-
DELETE
public static final HTTPMethod DELETE
The 'DELETE' literal object.- See Also:
DELETE_VALUE
-
PATCH
public static final HTTPMethod PATCH
The 'PATCH' literal object.- See Also:
PATCH_VALUE
-
MERGE
public static final HTTPMethod MERGE
The 'MERGE' literal object.- See Also:
MERGE_VALUE
-
OPTIONS
public static final HTTPMethod OPTIONS
The 'OPTIONS' literal object.- See Also:
OPTIONS_VALUE
-
TRACE
public static final HTTPMethod TRACE
The 'TRACE' literal object.- See Also:
TRACE_VALUE
-
CONNECT
public static final HTTPMethod CONNECT
The 'CONNECT' literal object.- See Also:
CONNECT_VALUE
-
PROPFIND
public static final HTTPMethod PROPFIND
The 'PROPFIND' literal object.- See Also:
PROPFIND_VALUE
-
PROPPATCH
public static final HTTPMethod PROPPATCH
The 'PROPPATCH' literal object.- See Also:
PROPPATCH_VALUE
-
MOVE
public static final HTTPMethod MOVE
The 'MOVE' literal object.- See Also:
MOVE_VALUE
-
COPY
public static final HTTPMethod COPY
The 'COPY' literal object.- See Also:
COPY_VALUE
-
LOCK
public static final HTTPMethod LOCK
The 'LOCK' literal object.- See Also:
LOCK_VALUE
-
UNLOCK
public static final HTTPMethod UNLOCK
The 'UNLOCK' literal object.- See Also:
UNLOCK_VALUE
-
MKCOL
public static final HTTPMethod MKCOL
The 'MKCOL' literal object.- See Also:
MKCOL_VALUE
-
ANY
public static final HTTPMethod ANY
The 'Any' literal object.- See Also:
ANY_VALUE
-
-
Field Detail
-
GET_VALUE
public static final int GET_VALUE
The 'GET' literal value.- See Also:
GET
, Constant Field Values
-
PUT_VALUE
public static final int PUT_VALUE
The 'PUT' literal value.- See Also:
PUT
, Constant Field Values
-
POST_VALUE
public static final int POST_VALUE
The 'POST' literal value.- See Also:
POST
, Constant Field Values
-
DELETE_VALUE
public static final int DELETE_VALUE
The 'DELETE' literal value.- See Also:
DELETE
, Constant Field Values
-
PATCH_VALUE
public static final int PATCH_VALUE
The 'PATCH' literal value.- See Also:
PATCH
, Constant Field Values
-
MERGE_VALUE
public static final int MERGE_VALUE
The 'MERGE' literal value.- See Also:
MERGE
, Constant Field Values
-
OPTIONS_VALUE
public static final int OPTIONS_VALUE
The 'OPTIONS' literal value.- See Also:
OPTIONS
, Constant Field Values
-
TRACE_VALUE
public static final int TRACE_VALUE
The 'TRACE' literal value.- See Also:
TRACE
, Constant Field Values
-
CONNECT_VALUE
public static final int CONNECT_VALUE
The 'CONNECT' literal value.- See Also:
CONNECT
, Constant Field Values
-
PROPFIND_VALUE
public static final int PROPFIND_VALUE
The 'PROPFIND' literal value.- See Also:
PROPFIND
, Constant Field Values
-
PROPPATCH_VALUE
public static final int PROPPATCH_VALUE
The 'PROPPATCH' literal value.- See Also:
PROPPATCH
, Constant Field Values
-
MOVE_VALUE
public static final int MOVE_VALUE
The 'MOVE' literal value.- See Also:
MOVE
, Constant Field Values
-
COPY_VALUE
public static final int COPY_VALUE
The 'COPY' literal value.- See Also:
COPY
, Constant Field Values
-
LOCK_VALUE
public static final int LOCK_VALUE
The 'LOCK' literal value.- See Also:
LOCK
, Constant Field Values
-
UNLOCK_VALUE
public static final int UNLOCK_VALUE
The 'UNLOCK' literal value.- See Also:
UNLOCK
, Constant Field Values
-
MKCOL_VALUE
public static final int MKCOL_VALUE
The 'MKCOL' literal value.- See Also:
MKCOL
, Constant Field Values
-
ANY_VALUE
public static final int ANY_VALUE
The 'Any' literal value.- See Also:
ANY
, Constant Field Values
-
VALUES
public static final List<HTTPMethod> VALUES
A public read-only list of all the 'HTTP Method' enumerators.
-
-
Method Detail
-
values
public static HTTPMethod[] 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 (HTTPMethod c : HTTPMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HTTPMethod 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 nameNullPointerException
- if the argument is null
-
get
public static HTTPMethod get(String literal)
Returns the 'HTTP Method' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
public static HTTPMethod getByName(String name)
Returns the 'HTTP Method' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
public static HTTPMethod get(int value)
Returns the 'HTTP Method' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
public String toString()
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<HTTPMethod>
-
-