com.ibm.diameter.packet
Class AvpValidatorUtilUnsigned64

java.lang.Object
  extended by com.ibm.diameter.packet.AvpValidatorUtilGeneric
      extended by com.ibm.diameter.packet.AvpValidatorUtilUnsigned64
All Implemented Interfaces:
AvpValidatorUtil

public class AvpValidatorUtilUnsigned64
extends AvpValidatorUtilGeneric

Class to validate an AVP of type Unsigned64. And Unsigned64 Integer is 8 octets long.


Field Summary
static int REQUIRED_LENGTH
           
static int REQUIRED_LENGTH_VS
           
 
Fields inherited from class com.ibm.diameter.packet.AvpValidatorUtilGeneric
MINIMUM_LENGTH, MINIMUM_LENGTH_VS
 
Fields inherited from interface com.ibm.diameter.packet.AvpValidatorUtil
UNKNOWN_AVP, VALID_AVP
 
Constructor Summary
AvpValidatorUtilUnsigned64()
           
 
Method Summary
 int validate(Avp avp, boolean vendorSpecific)
          Performs validation of the AVP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUIRED_LENGTH

public static final int REQUIRED_LENGTH
See Also:
Constant Field Values

REQUIRED_LENGTH_VS

public static final int REQUIRED_LENGTH_VS
See Also:
Constant Field Values
Constructor Detail

AvpValidatorUtilUnsigned64

public AvpValidatorUtilUnsigned64()
Method Detail

validate

public int validate(Avp avp,
                    boolean vendorSpecific)
Description copied from interface: AvpValidatorUtil
Performs validation of the AVP

Specified by:
validate in interface AvpValidatorUtil
Overrides:
validate in class AvpValidatorUtilGeneric
Parameters:
avp - The AVP to be validated
vendorSpecific - true if this is a Vendor-Specific AVP, otherwise false
Returns:
0 if the Avp passed validation, a non zero return code indicates a problem.


Copyright © 2006 IBM Corp. All Rights Reserved.