public interface AocInformation extends GroupedAvp
7.2.15 AoC-Information AVP The AoC-Information AVP (AVP code 2054) is of type Grouped that includes the information required for advice of charge. It has the following ABNF grammar: AoC-Information ::= < AVP Header: 2054 > [ AoC-Cost-Information ] [ Tariff-Information ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
AocCostInformation |
getAocCostInformation()
Returns the value of the AoC-Cost-Information AVP, of type Grouped.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
TariffInformation |
getTariffInformation()
Returns the value of the Tariff-Information AVP, of type Grouped.
|
boolean |
hasAocCostInformation()
Returns true if the AoC-Cost-Information AVP is present in the AoC-Information AVP.
|
boolean |
hasTariffInformation()
Returns true if the Tariff-Information AVP is present in the AoC-Information AVP.
|
void |
removeAocCostInformation()
Removes the AoC-Cost-Information AVP from the AoC-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the AoC-Information AVP.
|
void |
removeTariffInformation()
Removes the Tariff-Information AVP from the AoC-Information AVP.
|
void |
setAocCostInformation(AocCostInformation aocCostInformation)
Sets the value of the AoC-Cost-Information AVP, of type Grouped.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTariffInformation(TariffInformation tariffInformation)
Sets the value of the Tariff-Information AVP, of type Grouped.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasAocCostInformation()
AocCostInformation getAocCostInformation()
void setAocCostInformation(AocCostInformation aocCostInformation)
java.lang.NullPointerException
- if aocCostInformation
is null
.void removeAocCostInformation()
boolean hasTariffInformation()
TariffInformation getTariffInformation()
void setTariffInformation(TariffInformation tariffInformation)
java.lang.NullPointerException
- if tariffInformation
is null
.void removeTariffInformation()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()