Marshalling API version 1.0.0.GA

org.jboss.marshalling.reflect
Class SerializableField

java.lang.Object
  extended by org.jboss.marshalling.reflect.SerializableField

public final class SerializableField
extends Object

Reflection information about a field on a serializable class.


Nested Class Summary
static class SerializableField.Kind
          The kind of type for this field.
 
Method Summary
 Field getField()
          Get the reflection Field for this serializable field.
 SerializableField.Kind getKind()
          Get the kind of field.
 String getName()
          Get the name of the field.
 Class<?> getType()
          Get the field type.
 boolean isUnshared()
          Determine whether this field is marked as "unshared".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getField

public Field getField()
Get the reflection Field for this serializable field. The resultant field will be accessable.

Returns:
the reflection field

getName

public String getName()
Get the name of the field.

Returns:
the name

isUnshared

public boolean isUnshared()
Determine whether this field is marked as "unshared".

Returns:
true if the field is unshared

getKind

public SerializableField.Kind getKind()
Get the kind of field.

Returns:
the kind

getType

public Class<?> getType()
                 throws ClassNotFoundException
Get the field type.

Returns:
the field type
Throws:
ClassNotFoundException

Marshalling API version 1.0.0.GA

Copyright © 2008 JBoss, a division of Red Hat, Inc.