solar.api
Interface AttributeRecord

All Superinterfaces:
Adu, java.io.Serializable
All Known Subinterfaces:
Event, Name, ProtocolEvent
All Known Implementing Classes:
AbstractAttributeRecord, PlainEvent, PlainName, SerializedEvent

public interface AttributeRecord
extends Adu

An attribute record contains a list of attributes. Itself can be the value of another attribute to form attribute hierarchy. Notice it has an immutable interface.

Version:
$Id: AttributeRecord.java,v 1.10 2003/09/23 14:03:56 glchen Exp $
Author:
Guanling Chen

Method Summary
 boolean equals(java.lang.Object obj)
          Determine whether two objects are equal.
 Attribute getAttribute(java.lang.String key)
          Return the first attribute with specified key.
 java.util.List getAttributes()
          Return the list of all attributes.
 java.util.List getAttributes(java.lang.String key)
          Return all the attributes with specified key.
 java.util.List getKeys()
          Return the list of all keys.
 java.lang.Object getValue(java.lang.String key)
          Return the value of an attribute with the specified key.
 java.util.List getValues()
          Return the list of all values.
 java.util.List getValues(java.lang.String key)
          Return the values of all attributes with the specified key.
 
Methods inherited from interface solar.api.Adu
toBytes, toString
 

Method Detail

getAttribute

public Attribute getAttribute(java.lang.String key)
Return the first attribute with specified key.


getAttributes

public java.util.List getAttributes(java.lang.String key)
Return all the attributes with specified key.


getAttributes

public java.util.List getAttributes()
Return the list of all attributes.


getKeys

public java.util.List getKeys()
Return the list of all keys.


getValues

public java.util.List getValues()
Return the list of all values.


getValue

public java.lang.Object getValue(java.lang.String key)
Return the value of an attribute with the specified key.


getValues

public java.util.List getValues(java.lang.String key)
Return the values of all attributes with the specified key.


equals

public boolean equals(java.lang.Object obj)
Determine whether two objects are equal.

Overrides:
equals in class java.lang.Object