org.exolab.castor.mapping.loader

Class AbstractFieldDescriptor

public abstract class AbstractFieldDescriptor extends Object implements FieldDescriptor

Method Summary
ClassDescriptorgetClassDescriptor()
ClassDescriptorgetContainingClassDescriptor()
StringgetFieldName()
ClassgetFieldType()
FieldHandlergetHandler()
booleanisImmutable()
booleanisMultivalued()
booleanisRequired()
booleanisTransient()
voidsetClassDescriptor(ClassDescriptor classDescriptor)
Set the ClassDescriptor for the described field.
voidsetContainingClassDescriptor(ClassDescriptor parent)
voidsetFieldName(String fieldName)
Set the name of the field.
voidsetFieldType(Class fieldType)
Set the type of the field.
voidsetHandler(FieldHandler handler)
Set the FieldHandler for the field being described by this FieldDescriptor.
voidsetImmutable(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.
voidsetMultivalued(boolean multivalued)
Set wheter the object described by this descriptor is multivalued or not.
voidsetRequired(boolean required)
Set whether or not the described field is required.
voidsetTransient(boolean isTransient)
Sets whether or not the describled field is 'transient'.

Method Detail

getClassDescriptor

public final ClassDescriptor getClassDescriptor()

See Also: {@inheritDoc }

getContainingClassDescriptor

public final ClassDescriptor getContainingClassDescriptor()

See Also: {@inheritDoc }

getFieldName

public final String getFieldName()

See Also: {@inheritDoc }

getFieldType

public final Class getFieldType()

See Also: {@inheritDoc }

getHandler

public final FieldHandler getHandler()

See Also: {@inheritDoc }

isImmutable

public final boolean isImmutable()

See Also: {@inheritDoc }

isMultivalued

public final boolean isMultivalued()

See Also: {@inheritDoc }

isRequired

public final boolean isRequired()

See Also: {@inheritDoc }

isTransient

public final boolean isTransient()

See Also: {@inheritDoc }

setClassDescriptor

public final void setClassDescriptor(ClassDescriptor classDescriptor)
Set the ClassDescriptor for the described field.

Parameters: classDescriptor The ClassDescriptor for the described field.

setContainingClassDescriptor

public final void setContainingClassDescriptor(ClassDescriptor parent)

See Also: {@inheritDoc }

setFieldName

public final void setFieldName(String fieldName)
Set the name of the field.

Parameters: fieldName Field name.

setFieldType

public final void setFieldType(Class fieldType)
Set the type of the field.

Parameters: fieldType Field type.

setHandler

public final void setHandler(FieldHandler handler)
Set the FieldHandler for the field being described by this FieldDescriptor.

Parameters: 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.

Parameters: 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.

Parameters: 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.

Parameters: 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'.

Parameters: isTransient The flag indicating if the described field is 'transient'.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com