com.ibm.diameter.packet
Class AvpValidatorUtilGeneric

java.lang.Object
  extended by com.ibm.diameter.packet.AvpValidatorUtilGeneric
All Implemented Interfaces:
AvpValidatorUtil
Direct Known Subclasses:
AvpValidatorUtilGrouped, AvpValidatorUtilOctetString, AvpValidatorUtilTime, AvpValidatorUtilUnsigned32, AvpValidatorUtilUnsigned64, AvpValidatorUtilUTF8String

public class AvpValidatorUtilGeneric
extends java.lang.Object
implements AvpValidatorUtil

This class is used to represent an unknown AVP. Since the AVP code is not recognized, it is impossible to validate the specific data that is contained in the AVP. Therefore the validate method always returns the VALID_AVP return type.


Field Summary
static int MINIMUM_LENGTH
           
static int MINIMUM_LENGTH_VS
           
 
Fields inherited from interface com.ibm.diameter.packet.AvpValidatorUtil
UNKNOWN_AVP, VALID_AVP
 
Constructor Summary
AvpValidatorUtilGeneric()
           
 
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

MINIMUM_LENGTH

public static final int MINIMUM_LENGTH
See Also:
Constant Field Values

MINIMUM_LENGTH_VS

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

AvpValidatorUtilGeneric

public AvpValidatorUtilGeneric()
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
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.