public interface AocService extends GroupedAvp
7.2.17 AoC-Service AVP The AoC-Service AVP (AVP code 2311) is of type Grouped and holds the pair of AoC Service type and AoC Service obligatory type. It has the following ABNF grammar: AoC-Service ::= < AVP Header: 2311 > [ AoC-Service-Obligatory-Type ] [ AoC-Service-Type ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
AocServiceObligatoryType |
getAocServiceObligatoryType()
Returns the value of the AoC-Service-Obligatory-Type AVP, of type Enumerated.
|
AocServiceType |
getAocServiceType()
Returns the value of the AoC-Service-Type AVP, of type Enumerated.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
boolean |
hasAocServiceObligatoryType()
Returns true if the AoC-Service-Obligatory-Type AVP is present in the AoC-Service AVP.
|
boolean |
hasAocServiceType()
Returns true if the AoC-Service-Type AVP is present in the AoC-Service AVP.
|
void |
removeAocServiceObligatoryType()
Removes the AoC-Service-Obligatory-Type AVP from the AoC-Service AVP.
|
void |
removeAocServiceType()
Removes the AoC-Service-Type AVP from the AoC-Service AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the AoC-Service AVP.
|
void |
setAocServiceObligatoryType(AocServiceObligatoryType aocServiceObligatoryType)
Sets the value of the AoC-Service-Obligatory-Type AVP, of type Enumerated.
|
void |
setAocServiceType(AocServiceType aocServiceType)
Sets the value of the AoC-Service-Type AVP, of type Enumerated.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasAocServiceObligatoryType()
AocServiceObligatoryType getAocServiceObligatoryType()
void setAocServiceObligatoryType(AocServiceObligatoryType aocServiceObligatoryType)
java.lang.NullPointerException
- if aocServiceObligatoryType
is null
.void removeAocServiceObligatoryType()
boolean hasAocServiceType()
AocServiceType getAocServiceType()
void setAocServiceType(AocServiceType aocServiceType)
java.lang.NullPointerException
- if aocServiceType
is null
.void removeAocServiceType()
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()