org.exolab.castor.mapping.loader
Class AbstractFieldDescriptor
java.lang.Object
org.exolab.castor.mapping.loader.AbstractFieldDescriptor
- FieldDescriptor
public abstract class AbstractFieldDescriptor
extends java.lang.Object
setClassDescriptor
public final void setClassDescriptor(ClassDescriptor classDescriptor)
Set the ClassDescriptor for the described field.
classDescriptor
- The ClassDescriptor for the described field.
setFieldName
public final void setFieldName(String fieldName)
Set the name of the field.
setFieldType
public final void setFieldType(Class fieldType)
Set the type of the field.
setHandler
public final void setHandler(FieldHandler handler)
Set the FieldHandler for the field being described by this FieldDescriptor.
handler
- The FieldHandler for the field being described.
setImmutable
public final void setImmutable(boolean immutable)
Set the immutable flag which indicates that changes to this Field result in a
new Object to be created, such as java.lang.String. It serves to identify fields
which should not be constructed until all the data is available.
immutable
- Flag which if true indicates that the field is immutable.
setMultivalued
public final void setMultivalued(boolean multivalued)
Set wheter the object described by this descriptor is multivalued or not.
multivalued
- True if the object described by this descriptor is multivalued.
setRequired
public final void setRequired(boolean required)
Set whether or not the described field is required.
required
- The flag indicating whether or not the described field is required.
setTransient
public final void setTransient(boolean isTransient)
Sets whether or not the describled field is 'transient'.
isTransient
- The flag indicating if the described field is 'transient'.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com