org.openejb.util.io
Class FieldDescriptor
java.lang.Object
org.openejb.util.io.FieldDescriptor
- All Implemented Interfaces:
- Comparable, Serializable
- public class FieldDescriptor
- extends Object
- implements Serializable, Comparable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
typeString
protected String typeString
name
protected String name
field
protected Field field
typeCode
protected char typeCode
type
protected Class type
classDesc
protected ClassDescriptor classDesc
FieldDescriptor
public FieldDescriptor(Field field)
FieldDescriptor
public FieldDescriptor(String name,
Class type)
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-2007 OpenEJB. All Rights Reserved.