Oracle Communications Services Gatekeeper Java API Reference
6.1

E65002-01

com.bea.wlcp.wlng.api.edr
Class EdrData

java.lang.Object
  extended bycom.bea.wlcp.wlng.api.edr.EdrData
All Implemented Interfaces:
java.io.Serializable

public class EdrData
extends java.lang.Object
implements java.io.Serializable

Class that holds EDR data. Use this class instead of EdrInformation.

See Also:
Serialized Form

Constructor Summary
EdrData()
          Constructor.
 
Method Summary
 java.util.Map getMap()
          Returns the underlying map containing all the key/value pairs.
 long getUID()
          Gets the unique identifier of this EDR instance.
 java.lang.String getValue(java.lang.String key)
          Returns the value associated with a key.
 java.util.List getValues(java.lang.String key)
          Returns the list of values associated with a key.
 java.util.Set keySet()
          Returns the set of keys.
static java.lang.String readString(java.io.ObjectInputStream in)
           
 void setUID(long uid)
          Sets the unique identifier of this EDR instance.
 void setValue(java.lang.String key, java.lang.Object value)
          Associates an object value with a key.
 void setValue(java.lang.String key, java.lang.String value)
          Associates a string value with a key.
 void setValues(java.lang.String key, java.util.List values)
          Associates a list of values with a key.
static void writeString(java.io.ObjectOutputStream out, java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdrData

public EdrData()
Constructor.

Method Detail

getMap

public java.util.Map getMap()
Returns the underlying map containing all the key/value pairs.

Returns:
The underlying map of key/value pairs.

getUID

public long getUID()
Gets the unique identifier of this EDR instance.

Returns:
long unique identifier of this EDR instance.

getValue

public java.lang.String getValue(java.lang.String key)
Returns the value associated with a key. Because internally each key has a list of values associated with it, only the first element is returned.

Parameters:
key - The key.
Returns:
The associated value, null if not found.

getValues

public java.util.List getValues(java.lang.String key)
Returns the list of values associated with a key.

Parameters:
key - The key.
Returns:
The list of values, null if not found.

keySet

public java.util.Set keySet()
Returns the set of keys.

Returns:
The set of keys.

readString

public static java.lang.String readString(java.io.ObjectInputStream in)
                                   throws java.io.IOException
Throws:
java.io.IOException

setUID

public void setUID(long uid)
Sets the unique identifier of this EDR instance.

Parameters:
uid - the unique identifier.

setValue

public void setValue(java.lang.String key,
                     java.lang.Object value)
Associates an object value with a key. The object will be converted to a string using toString(). If the object is iterable, each of its elements will be converted to a string using toString().

Parameters:
key - The key.
value - The value associated with the key.

setValue

public void setValue(java.lang.String key,
                     java.lang.String value)
Associates a string value with a key.

Parameters:
key - The key.
value - The value associated with the key.

setValues

public void setValues(java.lang.String key,
                      java.util.List values)
Associates a list of values with a key.

Parameters:
key - The key.
values - The list of values associated with the key.

writeString

public static void writeString(java.io.ObjectOutputStream out,
                               java.lang.String str)
                        throws java.io.IOException
Throws:
java.io.IOException

Oracle Communications Services Gatekeeper Java API Reference
6.1

E65002-01

Copyright © 2008, 2016, Oracle and/or its affiliates. All rights reserved.