org.apache.portals.graffito.jcr.mapper.model
Class FieldDescriptor

java.lang.Object
  extended by org.apache.portals.graffito.jcr.mapper.model.FieldDescriptor

public class FieldDescriptor
extends java.lang.Object

FieldDescriptor is used by the mapper to read general information on a atomic field

Author:
Lombart Christophe

Constructor Summary
FieldDescriptor()
           
 
Method Summary
 ClassDescriptor getClassDescriptor()
           
 java.lang.String getFieldName()
           
 java.lang.String getFieldType()
           
 java.lang.Class getFieldTypeClass()
           
 java.lang.String getJcrName()
           
 java.lang.String getJcrOnParentVersion()
          Getter for property jcrOnParentVersion.
 java.lang.String getJcrType()
          Getter for property jcrType.
 boolean isId()
           
 boolean isJcrAutoCreated()
          Getter for propery jcrAutoCreated.
 boolean isJcrMandatory()
          Getter for property jcrMandatory.
 boolean isJcrMultiple()
          Getter for property jcrMultiple.
 boolean isJcrProtected()
          Getter for property jcrProtected.
 boolean isPath()
           
 void setClassDescriptor(ClassDescriptor classDescriptor)
          Set the associated class descriptor
 void setFieldName(java.lang.String fieldName)
           
 void setFieldType(java.lang.String fieldType)
          Sets the type of the field.
 void setId(boolean id)
           
 void setJcrAutoCreated(boolean value)
          Setter for property jcrAutoCreated.
 void setJcrMandatory(boolean value)
          Setter for property jcrMandatory.
 void setJcrMultiple(boolean value)
          Setter for property jcrMultiple.
 void setJcrName(java.lang.String jcrName)
           
 void setJcrOnParentVersion(java.lang.String value)
          Setter for property jcrOnParentVersion.
 void setJcrProtected(boolean value)
          Setter for property jcrProtected.
 void setJcrType(java.lang.String value)
          Setter for property jcrType.
 void setPath(boolean path)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldDescriptor

public FieldDescriptor()
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns:
Returns the fieldName.

setFieldName

public void setFieldName(java.lang.String fieldName)
Parameters:
fieldName - The fieldName to set.

getFieldType

public java.lang.String getFieldType()
Returns:
the primitive or fully qualified class of the field or null if not specified in the mapping

setFieldType

public void setFieldType(java.lang.String fieldType)
Sets the type of the field. It supports primitive types, specified as int, long, etc or fully qualified class names.

Parameters:
fieldType - the type of the field

getFieldTypeClass

public java.lang.Class getFieldTypeClass()
Returns:
the field class of the field or null if not specified in the mapping or if the class was not found

getJcrName

public java.lang.String getJcrName()
Returns:
Returns the jcrName.

setJcrName

public void setJcrName(java.lang.String jcrName)
Parameters:
jcrName - The jcrName to set.

getClassDescriptor

public ClassDescriptor getClassDescriptor()
Returns:
the associated class descriptor

setClassDescriptor

public void setClassDescriptor(ClassDescriptor classDescriptor)
Set the associated class descriptor

Parameters:
classDescriptor - the class descriptor to set

isId

public boolean isId()
Returns:
true if the field is the class ID

setId

public void setId(boolean id)
Parameters:
id -

isPath

public boolean isPath()
Returns:
Returns true if the field is the object JCR path.

setPath

public void setPath(boolean path)
Parameters:
path - The path to set.

getJcrType

public java.lang.String getJcrType()
Getter for property jcrType.

Returns:
jcrType

setJcrType

public void setJcrType(java.lang.String value)
Setter for property jcrType.

Parameters:
value - jcrType

isJcrAutoCreated

public boolean isJcrAutoCreated()
Getter for propery jcrAutoCreated.

Returns:
jcrAutoCreated

setJcrAutoCreated

public void setJcrAutoCreated(boolean value)
Setter for property jcrAutoCreated.

Parameters:
value - jcrAutoCreated

isJcrMandatory

public boolean isJcrMandatory()
Getter for property jcrMandatory.

Returns:
jcrMandatory

setJcrMandatory

public void setJcrMandatory(boolean value)
Setter for property jcrMandatory.

Parameters:
value - jcrMandatory

getJcrOnParentVersion

public java.lang.String getJcrOnParentVersion()
Getter for property jcrOnParentVersion.

Returns:
jcrOnParentVersion

setJcrOnParentVersion

public void setJcrOnParentVersion(java.lang.String value)
Setter for property jcrOnParentVersion.

Parameters:
value - jcrOnParentVersion

isJcrProtected

public boolean isJcrProtected()
Getter for property jcrProtected.

Returns:
jcrProtected

setJcrProtected

public void setJcrProtected(boolean value)
Setter for property jcrProtected.

Parameters:
value - jcrProtected

isJcrMultiple

public boolean isJcrMultiple()
Getter for property jcrMultiple.

Returns:
jcrMultiple

setJcrMultiple

public void setJcrMultiple(boolean value)
Setter for property jcrMultiple.

Parameters:
value - jcrMultiple

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.