com.pkrete.jsip2.variables
Enum HoldType
java.lang.Object
java.lang.Enum<HoldType>
com.pkrete.jsip2.variables.HoldType
- All Implemented Interfaces:
- Serializable, Comparable<HoldType>
public enum HoldType
- extends Enum<HoldType>
This enum defines a set of hold types that are used in SIP2
SIP2HoldRequest messages to describe the
type of the hold.
- Author:
- Petteri Kivimäki
|
Method Summary |
String |
toString()
|
static HoldType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HoldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
OTHER
public static final HoldType OTHER
ANY_COPY
public static final HoldType ANY_COPY
SPECIFIC_COPY
public static final HoldType SPECIFIC_COPY
ANY_COPY_AT_SINGLE_BRANCH_OR_SUBLOCATION
public static final HoldType ANY_COPY_AT_SINGLE_BRANCH_OR_SUBLOCATION
values
public static HoldType[] 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 (HoldType c : HoldType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HoldType 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 name
NullPointerException - if the argument is null
toString
public String toString()
- Overrides:
toString in class Enum<HoldType>
Copyright © 2012-2014. All Rights Reserved.