g-Eclipse
Release 1.0.0

eu.geclipse.info.glue
Class GlueUtility

java.lang.Object
  extended by eu.geclipse.info.glue.GlueUtility

public class GlueUtility
extends java.lang.Object


Constructor Summary
GlueUtility()
           
 
Method Summary
static java.lang.Integer getIntegerAttribute(java.lang.String attribute, javax.naming.directory.Attributes attributes)
           
static java.lang.Long getLongAttribute(java.lang.String attribute, javax.naming.directory.Attributes attributes)
           
static java.lang.String getStringAttribute(java.lang.String attribute, javax.naming.directory.Attributes attributes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueUtility

public GlueUtility()
Method Detail

getStringAttribute

public static java.lang.String getStringAttribute(java.lang.String attribute,
                                                  javax.naming.directory.Attributes attributes)
Parameters:
attribute - The name of the attribute
attributes - The list of attributes
Returns:
returns an empty String if a wrong attribute name is passed or a String with the value of the attribute.

getIntegerAttribute

public static java.lang.Integer getIntegerAttribute(java.lang.String attribute,
                                                    javax.naming.directory.Attributes attributes)
Parameters:
attribute - The name of the attribute
attributes - The list of attributes
Returns:
returns an Integer object with value of -1 if the wrong name is passed or the value of the attribute.

getLongAttribute

public static java.lang.Long getLongAttribute(java.lang.String attribute,
                                              javax.naming.directory.Attributes attributes)
Parameters:
attribute - The name of the attribute
attributes - The list of attributes
Returns:
returns a Long object with value of -1 if the wrong name is passed or the value of the attribute.

g-Eclipse
Release 1.0.0