public abstract class AbstractFieldDescriptor extends java.lang.Object implements FieldDescriptor
| Constructor and Description |
|---|
AbstractFieldDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
ClassDescriptor |
getClassDescriptor()
Returns the class descriptor related to the field type.
|
ClassDescriptor |
getContainingClassDescriptor()
Get the class descriptor which contains this field.
|
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 multivalued (a collection).
|
boolean |
isRequired()
Returns true if the field type is required.
|
boolean |
isTransient()
Returns true if the field is transient.
|
void |
setClassDescriptor(ClassDescriptor classDescriptor)
Set the ClassDescriptor for the described field.
|
void |
setContainingClassDescriptor(ClassDescriptor parent)
Set the class descriptor which contains this field.
|
void |
setFieldName(java.lang.String fieldName)
Set the name of the field.
|
void |
setFieldType(java.lang.Class fieldType)
Set the type of the field.
|
void |
setHandler(FieldHandler handler)
Set the FieldHandler for the field being described by this FieldDescriptor.
|
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.
|
void |
setMultivalued(boolean multivalued)
Set wheter the object described by this descriptor is multivalued or not.
|
void |
setRequired(boolean required)
Set whether or not the described field is required.
|
void |
setTransient(boolean isTransient)
Sets whether or not the describled field is 'transient'.
|
public final void setContainingClassDescriptor(ClassDescriptor parent)
FieldDescriptorsetContainingClassDescriptor in interface FieldDescriptorparent - The class descriptor which contains this field.{@inheritDoc}public final ClassDescriptor getContainingClassDescriptor()
FieldDescriptorgetContainingClassDescriptor in interface FieldDescriptor{@inheritDoc}public final void setFieldName(java.lang.String fieldName)
fieldName - Field name.public final java.lang.String getFieldName()
FieldDescriptorgetFieldName in interface FieldDescriptor{@inheritDoc}public final void setFieldType(java.lang.Class fieldType)
fieldType - Field type.public final java.lang.Class getFieldType()
FieldDescriptorgetFieldType in interface FieldDescriptor{@inheritDoc}public final void setClassDescriptor(ClassDescriptor classDescriptor)
classDescriptor - The ClassDescriptor for the described field.public final ClassDescriptor getClassDescriptor()
FieldDescriptorgetClassDescriptor in interface FieldDescriptor{@inheritDoc}public final void setHandler(FieldHandler handler)
handler - The FieldHandler for the field being described.public final FieldHandler getHandler()
FieldDescriptorgetHandler in interface FieldDescriptor{@inheritDoc}public final void setTransient(boolean isTransient)
isTransient - The flag indicating if the described field is 'transient'.public final boolean isTransient()
FieldDescriptorisTransient in interface FieldDescriptor{@inheritDoc}public final void setImmutable(boolean immutable)
immutable - Flag which if true indicates that the field is immutable.public final boolean isImmutable()
FieldDescriptorisImmutable in interface FieldDescriptor{@inheritDoc}public final void setRequired(boolean required)
required - The flag indicating whether or not the described field is required.public final boolean isRequired()
FieldDescriptorisRequired in interface FieldDescriptor{@inheritDoc}public final void setMultivalued(boolean multivalued)
multivalued - True if the object described by this descriptor is multivalued.public final boolean isMultivalued()
FieldDescriptorisMultivalued in interface FieldDescriptor{@inheritDoc}Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com