public enum NegotiationStatus extends Enum<NegotiationStatus>
NegotiationStatus
objects specifies the necessity, progress, and outcome of the parameter negotiation managed
by Entry
instances.
The only legal transitions of an Entry
object's NegotiationStatus
are from NOT_NEGOTIATED
or
DEFAULT
to ACCEPTED
or REJECTED
. A status of IRRELEVANT
must never change.
Enum Constant and Description |
---|
ACCEPTED
The parameter has been declared or negotiated and accepted by both sides.
|
DEFAULT
The parameter has not been negotiated/exchanged, yet.
|
IRRELEVANT
The parameter is irrelevant.
|
NOT_NEGOTIATED
The parameter has not been negotiated/declared, yet.
|
REJECTED
Attempts to negotiate the parameter have failed.
|
Modifier and Type | Method and Description |
---|---|
static NegotiationStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NegotiationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NegotiationStatus NOT_NEGOTIATED
public static final NegotiationStatus DEFAULT
public static final NegotiationStatus ACCEPTED
public static final NegotiationStatus REJECTED
public static final NegotiationStatus IRRELEVANT
public static NegotiationStatus[] values()
for (NegotiationStatus c : NegotiationStatus.values()) System.out.println(c);
public static NegotiationStatus 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 nullCopyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.