org.cipango.diameter.base
Enum Accounting.AccountingRecordType

java.lang.Object
  extended by java.lang.Enum<Accounting.AccountingRecordType>
      extended by org.cipango.diameter.base.Accounting.AccountingRecordType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Accounting.AccountingRecordType>
Enclosing class:
Accounting

public static enum Accounting.AccountingRecordType
extends java.lang.Enum<Accounting.AccountingRecordType>


Enum Constant Summary
EVENT_RECORD
          An Accounting Event Record is used to indicate that a one-time event has occurred (meaning that the start and end of the event are simultaneous).
INTERIM_RECORD
          An Interim Accounting Record contains cumulative accounting information for an existing accounting session.
START_RECORD
          An Accounting Start, Interim, and Stop Records are used to indicate that a service of a measurable length has been given.
STOP_RECORD
          An Accounting Stop Record is sent to terminate an accounting session and contains cumulative accounting information relevant to the existing session.
 
Method Summary
static Accounting.AccountingRecordType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Accounting.AccountingRecordType[] 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

EVENT_RECORD

public static final Accounting.AccountingRecordType EVENT_RECORD
An Accounting Event Record is used to indicate that a one-time event has occurred (meaning that the start and end of the event are simultaneous). This record contains all information relevant to the service, and is the only record of the service.


START_RECORD

public static final Accounting.AccountingRecordType START_RECORD
An Accounting Start, Interim, and Stop Records are used to indicate that a service of a measurable length has been given. An Accounting Start Record is used to initiate an accounting session, and contains accounting information that is relevant to the initiation of the session.


INTERIM_RECORD

public static final Accounting.AccountingRecordType INTERIM_RECORD
An Interim Accounting Record contains cumulative accounting information for an existing accounting session. Interim Accounting Records SHOULD be sent every time a re-authentication or re-authorization occurs. Further, additional interim record triggers MAY be defined by application-specific Diameter applications. The selection of whether to use INTERIM_RECORD records is done by the Acct-Interim-Interval AVP.


STOP_RECORD

public static final Accounting.AccountingRecordType STOP_RECORD
An Accounting Stop Record is sent to terminate an accounting session and contains cumulative accounting information relevant to the existing session.

Method Detail

values

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

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

valueOf

public static Accounting.AccountingRecordType 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


Copyright © 2010. All Rights Reserved.