org.exolab.castor.mapping.loader

Class FieldDescriptorImpl

public class FieldDescriptorImpl extends Object implements FieldDescriptor

A basic field descriptor implementation. Engines will extend this class to provide additional functionality.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:29 $

Author: Assaf Arkin

See Also: ClassDescriptorImpl

Constructor Summary
FieldDescriptorImpl(String fieldName, TypeInfo typeInfo, FieldHandler handler, boolean trans)
Constructs a new field descriptor.
protected FieldDescriptorImpl(FieldDescriptor fieldDesc)
Constructor used by derived clases.
protected FieldDescriptorImpl(FieldDescriptorImpl fieldDesc)
Constructor used by derived clases.
Method Summary
ClassDescriptorgetClassDescriptor()
ClassDescriptorgetContainingClassDescriptor()
TypeConvertorgetConvertor()
Returns the convertor from the field type to an external type.
StringgetConvertorParam()
Returns the convertor parameter.
StringgetFieldName()
ClassgetFieldType()
FieldHandlergetHandler()
booleanisImmutable()
booleanisMultivalued()
booleanisRequired()
booleanisTransient()
voidsetClassDescriptor(ClassDescriptor clsDesc)
Mutator method used by {@link MappingLoader}.
voidsetContainingClassDescriptor(ClassDescriptor contClsDesc)
voidsetHandler(FieldHandler handler)
Mutator method used by {@link MappingLoader}.
voidsetRequired(boolean required)
Mutator method used by {@link MappingLoader}.
StringtoString()

Constructor Detail

FieldDescriptorImpl

public FieldDescriptorImpl(String fieldName, TypeInfo typeInfo, FieldHandler handler, boolean trans)
Constructs a new field descriptor.

Parameters: fieldName The field name typeInfo The field type information handler The field handler (may be null) trans True if the field is transient

FieldDescriptorImpl

protected FieldDescriptorImpl(FieldDescriptor fieldDesc)
Constructor used by derived clases.

FieldDescriptorImpl

protected FieldDescriptorImpl(FieldDescriptorImpl fieldDesc)
Constructor used by derived clases.

Method Detail

getClassDescriptor

public ClassDescriptor getClassDescriptor()

getContainingClassDescriptor

public ClassDescriptor getContainingClassDescriptor()

getConvertor

public TypeConvertor getConvertor()
Returns the convertor from the field type to an external type.

Returns: Convertor from field type

getConvertorParam

public String getConvertorParam()
Returns the convertor parameter.

Returns: Convertor parameter

getFieldName

public String getFieldName()

getFieldType

public Class getFieldType()

getHandler

public FieldHandler getHandler()

isImmutable

public boolean isImmutable()

isMultivalued

public boolean isMultivalued()

isRequired

public boolean isRequired()

isTransient

public boolean isTransient()

setClassDescriptor

void setClassDescriptor(ClassDescriptor clsDesc)
Mutator method used by {@link MappingLoader}.

setContainingClassDescriptor

public void setContainingClassDescriptor(ClassDescriptor contClsDesc)

setHandler

void setHandler(FieldHandler handler)
Mutator method used by {@link MappingLoader}.

setRequired

void setRequired(boolean required)
Mutator method used by {@link MappingLoader}.

toString

public String toString()
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com