Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter
Class Type

java.lang.Object
  extended by com.bea.wcp.diameter.Type


public abstract class Type
extends java.lang.Object

Supported AVP data types.


Field Summary
static Type ADDRESS
          Diameter Address data type
static Type BYTES
          Diameter OctetString data type
static Type FLOAT32
          Diameter Float32 data type
static Type FLOAT64
          Diameter Float64 data type
static Type GROUPED
          Diameter Grouped data type
static Type INTEGER32
          Diameter Integer32 or Unsigned32 data type
static Type INTEGER64
          Diameter Integer64 or Unsigned64 data type
static Type STRING
          Diameter UTF8String data type

 

Method Summary
abstract  java.lang.Object decode(Avp avp, java.nio.ByteBuffer bb)
          Decodes specified AVP value bytes.
abstract  java.nio.ByteBuffer encode(java.nio.ByteBuffer bb, java.lang.Object value)
          Encodes value of AVP to specified byte buffer.
 java.lang.String toString()
           
abstract  java.lang.Object validate(java.lang.Object obj)
          Validates specified AVP value according to this type.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

INTEGER32

public static final Type INTEGER32
Diameter Integer32 or Unsigned32 data type

INTEGER64

public static final Type INTEGER64
Diameter Integer64 or Unsigned64 data type

FLOAT32

public static final Type FLOAT32
Diameter Float32 data type

FLOAT64

public static final Type FLOAT64
Diameter Float64 data type

STRING

public static final Type STRING
Diameter UTF8String data type

ADDRESS

public static final Type ADDRESS
Diameter Address data type

GROUPED

public static final Type GROUPED
Diameter Grouped data type

BYTES

public static final Type BYTES
Diameter OctetString data type

Method Detail

validate

public abstract java.lang.Object validate(java.lang.Object obj)
Validates specified AVP value according to this type. If value object type is acceptable, then returns the object which will be used to represent the value in the AVP. This allows us to support some forms of type conversion. For example, if AVP.setValue() is called on an object of type Integer with an AVP of type long, then the value is still acceptable and will be represented as a Long internally.

decode

public abstract java.lang.Object decode(Avp avp,
                                        java.nio.ByteBuffer bb)
                                 throws AvpException
Decodes specified AVP value bytes. The specified byte buffer must not be changed.
Throws:
AvpException

encode

public abstract java.nio.ByteBuffer encode(java.nio.ByteBuffer bb,
                                           java.lang.Object value)
Encodes value of AVP to specified byte buffer.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.