Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-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
 com.fasterxml.jackson.databind.node.ArrayNode getJsonValue(java.lang.String key)
          Returns the value associated with a key.
 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.
 boolean isAlarm()
           
 boolean isCdr()
           
 boolean isEdr()
           
 boolean isIntegerValue(java.lang.String attributeName)
          Test if edr attribute is of Integer type.
 boolean isLongValue(java.lang.String attributeName)
          Test if edr attribute is of Long type.
 boolean isUnknownType()
           
 java.util.Set jsonKeySet()
          Returns the set of keys.
 java.util.Set keySet()
          Returns the set of keys.
 void setUID(long theUid)
          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.
 
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

getJsonValue

public com.fasterxml.jackson.databind.node.ArrayNode getJsonValue(java.lang.String key)
Returns the value associated with a key.

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

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.

isAlarm

public boolean isAlarm()

isCdr

public boolean isCdr()

isEdr

public boolean isEdr()

isIntegerValue

public boolean isIntegerValue(java.lang.String attributeName)
Test if edr attribute is of Integer type.

Parameters:
attributeName - edr attribute key.
Returns:
true if attribute is an Integer.

isLongValue

public boolean isLongValue(java.lang.String attributeName)
Test if edr attribute is of Long type.

Parameters:
attributeName - edr attribute key.
Returns:
true if attribute is an Long.

isUnknownType

public boolean isUnknownType()

jsonKeySet

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

Returns:
The set of keys.

keySet

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

Returns:
The set of keys.

setUID

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

Parameters:
theUid - 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.

Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

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