org.jdiameter.client.impl.helpers
Class EmptyConfiguration

java.lang.Object
  extended by org.jdiameter.client.impl.helpers.EmptyConfiguration
All Implemented Interfaces:
org.jdiameter.api.Configuration, AppConfiguration
Direct Known Subclasses:
EmptyConfiguration, XMLConfiguration

public class EmptyConfiguration
extends java.lang.Object
implements AppConfiguration

This class allow create configuration class for stack


Field Summary
protected  org.jdiameter.api.Configuration[] EMPTY_ARRAY
           
 
Constructor Summary
protected EmptyConfiguration()
          Create instance of class.
 
Method Summary
protected  AppConfiguration add(int e, org.jdiameter.api.Configuration... value)
           
 AppConfiguration add(Ordinal e, org.jdiameter.api.Configuration... value)
          Add elements to configuration
 AppConfiguration add(Ordinal e, java.lang.Object value)
           
 boolean getBooleanValue(int i, boolean b)
           
 byte[] getByteArrayValue(int i, byte[] bytes)
           
 byte getByteValue(int i, byte b)
           
 org.jdiameter.api.Configuration[] getChildren(int i)
           
 double getDoubleValue(int i, double v)
           
static AppConfiguration getInstance()
          Create instance of class with system default parameters
 int getIntValue(int i, int i1)
           
 long getLongValue(int i, long l)
           
 java.lang.String getStringValue(int i, java.lang.String defValue)
           
protected  java.lang.Object getValue(int key)
           
 boolean isAttributeExist(int i)
           
protected  void putValue(int key, java.lang.Object value)
           
protected  void removeVelue(int... keys)
           
 java.lang.String toString()
          Return string representation of configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

protected final org.jdiameter.api.Configuration[] EMPTY_ARRAY
Constructor Detail

EmptyConfiguration

protected EmptyConfiguration()
Create instance of class. Internal parameters will be appends

Method Detail

getInstance

public static AppConfiguration getInstance()
Create instance of class with system default parameters

Returns:
instance of class with system default parameters

add

public AppConfiguration add(Ordinal e,
                            org.jdiameter.api.Configuration... value)
Description copied from interface: AppConfiguration
Add elements to configuration

Specified by:
add in interface AppConfiguration
Parameters:
e - elements identifier
value - array of elements
Returns:
instance of configuration
See Also:
class

add

public AppConfiguration add(Ordinal e,
                            java.lang.Object value)
Specified by:
add in interface AppConfiguration
Parameters:
e - element identifier
value - parameter value
Returns:
instance of configuration
See Also:
class

putValue

protected void putValue(int key,
                        java.lang.Object value)

getValue

protected java.lang.Object getValue(int key)

removeVelue

protected void removeVelue(int... keys)

add

protected AppConfiguration add(int e,
                               org.jdiameter.api.Configuration... value)

getByteValue

public byte getByteValue(int i,
                         byte b)
Specified by:
getByteValue in interface org.jdiameter.api.Configuration
See Also:
class

getIntValue

public int getIntValue(int i,
                       int i1)
Specified by:
getIntValue in interface org.jdiameter.api.Configuration
See Also:
class

getLongValue

public long getLongValue(int i,
                         long l)
Specified by:
getLongValue in interface org.jdiameter.api.Configuration
See Also:
class

getDoubleValue

public double getDoubleValue(int i,
                             double v)
Specified by:
getDoubleValue in interface org.jdiameter.api.Configuration
See Also:
class

getByteArrayValue

public byte[] getByteArrayValue(int i,
                                byte[] bytes)
Specified by:
getByteArrayValue in interface org.jdiameter.api.Configuration
See Also:
class

getBooleanValue

public boolean getBooleanValue(int i,
                               boolean b)
Specified by:
getBooleanValue in interface org.jdiameter.api.Configuration
See Also:
class

getStringValue

public java.lang.String getStringValue(int i,
                                       java.lang.String defValue)
Specified by:
getStringValue in interface org.jdiameter.api.Configuration
See Also:
class

isAttributeExist

public boolean isAttributeExist(int i)
Specified by:
isAttributeExist in interface org.jdiameter.api.Configuration
See Also:
class

getChildren

public org.jdiameter.api.Configuration[] getChildren(int i)
Specified by:
getChildren in interface org.jdiameter.api.Configuration
See Also:
class

toString

public java.lang.String toString()
Return string representation of configuration

Overrides:
toString in class java.lang.Object
Returns:
string representation of configuration


Copyright © 2008. All Rights Reserved.