com.ibm.diameter.charging.util
Class WLANRadioContainer

java.lang.Object
  extended by com.ibm.diameter.charging.util.WLANRadioContainer

public class WLANRadioContainer
extends java.lang.Object

WLANRadioContainer is a lightweight representation of the Grouped [WLAN-Radio-Container] Avp. Some members of the WLAN-Radio-Container Avp are not defined in this class because they have yet to been defined by IANA.

The [WLAN-Radio-Container] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.


Constructor Summary
WLANRadioContainer()
          Constructs an empty WLANRadioContainer object representing the [WLAN-Radio-Container] Avp.
WLANRadioContainer(java.util.List<Avp> avps)
          Constructs an WLANRadioContainer object representing the Grouped [WLAN-Radio-Container] Avp.
 
Method Summary
 java.lang.Integer getWlanTechnology()
          Gets the value corresponding to the payload of the [WLAN-Technology] Avp.
 void setWlanTechnology(java.lang.Integer wlanTechnology)
          Sets the value corresponding to the payload of the [WLAN-Technology] Avp.
 Avp toAvp()
          Transforms a WLANRadioContainer object into a Grouped [WLAN-Radio-Container] Avp.
 void validate()
          Validates the members of the WLANRadioContainer object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WLANRadioContainer

public WLANRadioContainer()
Constructs an empty WLANRadioContainer object representing the [WLAN-Radio-Container] Avp.


WLANRadioContainer

public WLANRadioContainer(java.util.List<Avp> avps)
                   throws AvpTransformationException
Constructs an WLANRadioContainer object representing the Grouped [WLAN-Radio-Container] Avp.

The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of WLANRadioContainer, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.

Parameters:
avps - a list of Avps that can appear in the Grouped [WLAN-Radio-Container] Avp.
Throws:
AvpTransformationException - if the Avp value is in an unexpected format.
Method Detail

getWlanTechnology

public java.lang.Integer getWlanTechnology()
Gets the value corresponding to the payload of the [WLAN-Technology] Avp.

Returns:
the value corresponding to the payload of the [WLAN-Technology] Avp.

setWlanTechnology

public void setWlanTechnology(java.lang.Integer wlanTechnology)
Sets the value corresponding to the payload of the [WLAN-Technology] Avp.

Parameters:
wlanTechnology - the value corresponding to the payload of the [WLAN-Technology] Avp.

validate

public void validate()
              throws ChargingValidationException
Validates the members of the WLANRadioContainer object. The charging Web Services call this method before transforming the object into a Grouped Avp. This ensures that improperly formed Avps are not sent to the Diameter peer.

Throws:
ChargingValidationException - if a member of WLANRadioContainer is in an unexpected format.

toAvp

public Avp toAvp()
          throws AvpTransformationException
Transforms a WLANRadioContainer object into a Grouped [WLAN-Radio-Container] Avp.

All non-null members of WLANRadioContainer will be transformed into Avps nested inside of the [WLAN-Radio-Container] Avp.

Returns:
the [WLAN-Radio-Container] Avp.
Throws:
AvpTransformationException - if a member of WLANRadioContainer is in an unexpected format.


Copyright © 2006 IBM Corp. All Rights Reserved.