Interface ChargingInformation
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface ChargingInformation extends GroupedAvp
Defines an interface representing the Charging-Information grouped AVP type. From the Diameter Gx Reference Point Protocol Details (3GPP TS 29.212 V10.1.0) specification:6.3.19 Charging-Information The Charging-Information is of type Grouped, and contains the addresses of the charging functions. AVP format <Charging-Information> ::= < AVP Header: 618 10415 > [ Primary-Event-Charging-Function-Name ] [ Secondary-Event-Charging-Function-Name ] [ Primary-Charging-Collection-Function-Name ] [ Secondary-Charging-Collection-Function-Name ] * [ AVP ]
-
-
Field Summary
-
Fields inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.DiameterURI
getPrimaryChargingCollectionFunctionName()
Returns the value of the Primary-Charging-Collection-Function-Name AVP, of type DiameterURI.DiameterURI
getPrimaryEventChargingFunctionName()
Returns the value of the Primary-Event-Charging-Function-Name AVP, of type DiameterURI.DiameterURI
getSecondaryChargingCollectionFunctionName()
Returns the value of the Secondary-Charging-Collection-Function-Name AVP, of type DiameterURI.DiameterURI
getSecondaryEventChargingFunctionName()
Returns the value of the Secondary-Event-Charging-Function-Name AVP, of type DiameterURI.boolean
hasPrimaryChargingCollectionFunctionName()
Returns true if the Primary-Charging-Collection-Function-Name AVP is present in the Charging-Information AVP.boolean
hasPrimaryEventChargingFunctionName()
Returns true if the Primary-Event-Charging-Function-Name AVP is present in the Charging-Information AVP.boolean
hasSecondaryChargingCollectionFunctionName()
Returns true if the Secondary-Charging-Collection-Function-Name AVP is present in the Charging-Information AVP.boolean
hasSecondaryEventChargingFunctionName()
Returns true if the Secondary-Event-Charging-Function-Name AVP is present in the Charging-Information AVP.void
removeExtensionAvps()
Removes all extension AVPs from the Charging-Information AVP.void
removePrimaryChargingCollectionFunctionName()
Removes the Primary-Charging-Collection-Function-Name AVP from the Charging-Information AVP.void
removePrimaryEventChargingFunctionName()
Removes the Primary-Event-Charging-Function-Name AVP from the Charging-Information AVP.void
removeSecondaryChargingCollectionFunctionName()
Removes the Secondary-Charging-Collection-Function-Name AVP from the Charging-Information AVP.void
removeSecondaryEventChargingFunctionName()
Removes the Secondary-Event-Charging-Function-Name AVP from the Charging-Information AVP.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setPrimaryChargingCollectionFunctionName(DiameterURI primaryChargingCollectionFunctionName)
Sets the value of the Primary-Charging-Collection-Function-Name AVP, of type DiameterURI.void
setPrimaryEventChargingFunctionName(DiameterURI primaryEventChargingFunctionName)
Sets the value of the Primary-Event-Charging-Function-Name AVP, of type DiameterURI.void
setSecondaryChargingCollectionFunctionName(DiameterURI secondaryChargingCollectionFunctionName)
Sets the value of the Secondary-Charging-Collection-Function-Name AVP, of type DiameterURI.void
setSecondaryEventChargingFunctionName(DiameterURI secondaryEventChargingFunctionName)
Sets the value of the Secondary-Event-Charging-Function-Name AVP, of type DiameterURI.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
-
-
-
-
Method Detail
-
hasPrimaryEventChargingFunctionName
boolean hasPrimaryEventChargingFunctionName()
Returns true if the Primary-Event-Charging-Function-Name AVP is present in the Charging-Information AVP.
-
getPrimaryEventChargingFunctionName
DiameterURI getPrimaryEventChargingFunctionName()
Returns the value of the Primary-Event-Charging-Function-Name AVP, of type DiameterURI.- Returns:
- the value of the Primary-Event-Charging-Function-Name AVP, or null if it has not been set.
-
setPrimaryEventChargingFunctionName
void setPrimaryEventChargingFunctionName(DiameterURI primaryEventChargingFunctionName)
Sets the value of the Primary-Event-Charging-Function-Name AVP, of type DiameterURI.- Throws:
NullPointerException
- ifprimaryEventChargingFunctionName
isnull
.
-
removePrimaryEventChargingFunctionName
void removePrimaryEventChargingFunctionName()
Removes the Primary-Event-Charging-Function-Name AVP from the Charging-Information AVP. If the Primary-Event-Charging-Function-Name AVP is not present, this method returns silently.
-
hasSecondaryEventChargingFunctionName
boolean hasSecondaryEventChargingFunctionName()
Returns true if the Secondary-Event-Charging-Function-Name AVP is present in the Charging-Information AVP.
-
getSecondaryEventChargingFunctionName
DiameterURI getSecondaryEventChargingFunctionName()
Returns the value of the Secondary-Event-Charging-Function-Name AVP, of type DiameterURI.- Returns:
- the value of the Secondary-Event-Charging-Function-Name AVP, or null if it has not been set.
-
setSecondaryEventChargingFunctionName
void setSecondaryEventChargingFunctionName(DiameterURI secondaryEventChargingFunctionName)
Sets the value of the Secondary-Event-Charging-Function-Name AVP, of type DiameterURI.- Throws:
NullPointerException
- ifsecondaryEventChargingFunctionName
isnull
.
-
removeSecondaryEventChargingFunctionName
void removeSecondaryEventChargingFunctionName()
Removes the Secondary-Event-Charging-Function-Name AVP from the Charging-Information AVP. If the Secondary-Event-Charging-Function-Name AVP is not present, this method returns silently.
-
hasPrimaryChargingCollectionFunctionName
boolean hasPrimaryChargingCollectionFunctionName()
Returns true if the Primary-Charging-Collection-Function-Name AVP is present in the Charging-Information AVP.
-
getPrimaryChargingCollectionFunctionName
DiameterURI getPrimaryChargingCollectionFunctionName()
Returns the value of the Primary-Charging-Collection-Function-Name AVP, of type DiameterURI.- Returns:
- the value of the Primary-Charging-Collection-Function-Name AVP, or null if it has not been set.
-
setPrimaryChargingCollectionFunctionName
void setPrimaryChargingCollectionFunctionName(DiameterURI primaryChargingCollectionFunctionName)
Sets the value of the Primary-Charging-Collection-Function-Name AVP, of type DiameterURI.- Throws:
NullPointerException
- ifprimaryChargingCollectionFunctionName
isnull
.
-
removePrimaryChargingCollectionFunctionName
void removePrimaryChargingCollectionFunctionName()
Removes the Primary-Charging-Collection-Function-Name AVP from the Charging-Information AVP. If the Primary-Charging-Collection-Function-Name AVP is not present, this method returns silently.
-
hasSecondaryChargingCollectionFunctionName
boolean hasSecondaryChargingCollectionFunctionName()
Returns true if the Secondary-Charging-Collection-Function-Name AVP is present in the Charging-Information AVP.
-
getSecondaryChargingCollectionFunctionName
DiameterURI getSecondaryChargingCollectionFunctionName()
Returns the value of the Secondary-Charging-Collection-Function-Name AVP, of type DiameterURI.- Returns:
- the value of the Secondary-Charging-Collection-Function-Name AVP, or null if it has not been set.
-
setSecondaryChargingCollectionFunctionName
void setSecondaryChargingCollectionFunctionName(DiameterURI secondaryChargingCollectionFunctionName)
Sets the value of the Secondary-Charging-Collection-Function-Name AVP, of type DiameterURI.- Throws:
NullPointerException
- ifsecondaryChargingCollectionFunctionName
isnull
.
-
removeSecondaryChargingCollectionFunctionName
void removeSecondaryChargingCollectionFunctionName()
Removes the Secondary-Charging-Collection-Function-Name AVP from the Charging-Information AVP. If the Secondary-Charging-Collection-Function-Name AVP is not present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the Charging-Information AVP. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to Charging-Information AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
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)NullPointerException
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the Charging-Information AVP. If no extension AVPs are present, this method returns silently.
-
-