Openwings API Documentation (v1.0)

net.openwings.identity
Class Attribute

java.lang.Object
  |
  +--net.openwings.identity.Attribute
All Implemented Interfaces:
java.io.Serializable

public final class Attribute
extends java.lang.Object
implements java.io.Serializable

This class is a universal attribute used throughout Openwings. An attribute is defined as a name-value pair, where the name is a String and the value is any serializable Java Object

See Also:
Serialized Form

Constructor Summary
Attribute(java.lang.String name, java.lang.Object value)
          This simple constructor creates an Attribute with the given name and value.
 
Method Summary
 java.lang.String getName()
          This method returns the name / key for the attribute
 java.lang.Object getValue()
          This method returns the value of the attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.Object value)
This simple constructor creates an Attribute with the given name and value.

Parameters:
name - name of the attribute
value - value of the attribute
Method Detail

getName

public java.lang.String getName()
This method returns the name / key for the attribute

Returns:
name of the attribute

getValue

public java.lang.Object getValue()
This method returns the value of the attribute

Returns:
serializable Java object

Openwings API Documentation (v1.0)