org.mbari.siam.distributed
Class AttributeValueObject

java.lang.Object
  extended by org.mbari.siam.distributed.AttributeValueObject
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Exportable
Direct Known Subclasses:
BooleanAttributeValueObject, ByteArrayAttributeValueObject, DoubleAttributeValueObject, FloatAttributeValueObject, IntegerAttributeValueObject, LongAttributeValueObject, MnemonicIntegerAttributeValueObject, ScheduleSpecifierAttributeValueObject

public abstract class AttributeValueObject
extends java.lang.Object
implements java.io.Externalizable, Exportable

AttributeValueObject

Author:
Kent Headley
See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger _logger
          Log4j logger
protected  java.lang.Object _value
          The value
 
Fields inherited from interface org.mbari.siam.distributed.Exportable
EX_BASE, EX_BOOLEANOBJATT, EX_BYTEARRAYOBJATT, EX_DEVICEMESSAGEPACKET, EX_DEVICEPACKET, EX_DOUBLEOBJATT, EX_FLOATOBJATT, EX_INTEGEROBJATT, EX_LONGOBJATT, EX_MAX, EX_METADATAPACKET, EX_MNEMONICINTEGEROBJATT, EX_SCHEDULESPECIFIEROBJATT, EX_SENSORDATAPACKET, EX_STATE, EX_STATEATTRIBUTE
 
Constructor Summary
AttributeValueObject()
          Empty CTOR for serialization
 
Method Summary
 void export(java.io.DataOutput out)
          Fulfills Exportable interface
 long getVersion()
          Return serialization version of this instance
abstract  java.lang.Object parse(java.lang.String s)
          Parse and validate the value of this attribute from the specified string
 void readExternal(java.io.ObjectInput in)
           
abstract  java.lang.String toString()
          Return String representation.
 java.lang.Object value()
          Return byte array representation.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_logger

protected static org.apache.log4j.Logger _logger
Log4j logger


_value

protected java.lang.Object _value
The value

Constructor Detail

AttributeValueObject

public AttributeValueObject()
Empty CTOR for serialization

Method Detail

toString

public abstract java.lang.String toString()
Return String representation.

Overrides:
toString in class java.lang.Object

parse

public abstract java.lang.Object parse(java.lang.String s)
                                throws java.lang.Exception
Parse and validate the value of this attribute from the specified string

Throws:
java.lang.Exception

getVersion

public long getVersion()
Return serialization version of this instance


value

public java.lang.Object value()
Return byte array representation.


writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

export

public void export(java.io.DataOutput out)
            throws java.io.IOException
Fulfills Exportable interface

Specified by:
export in interface Exportable
Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.