eu.geclipse.info.glue
Class GlueUtility
java.lang.Object
eu.geclipse.info.glue.GlueUtility
public class GlueUtility
- extends java.lang.Object
|
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 |
GlueUtility
public GlueUtility()
getStringAttribute
public static java.lang.String getStringAttribute(java.lang.String attribute,
javax.naming.directory.Attributes attributes)
- Parameters:
attribute - The name of the attributeattributes - 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 attributeattributes - 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 attributeattributes - 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.