|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.loader.FieldDescriptorImpl
public class FieldDescriptorImpl
A basic field descriptor implementation. Engines will extend this class to provide additional functionality.
ClassDescriptorImpl
Constructor Summary | |
---|---|
protected |
FieldDescriptorImpl(FieldDescriptor fieldDesc)
Constructor used by derived clases. |
protected |
FieldDescriptorImpl(FieldDescriptorImpl fieldDesc)
Constructor used by derived clases. |
|
FieldDescriptorImpl(java.lang.String fieldName,
TypeInfo typeInfo,
FieldHandler handler,
boolean trans)
Constructs a new field descriptor. |
Method Summary | |
---|---|
ClassDescriptor |
getClassDescriptor()
Returns the class descriptor related to the field type. |
ClassDescriptor |
getContainingClassDescriptor()
|
TypeConvertor |
getConvertor()
Returns the convertor from the field type to an external type. |
java.lang.String |
getConvertorParam()
Returns the convertor parameter. |
java.lang.String |
getFieldName()
Returns the name of the field. |
java.lang.Class |
getFieldType()
Returns the Java type of the field. |
FieldHandler |
getHandler()
Returns the handler of the field. |
boolean |
isImmutable()
Returns true if the field type is immutable. |
boolean |
isMultivalued()
Returns true if the field is multi valued (a collection). |
boolean |
isRequired()
Returns true if the field type is required. |
boolean |
isTransient()
Returns true if the field is transient. |
(package private) void |
setClassDescriptor(ClassDescriptor clsDesc)
Mutator method used by MappingLoader . |
void |
setContainingClassDescriptor(ClassDescriptor contClsDesc)
Set the class which contains this field |
(package private) void |
setHandler(FieldHandler handler)
Mutator method used by MappingLoader . |
void |
setRequired(boolean required)
Mutator method used by MappingLoader . |
void |
setTransient(boolean isTransient)
Mutator method used by MappingLoader . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldDescriptorImpl(java.lang.String fieldName, TypeInfo typeInfo, FieldHandler handler, boolean trans) throws MappingException
fieldName
- The field nametypeInfo
- The field type informationhandler
- The field handler (may be null)trans
- True if the field is transient
MappingException
protected FieldDescriptorImpl(FieldDescriptor fieldDesc)
protected FieldDescriptorImpl(FieldDescriptorImpl fieldDesc)
Method Detail |
---|
public void setContainingClassDescriptor(ClassDescriptor contClsDesc)
FieldDescriptor
setContainingClassDescriptor
in interface FieldDescriptor
public ClassDescriptor getContainingClassDescriptor()
getContainingClassDescriptor
in interface FieldDescriptor
public java.lang.String getFieldName()
FieldDescriptor
getFieldName
in interface FieldDescriptor
public java.lang.Class getFieldType()
FieldDescriptor
getFieldType
in interface FieldDescriptor
public boolean isTransient()
FieldDescriptor
isTransient
in interface FieldDescriptor
public boolean isImmutable()
FieldDescriptor
isImmutable
in interface FieldDescriptor
public boolean isRequired()
FieldDescriptor
isRequired
in interface FieldDescriptor
public boolean isMultivalued()
FieldDescriptor
isMultivalued
in interface FieldDescriptor
public ClassDescriptor getClassDescriptor()
FieldDescriptor
getClassDescriptor
in interface FieldDescriptor
public FieldHandler getHandler()
FieldDescriptor
getHandler
in interface FieldDescriptor
void setHandler(FieldHandler handler)
MappingLoader
.
void setClassDescriptor(ClassDescriptor clsDesc)
MappingLoader
.
public void setRequired(boolean required)
MappingLoader
.
public void setTransient(boolean isTransient)
MappingLoader
.
public TypeConvertor getConvertor()
public java.lang.String getConvertorParam()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |