|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.MMContentType
public class MMContentType
MMContentType is a lightweight representation of the Grouped [MM-Content-Type] Avp. It includes information about the contents of an MM.
The [MM-Content-Type] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
MMContentType()
Constructs an empty MMContentType object representing the [MM-Content-Type] Avp. |
|
MMContentType(java.util.List<Avp> avps)
Constructs a MMContentType object representing the Grouped [MM-Content-Type] Avp. |
Method Summary | |
---|---|
AdditionalContentInformation[] |
getAdditionalContentInformation()
Gets the value corresponding to the payload of the [Additional-Content-Information] Avp. |
java.lang.String |
getAdditionalTypeInformation()
Gets the value corresponding to the payload of the [Additional-Type-Information] Avp. |
java.lang.Integer |
getContentSize()
Gets the value corresponding to the payload of the [Content-Size] Avp. |
java.lang.Integer |
getTypeNumber()
Gets the value corresponding to the payload of the [Type-Number] Avp. |
void |
setAdditionalContentInformation(AdditionalContentInformation[] additionalContentInformation)
Sets the value corresponding to the payload of the [Additional-Content-Information] Avp. |
void |
setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
Sets the value corresponding to the payload of the [Additional-Type-Information] Avp. |
void |
setContentSize(java.lang.Integer contentSize)
Sets the value corresponding to the payload of the [Content-Size] Avp. |
void |
setTypeNumber(java.lang.Integer typeNumber)
Sets the value corresponding to the payload of the [Type-Number] Avp. |
Avp |
toAvp()
Transforms a MMContentType object into a Grouped [MM-Content-Type] Avp. |
void |
validate()
Validates the members of the MMContentType object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMContentType()
public MMContentType(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 MMContentType, 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
[MM-Content-Type] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public AdditionalContentInformation[] getAdditionalContentInformation()
public void setAdditionalContentInformation(AdditionalContentInformation[] additionalContentInformation)
additionalContentInformation
- the value corresponding to the payload of the [Additional-Content-Information] Avp.public java.lang.String getAdditionalTypeInformation()
public void setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
additionalTypeInformation
- the value corresponding to the payload of the [Additional-Type-Information] Avp.public java.lang.Integer getContentSize()
public void setContentSize(java.lang.Integer contentSize)
contentSize
- the value corresponding to the payload of the [Content-Size] Avp.public java.lang.Integer getTypeNumber()
public void setTypeNumber(java.lang.Integer typeNumber)
typeNumber
- the value corresponding to the payload of the [Type-Number] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of MMContentType is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of MMContentType will be transformed into Avps nested inside of the [MM-Content-Type] Avp.
AvpTransformationException
- if a member of MMContentType is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |