public final class AddressPlan extends Object implements Serializable
A singleton instance of each enumerated value is guaranteed (via an implementation
of readResolve()
- refer java.io.Serializable
),
so that equality tests using ==
are always evaluated correctly. (This
equality test is only guaranteed if this class is loaded in the application's boot class
path, rather than dynamically loaded at runtime.)
Address
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ADDRESS_PLAN_AESA
An integer representation of
AESA . |
static int |
ADDRESS_PLAN_E164
An integer representation of
E164 . |
static int |
ADDRESS_PLAN_E164_MOBILE
An integer representation of
E164_MOBILE . |
static int |
ADDRESS_PLAN_GT
An integer representation of
GT . |
static int |
ADDRESS_PLAN_H323
An integer representation of
H323 . |
static int |
ADDRESS_PLAN_IP
An integer representation of
IP . |
static int |
ADDRESS_PLAN_MULTICAST
An integer representation of
MULTICAST . |
static int |
ADDRESS_PLAN_NOT_PRESENT
An integer representation of
NOT_PRESENT . |
static int |
ADDRESS_PLAN_NSAP
An integer representation of
NSAP . |
static int |
ADDRESS_PLAN_SIP
An integer representation of
SIP . |
static int |
ADDRESS_PLAN_SLEE_PROFILE
An integer representation of
SLEE_PROFILE . |
static int |
ADDRESS_PLAN_SLEE_PROFILE_TABLE
An integer representation of
SLEE_PROFILE_TABLE . |
static int |
ADDRESS_PLAN_SMTP
An integer representation of
SMTP . |
static int |
ADDRESS_PLAN_SSN
An integer representation of
SSN . |
static int |
ADDRESS_PLAN_UNDEFINED
An integer representation of
UNDEFINED . |
static int |
ADDRESS_PLAN_UNICAST
An integer representation of
UNICAST . |
static int |
ADDRESS_PLAN_URI
An integer representation of
URI . |
static int |
ADDRESS_PLAN_X400
An integer representation of
X400 . |
static AddressPlan |
AESA
The AESA value indicates that the address is an ATM End
System Address in binary format (40 bytes).
|
static String |
AESA_STRING
A string representation of
AESA . |
static AddressPlan |
E164
The E164 value indicates that the address is an international
number without the international access code, but including the country
code and area code (without the leading zero).
|
static AddressPlan |
E164_MOBILE
The E164_MOBILE value indicates that the address is an E.164
mobile number.
|
static String |
E164_MOBILE_STRING
A string representation of
E164_MOBILE . |
static String |
E164_STRING
A string representation of
E164 . |
static AddressPlan |
GT
The GT value indicates that the address is a Global Title.
|
static String |
GT_STRING
A string representation of
GT . |
static AddressPlan |
H323
The H323 value indicates that the address is an H.323 address.
|
static String |
H323_STRING
A string representation of
H323 . |
static AddressPlan |
IP
The IP value indicates that the address is an IP address
in dotted notation.
|
static String |
IP_STRING
A string representation of
IP . |
static AddressPlan |
MULTICAST
The MULTICAST value indicates that the address is an IP address in
dotted notation that is either an IPv4 class D address or an equivalent IPv6
address.
|
static String |
MULTICAST_STRING
A string representation of
MULTICAST . |
static AddressPlan |
NOT_PRESENT
The NOT_PRESENT value indicates that the address is not present.
|
static String |
NOT_PRESENT_STRING
A string representation of
NOT_PRESENT . |
static AddressPlan |
NSAP
The NSAP value indicates that the address is a binary
representation of a Network Service Access Point.
|
static String |
NSAP_STRING
A string representation of
NSAP . |
static AddressPlan |
SIP
The SIP value indicates that the address is a Session Initiation
Protocol address as specified in IETF RFC 2543.
|
static String |
SIP_STRING
A string representation of
SIP . |
static AddressPlan |
SLEE_PROFILE
The SLEE_PROFILE value indicates that the address is the encoded
table name and profile name of a SLEE profile.
|
static String |
SLEE_PROFILE_STRING
A string representation of
SLEE_PROFILE . |
static AddressPlan |
SLEE_PROFILE_TABLE
The SLEE_PROFILE_TABLE value indicates that the address is the
name of SLEE profile table.
|
static String |
SLEE_PROFILE_TABLE_STRING
A string representation of
SLEE_PROFILE_TABLE . |
static AddressPlan |
SMTP
The SMTP value indicates that the address is an email address
as defined in IETF RFC 822.
|
static String |
SMTP_STRING
A string representation of
SMTP . |
static AddressPlan |
SSN
The SSN value indicates that the address is a Sub System Number.
|
static String |
SSN_STRING
A string representation of
SSN . |
static AddressPlan |
UNDEFINED
The UNDEFINED value indicates that the address is undefined.
|
static String |
UNDEFINED_STRING
A string representation of
UNDEFINED . |
static AddressPlan |
UNICAST
The UNICAST value indicates that the address is an IP address
in dotted notation that is not a multicast or broadcast address.
|
static String |
UNICAST_STRING
A string representation of
UNICAST . |
static AddressPlan |
URI
The URI value indicates that the address is a uniform resource
locator as defined in IETF RFC 2396.
|
static String |
URI_STRING
A string representation of
URI . |
static AddressPlan |
X400
The X400 value indicates that the address is an X400 address
structured as a set of attribute value pairs separated by semicolons.
|
static String |
X400_STRING
A string representation of
X400 . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compare this address plan for equality with another.
|
static AddressPlan |
fromInt(int plan)
Get an
AddressPlan object from an integer value. |
static AddressPlan |
fromString(String plan)
Get an
AddressPlan object from a string value. |
int |
hashCode()
Get a hash code value for this address plan.
|
boolean |
isAESA()
Determine if this AddressPlan object represents the AESA address
plan value.
|
boolean |
isE164()
Determine if this AddressPlan object represents the E164 address
plan value.
|
boolean |
isE164Mobile()
Determine if this AddressPlan object represents the E164_MOBILE address
plan value.
|
boolean |
isGT()
Determine if this AddressPlan object represents the GT address
plan value.
|
boolean |
isH323()
Determine if this AddressPlan object represents the H323 address
plan value.
|
boolean |
isIP()
Determine if this AddressPlan object represents the IP address
plan value.
|
boolean |
isMulticast()
Determine if this AddressPlan object represents the MULTICAST address
plan value.
|
boolean |
isNotPresent()
Determine if this AddressPlan object represents the NOT_PRESENT address
plan value.
|
boolean |
isNSAP()
Determine if this AddressPlan object represents the NSAP address
plan value.
|
boolean |
isSIP()
Determine if this AddressPlan object represents the SIP address
plan value.
|
boolean |
isSleeProfile()
Determine if this AddressPlan object represents the SLEE_PROFILE address
plan value.
|
boolean |
isSleeProfileTable()
Determine if this AddressPlan object represents the SLEE_PROFILE_TABLE address
plan value.
|
boolean |
isSMTP()
Determine if this AddressPlan object represents the SMTP address
plan value.
|
boolean |
isSSN()
Determine if this AddressPlan object represents the SSN address
plan value.
|
boolean |
isUndefined()
Determine if this AddressPlan object represents the UNDEFINED address
plan value.
|
boolean |
isUnicast()
Determine if this AddressPlan object represents the UNICAST address
plan value.
|
boolean |
isURI()
Determine if this AddressPlan object represents the URI address
plan value.
|
boolean |
isX400()
Determine if this AddressPlan object represents the X400 address
plan value.
|
int |
toInt()
Get an integer value representation for this
AddressPlan object. |
String |
toString()
Get the string representation of the address plan object.
|
public static final int ADDRESS_PLAN_NOT_PRESENT
NOT_PRESENT
.public static final int ADDRESS_PLAN_UNDEFINED
UNDEFINED
.public static final int ADDRESS_PLAN_IP
IP
.public static final int ADDRESS_PLAN_MULTICAST
MULTICAST
.public static final int ADDRESS_PLAN_UNICAST
UNICAST
.public static final int ADDRESS_PLAN_E164
E164
.public static final int ADDRESS_PLAN_AESA
AESA
.public static final int ADDRESS_PLAN_URI
URI
.public static final int ADDRESS_PLAN_NSAP
NSAP
.public static final int ADDRESS_PLAN_SMTP
SMTP
.public static final int ADDRESS_PLAN_X400
X400
.public static final int ADDRESS_PLAN_SIP
SIP
.public static final int ADDRESS_PLAN_E164_MOBILE
E164_MOBILE
.public static final int ADDRESS_PLAN_H323
H323
.public static final int ADDRESS_PLAN_GT
GT
.public static final int ADDRESS_PLAN_SSN
SSN
.public static final int ADDRESS_PLAN_SLEE_PROFILE_TABLE
SLEE_PROFILE_TABLE
.public static final int ADDRESS_PLAN_SLEE_PROFILE
SLEE_PROFILE
.public static final String NOT_PRESENT_STRING
NOT_PRESENT
.public static final String UNDEFINED_STRING
UNDEFINED
.public static final String IP_STRING
IP
.public static final String MULTICAST_STRING
MULTICAST
.public static final String UNICAST_STRING
UNICAST
.public static final String E164_STRING
E164
.public static final String AESA_STRING
AESA
.public static final String URI_STRING
URI
.public static final String NSAP_STRING
NSAP
.public static final String SMTP_STRING
SMTP
.public static final String E164_MOBILE_STRING
E164_MOBILE
.public static final String X400_STRING
X400
.public static final String SIP_STRING
SIP
.public static final String H323_STRING
H323
.public static final String GT_STRING
GT
.public static final String SSN_STRING
SSN
.public static final String SLEE_PROFILE_TABLE_STRING
SLEE_PROFILE_TABLE
.public static final String SLEE_PROFILE_STRING
SLEE_PROFILE
.public static final AddressPlan NOT_PRESENT
public static final AddressPlan UNDEFINED
public static final AddressPlan IP
public static final AddressPlan MULTICAST
public static final AddressPlan UNICAST
public static final AddressPlan E164
public static final AddressPlan AESA
public static final AddressPlan URI
public static final AddressPlan NSAP
public static final AddressPlan SMTP
public static final AddressPlan E164_MOBILE
public static final AddressPlan X400
public static final AddressPlan SIP
public static final AddressPlan H323
public static final AddressPlan GT
public static final AddressPlan SSN
public static final AddressPlan SLEE_PROFILE_TABLE
public static final AddressPlan SLEE_PROFILE
public static AddressPlan fromInt(int plan) throws IllegalArgumentException
AddressPlan
object from an integer value.plan
- the address plan as an integer.AddressPlan
object corresponding to plan
.IllegalArgumentException
- if plan
is not a valid
address plan value.public static AddressPlan fromString(String plan) throws NullPointerException, IllegalArgumentException
AddressPlan
object from a string value.plan
- the address plan as a string, for example as returned by the toString()
method (case insensitive).AddressPlan
object corresponding to plan
.NullPointerException
- if plan
is null
.IllegalArgumentException
- if plan
is not a valid
address plan value.public int toInt()
AddressPlan
object.AddressPlan
object.public boolean isNotPresent()
This method is effectively equivalent to the conditional test:
(this == NOT_PRESENT)
, ie. the code:
if (plan.isNotPresent()) ...
is interchangeable with the code:
if (plan == AddressPlan.NOT_PRESENT) ...
true
if this object represents the NOT_PRESENT address plan
value, false
otherwise.public boolean isUndefined()
This method is effectively equivalent to the conditional test:
(this == UNDEFINED)
, ie. the code:
if (plan.isUndefined()) ...
is interchangeable with the code:
if (plan == AddressPlan.UNDEFINED) ...
true
if this object represents the UNDEFINED address plan
value, false
otherwise.public boolean isIP()
This method is effectively equivalent to the conditional test:
(this == IP)
, ie. the code:
if (plan.isIP()) ...
is interchangeable with the code:
if (plan == AddressPlan.IP) ...
true
if this object represents the IP address plan
value, false
otherwise.public boolean isMulticast()
This method is effectively equivalent to the conditional test:
(this == MULTICAST)
, ie. the code:
if (plan.isMulticast()) ...
is interchangeable with the code:
if (plan == AddressPlan.MULTICAST) ...
true
if this object represents the MULTICAST address plan
value, false
otherwise.public boolean isUnicast()
This method is effectively equivalent to the conditional test:
(this == UNICAST)
, ie. the code:
if (plan.isUnicast()) ...
is interchangeable with the code:
if (plan == AddressPlan.UNICAST) ...
true
if this object represents the UNICAST address plan
value, false
otherwise.public boolean isE164()
This method is effectively equivalent to the conditional test:
(this == E164)
, ie. the code:
if (plan.isE164()) ...
is interchangeable with the code:
if (plan == AddressPlan.E164) ...
true
if this object represents the E164 address plan
value, false
otherwise.public boolean isAESA()
This method is effectively equivalent to the conditional test:
(this == AESA)
, ie. the code:
if (plan.isAESA()) ...
is interchangeable with the code:
if (plan == AddressPlan.AESA) ...
true
if this object represents the AESA address plan
value, false
otherwise.public boolean isURI()
This method is effectively equivalent to the conditional test:
(this == URI)
, ie. the code:
if (plan.isURI()) ...
is interchangeable with the code:
if (plan == AddressPlan.URI) ...
true
if this object represents the URI address plan
value, false
otherwise.public boolean isNSAP()
This method is effectively equivalent to the conditional test:
(this == NSAP)
, ie. the code:
if (plan.isNSAP()) ...
is interchangeable with the code:
if (plan == AddressPlan.NSAP) ...
true
if this object represents the NSAP address plan
value, false
otherwise.public boolean isSMTP()
This method is effectively equivalent to the conditional test:
(this == SMTP)
, ie. the code:
if (plan.isSMTP()) ...
is interchangeable with the code:
if (plan == AddressPlan.SMTP) ...
true
if this object represents the SMTP address plan
value, false
otherwise.public boolean isX400()
This method is effectively equivalent to the conditional test:
(this == X400)
, ie. the code:
if (plan.isX400()) ...
is interchangeable with the code:
if (plan == AddressPlan.X400) ...
true
if this object represents the X400 address plan
value, false
otherwise.public boolean isSIP()
This method is effectively equivalent to the conditional test:
(this == SIP)
, ie. the code:
if (plan.isSIP()) ...
is interchangeable with the code:
if (plan == AddressPlan.SIP) ...
true
if this object represents the SIP address plan
value, false
otherwise.public boolean isE164Mobile()
This method is effectively equivalent to the conditional test:
(this == E164_MOBILE)
, ie. the code:
if (plan.isE164Mobile()) ...
is interchangeable with the code:
if (plan == AddressPlan.E164_MOBILE) ...
true
if this object represents the E164_MOBILE address plan
value, false
otherwise.public boolean isH323()
This method is effectively equivalent to the conditional test:
(this == H323)
, ie. the code:
if (plan.isH323()) ...
is interchangeable with the code:
if (plan == AddressPlan.H323) ...
true
if this object represents the H323 address plan
value, false
otherwise.public boolean isGT()
This method is effectively equivalent to the conditional test:
(this == GT)
, ie. the code:
if (plan.isGT()) ...
is interchangeable with the code:
if (plan == AddressPlan.GT) ...
true
if this object represents the GT address plan
value, false
otherwise.public boolean isSSN()
This method is effectively equivalent to the conditional test:
(this == SSN)
, ie. the code:
if (plan.isSSN()) ...
is interchangeable with the code:
if (plan == AddressPlan.SSN) ...
true
if this object represents the SSN address plan
value, false
otherwise.public boolean isSleeProfileTable()
This method is effectively equivalent to the conditional test:
(this == SLEE_PROFILE_TABLE)
, ie. the code:
if (plan.isSleeProfileTable()) ...
is interchangeable with the code:
if (plan == AddressPlan.SLEE_PROFILE_TABLE) ...
true
if this object represents the SLEE_PROFILE_TABLE address plan
value, false
otherwise.public boolean isSleeProfile()
This method is effectively equivalent to the conditional test:
(this == SLEE_PROFILE)
, ie. the code:
if (plan.isSleeProfile()) ...
is interchangeable with the code:
if (plan == AddressPlan.SLEE_PROFILE) ...
true
if this object represents the SLEE_PROFILE address plan
value, false
otherwise.public boolean equals(Object obj)
public int hashCode()