Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference
E14011-02

oracle.sdp.messaging
Enum AddressType

java.lang.Object
  extended by java.lang.Enum<AddressType>
      extended by oracle.sdp.messaging.AddressType
All Implemented Interfaces:
Serializable, java.lang.Comparable<AddressType>

public enum AddressType
extends java.lang.Enum<AddressType>

AddressType enumerates all available address types in the SDP Messaging.

Since:
11.0.0

Enum Constant Summary
EMAIL
          An Email address.
GROUP
          A group of users or groups.
IM
          An IM address.
IMPS
          A Mobile Instant Messaging and Presence Services (IMPS) address.
IPV4
          An IPV4 address.
IPV6
          An IPV6 address.
MSISDN
          A phone number of a mobile subscriber.
SHORTCODE
          A short code (often used for SMS).
SIP
          A Session Initiation Protocol (SIP) address.
UNKNOWN
          An unknown address type.
URL
          A URL such as http://, ftp:// ...
USER
          An individual user.
 
Method Summary
static AddressType getAddressType(java.lang.String name)
          Returns the enum constant of this type with the specified name (case insensitive).
static AddressType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AddressType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EMAIL

public static final AddressType EMAIL
An Email address.


GROUP

public static final AddressType GROUP
A group of users or groups.


IM

public static final AddressType IM
An IM address.


IMPS

public static final AddressType IMPS
A Mobile Instant Messaging and Presence Services (IMPS) address. IMPS is also known as "Wireless Village".


IPV4

public static final AddressType IPV4
An IPV4 address.


IPV6

public static final AddressType IPV6
An IPV6 address.


MSISDN

public static final AddressType MSISDN
A phone number of a mobile subscriber. An MSISDN consists of a country code, a national destination code and a subscriber number.


SHORTCODE

public static final AddressType SHORTCODE
A short code (often used for SMS).


SIP

public static final AddressType SIP
A Session Initiation Protocol (SIP) address.


UNKNOWN

public static final AddressType UNKNOWN
An unknown address type.


URL

public static final AddressType URL
A URL such as http://, ftp:// ...


USER

public static final AddressType USER
An individual user.

Method Detail

getAddressType

public static AddressType getAddressType(java.lang.String name)
                                  throws java.lang.IllegalArgumentException
Returns the enum constant of this type with the specified name (case insensitive). The string can be in any case, but extraneous whitespace characters are not permitted.

Note: This extends the functionality offered by the standard valueOf method.

Parameters:
name - the case insensitive name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

valueOf

public static AddressType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

values

public static AddressType[] 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 (AddressType c : AddressType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference
E14011-02

Copyright © 2010 Oracle and/or its affiliates. All rights reserved.