Package jebl.util
Class AttributableHelper
- java.lang.Object
-
- jebl.util.AttributableHelper
-
- All Implemented Interfaces:
Attributable
public class AttributableHelper extends java.lang.Object implements Attributable
- Author:
- rambaut Date: Nov 27, 2005 Time: 1:31:50 PM
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jebl.util.Attributable
Attributable.Utils
-
-
Constructor Summary
Constructors Constructor Description AttributableHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String name)java.util.Map<java.lang.String,java.lang.Object>getAttributeMap()Gets the entire attribute map.java.util.Set<java.lang.String>getAttributeNames()voidremoveAttribute(java.lang.String name)voidsetAttribute(java.lang.String name, java.lang.Object value)Sets an named attribute for this object.
-
-
-
Method Detail
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)Description copied from interface:AttributableSets an named attribute for this object.- Specified by:
setAttributein interfaceAttributable- Parameters:
name- the name of the attribute.value- the new value of the attribute.
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttributein interfaceAttributable- Parameters:
name- the name of the attribute of interest, or null if the attribute doesn't exist.- Returns:
- an object representing the named attributed for this object.
-
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttributein interfaceAttributable- Parameters:
name- name of attribute to remove
-
getAttributeNames
public java.util.Set<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceAttributable- Returns:
- an array of the attributeNames that this object has.
-
getAttributeMap
public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
Description copied from interface:AttributableGets the entire attribute map.- Specified by:
getAttributeMapin interfaceAttributable- Returns:
- an unmodifiable map
-
-