org.mobicents.slee.resource.diameter.cca.events.avp
Class MultipleServicesCreditControlAvpImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
      extended by org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
          extended by org.mobicents.slee.resource.diameter.cca.events.avp.MultipleServicesCreditControlAvpImpl
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, net.java.slee.resource.diameter.base.events.avp.DiameterAvp, net.java.slee.resource.diameter.base.events.avp.GroupedAvp, MultipleServicesCreditControlAvp

public class MultipleServicesCreditControlAvpImpl
extends org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
implements MultipleServicesCreditControlAvp

Start time:16:29:27 2008-11-10
Project: mobicents-diameter-parent
Implementation of AVP: MultipleServicesCreditControlAvp

Author:
Bartosz Baranowski , Alexandre Mendonca
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
avpSet
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
code, mnd, name, prt, type, value, vendorId
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Constructor Summary
MultipleServicesCreditControlAvpImpl()
           
MultipleServicesCreditControlAvpImpl(int code, long vendorId, int mnd, int prt, byte[] value)
           
 
Method Summary
 FinalUnitIndicationAvp getFinalUnitIndication()
          Returns the value of the Final-Unit-Indication AVP, of type Grouped.
 GrantedServiceUnitAvp getGrantedServiceUnit()
          Returns the value of the Granted-Service-Unit AVP, of type Grouped.Return value of null indicates that AVP has not been set.
 GSUPoolReferenceAvp[] getGsuPoolReferences()
          Returns the set of G-S-U-Pool-Reference AVPs.Return value of null indicates that AVP has not been set.
 long getRatingGroup()
          Returns the value of the Rating-Group AVP, of type Unsigned32.
 RequestedServiceUnitAvp getRequestedServiceUnit()
          Returns the value of the Requested-Service-Unit AVP, of type Grouped.Return value of null indicates that AVP has not been set.
 long getResultCode()
          Returns the value of the Result-Code AVP, of type Unsigned32.
 long[] getServiceIdentifiers()
          Returns the set of Service-Identifier AVPs.
 TariffChangeUsageType getTariffChangeUsage()
          Returns the value of the Tariff-Change-Usage AVP, of type Enumerated.
 UsedServiceUnitAvp[] getUsedServiceUnits()
          Returns the set of Used-Service-Unit AVPs.
 long getValidityTime()
          Returns the value of the Validity-Time AVP, of type Unsigned32.
 boolean hasFinalUnitIndication()
          Returns the value of the Validity-Time AVP, of type Unsigned32.
 boolean hasGrantedServiceUnit()
          Returns true if the Granted-Service-Unit AVP is present in the message.
 boolean hasRatingGroup()
           
 boolean hasRequestedServiceUnit()
          Returns true if the Rating-Group AVP is present in the message.
 boolean hasResultCode()
          Returns true if the Requested-Service-Unit AVP is present in the message.
 boolean hasTariffChangeUsage()
          Returns true if the Result-Code AVP is present in the message.
 boolean hasValidityTime()
          Returns true if the Validity-Time AVP is present in the message.
 void setFinalUnitIndication(FinalUnitIndicationAvp finalUnitIndication)
          Sets the value of the Final-Unit-Indication AVP, of type Grouped.
 void setGrantedServiceUnit(GrantedServiceUnitAvp grantedServiceUnit)
          Sets the value of the Granted-Service-Unit AVP, of type Grouped.
 void setGsuPoolReference(GSUPoolReferenceAvp gsuPoolReference)
          Sets a single G-S-U-Pool-Reference AVP in the message, of type Grouped.
 void setGsuPoolReferences(GSUPoolReferenceAvp[] gsuPoolReferences)
          Sets the set of G-S-U-Pool-Reference AVPs, with all the values in the given array.
 void setRatingGroup(long ratingGroup)
          Sets the value of the Rating-Group AVP, of type Unsigned32.
 void setRequestedServiceUnit(RequestedServiceUnitAvp requestedServiceUnit)
          Sets the value of the Requested-Service-Unit AVP, of type Grouped.
 void setResultCode(long resultCode)
          Sets the value of the Result-Code AVP, of type Unsigned32.
 void setServiceIdentifier(long serviceIdentifier)
          Sets a single Service-Identifier AVP in the message, of type Unsigned32.
 void setServiceIdentifiers(long[] serviceIdentifiers)
          Sets the set of Service-Identifier AVPs, with all the values in the given array.
 void setTariffChangeUsage(TariffChangeUsageType tariffChangeUsage)
          Sets the value of the Tariff-Change-Usage AVP, of type Enumerated.
 void setUsedServiceUnit(UsedServiceUnitAvp usedServiceUnit)
          Sets a single Used-Service-Unit AVP in the message, of type Grouped.
 void setUsedServiceUnits(UsedServiceUnitAvp[] usedServiceUnits)
          Sets the set of Used-Service-Unit AVPs, with all the values in the given array.
 void setValidityTime(long validityTime)
          Sets the value of the Validity-Time AVP, of type Unsigned32.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
addAvp, addAvp, addAvp, addAvp, byteArrayValue, clone, doubleValue, equals, floatValue, getAvp, getAvp, getAvp, getAvpAsAddress, getAvpAsAddress, getAvpAsCustom, getAvpAsCustom, getAvpAsDiameterIdentity, getAvpAsDiameterIdentity, getAvpAsDiameterURI, getAvpAsDiameterURI, getAvpAsEnumerated, getAvpAsEnumerated, getAvpAsFloat32, getAvpAsFloat32, getAvpAsFloat64, getAvpAsFloat64, getAvpAsGrouped, getAvpAsGrouped, getAvpAsInteger32, getAvpAsInteger32, getAvpAsInteger64, getAvpAsInteger64, getAvpAsOctetString, getAvpAsOctetString, getAvpAsRaw, getAvpAsRaw, getAvpAsTime, getAvpAsTime, getAvpAsUnsigned32, getAvpAsUnsigned32, getAvpAsUnsigned64, getAvpAsUnsigned64, getAvpAsUTF8String, getAvpAsUTF8String, getAvpsAsAddress, getAvpsAsAddress, getAvpsAsCustom, getAvpsAsCustom, getAvpsAsDiameterIdentity, getAvpsAsDiameterIdentity, getAvpsAsDiameterURI, getAvpsAsDiameterURI, getAvpsAsEnumerated, getAvpsAsEnumerated, getAvpsAsFloat32, getAvpsAsFloat32, getAvpsAsFloat64, getAvpsAsFloat64, getAvpsAsGrouped, getAvpsAsGrouped, getAvpsAsInteger32, getAvpsAsInteger32, getAvpsAsInteger64, getAvpsAsInteger64, getAvpsAsOctetString, getAvpsAsOctetString, getAvpsAsRaw, getAvpsAsRaw, getAvpsAsTime, getAvpsAsTime, getAvpsAsUnsigned32, getAvpsAsUnsigned32, getAvpsAsUnsigned64, getAvpsAsUnsigned64, getAvpsAsUTF8String, getAvpsAsUTF8String, getExtensionAvps, getGenericData, getValue, hasAvp, hasAvp, intValue, longValue, setAvpAsFloat32, setAvpAsFloat64, setAvpAsGrouped, setAvpAsInteger32, setAvpAsInteger64, setAvpAsOctetString, setAvpAsRaw, setAvpAsTime, setAvpAsUnsigned32, setAvpAsUnsigned64, setAvpAsUTF8String, setExtensionAvps, setValue, stringValue
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, hashCode, octetStringValue, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
getExtensionAvps, setExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

MultipleServicesCreditControlAvpImpl

public MultipleServicesCreditControlAvpImpl()

MultipleServicesCreditControlAvpImpl

public MultipleServicesCreditControlAvpImpl(int code,
                                            long vendorId,
                                            int mnd,
                                            int prt,
                                            byte[] value)
Method Detail

getFinalUnitIndication

public FinalUnitIndicationAvp getFinalUnitIndication()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Final-Unit-Indication AVP, of type Grouped. Return value of null indicates that AVP has not been set.
See: FinalUnitIndicationAvp

Specified by:
getFinalUnitIndication in interface MultipleServicesCreditControlAvp
Returns:

getGrantedServiceUnit

public GrantedServiceUnitAvp getGrantedServiceUnit()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Granted-Service-Unit AVP, of type Grouped.Return value of null indicates that AVP has not been set.
See: GrantedServiceUnitAvp

Specified by:
getGrantedServiceUnit in interface MultipleServicesCreditControlAvp
Returns:

getGsuPoolReferences

public GSUPoolReferenceAvp[] getGsuPoolReferences()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the set of G-S-U-Pool-Reference AVPs.Return value of null indicates that AVP has not been set.
See: GSUPoolReferenceAvp

Specified by:
getGsuPoolReferences in interface MultipleServicesCreditControlAvp
Returns:

getRatingGroup

public long getRatingGroup()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Rating-Group AVP, of type Unsigned32.

Specified by:
getRatingGroup in interface MultipleServicesCreditControlAvp
Returns:

getRequestedServiceUnit

public RequestedServiceUnitAvp getRequestedServiceUnit()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Requested-Service-Unit AVP, of type Grouped.Return value of null indicates that AVP has not been set.
See: RequestedServiceUnitAvp

Specified by:
getRequestedServiceUnit in interface MultipleServicesCreditControlAvp
Returns:

getResultCode

public long getResultCode()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Result-Code AVP, of type Unsigned32.

Specified by:
getResultCode in interface MultipleServicesCreditControlAvp
Returns:

getServiceIdentifiers

public long[] getServiceIdentifiers()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the set of Service-Identifier AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Service-Identifier AVPs have been set. The elements in the given array are long objects.

Specified by:
getServiceIdentifiers in interface MultipleServicesCreditControlAvp
Returns:

getTariffChangeUsage

public TariffChangeUsageType getTariffChangeUsage()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Tariff-Change-Usage AVP, of type Enumerated. A return value of null implies that the AVP has not been set.
See: TariffChangeUsageType.

Specified by:
getTariffChangeUsage in interface MultipleServicesCreditControlAvp
Returns:

getUsedServiceUnits

public UsedServiceUnitAvp[] getUsedServiceUnits()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the set of Used-Service-Unit AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Used-Service-Unit AVPs have been set.
See: UsedServiceUnitAvp.

Specified by:
getUsedServiceUnits in interface MultipleServicesCreditControlAvp
Returns:

getValidityTime

public long getValidityTime()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Validity-Time AVP, of type Unsigned32.

Specified by:
getValidityTime in interface MultipleServicesCreditControlAvp
Returns:

hasFinalUnitIndication

public boolean hasFinalUnitIndication()
Description copied from interface: MultipleServicesCreditControlAvp
Returns the value of the Validity-Time AVP, of type Unsigned32.

Specified by:
hasFinalUnitIndication in interface MultipleServicesCreditControlAvp
Returns:

hasGrantedServiceUnit

public boolean hasGrantedServiceUnit()
Description copied from interface: MultipleServicesCreditControlAvp
Returns true if the Granted-Service-Unit AVP is present in the message.

Specified by:
hasGrantedServiceUnit in interface MultipleServicesCreditControlAvp
Returns:

hasRatingGroup

public boolean hasRatingGroup()
Specified by:
hasRatingGroup in interface MultipleServicesCreditControlAvp

hasRequestedServiceUnit

public boolean hasRequestedServiceUnit()
Description copied from interface: MultipleServicesCreditControlAvp
Returns true if the Rating-Group AVP is present in the message.

Specified by:
hasRequestedServiceUnit in interface MultipleServicesCreditControlAvp
Returns:

hasResultCode

public boolean hasResultCode()
Description copied from interface: MultipleServicesCreditControlAvp
Returns true if the Requested-Service-Unit AVP is present in the message.

Specified by:
hasResultCode in interface MultipleServicesCreditControlAvp
Returns:

hasTariffChangeUsage

public boolean hasTariffChangeUsage()
Description copied from interface: MultipleServicesCreditControlAvp
Returns true if the Result-Code AVP is present in the message.

Specified by:
hasTariffChangeUsage in interface MultipleServicesCreditControlAvp
Returns:

hasValidityTime

public boolean hasValidityTime()
Description copied from interface: MultipleServicesCreditControlAvp
Returns true if the Validity-Time AVP is present in the message.

Specified by:
hasValidityTime in interface MultipleServicesCreditControlAvp
Returns:

setFinalUnitIndication

public void setFinalUnitIndication(FinalUnitIndicationAvp finalUnitIndication)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Final-Unit-Indication AVP, of type Grouped.
See: FinalUnitIndicationAvp

Specified by:
setFinalUnitIndication in interface MultipleServicesCreditControlAvp

setGrantedServiceUnit

public void setGrantedServiceUnit(GrantedServiceUnitAvp grantedServiceUnit)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Granted-Service-Unit AVP, of type Grouped.
See: GrantedServiceUnitAvp

Specified by:
setGrantedServiceUnit in interface MultipleServicesCreditControlAvp

setGsuPoolReference

public void setGsuPoolReference(GSUPoolReferenceAvp gsuPoolReference)
Description copied from interface: MultipleServicesCreditControlAvp
Sets a single G-S-U-Pool-Reference AVP in the message, of type Grouped.
See: GSUPoolReferenceAvp

Specified by:
setGsuPoolReference in interface MultipleServicesCreditControlAvp

setGsuPoolReferences

public void setGsuPoolReferences(GSUPoolReferenceAvp[] gsuPoolReferences)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the set of G-S-U-Pool-Reference AVPs, with all the values in the given array.
See: GSUPoolReferenceAvp

Specified by:
setGsuPoolReferences in interface MultipleServicesCreditControlAvp

setRatingGroup

public void setRatingGroup(long ratingGroup)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Rating-Group AVP, of type Unsigned32.

Specified by:
setRatingGroup in interface MultipleServicesCreditControlAvp

setRequestedServiceUnit

public void setRequestedServiceUnit(RequestedServiceUnitAvp requestedServiceUnit)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Requested-Service-Unit AVP, of type Grouped.

Specified by:
setRequestedServiceUnit in interface MultipleServicesCreditControlAvp

setResultCode

public void setResultCode(long resultCode)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Result-Code AVP, of type Unsigned32.

Specified by:
setResultCode in interface MultipleServicesCreditControlAvp

setServiceIdentifier

public void setServiceIdentifier(long serviceIdentifier)
Description copied from interface: MultipleServicesCreditControlAvp
Sets a single Service-Identifier AVP in the message, of type Unsigned32.

Specified by:
setServiceIdentifier in interface MultipleServicesCreditControlAvp

setServiceIdentifiers

public void setServiceIdentifiers(long[] serviceIdentifiers)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the set of Service-Identifier AVPs, with all the values in the given array.

Specified by:
setServiceIdentifiers in interface MultipleServicesCreditControlAvp

setTariffChangeUsage

public void setTariffChangeUsage(TariffChangeUsageType tariffChangeUsage)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Tariff-Change-Usage AVP, of type Enumerated.

Specified by:
setTariffChangeUsage in interface MultipleServicesCreditControlAvp

setUsedServiceUnit

public void setUsedServiceUnit(UsedServiceUnitAvp usedServiceUnit)
Description copied from interface: MultipleServicesCreditControlAvp
Sets a single Used-Service-Unit AVP in the message, of type Grouped.
See: TariffChangeUsageType

Specified by:
setUsedServiceUnit in interface MultipleServicesCreditControlAvp

setUsedServiceUnits

public void setUsedServiceUnits(UsedServiceUnitAvp[] usedServiceUnits)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the set of Used-Service-Unit AVPs, with all the values in the given array.
See: UsedServiceUnitAvp

Specified by:
setUsedServiceUnits in interface MultipleServicesCreditControlAvp

setValidityTime

public void setValidityTime(long validityTime)
Description copied from interface: MultipleServicesCreditControlAvp
Sets the value of the Validity-Time AVP, of type Unsigned32.

Specified by:
setValidityTime in interface MultipleServicesCreditControlAvp


Copyright © 2011. All Rights Reserved.