|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.LocationType
public class LocationType
LocationType is a lightweight representation of the Grouped [Location-Type] Avp. It indicates the type of location estimate required by the LCS Client.
The [Location-Type] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
LocationType()
Constructs an empty LocationType object representing the [Location-Type] Avp. |
|
LocationType(java.util.List<Avp> avps)
Constructs a LocationType object representing the Grouped [Location-Type] Avp. |
Method Summary | |
---|---|
java.lang.String |
getDeferredLocationEventType()
Gets the value corresponding to the payload of the [Deferrred-Location-Event-Type] Avp. |
java.lang.Integer |
getLocationEstimateType()
Gets the value corresponding to the payload of the [Location-Estimate-Type] Avp. |
void |
setDeferredLocationEventType(java.lang.String deferredLocationEventType)
Sets the value corresponding to the payload of the [Deferrred-Location-Event-Type] Avp. |
void |
setLocationEstimateType(java.lang.Integer locationEstimateType)
Sets the value corresponding to the payload of the [Location-Estimate-Type] Avp. |
Avp |
toAvp()
Transforms a LocationType object into a Grouped [Location-Type] Avp. |
void |
validate()
Validates the members of the LocationType object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationType()
public LocationType(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 LocationType, 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
[Location-Type] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.String getDeferredLocationEventType()
public void setDeferredLocationEventType(java.lang.String deferredLocationEventType)
submissionTime
- the value corresponding to the payload of the [Deferrred-Location-Event-Type] Avp.public java.lang.Integer getLocationEstimateType()
public void setLocationEstimateType(java.lang.Integer locationEstimateType)
submissionTime
- the value corresponding to the payload of the [Location-Estimate-Type] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of LocationType is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of LocationType will be transformed into Avps nested inside of the [Location-Type] Avp.
AvpTransformationException
- if a member of LocationType is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |