Package com.mdfromhtml.core
Enum MDfromHTMLIPCVerbs
- java.lang.Object
-
- java.lang.Enum<MDfromHTMLIPCVerbs>
-
- com.mdfromhtml.core.MDfromHTMLIPCVerbs
-
- All Implemented Interfaces:
Serializable,Comparable<MDfromHTMLIPCVerbs>
public enum MDfromHTMLIPCVerbs extends Enum<MDfromHTMLIPCVerbs>
Valid choices for the verbs describing what kind of action the message reflects. These are modeled after the REST HTTP Verbs: GET, POST, PUT, PATCH, DELETE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MDfromHTMLIPCVerbsfromName(String name)static MDfromHTMLIPCVerbsfromValue(int value)intgetValue()StringtoString()static MDfromHTMLIPCVerbsvalueOf(String name)Returns the enum constant of this type with the specified name.static MDfromHTMLIPCVerbs[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final MDfromHTMLIPCVerbs UNDEFINED
-
GET
public static final MDfromHTMLIPCVerbs GET
-
POST
public static final MDfromHTMLIPCVerbs POST
-
PUT
public static final MDfromHTMLIPCVerbs PUT
-
PATCH
public static final MDfromHTMLIPCVerbs PATCH
-
DELETE
public static final MDfromHTMLIPCVerbs DELETE
-
-
Method Detail
-
values
public static MDfromHTMLIPCVerbs[] 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 (MDfromHTMLIPCVerbs c : MDfromHTMLIPCVerbs.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MDfromHTMLIPCVerbs 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
-
fromValue
public static MDfromHTMLIPCVerbs fromValue(int value)
-
fromName
public static MDfromHTMLIPCVerbs fromName(String name)
-
getValue
public int getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<MDfromHTMLIPCVerbs>
-
-