org.exolab.castor.mapping.loader
Class DelegateFieldDescriptor

java.lang.Object
  extended by org.exolab.castor.mapping.loader.DelegateFieldDescriptor
All Implemented Interfaces:
FieldDescriptor

public class DelegateFieldDescriptor
extends java.lang.Object
implements FieldDescriptor

Version:
$Revision: 1.2 $ $Date: 2005/03/05 13:41:52 $
Author:
Assaf Arkin

Constructor Summary
protected DelegateFieldDescriptor(FieldDescriptor desc)
           
 
Method Summary
 ClassDescriptor getClassDescriptor()
          Returns the class descriptor related to the field type.
 ClassDescriptor getContainingClassDescriptor()
           
 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.
 void setContainingClassDescriptor(ClassDescriptor contClsDesc)
          Set the class which contains this field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateFieldDescriptor

protected DelegateFieldDescriptor(FieldDescriptor desc)
Method Detail

setContainingClassDescriptor

public void setContainingClassDescriptor(ClassDescriptor contClsDesc)
Set the class which contains this field

Specified by:
setContainingClassDescriptor in interface FieldDescriptor

getContainingClassDescriptor

public ClassDescriptor getContainingClassDescriptor()
Specified by:
getContainingClassDescriptor in interface FieldDescriptor
Returns:
the class which contains this field

getHandler

public FieldHandler getHandler()
Description copied from interface: FieldDescriptor
Returns the handler of the field. In order to persist or marshal a field descriptor will be associated with a handler.

Specified by:
getHandler in interface FieldDescriptor
Returns:
The field handler

getFieldName

public java.lang.String getFieldName()
Description copied from interface: FieldDescriptor
Returns the name of the field.

Specified by:
getFieldName in interface FieldDescriptor
Returns:
Field name

getFieldType

public java.lang.Class getFieldType()
Description copied from interface: FieldDescriptor
Returns the Java type of the field.

Specified by:
getFieldType in interface FieldDescriptor
Returns:
Field type

isRequired

public boolean isRequired()
Description copied from interface: FieldDescriptor
Returns true if the field type is required.

Specified by:
isRequired in interface FieldDescriptor
Returns:
True if the field type is required

isImmutable

public boolean isImmutable()
Description copied from interface: FieldDescriptor
Returns true if the field type is immutable.

Specified by:
isImmutable in interface FieldDescriptor
Returns:
True if the field type is immutable

isTransient

public boolean isTransient()
Description copied from interface: FieldDescriptor
Returns true if the field is transient. Transient fields are never persisted or marshalled.

Specified by:
isTransient in interface FieldDescriptor
Returns:
True if transient field

isMultivalued

public boolean isMultivalued()
Description copied from interface: FieldDescriptor
Returns true if the field is multi valued (a collection).

Specified by:
isMultivalued in interface FieldDescriptor
Returns:
True if the field is multi valued

getClassDescriptor

public ClassDescriptor getClassDescriptor()
Description copied from interface: FieldDescriptor
Returns the class descriptor related to the field type. If the field type is a class for which a descriptor exists, this descriptor is returned. If the field type is a class for which no mapping is provided, null is returned.

Specified by:
getClassDescriptor in interface FieldDescriptor
Returns:
The class descriptor of the field type, or null


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