au.gov.tas.dpiwe.mr.util
Class SerializableField

java.lang.Object
  extended by java.lang.reflect.AccessibleObject
      extended by au.gov.tas.dpiwe.mr.util.SerializableField
All Implemented Interfaces:
Serializable, AnnotatedElement, Member

public class SerializableField
extends AccessibleObject
implements Serializable, Member

This is an emulation of Field which can be serialized.

Since:
Mr Architecture 3.0
Version:
1.0.0.1
Author:
Kade Hansson, au.gov.tas.dpiwe.mr.tool.SerializableMaker
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.lang.reflect.Member
DECLARED, PUBLIC
 
Constructor Summary
SerializableField()
          Construct a new SerializableField.
SerializableField(Field underlyingObject)
          Construct a new SerializableField.
 
Method Summary
 boolean equals(Object object1)
           
 Object get(Object object1)
           
 boolean getBoolean(Object object1)
           
 byte getByte(Object object1)
           
 char getChar(Object object1)
           
 Class getDeclaringClass()
           
 double getDouble(Object object1)
           
 float getFloat(Object object1)
           
 int getInt(Object object1)
           
 long getLong(Object object1)
           
 int getModifiers()
           
 String getName()
           
 short getShort(Object object1)
           
 Class getType()
           
 int hashCode()
           
 boolean isAccessible()
           
 Object readResolve()
          Returns a new SerializableField with an underlyingObject corresponding to the representation in this SerializableField.
 void set(Object object1, Object object2)
           
 void setAccessible(boolean boolean1)
           
 void setBoolean(Object object1, boolean boolean2)
           
 void setByte(Object object1, byte byte2)
           
 void setChar(Object object1, char char2)
           
 void setDouble(Object object1, double double2)
           
 void setFloat(Object object1, float float2)
           
 void setInt(Object object1, int int2)
           
 void setLong(Object object1, long long2)
           
 void setShort(Object object1, short short2)
           
 String toString()
           
 
Methods inherited from class java.lang.reflect.AccessibleObject
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent, setAccessible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.reflect.Member
isSynthetic
 

Constructor Detail

SerializableField

public SerializableField()
Construct a new SerializableField.


SerializableField

public SerializableField(Field underlyingObject)
Construct a new SerializableField.

Parameters:
underlyingField - a Field instance.
Method Detail

hashCode

public int hashCode()
             throws RuntimeException
Overrides:
hashCode in class Object
Throws:
RuntimeException

getModifiers

public int getModifiers()
                 throws RuntimeException
Specified by:
getModifiers in interface Member
Throws:
RuntimeException

getBoolean

public boolean getBoolean(Object object1)
                   throws RuntimeException,
                          IllegalArgumentException,
                          IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getByte

public byte getByte(Object object1)
             throws RuntimeException,
                    IllegalArgumentException,
                    IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getShort

public short getShort(Object object1)
               throws RuntimeException,
                      IllegalArgumentException,
                      IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getChar

public char getChar(Object object1)
             throws RuntimeException,
                    IllegalArgumentException,
                    IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getInt

public int getInt(Object object1)
           throws RuntimeException,
                  IllegalArgumentException,
                  IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getLong

public long getLong(Object object1)
             throws RuntimeException,
                    IllegalArgumentException,
                    IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getFloat

public float getFloat(Object object1)
               throws RuntimeException,
                      IllegalArgumentException,
                      IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getDouble

public double getDouble(Object object1)
                 throws RuntimeException,
                        IllegalArgumentException,
                        IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

equals

public boolean equals(Object object1)
               throws RuntimeException
Overrides:
equals in class Object
Throws:
RuntimeException

getName

public String getName()
               throws RuntimeException
Specified by:
getName in interface Member
Throws:
RuntimeException

toString

public String toString()
                throws RuntimeException
Overrides:
toString in class Object
Throws:
RuntimeException

get

public Object get(Object object1)
           throws RuntimeException,
                  IllegalArgumentException,
                  IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

getDeclaringClass

public Class getDeclaringClass()
                        throws RuntimeException
Specified by:
getDeclaringClass in interface Member
Throws:
RuntimeException

getType

public Class getType()
              throws RuntimeException
Throws:
RuntimeException

set

public void set(Object object1,
                Object object2)
         throws RuntimeException,
                IllegalArgumentException,
                IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setBoolean

public void setBoolean(Object object1,
                       boolean boolean2)
                throws RuntimeException,
                       IllegalArgumentException,
                       IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setByte

public void setByte(Object object1,
                    byte byte2)
             throws RuntimeException,
                    IllegalArgumentException,
                    IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setChar

public void setChar(Object object1,
                    char char2)
             throws RuntimeException,
                    IllegalArgumentException,
                    IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setDouble

public void setDouble(Object object1,
                      double double2)
               throws RuntimeException,
                      IllegalArgumentException,
                      IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setFloat

public void setFloat(Object object1,
                     float float2)
              throws RuntimeException,
                     IllegalArgumentException,
                     IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setInt

public void setInt(Object object1,
                   int int2)
            throws RuntimeException,
                   IllegalArgumentException,
                   IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setLong

public void setLong(Object object1,
                    long long2)
             throws RuntimeException,
                    IllegalArgumentException,
                    IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

setShort

public void setShort(Object object1,
                     short short2)
              throws RuntimeException,
                     IllegalArgumentException,
                     IllegalAccessException
Throws:
RuntimeException
IllegalArgumentException
IllegalAccessException

isAccessible

public boolean isAccessible()
                     throws RuntimeException
Overrides:
isAccessible in class AccessibleObject
Throws:
RuntimeException

setAccessible

public void setAccessible(boolean boolean1)
                   throws RuntimeException,
                          SecurityException
Overrides:
setAccessible in class AccessibleObject
Throws:
RuntimeException
SecurityException

readResolve

public Object readResolve()
                   throws ObjectStreamException
Returns a new SerializableField with an underlyingObject corresponding to the representation in this SerializableField.

Returns:
a new SerializableField with an underlyingObject corresponding to the representation in this SerializableField.
Throws:
ObjectStreamException