solar.impl
Class AbstractAttributeRecord

java.lang.Object
  |
  +--solar.impl.AbstractAttributeRecord
All Implemented Interfaces:
Adu, AttributeRecord, java.io.Serializable, SolarConstants
Direct Known Subclasses:
PlainAttributeRecord, SerializedEvent

public abstract class AbstractAttributeRecord
extends java.lang.Object
implements AttributeRecord, SolarConstants

An abstract implementation of attribute record.

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

Field Summary
protected  java.util.List _attributes
           
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
AbstractAttributeRecord()
           
 
Method Summary
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface solar.api.AttributeRecord
equals
 
Methods inherited from interface solar.api.Adu
toBytes, toString
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

_attributes

protected java.util.List _attributes
Constructor Detail

AbstractAttributeRecord

public AbstractAttributeRecord()
Method Detail

getAttribute

public Attribute getAttribute(java.lang.String key)
Description copied from interface: AttributeRecord
Return the first attribute with specified key.

Specified by:
getAttribute in interface AttributeRecord

getAttributes

public java.util.List getAttributes(java.lang.String key)
Description copied from interface: AttributeRecord
Return all the attributes with specified key.

Specified by:
getAttributes in interface AttributeRecord

getAttributes

public java.util.List getAttributes()
Description copied from interface: AttributeRecord
Return the list of all attributes.

Specified by:
getAttributes in interface AttributeRecord

getKeys

public java.util.List getKeys()
Description copied from interface: AttributeRecord
Return the list of all keys.

Specified by:
getKeys in interface AttributeRecord

getValues

public java.util.List getValues()
Description copied from interface: AttributeRecord
Return the list of all values.

Specified by:
getValues in interface AttributeRecord

getValue

public java.lang.Object getValue(java.lang.String key)
Description copied from interface: AttributeRecord
Return the value of an attribute with the specified key.

Specified by:
getValue in interface AttributeRecord

getValues

public java.util.List getValues(java.lang.String key)
Description copied from interface: AttributeRecord
Return the values of all attributes with the specified key.

Specified by:
getValues in interface AttributeRecord