public interface TrunkGroupId extends GroupedAvp
7.2.114 Trunk-Group-ID AVP The Trunk-Group-ID AVP (AVP code 851) is of type Grouped and identifies the incoming and outgoing PSTN legs. It has the following ABNF grammar: Trunk-Group-ID ::= <AVP Header: 851> [ Incoming-Trunk-Group-ID ] [ Outgoing-Trunk-Group-ID ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
java.lang.String |
getIncomingTrunkGroupId()
Returns the value of the Incoming-Trunk-Group-ID AVP, of type UTF8String.
|
java.lang.String |
getOutgoingTrunkGroupId()
Returns the value of the Outgoing-Trunk-Group-ID AVP, of type UTF8String.
|
boolean |
hasIncomingTrunkGroupId()
Returns true if the Incoming-Trunk-Group-ID AVP is present in the Trunk-Group-ID AVP.
|
boolean |
hasOutgoingTrunkGroupId()
Returns true if the Outgoing-Trunk-Group-ID AVP is present in the Trunk-Group-ID AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Trunk-Group-ID AVP.
|
void |
removeIncomingTrunkGroupId()
Removes the Incoming-Trunk-Group-ID AVP from the Trunk-Group-ID AVP.
|
void |
removeOutgoingTrunkGroupId()
Removes the Outgoing-Trunk-Group-ID AVP from the Trunk-Group-ID AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setIncomingTrunkGroupId(java.lang.String incomingTrunkGroupId)
Sets the value of the Incoming-Trunk-Group-ID AVP, of type UTF8String.
|
void |
setOutgoingTrunkGroupId(java.lang.String outgoingTrunkGroupId)
Sets the value of the Outgoing-Trunk-Group-ID AVP, of type UTF8String.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasIncomingTrunkGroupId()
java.lang.String getIncomingTrunkGroupId()
void setIncomingTrunkGroupId(java.lang.String incomingTrunkGroupId)
java.lang.NullPointerException
- if incomingTrunkGroupId
is null
.void removeIncomingTrunkGroupId()
boolean hasOutgoingTrunkGroupId()
java.lang.String getOutgoingTrunkGroupId()
void setOutgoingTrunkGroupId(java.lang.String outgoingTrunkGroupId)
java.lang.NullPointerException
- if outgoingTrunkGroupId
is null
.void removeOutgoingTrunkGroupId()
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()