com.ibm.diameter.packet
Interface AvpValidatorUtil

All Known Implementing Classes:
AvpValidatorUtilAddress, AvpValidatorUtilDiamIdentity, AvpValidatorUtilDiamURI, AvpValidatorUtilEnumerated, AvpValidatorUtilGeneric, AvpValidatorUtilGrouped, AvpValidatorUtilOctetString, AvpValidatorUtilTime, AvpValidatorUtilUnsigned32, AvpValidatorUtilUnsigned64, AvpValidatorUtilUTF8String

public interface AvpValidatorUtil

Interface that all of the Validator utility classes will implement. Defines a validate() method that returns a status return code.


Field Summary
static int UNKNOWN_AVP
          The AVP definition is unknown.
static int VALID_AVP
          The AVP passed validation.
 
Method Summary
 int validate(Avp avp, boolean vendorSpecific)
          Performs validation of the AVP
 

Field Detail

VALID_AVP

static final int VALID_AVP
The AVP passed validation.

See Also:
Constant Field Values

UNKNOWN_AVP

static final int UNKNOWN_AVP
The AVP definition is unknown.

See Also:
Constant Field Values
Method Detail

validate

int validate(Avp avp,
             boolean vendorSpecific)
Performs validation of the AVP

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.