net.java.slee.resource.diameter.cca.events.avp
Enum SubscriptionIdType

java.lang.Object
  extended by java.lang.Enum<SubscriptionIdType>
      extended by net.java.slee.resource.diameter.cca.events.avp.SubscriptionIdType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SubscriptionIdType>, net.java.slee.resource.diameter.base.events.avp.Enumerated

public enum SubscriptionIdType
extends java.lang.Enum<SubscriptionIdType>
implements net.java.slee.resource.diameter.base.events.avp.Enumerated

 8.47. Subscription-Id-Type AVP


   The Subscription-Id-Type AVP (AVP Code 450) is of type Enumerated,
   and it is used to determine which type of identifier is carried by
   the Subscription-Id AVP.

   This specification defines the following subscription identifiers.
   However, new Subscription-Id-Type values can be assigned by an IANA
   designated expert, as defined in section 12.  A server MUST implement
   all the Subscription-Id-Types required to perform credit
   authorization for the services it supports, including possible future
   values.  Unknown or unsupported Subscription-Id-Types MUST be treated
   according to the 'M' flag rule, as defined in [DIAMBASE].

   END_USER_E164                   0
      The identifier is in international E.164 format (e.g., MSISDN),
      according to the ITU-T E.164 numbering plan defined in [E164] and
      [CE164].

   END_USER_IMSI                   1
      The identifier is in international IMSI format, according to the
      ITU-T E.212 numbering plan as defined in [E212] and [CE212].

   END_USER_SIP_URI                2
      The identifier is in the form of a SIP URI, as defined in [SIP].

   END_USER_NAI                    3
      The identifier is in the form of a Network Access Identifier, as
      defined in [NAI].

   END_USER_PRIVATE                4
      The Identifier is a credit-control server private identifier.
      

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
END_USER_E164
           
END_USER_IMSI
           
END_USER_NAI
           
END_USER_PRIVATE
           
END_USER_SIP_URI
           
 
Method Summary
static SubscriptionIdType fromInt(int presumableValue)
           
 int getValue()
           
static SubscriptionIdType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SubscriptionIdType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

END_USER_E164

public static final SubscriptionIdType END_USER_E164

END_USER_IMSI

public static final SubscriptionIdType END_USER_IMSI

END_USER_SIP_URI

public static final SubscriptionIdType END_USER_SIP_URI

END_USER_NAI

public static final SubscriptionIdType END_USER_NAI

END_USER_PRIVATE

public static final SubscriptionIdType END_USER_PRIVATE
Method Detail

values

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

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

valueOf

public static SubscriptionIdType 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

fromInt

public static SubscriptionIdType fromInt(int presumableValue)
                                  throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getValue

public int getValue()
Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated


Copyright © 2012. All Rights Reserved.