org.jdiameter.api
Interface Configuration

All Known Subinterfaces:
MutableConfiguration

public interface Configuration

Stack properties for working. This interface equals IMemento interface from Eclispe (pattern Memento). It interface hideWay of a storage of stack properties (XML file ant etc)

Version:
1.5.1 Final
Author:
erick.svenson@yahoo.com, artem.litvinov@gmail.com, Alexandre Mendonca , Bartosz Baranowski

Method Summary
 boolean getBooleanValue(int key, boolean defaultValue)
          Returns the boolean point value of the given key.
 byte[] getByteArrayValue(int key, byte[] defaultValue)
          Returns the byte[] point value of the given key.
 byte getByteValue(int key, byte defaultValue)
          Returns the Byte point value of the given key.
 Configuration[] getChildren(int key)
          Returns all children with the given type id.
 double getDoubleValue(int key, double defaultValue)
          Returns the double point value of the given key.
 int getIntValue(int key, int defaultValue)
          Returns the Integer point value of the given key.
 long getLongValue(int key, long defaultValue)
          Returns the long point value of the given key.
 java.lang.String getStringValue(int key, java.lang.String defaultValue)
          Returns the String point value of the given key.
 boolean isAttributeExist(int key)
           
 

Method Detail

getByteValue

byte getByteValue(int key,
                  byte defaultValue)
Returns the Byte point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defValue if the key was not found or was found but was not a Byte point number

getIntValue

int getIntValue(int key,
                int defaultValue)
Returns the Integer point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defaultValue if the key was not found or was found but was not a Integer point number

getLongValue

long getLongValue(int key,
                  long defaultValue)
Returns the long point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defaultValue if the key was not found or was found but was not a long point number

getDoubleValue

double getDoubleValue(int key,
                      double defaultValue)
Returns the double point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defaultValue if the key was not found or was found but was not a double point number

getByteArrayValue

byte[] getByteArrayValue(int key,
                         byte[] defaultValue)
Returns the byte[] point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defaultValue if the key was not found or was found but was not a byte[] point number

getBooleanValue

boolean getBooleanValue(int key,
                        boolean defaultValue)
Returns the boolean point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defaultValue if the key was not found or was found but was not a boolean point number

getStringValue

java.lang.String getStringValue(int key,
                                java.lang.String defaultValue)
Returns the String point value of the given key.

Parameters:
key - the key
defaultValue - the Default Value
Returns:
the value, or defaultValue if the key was not found or was found but was not a String point number

isAttributeExist

boolean isAttributeExist(int key)
Parameters:
key - key of attribute
Returns:
true if value of parameter is not null

getChildren

Configuration[] getChildren(int key)
Returns all children with the given type id.

Parameters:
key - the type id
Returns:
an array of children with the given type


Copyright © 2013. All Rights Reserved.