org.jnetstream.protocol
Class NullField

java.lang.Object
  extended by org.jnetstream.protocol.NullField
All Implemented Interfaces:
com.slytechs.utils.namespace.Named, java.lang.Iterable, Field, HeaderElement

public class NullField
extends java.lang.Object
implements Field

An empty, no action, stub stand-in. All methods throw UnsupportedOperationException.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jnetstream.packet.Field
Field.DynamicField<T>, Field.StaticField
 
Nested classes/interfaces inherited from interface com.slytechs.utils.namespace.Named
com.slytechs.utils.namespace.Named.Util
 
Constructor Summary
NullField()
           
 
Method Summary
 java.lang.Object format()
           
 Field[] getAllFields()
           
 DataField getFieldConstant()
           
 int getLength()
           
 java.lang.String getName()
           
 int getOffset()
           
 java.lang.Object getValue()
           
 java.lang.String getValueDescription()
           
 java.lang.Object getValueInUnits()
           
 java.lang.String getValueUnits()
           
 boolean isSigned()
           
 java.util.Iterator iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullField

public NullField()
Method Detail

format

public java.lang.Object format()
Specified by:
format in interface Field
Returns:

getLength

public int getLength()
Specified by:
getLength in interface Field

getOffset

public int getOffset()
Specified by:
getOffset in interface Field

getValue

public java.lang.Object getValue()
                          throws java.io.IOException
Specified by:
getValue in interface Field
Returns:
Throws:
java.io.IOException

getValueDescription

public java.lang.String getValueDescription()
Specified by:
getValueDescription in interface Field
Returns:

getValueInUnits

public java.lang.Object getValueInUnits()
                                 throws java.io.IOException
Specified by:
getValueInUnits in interface Field
Returns:
Throws:
java.io.IOException

getValueUnits

public java.lang.String getValueUnits()
Specified by:
getValueUnits in interface Field
Returns:

isSigned

public boolean isSigned()
Specified by:
isSigned in interface Field

getName

public java.lang.String getName()
Specified by:
getName in interface com.slytechs.utils.namespace.Named

getAllFields

public Field[] getAllFields()
Specified by:
getAllFields in interface Field
Returns:

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable

getFieldConstant

public DataField getFieldConstant()
Specified by:
getFieldConstant in interface HeaderElement
Returns: