net.java.slee.resource.diameter.cca.events.avp
Interface CcMoneyAvp

All Superinterfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.avp.DiameterAvp, net.java.slee.resource.diameter.base.events.avp.GroupedAvp
All Known Implementing Classes:
CcMoneyAvpImpl

public interface CcMoneyAvp
extends net.java.slee.resource.diameter.base.events.avp.GroupedAvp

8.22. CC-Money AVP


   The CC-Money AVP (AVP Code 413) is of type Grouped and specifies the
   monetary amount in the given currency.  The Currency-Code AVP SHOULD
   be included.  It is defined as follows (per the grouped-avp-def of
   RFC 3588 [DIAMBASE]):

      CC-Money ::= < AVP Header: 413 >
                   { Unit-Value }
                   [ Currency-Code ]
   

Author:
Bartosz Baranowski , Alexandre Mendonca

Field Summary
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Method Summary
 long getCurrencyCode()
          Returns Currency-Code avp (Unsigned32) value in use, if present value is greater than 0.
 UnitValueAvp getUnitValue()
          Return value of Unit-Value avp.
 boolean hasCurrencyCode()
          Returns true if Currency-Code avp is present.
 boolean hasUnitValue()
          Returns true if Unit-Value avp is present
 void setCurrencyCode(long code)
          Sets Currency-Code avp of type Unsigned32
 void setUnitValue(UnitValueAvp unitValue)
          Sets value of Init-Value avp of type Grouped AVP.
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
getExtensionAvps, setExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue
 

Method Detail

setUnitValue

void setUnitValue(UnitValueAvp unitValue)
Sets value of Init-Value avp of type Grouped AVP. See: UnitValueAvp .

Parameters:
unitValue -

getUnitValue

UnitValueAvp getUnitValue()
Return value of Unit-Value avp. Return value of null indicates its not present. See: UnitValueAvp .

Returns:

hasUnitValue

boolean hasUnitValue()
Returns true if Unit-Value avp is present

Returns:

getCurrencyCode

long getCurrencyCode()
Returns Currency-Code avp (Unsigned32) value in use, if present value is greater than 0.

Returns:

setCurrencyCode

void setCurrencyCode(long code)
Sets Currency-Code avp of type Unsigned32

Parameters:
code -

hasCurrencyCode

boolean hasCurrencyCode()
Returns true if Currency-Code avp is present.

Returns:


Copyright © 2012. All Rights Reserved.