public interface RepositoryDataId extends GroupedAvp
6.3.24 Repository-Data-ID AVP The Repository-Data-ID AVP is of type Grouped. This AVP shall contain a Service-Indication AVP and a Sequence-Number AVP. AVP format Repository-Data-ID ::= <AVP Header: 715 10415> {Service-Indication} {Sequence-Number} *[AVP]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
long |
getSequenceNumber()
Returns the value of the Sequence-Number AVP, of type Unsigned32.
|
byte[] |
getServiceIndication()
Returns the value of the Service-Indication AVP, of type OctetString.
|
boolean |
hasSequenceNumber()
Returns true if the Sequence-Number AVP is present in the Repository-Data-ID AVP.
|
boolean |
hasServiceIndication()
Returns true if the Service-Indication AVP is present in the Repository-Data-ID AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Repository-Data-ID AVP.
|
void |
removeSequenceNumber()
Removes the Sequence-Number AVP from the Repository-Data-ID AVP.
|
void |
removeServiceIndication()
Removes the Service-Indication AVP from the Repository-Data-ID AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setSequenceNumber(long sequenceNumber)
Sets the value of the Sequence-Number AVP, of type Unsigned32.
|
void |
setServiceIndication(byte[] serviceIndication)
Sets the value of the Service-Indication AVP, of type OctetString.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasServiceIndication()
byte[] getServiceIndication()
void setServiceIndication(byte[] serviceIndication)
java.lang.NullPointerException
- if serviceIndication
is null
.void removeServiceIndication()
boolean hasSequenceNumber()
long getSequenceNumber()
hasSequenceNumber()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Sequence-Number AVP has not been set.void setSequenceNumber(long sequenceNumber)
void removeSequenceNumber()
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()