public interface NniInformation extends GroupedAvp
7.2.112 A NNI-Information AVP The NNI-Information AVP (AVP code 2703) is of type Grouped and holds information about the NNI used for interconnection and roaming. It has the following ABNF grammar: NNI-Information ::= < AVP Header: 2703> [ Session-Direction ] [ NNI-Type ] [ Relationship-Mode ] [ Neighbour-Node-Address ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
Address |
getNeighbourNodeAddress()
Returns the value of the Neighbour-Node-Address AVP, of type Address.
|
NniType |
getNniType()
Returns the value of the NNI-Type AVP, of type Enumerated.
|
RelationshipMode |
getRelationshipMode()
Returns the value of the Relationship-Mode AVP, of type Enumerated.
|
SessionDirection |
getSessionDirection()
Returns the value of the Session-Direction AVP, of type Enumerated.
|
boolean |
hasNeighbourNodeAddress()
Returns true if the Neighbour-Node-Address AVP is present in the NNI-Information AVP.
|
boolean |
hasNniType()
Returns true if the NNI-Type AVP is present in the NNI-Information AVP.
|
boolean |
hasRelationshipMode()
Returns true if the Relationship-Mode AVP is present in the NNI-Information AVP.
|
boolean |
hasSessionDirection()
Returns true if the Session-Direction AVP is present in the NNI-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the NNI-Information AVP.
|
void |
removeNeighbourNodeAddress()
Removes the Neighbour-Node-Address AVP from the NNI-Information AVP.
|
void |
removeNniType()
Removes the NNI-Type AVP from the NNI-Information AVP.
|
void |
removeRelationshipMode()
Removes the Relationship-Mode AVP from the NNI-Information AVP.
|
void |
removeSessionDirection()
Removes the Session-Direction AVP from the NNI-Information AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setNeighbourNodeAddress(Address neighbourNodeAddress)
Sets the value of the Neighbour-Node-Address AVP, of type Address.
|
void |
setNniType(NniType nniType)
Sets the value of the NNI-Type AVP, of type Enumerated.
|
void |
setRelationshipMode(RelationshipMode relationshipMode)
Sets the value of the Relationship-Mode AVP, of type Enumerated.
|
void |
setSessionDirection(SessionDirection sessionDirection)
Sets the value of the Session-Direction AVP, of type Enumerated.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasSessionDirection()
SessionDirection getSessionDirection()
void setSessionDirection(SessionDirection sessionDirection)
java.lang.NullPointerException
- if sessionDirection
is null
.void removeSessionDirection()
boolean hasNniType()
NniType getNniType()
void setNniType(NniType nniType)
java.lang.NullPointerException
- if nniType
is null
.void removeNniType()
boolean hasRelationshipMode()
RelationshipMode getRelationshipMode()
void setRelationshipMode(RelationshipMode relationshipMode)
java.lang.NullPointerException
- if relationshipMode
is null
.void removeRelationshipMode()
boolean hasNeighbourNodeAddress()
Address getNeighbourNodeAddress()
void setNeighbourNodeAddress(Address neighbourNodeAddress)
java.lang.NullPointerException
- if neighbourNodeAddress
is null
.void removeNeighbourNodeAddress()
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()