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

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

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

8.6. Check-Balance-Result AVP
   The Check Balance Result AVP (AVP Code 422) is of type Enumerated and
   contains the result of the balance check.  This AVP is applicable
   only when the Requested-Action AVP indicates CHECK_BALANCE in the
   Credit-Control-Request command.

   The following values are defined for the Check-Balance-Result AVP.

   ENOUGH_CREDIT                   0
      There is enough credit in the account to cover the requested
      service.

   NO_CREDIT                       1
      There isn't enough credit in the account to cover the requested
      service.

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
ENOUGH_CREDIT
           
NO_CREDIT
           
 
Method Summary
static CheckBalanceResultType fromInt(int type)
           
 int getValue()
           
static CheckBalanceResultType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CheckBalanceResultType[] 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

ENOUGH_CREDIT

public static final CheckBalanceResultType ENOUGH_CREDIT

NO_CREDIT

public static final CheckBalanceResultType NO_CREDIT
Method Detail

values

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

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

valueOf

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

getValue

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

fromInt

public static CheckBalanceResultType fromInt(int type)
                                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException


Copyright © 2012. All Rights Reserved.