|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.MessageClass
public class MessageClass
MessageClass is a lightweight representation of the Grouped [Message-Class] Avp. It identifies the class of an MM message.
The [Message-Class] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
MessageClass()
Constructs an empty MessageClass object representing the [Message-Class] Avp. |
|
MessageClass(java.util.List<Avp> avps)
Constructs a MessageClass object representing the Grouped [Message-Class] Avp. |
Method Summary | |
---|---|
java.lang.Integer |
getClassIdentifier()
Gets the value corresponding to the payload of the [Class-Identifier] Avp. |
java.lang.String |
getTokenText()
Gets the value corresponding to the payload of the [Token-Text] Avp. |
void |
setClassIdentifier(java.lang.Integer classIdentifier)
Sets the value corresponding to the payload of the [Class-Identifier] Avp. |
void |
setTokenText(java.lang.String tokenText)
Sets the value corresponding to the payload of the [Token-Text] Avp. |
Avp |
toAvp()
Transforms a MessageClass object into a Grouped [Message-Class] Avp. |
void |
validate()
Validates the members of the MessageClass object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageClass()
public MessageClass(java.util.List<Avp> avps) throws AvpTransformationException
The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of MessageClass, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.
avps
- a list of Avps that can appear in the Grouped
[Message-Class] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.Integer getClassIdentifier()
public void setClassIdentifier(java.lang.Integer classIdentifier)
classIdentifier
- the value corresponding to the payload of the [Class-Identifier] Avp.public java.lang.String getTokenText()
public void setTokenText(java.lang.String tokenText)
tokenText
- the value corresponding to the payload of the [Token-Text] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of MessageClass is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of MessageClass will be transformed into Avps nested inside of the [Message-Class] Avp.
AvpTransformationException
- if a member of MessageClass is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |