public enum HttpPartDataType extends Enum<HttpPartDataType>
Enum Constant and Description |
---|
ARRAY
Array or collection.
|
BOOLEAN
Boolean.
|
FILE
File.
|
INTEGER
Decimal number.
|
NO_TYPE
Not specified.
|
NUMBER
Floating point number.
|
OBJECT
Map or bean.
|
STRING
String.
|
Modifier and Type | Method and Description |
---|---|
static HttpPartDataType |
fromString(String value)
Create from lowercase string.
|
String |
toString() |
static HttpPartDataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpPartDataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpPartDataType STRING
public static final HttpPartDataType NUMBER
public static final HttpPartDataType INTEGER
public static final HttpPartDataType BOOLEAN
public static final HttpPartDataType ARRAY
public static final HttpPartDataType OBJECT
public static final HttpPartDataType FILE
public static final HttpPartDataType NO_TYPE
public static HttpPartDataType[] values()
for (HttpPartDataType c : HttpPartDataType.values()) System.out.println(c);
public static HttpPartDataType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static HttpPartDataType fromString(String value)
value
- The enum name.public String toString()
toString
in class Enum<HttpPartDataType>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.