org.openejb.util.io
Class FieldDescriptor

java.lang.Object
  extended by org.openejb.util.io.FieldDescriptor
All Implemented Interfaces:
Serializable, Comparable

public class FieldDescriptor
extends Object
implements Serializable, Comparable

See Also:
Serialized Form

Field Summary
protected  ClassDescriptor classDesc
           
protected  Field field
           
protected  String name
           
protected  Class type
           
protected  char typeCode
           
protected  String typeString
           
 
Constructor Summary
FieldDescriptor(Field field)
           
FieldDescriptor(String name, Class type)
           
 
Method Summary
 int compareTo(Object o)
          Compare this field with another FieldDescriptor.
 ClassDescriptor getClassDescriptor()
           
 Field getField()
           
 String getName()
           
 char getTypeCode()
           
 String getTypeString()
           
 void setClassDescriptor(ClassDescriptor classDesc)
           
 void setField(Field field)
           
 void setName(String name)
           
 void setTypeCode(char typeCode)
           
 void write(Object o, ObjectOutputStream out)
           
 void writeDesc(ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeString

protected String typeString

name

protected String name

field

protected Field field

typeCode

protected char typeCode

type

protected Class type

classDesc

protected ClassDescriptor classDesc
Constructor Detail

FieldDescriptor

public FieldDescriptor(Field field)

FieldDescriptor

public FieldDescriptor(String name,
                       Class type)
Method Detail

getTypeString

public String getTypeString()

getName

public String getName()

setName

public void setName(String name)

getField

public Field getField()

setField

public void setField(Field field)

getTypeCode

public char getTypeCode()

setTypeCode

public void setTypeCode(char typeCode)

compareTo

public int compareTo(Object o)
Compare this field with another FieldDescriptor. Return -1 if this is smaller, 0 if equal, 1 if greater. Types that are primitives are "smaller" than object types. If equal, the field names are compared.

Specified by:
compareTo in interface Comparable

getClassDescriptor

public ClassDescriptor getClassDescriptor()

setClassDescriptor

public void setClassDescriptor(ClassDescriptor classDesc)

writeDesc

public void writeDesc(ObjectOutputStream out)
               throws IOException
Throws:
IOException

write

public void write(Object o,
                  ObjectOutputStream out)
           throws IOException,
                  InvalidClassException
Throws:
IOException
InvalidClassException


Copyright © 1999-2010 OpenEJB. All Rights Reserved.