public enum AcceptanceCode extends java.lang.Enum<AcceptanceCode>
The AcceptanceCode enumeration is the list of all possible return values that will be returned by Forms when updating Entries or by Items when submitting Forms.
Enum Constant and Description |
---|
AcceptanceFailure
Returning this literal means that the Entry or Form was not accepted by
the Form or Item because of some unexpected failure.
|
Accepted
Returning this literal means that the Entry or Form was accepted, but not
checked for validity.
|
Invalid
Returning this literal means that the Entry or Form was not accepted and
that for some reason or other the values were erroneous.
|
Rejected
This literal means that the submission was rejected and should be
resubmitted after corrections are made.
|
Valid
Returning this literal means that the Entry or Form was accepted as
valid.
|
Modifier and Type | Method and Description |
---|---|
static AcceptanceCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AcceptanceCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcceptanceCode Valid
Returning this literal means that the Entry or Form was accepted as valid.
public static final AcceptanceCode Invalid
Returning this literal means that the Entry or Form was not accepted and that for some reason or other the values were erroneous.
public static final AcceptanceCode Accepted
Returning this literal means that the Entry or Form was accepted, but not checked for validity.
public static final AcceptanceCode Rejected
This literal means that the submission was rejected and should be resubmitted after corrections are made.
public static final AcceptanceCode AcceptanceFailure
Returning this literal means that the Entry or Form was not accepted by the Form or Item because of some unexpected failure.
public static AcceptanceCode[] values()
for (AcceptanceCode c : AcceptanceCode.values()) System.out.println(c);
public static AcceptanceCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null