|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.loader.AbstractFieldDescriptor
public abstract class AbstractFieldDescriptor
Constructor Summary | |
---|---|
AbstractFieldDescriptor()
|
Method Summary | |
---|---|
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 |
isIdentity()
Is the described field is part of the identity of the class it belongs to? |
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 |
setIdentity(boolean identity)
Set wether the described field is part of the identity of the class it belongs to. |
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'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFieldDescriptor()
Method Detail |
---|
public final void setContainingClassDescriptor(ClassDescriptor parent)
FieldDescriptor
setContainingClassDescriptor
in interface FieldDescriptor
parent
- The class descriptor which contains this field.{@inheritDoc}
public final ClassDescriptor getContainingClassDescriptor()
FieldDescriptor
getContainingClassDescriptor
in interface FieldDescriptor
{@inheritDoc}
public final void setFieldName(java.lang.String fieldName)
fieldName
- Field name.public final java.lang.String getFieldName()
FieldDescriptor
getFieldName
in interface FieldDescriptor
{@inheritDoc}
public final void setFieldType(java.lang.Class fieldType)
fieldType
- Field type.public final java.lang.Class getFieldType()
FieldDescriptor
getFieldType
in interface FieldDescriptor
{@inheritDoc}
public final void setClassDescriptor(ClassDescriptor classDescriptor)
classDescriptor
- The ClassDescriptor for the described field.public final ClassDescriptor getClassDescriptor()
FieldDescriptor
getClassDescriptor
in interface FieldDescriptor
{@inheritDoc}
public final void setHandler(FieldHandler handler)
handler
- The FieldHandler for the field being described.public final FieldHandler getHandler()
FieldDescriptor
getHandler
in interface FieldDescriptor
{@inheritDoc}
public final void setTransient(boolean isTransient)
isTransient
- The flag indicating if the described field is 'transient'.public final boolean isTransient()
FieldDescriptor
isTransient
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()
FieldDescriptor
isImmutable
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()
FieldDescriptor
isRequired
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()
FieldDescriptor
isMultivalued
in interface FieldDescriptor
{@inheritDoc}
public final void setIdentity(boolean identity)
identity
- true
if field is part of the classes identity.public final boolean isIdentity()
true
if field is part of the classes identity.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |