au.gov.tas.dpiwe.mr.util
Class SerializableField
java.lang.Object
java.lang.reflect.AccessibleObject
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
SerializableField
public SerializableField()
- Construct a new SerializableField.
SerializableField
public SerializableField(Field underlyingObject)
- Construct a new SerializableField.
- Parameters:
underlyingField - a Field instance.
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