edu.umich.eecs.tac.props
Class AbstractStringEntry

java.lang.Object
  extended by edu.umich.eecs.tac.props.AbstractKeyedEntry<java.lang.String>
      extended by edu.umich.eecs.tac.props.AbstractStringEntry
All Implemented Interfaces:
KeyedEntry<java.lang.String>, java.io.Serializable, se.sics.isl.transport.Transportable
Direct Known Subclasses:
AbstractAdvertiserEntry

public abstract class AbstractStringEntry
extends AbstractKeyedEntry<java.lang.String>

This class provides a skeletal implementation of the AbstractKeyedEntry abstract class, where the key is a Transportable object.

Author:
Patrick Jordan
See Also:
Serialized Form

Constructor Summary
AbstractStringEntry()
           
 
Method Summary
protected  void readKey(se.sics.isl.transport.TransportReader reader)
          Reads in a "key" node and sets the key to the value of the backing attribute.
protected  void writeKey(se.sics.isl.transport.TransportWriter writer)
          Creates and writes a "key" node and sets the backing attribute value to the key.
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractKeyedEntry
getKey, getTransportName, read, readEntry, setKey, write, writeEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStringEntry

public AbstractStringEntry()
Method Detail

readKey

protected final void readKey(se.sics.isl.transport.TransportReader reader)
                      throws java.text.ParseException
Reads in a "key" node and sets the key to the value of the backing attribute.

Specified by:
readKey in class AbstractKeyedEntry<java.lang.String>
Parameters:
reader - the reader to read data from.
Throws:
java.text.ParseException - if exeption occurs reading the key node and attribute.

writeKey

protected final void writeKey(se.sics.isl.transport.TransportWriter writer)
Creates and writes a "key" node and sets the backing attribute value to the key.

Specified by:
writeKey in class AbstractKeyedEntry<java.lang.String>
Parameters:
writer - the writer to write data to.


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.