cgl.imr.base.impl
Class StringPropertyListImpl

java.lang.Object
  extended by cgl.imr.base.impl.StringPropertyListImpl
All Implemented Interfaces:
StringPropertyList, TwisterSerializable

public class StringPropertyListImpl
extends Object
implements StringPropertyList

Provides a mechanism to serialize/deserialize a set of string properties.


Constructor Summary
StringPropertyListImpl()
           
 
Method Summary
 void addProperty(String key, String property)
           
 void fromBytes(byte[] bytes)
          Construct the object back from a previously serialized bytes.
 byte[] getBytes()
          Serialize the object and returns the bytes.
 String getPropertyValue(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPropertyListImpl

public StringPropertyListImpl()
Method Detail

addProperty

public void addProperty(String key,
                        String property)
Specified by:
addProperty in interface StringPropertyList

fromBytes

public void fromBytes(byte[] bytes)
               throws SerializationException
Description copied from interface: TwisterSerializable
Construct the object back from a previously serialized bytes.

Specified by:
fromBytes in interface TwisterSerializable
Throws:
SerializationException

getBytes

public byte[] getBytes()
                throws SerializationException
Description copied from interface: TwisterSerializable
Serialize the object and returns the bytes.

Specified by:
getBytes in interface TwisterSerializable
Returns:
byte[] of serialized object.
Throws:
SerializationException

getPropertyValue

public String getPropertyValue(String key)
Specified by:
getPropertyValue in interface StringPropertyList


For comments and suggestions please send e-mail to