|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.AttributeValueObject
org.mbari.siam.distributed.MnemonicIntegerAttributeValueObject
public class MnemonicIntegerAttributeValueObject
MnemonicIntegerAttributeValueObject - The value for state attributes which have mnemonics that represent integer values (e.g., powerPolicy -- "never":0; "sampling":1; etc.). toString() returns the mnemonic, value() returns the Integer value.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_logger
Log4j logger |
| Fields inherited from class org.mbari.siam.distributed.AttributeValueObject |
|---|
_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 | |
|---|---|
MnemonicIntegerAttributeValueObject()
|
|
MnemonicIntegerAttributeValueObject(int i,
java.util.Map map)
|
|
MnemonicIntegerAttributeValueObject(java.lang.String s,
java.util.Map map)
Contructor |
|
| Method Summary | |
|---|---|
void |
export(java.io.DataOutput out)
Fulfills Exportable interface |
java.lang.Object |
parse(int n)
Parse and validate the value of this attribute from the specified string |
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)
|
java.lang.String |
toString()
Return String representation. |
java.lang.Object |
value()
value() is overridden to return the numeric value |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class org.mbari.siam.distributed.AttributeValueObject |
|---|
getVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _logger
| Constructor Detail |
|---|
public MnemonicIntegerAttributeValueObject()
public MnemonicIntegerAttributeValueObject(java.lang.String s,
java.util.Map map)
throws java.lang.Exception
s - constructor calls parse(s) to obtain _value membermap - mapping between strings and values
java.lang.Exception
public MnemonicIntegerAttributeValueObject(int i,
java.util.Map map)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.lang.String toString()
toString in class AttributeValueObject
public java.lang.Object parse(java.lang.String s)
throws java.lang.Exception
parse in class AttributeValueObjectjava.lang.Exception
public java.lang.Object parse(int n)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object value()
value in class AttributeValueObject
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AttributeValueObjectjava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class AttributeValueObjectjava.io.IOException
java.lang.ClassNotFoundException
public void export(java.io.DataOutput out)
throws java.io.IOException
export in interface Exportableexport in class AttributeValueObjectjava.io.IOException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||