Interface TalkBurstExchange
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface TalkBurstExchange extends GroupedAvp
Defines an interface representing the Talk-Burst-Exchange grouped AVP type. From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V10.0.0) specification:7.2.220 Talk-Burst-Exchange AVP The Talk-Burst-Exchange AVP (AVP code 1255) is of type Grouped and holds the talk burst related charging data. It has the following ABNF grammar: Talk-Burst-Exchange ::= < AVP Header: 1255 > { PoC-Change-Time } [ Number-Of-Talk-Bursts ] [ Talk-Burst-Volume ] [ Talk-Burst-Time ] [ Number-Of-Received-Talk-Bursts ] [ Received-Talk-Burst-Volume ] [ Received-Talk-Burst-Time ] [ Number-Of-Participants ] [ PoC-Change-Condition ]
Note:
The support for extension AVPs is present even thou the ABNF grammar for this AVP does not contain the "* [ AVP ]" line. Be aware that adding any extension AVPs may result in interoperability problems with products that strongly validate the incoming diameter message for it's adherence to the specification.
-
-
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.long
getNumberOfParticipants()
Returns the value of the Number-Of-Participants AVP, of type Unsigned32.long
getNumberOfReceivedTalkBursts()
Returns the value of the Number-Of-Received-Talk-Bursts AVP, of type Unsigned32.long
getNumberOfTalkBursts()
Returns the value of the Number-Of-Talk-Bursts AVP, of type Unsigned32.PocChangeCondition
getPocChangeCondition()
Returns the value of the PoC-Change-Condition AVP, of type Enumerated.Date
getPocChangeTime()
Returns the value of the PoC-Change-Time AVP, of type Time.long
getReceivedTalkBurstTime()
Returns the value of the Received-Talk-Burst-Time AVP, of type Unsigned32.long
getReceivedTalkBurstVolume()
Returns the value of the Received-Talk-Burst-Volume AVP, of type Unsigned32.long
getTalkBurstTime()
Returns the value of the Talk-Burst-Time AVP, of type Unsigned32.long
getTalkBurstVolume()
Returns the value of the Talk-Burst-Volume AVP, of type Unsigned32.boolean
hasNumberOfParticipants()
Returns true if the Number-Of-Participants AVP is present in the Talk-Burst-Exchange AVP.boolean
hasNumberOfReceivedTalkBursts()
Returns true if the Number-Of-Received-Talk-Bursts AVP is present in the Talk-Burst-Exchange AVP.boolean
hasNumberOfTalkBursts()
Returns true if the Number-Of-Talk-Bursts AVP is present in the Talk-Burst-Exchange AVP.boolean
hasPocChangeCondition()
Returns true if the PoC-Change-Condition AVP is present in the Talk-Burst-Exchange AVP.boolean
hasPocChangeTime()
Returns true if the PoC-Change-Time AVP is present in the Talk-Burst-Exchange AVP.boolean
hasReceivedTalkBurstTime()
Returns true if the Received-Talk-Burst-Time AVP is present in the Talk-Burst-Exchange AVP.boolean
hasReceivedTalkBurstVolume()
Returns true if the Received-Talk-Burst-Volume AVP is present in the Talk-Burst-Exchange AVP.boolean
hasTalkBurstTime()
Returns true if the Talk-Burst-Time AVP is present in the Talk-Burst-Exchange AVP.boolean
hasTalkBurstVolume()
Returns true if the Talk-Burst-Volume AVP is present in the Talk-Burst-Exchange AVP.void
removeExtensionAvps()
Removes all extension AVPs from the Talk-Burst-Exchange AVP.void
removeNumberOfParticipants()
Removes the Number-Of-Participants AVP from the Talk-Burst-Exchange AVP.void
removeNumberOfReceivedTalkBursts()
Removes the Number-Of-Received-Talk-Bursts AVP from the Talk-Burst-Exchange AVP.void
removeNumberOfTalkBursts()
Removes the Number-Of-Talk-Bursts AVP from the Talk-Burst-Exchange AVP.void
removePocChangeCondition()
Removes the PoC-Change-Condition AVP from the Talk-Burst-Exchange AVP.void
removePocChangeTime()
Removes the PoC-Change-Time AVP from the Talk-Burst-Exchange AVP.void
removeReceivedTalkBurstTime()
Removes the Received-Talk-Burst-Time AVP from the Talk-Burst-Exchange AVP.void
removeReceivedTalkBurstVolume()
Removes the Received-Talk-Burst-Volume AVP from the Talk-Burst-Exchange AVP.void
removeTalkBurstTime()
Removes the Talk-Burst-Time AVP from the Talk-Burst-Exchange AVP.void
removeTalkBurstVolume()
Removes the Talk-Burst-Volume AVP from the Talk-Burst-Exchange AVP.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setNumberOfParticipants(long numberOfParticipants)
Sets the value of the Number-Of-Participants AVP, of type Unsigned32.void
setNumberOfReceivedTalkBursts(long numberOfReceivedTalkBursts)
Sets the value of the Number-Of-Received-Talk-Bursts AVP, of type Unsigned32.void
setNumberOfTalkBursts(long numberOfTalkBursts)
Sets the value of the Number-Of-Talk-Bursts AVP, of type Unsigned32.void
setPocChangeCondition(PocChangeCondition pocChangeCondition)
Sets the value of the PoC-Change-Condition AVP, of type Enumerated.void
setPocChangeTime(Date pocChangeTime)
Sets the value of the PoC-Change-Time AVP, of type Time.void
setReceivedTalkBurstTime(long receivedTalkBurstTime)
Sets the value of the Received-Talk-Burst-Time AVP, of type Unsigned32.void
setReceivedTalkBurstVolume(long receivedTalkBurstVolume)
Sets the value of the Received-Talk-Burst-Volume AVP, of type Unsigned32.void
setTalkBurstTime(long talkBurstTime)
Sets the value of the Talk-Burst-Time AVP, of type Unsigned32.void
setTalkBurstVolume(long talkBurstVolume)
Sets the value of the Talk-Burst-Volume AVP, of type Unsigned32.-
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
-
hasPocChangeTime
boolean hasPocChangeTime()
Returns true if the PoC-Change-Time AVP is present in the Talk-Burst-Exchange AVP.
-
getPocChangeTime
Date getPocChangeTime()
Returns the value of the PoC-Change-Time AVP, of type Time.- Returns:
- the value of the PoC-Change-Time AVP, or null if it has not been set.
-
setPocChangeTime
void setPocChangeTime(Date pocChangeTime)
Sets the value of the PoC-Change-Time AVP, of type Time.- Throws:
NullPointerException
- ifpocChangeTime
isnull
.
-
removePocChangeTime
void removePocChangeTime()
Removes the PoC-Change-Time AVP from the Talk-Burst-Exchange AVP. If the PoC-Change-Time AVP is not present, this method returns silently.
-
hasNumberOfTalkBursts
boolean hasNumberOfTalkBursts()
Returns true if the Number-Of-Talk-Bursts AVP is present in the Talk-Burst-Exchange AVP.
-
getNumberOfTalkBursts
long getNumberOfTalkBursts()
Returns the value of the Number-Of-Talk-Bursts AVP, of type Unsigned32. UsehasNumberOfTalkBursts()
to check the existence of this AVP.- Returns:
- the value of the Number-Of-Talk-Bursts AVP
- Throws:
IllegalStateException
- if the Number-Of-Talk-Bursts AVP has not been set.
-
setNumberOfTalkBursts
void setNumberOfTalkBursts(long numberOfTalkBursts)
Sets the value of the Number-Of-Talk-Bursts AVP, of type Unsigned32.
-
removeNumberOfTalkBursts
void removeNumberOfTalkBursts()
Removes the Number-Of-Talk-Bursts AVP from the Talk-Burst-Exchange AVP. If the Number-Of-Talk-Bursts AVP is not present, this method returns silently.
-
hasTalkBurstVolume
boolean hasTalkBurstVolume()
Returns true if the Talk-Burst-Volume AVP is present in the Talk-Burst-Exchange AVP.
-
getTalkBurstVolume
long getTalkBurstVolume()
Returns the value of the Talk-Burst-Volume AVP, of type Unsigned32. UsehasTalkBurstVolume()
to check the existence of this AVP.- Returns:
- the value of the Talk-Burst-Volume AVP
- Throws:
IllegalStateException
- if the Talk-Burst-Volume AVP has not been set.
-
setTalkBurstVolume
void setTalkBurstVolume(long talkBurstVolume)
Sets the value of the Talk-Burst-Volume AVP, of type Unsigned32.
-
removeTalkBurstVolume
void removeTalkBurstVolume()
Removes the Talk-Burst-Volume AVP from the Talk-Burst-Exchange AVP. If the Talk-Burst-Volume AVP is not present, this method returns silently.
-
hasTalkBurstTime
boolean hasTalkBurstTime()
Returns true if the Talk-Burst-Time AVP is present in the Talk-Burst-Exchange AVP.
-
getTalkBurstTime
long getTalkBurstTime()
Returns the value of the Talk-Burst-Time AVP, of type Unsigned32. UsehasTalkBurstTime()
to check the existence of this AVP.- Returns:
- the value of the Talk-Burst-Time AVP
- Throws:
IllegalStateException
- if the Talk-Burst-Time AVP has not been set.
-
setTalkBurstTime
void setTalkBurstTime(long talkBurstTime)
Sets the value of the Talk-Burst-Time AVP, of type Unsigned32.
-
removeTalkBurstTime
void removeTalkBurstTime()
Removes the Talk-Burst-Time AVP from the Talk-Burst-Exchange AVP. If the Talk-Burst-Time AVP is not present, this method returns silently.
-
hasNumberOfReceivedTalkBursts
boolean hasNumberOfReceivedTalkBursts()
Returns true if the Number-Of-Received-Talk-Bursts AVP is present in the Talk-Burst-Exchange AVP.
-
getNumberOfReceivedTalkBursts
long getNumberOfReceivedTalkBursts()
Returns the value of the Number-Of-Received-Talk-Bursts AVP, of type Unsigned32. UsehasNumberOfReceivedTalkBursts()
to check the existence of this AVP.- Returns:
- the value of the Number-Of-Received-Talk-Bursts AVP
- Throws:
IllegalStateException
- if the Number-Of-Received-Talk-Bursts AVP has not been set.
-
setNumberOfReceivedTalkBursts
void setNumberOfReceivedTalkBursts(long numberOfReceivedTalkBursts)
Sets the value of the Number-Of-Received-Talk-Bursts AVP, of type Unsigned32.
-
removeNumberOfReceivedTalkBursts
void removeNumberOfReceivedTalkBursts()
Removes the Number-Of-Received-Talk-Bursts AVP from the Talk-Burst-Exchange AVP. If the Number-Of-Received-Talk-Bursts AVP is not present, this method returns silently.
-
hasReceivedTalkBurstVolume
boolean hasReceivedTalkBurstVolume()
Returns true if the Received-Talk-Burst-Volume AVP is present in the Talk-Burst-Exchange AVP.
-
getReceivedTalkBurstVolume
long getReceivedTalkBurstVolume()
Returns the value of the Received-Talk-Burst-Volume AVP, of type Unsigned32. UsehasReceivedTalkBurstVolume()
to check the existence of this AVP.- Returns:
- the value of the Received-Talk-Burst-Volume AVP
- Throws:
IllegalStateException
- if the Received-Talk-Burst-Volume AVP has not been set.
-
setReceivedTalkBurstVolume
void setReceivedTalkBurstVolume(long receivedTalkBurstVolume)
Sets the value of the Received-Talk-Burst-Volume AVP, of type Unsigned32.
-
removeReceivedTalkBurstVolume
void removeReceivedTalkBurstVolume()
Removes the Received-Talk-Burst-Volume AVP from the Talk-Burst-Exchange AVP. If the Received-Talk-Burst-Volume AVP is not present, this method returns silently.
-
hasReceivedTalkBurstTime
boolean hasReceivedTalkBurstTime()
Returns true if the Received-Talk-Burst-Time AVP is present in the Talk-Burst-Exchange AVP.
-
getReceivedTalkBurstTime
long getReceivedTalkBurstTime()
Returns the value of the Received-Talk-Burst-Time AVP, of type Unsigned32. UsehasReceivedTalkBurstTime()
to check the existence of this AVP.- Returns:
- the value of the Received-Talk-Burst-Time AVP
- Throws:
IllegalStateException
- if the Received-Talk-Burst-Time AVP has not been set.
-
setReceivedTalkBurstTime
void setReceivedTalkBurstTime(long receivedTalkBurstTime)
Sets the value of the Received-Talk-Burst-Time AVP, of type Unsigned32.
-
removeReceivedTalkBurstTime
void removeReceivedTalkBurstTime()
Removes the Received-Talk-Burst-Time AVP from the Talk-Burst-Exchange AVP. If the Received-Talk-Burst-Time AVP is not present, this method returns silently.
-
hasNumberOfParticipants
boolean hasNumberOfParticipants()
Returns true if the Number-Of-Participants AVP is present in the Talk-Burst-Exchange AVP.
-
getNumberOfParticipants
long getNumberOfParticipants()
Returns the value of the Number-Of-Participants AVP, of type Unsigned32. UsehasNumberOfParticipants()
to check the existence of this AVP.- Returns:
- the value of the Number-Of-Participants AVP
- Throws:
IllegalStateException
- if the Number-Of-Participants AVP has not been set.
-
setNumberOfParticipants
void setNumberOfParticipants(long numberOfParticipants)
Sets the value of the Number-Of-Participants AVP, of type Unsigned32.
-
removeNumberOfParticipants
void removeNumberOfParticipants()
Removes the Number-Of-Participants AVP from the Talk-Burst-Exchange AVP. If the Number-Of-Participants AVP is not present, this method returns silently.
-
hasPocChangeCondition
boolean hasPocChangeCondition()
Returns true if the PoC-Change-Condition AVP is present in the Talk-Burst-Exchange AVP.
-
getPocChangeCondition
PocChangeCondition getPocChangeCondition()
Returns the value of the PoC-Change-Condition AVP, of type Enumerated.- Returns:
- the value of the PoC-Change-Condition AVP, or null if it has not been set.
-
setPocChangeCondition
void setPocChangeCondition(PocChangeCondition pocChangeCondition)
Sets the value of the PoC-Change-Condition AVP, of type Enumerated.- Throws:
NullPointerException
- ifpocChangeCondition
isnull
.
-
removePocChangeCondition
void removePocChangeCondition()
Removes the PoC-Change-Condition AVP from the Talk-Burst-Exchange AVP. If the PoC-Change-Condition 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 Talk-Burst-Exchange 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 Talk-Burst-Exchange 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 Talk-Burst-Exchange AVP. If no extension AVPs are present, this method returns silently.
-
-