public enum ParamType extends Enum<ParamType>
ParamType class.
| Enum Constant and Description |
|---|
BOOLEAN |
DATE |
FILE |
INTEGER |
NUMBER |
STRING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
validate(AbstractParam param,
String value)
validate.
|
static ParamType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParamType STRING
public static final ParamType NUMBER
public static final ParamType INTEGER
public static final ParamType DATE
public static final ParamType FILE
public static final ParamType BOOLEAN
public static ParamType[] values()
for (ParamType c : ParamType.values()) System.out.println(c);
public static ParamType 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 boolean validate(AbstractParam param, String value)
validate.
param - a AbstractParam object.value - a String object.Copyright © 2015 Mulesoft. All rights reserved.