com.ibm.diameter.packet
Class VsAvpDefinition

java.lang.Object
  extended by com.ibm.diameter.packet.AvpDefinition
      extended by com.ibm.diameter.packet.VsAvpDefinition

public class VsAvpDefinition
extends AvpDefinition

The VsAvpDefinition contains information about a vendor specific AVP, including the name of the attribute, the IANA defined AVP code associated with the attribute and the AVP Data Format associated with the attribute. It also contains an AvpValueUtil class that contains the value of this attribute and that knows how to read and write this data type. And it contains an AvpValidatorUtil class that knows how to validate this data type. It also contains the vendor id.


Field Summary
 
Fields inherited from class com.ibm.diameter.packet.AvpDefinition
AVP_TYPE_ADDRESS, AVP_TYPE_DIAM_IDENT, AVP_TYPE_DIAM_URI, AVP_TYPE_ENUMERATED, AVP_TYPE_GROUPED, AVP_TYPE_INTEGER32, AVP_TYPE_INTEGER64, AVP_TYPE_IP_FILTER_RULE, AVP_TYPE_OCTET_STRING, AVP_TYPE_QOS_FILTER_RULE, AVP_TYPE_TIME, AVP_TYPE_UNSIGNED32, AVP_TYPE_UNSIGNED64, AVP_TYPE_UTF8_STRING
 
Constructor Summary
VsAvpDefinition(int avpCode, java.lang.String avpName, int avpType, AvpValueUtil avpValueUtil, AvpValidatorUtil avpValidatorUtil, AvpABNF avpABNF, int avpVendorId, boolean vBit, boolean mBit, boolean pBit)
          Creates an AVP definition that explains the format of the AVP.
VsAvpDefinition(int avpCode, java.lang.String avpName, int avpType, AvpValueUtil avpValueUtil, AvpValidatorUtil avpValidatorUtil, int avpVendorId, boolean vBit, boolean mBit, boolean pBit)
          Creates an AVP definition that explains the format of the AVP.
 
Method Summary
 int getAvpVendorId()
          Returns the avp vendor id
 
Methods inherited from class com.ibm.diameter.packet.AvpDefinition
getAvpABNF, getAvpCode, getAvpName, getAvpType, getAvpValidatorUtil, getAvpValueUtil, isMandatoryFlag, isPBit, isVBit, setAvpValidatorUtil, setMandatoryFlag, setPBit, setVBit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VsAvpDefinition

public VsAvpDefinition(int avpCode,
                       java.lang.String avpName,
                       int avpType,
                       AvpValueUtil avpValueUtil,
                       AvpValidatorUtil avpValidatorUtil,
                       int avpVendorId,
                       boolean vBit,
                       boolean mBit,
                       boolean pBit)
Creates an AVP definition that explains the format of the AVP.

Parameters:
avpCode - The IANA defined code for this Diameter Attribute.
avpName - The Attribute Name
avpType - The AVP Data Format
avpValueUtil - The utility class that knows how to read and write an attribute of this data format
avpValidatorUtil - The utility class that knows how to validate an attribute of this data format
avpVendorId - The vendor id
vBit - boolean representing the value of the Vendor Specific Bit
mBit - boolean representing the value of the Mandatory flag.
pBit - boolean representing the obsolete security bit. This should always be zero.

VsAvpDefinition

public VsAvpDefinition(int avpCode,
                       java.lang.String avpName,
                       int avpType,
                       AvpValueUtil avpValueUtil,
                       AvpValidatorUtil avpValidatorUtil,
                       AvpABNF avpABNF,
                       int avpVendorId,
                       boolean vBit,
                       boolean mBit,
                       boolean pBit)
Creates an AVP definition that explains the format of the AVP.

Parameters:
avpCode - The IANA defined code for this Diameter Attribute.
avpName - The Attribute Name
avpType - The AVP Data Format
avpValueUtil - The utility class that knows how to read and write an attribute of this data format
avpValidatorUtil - The utility class that knows how to validate an attribute of this data format
avpABNF - The ABNF of a grouped AVP that defines the rules of occurence of the group's AVPs.
avpVendorId - The vendor id
vBit - boolean representing the value of the Vendor Specific Bit
mBit - boolean representing the value of the Mandatory flag.
pBit - boolean representing the obsolete security bit. This should always be zero.
Method Detail

getAvpVendorId

public int getAvpVendorId()
Returns the avp vendor id

Returns:
Returns the avp vendor id.


Copyright © 2006 IBM Corp. All Rights Reserved.