solar.api
Class Attribute

java.lang.Object
  |
  +--solar.api.Attribute
All Implemented Interfaces:
java.io.Serializable, SolarConstants

public class Attribute
extends java.lang.Object
implements java.io.Serializable, SolarConstants

An attribute is a key-value pair. The key has to be a string, but the value can be arbituary object.

Version:
$Id: Attribute.java,v 1.6 2003/08/30 17:01:46 glchen Exp $
Author:
Guanling Chen
See Also:
Serialized Form

Field Summary
private  java.lang.String _key
           
private  java.lang.Object _value
           
private static long serialVersionUID
           
 
Fields inherited from interface solar.SolarConstants
ADVERTISEMENT_SVID, ATTRIBUTE_RECORD_SVID, ATTRIBUTE_SVID, FILTER_CONFIG_SVID, FILTER_SPEC_SVID, GRAPH_SPEC_SVID, GUID_SVID, HEADER_SVID, ID_SVID, NAME_RECORD_SVID, PACK_POLICY_SVID, PIPE_SPEC_SVID, REQUEST_SVID, RPCACK_SVID
 
Constructor Summary
Attribute(java.lang.String key, java.lang.Object value)
          Construcst an attribute with a key and a value.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getKey()
          Return the attribute key.
 java.lang.Object getValue()
          Return the attribute value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

_key

private java.lang.String _key

_value

private java.lang.Object _value
Constructor Detail

Attribute

public Attribute(java.lang.String key,
                 java.lang.Object value)
Construcst an attribute with a key and a value.

Method Detail

getKey

public java.lang.String getKey()
Return the attribute key.


getValue

public java.lang.Object getValue()
Return the attribute value.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object