Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
6.0

E55513-02


com.bea.wlcp.wlng.api.edr.config
Class ConfigDescriptor

java.lang.Object
  extended bycom.bea.wlcp.wlng.api.edr.config.ConfigDescriptor

Direct Known Subclasses:
AlarmConfigDescriptor, CdrConfigDescriptor, EdrConfigDescriptor

public abstract class ConfigDescriptor
extends Object

This class holds the information about the descriptor when reading the XML configuration file.


Field Summary
static String ATTRIBUTE_CONJUNCTION
           
static String CUSTOM_ATTRIBUTE
           
static String CUSTOM_ATTRIBUTE_KEY
           
static String CUSTOM_ATTRIBUTE_VALUE
           
static String CUSTOM_REGEX_ATTRIBUTE
           
static String PART_DATA
           
static String PART_FILTER
           

 

Constructor Summary
ConfigDescriptor()
          Constructor.

 

Method Summary
 void addDataAttribute(String key, String value)
           
 void addFilterAttribute(String key, String value)
          Adds the filter key/value pair of the <attribute> element.
 void addFilterRegexAttribute(String key, String value)
          Adds the filter regex key/value pair of the <attribute> element.
 void addSource(ConfigDescriptorSource descriptorSource)
          Adds the filter source element (<method> or <exception>).
 boolean canBeCached()
          Returns true if this descriptor can be cached.
 String getDataAttribute(String name)
           
 Map getFilterAttributes()
           
 Map getFilterRegexAttributes()
           
 String getName()
           
 int getPosition()
          Gets the position of this descriptor relative to its xml configuration file.
 List getSources()
           
 boolean isMatching(EdrData edr)
          Returns true if the EdrData is matching this descriptor, false otherwise.
 void setConjunction(String conjunction)
          Relationship between conditions ("AND" or "OR", default: "OR").
 void setDataAttributes(Attributes attributes)
          Adds the data attribute.
 void setName(String name)
          Name of the descriptor (for example, 'edr', 'alarm', or 'cdr').
 void setPosition(int position)
          Sets the position of this descriptor relative to its xml configuration file.
 String toString()
           

 

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

 

Field Detail

ATTRIBUTE_CONJUNCTION

public static final String ATTRIBUTE_CONJUNCTION
See Also:
Constant Field Values

CUSTOM_ATTRIBUTE

public static final String CUSTOM_ATTRIBUTE
See Also:
Constant Field Values

CUSTOM_ATTRIBUTE_KEY

public static final String CUSTOM_ATTRIBUTE_KEY
See Also:
Constant Field Values

CUSTOM_ATTRIBUTE_VALUE

public static final String CUSTOM_ATTRIBUTE_VALUE
See Also:
Constant Field Values

CUSTOM_REGEX_ATTRIBUTE

public static final String CUSTOM_REGEX_ATTRIBUTE
See Also:
Constant Field Values

PART_DATA

public static final String PART_DATA
See Also:
Constant Field Values

PART_FILTER

public static final String PART_FILTER
See Also:
Constant Field Values

Constructor Detail

ConfigDescriptor

public ConfigDescriptor()
Constructor.

Method Detail

addDataAttribute

public void addDataAttribute(String key,
                             String value)

addFilterAttribute

public void addFilterAttribute(String key,
                               String value)
Adds the filter key/value pair of the <attribute> element.

addFilterRegexAttribute

public void addFilterRegexAttribute(String key,
                                    String value)
Adds the filter regex key/value pair of the <attribute> element.

addSource

public void addSource(ConfigDescriptorSource descriptorSource)
Adds the filter source element (<method> or <exception>).

canBeCached

public boolean canBeCached()
Returns true if this descriptor can be cached.

getDataAttribute

public String getDataAttribute(String name)

getFilterAttributes

public Map getFilterAttributes()

getFilterRegexAttributes

public Map getFilterRegexAttributes()

getName

public String getName()

getPosition

public int getPosition()
Gets the position of this descriptor relative to its xml configuration file.

getSources

public List getSources()

isMatching

public boolean isMatching(EdrData edr)
Returns true if the EdrData is matching this descriptor, false otherwise.
Parameters:
edr - The EdrData object.
Returns:
true if the EdrData object matches this descriptor.

setConjunction

public void setConjunction(String conjunction)
Relationship between conditions ("AND" or "OR", default: "OR").

setDataAttributes

public void setDataAttributes(Attributes attributes)
Adds the data attribute.

setName

public void setName(String name)
Name of the descriptor (for example, 'edr', 'alarm', or 'cdr').

setPosition

public void setPosition(int position)
Sets the position of this descriptor relative to its xml configuration file.

toString

public String toString()

Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
6.0

E55513-02


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