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

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

public class CollectionDescriptor
extends java.lang.Object

CollectionDescriptor is used by the mapper to read general information on a collection field

Author:
Lombart Christophe

Constructor Summary
CollectionDescriptor()
           
 
Method Summary
 ClassDescriptor getClassDescriptor()
           
 java.lang.String getCollectionClassName()
           
 java.lang.String getCollectionConverter()
           
 java.lang.String getElementClassName()
           
 java.lang.String getFieldName()
           
 java.lang.String getJcrName()
           
 java.lang.String getJcrNodeType()
          Getter for property jcrNodeType.
 java.lang.String getJcrOnParentVersion()
          Getter for property jcrOnParentVersion.
 boolean isAutoInsert()
           
 boolean isAutoRetrieve()
           
 boolean isAutoUpdate()
           
 boolean isJcrAutoCreated()
          Getter for property jcrAutoCreated.
 boolean isJcrMandatory()
          Getter for property jcrMandatory.
 boolean isJcrProtected()
          Getter for property jcrProtected.
 boolean isJcrSameNameSiblings()
          Getter for property jcrSameNameSiblings.
 boolean isProxy()
           
 void setAutoInsert(boolean autoInsert)
           
 void setAutoRetrieve(boolean autoRetrieve)
           
 void setAutoUpdate(boolean autoUpdate)
           
 void setClassDescriptor(ClassDescriptor classDescriptor)
          Set the associated class descriptor
 void setCollectionClassName(java.lang.String collectionClassName)
          Set the collection class name.
 void setCollectionConverter(java.lang.String collectionConverterClassName)
          Set the collection converter class name
 void setElementClassName(java.lang.String elementClassName)
           
 void setFieldName(java.lang.String fieldName)
           
 void setJcrAutoCreated(boolean value)
          Setter for property jcrAutoCreated.
 void setJcrMandatory(boolean value)
          Setter for property jcrMandatory.
 void setJcrName(java.lang.String jcrName)
           
 void setJcrNodeType(java.lang.String value)
          Setter for property jcrNodeType.
 void setJcrOnParentVersion(java.lang.String value)
          Setter for property jcrOnParentVersion.
 void setJcrProtected(boolean value)
          Setter for property jcrProtected.
 void setJcrSameNameSiblings(boolean value)
          Setter for property jcrSameNameSiblings.
 void setProxy(boolean proxy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionDescriptor

public CollectionDescriptor()
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.

getJcrName

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

setJcrName

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

getElementClassName

public java.lang.String getElementClassName()
Returns:
Returns the elementClassName.

setElementClassName

public void setElementClassName(java.lang.String elementClassName)
Parameters:
elementClassName - The collection element class name to set.

isProxy

public boolean isProxy()
Returns:
Returns the proxy.

setProxy

public void setProxy(boolean proxy)
Parameters:
proxy - The proxy to set.

isAutoInsert

public boolean isAutoInsert()

setAutoInsert

public void setAutoInsert(boolean autoInsert)

isAutoRetrieve

public boolean isAutoRetrieve()

setAutoRetrieve

public void setAutoRetrieve(boolean autoRetrieve)

isAutoUpdate

public boolean isAutoUpdate()

setAutoUpdate

public void setAutoUpdate(boolean autoUpdate)

getCollectionConverter

public java.lang.String getCollectionConverter()
Returns:
The collection converter class name

setCollectionConverter

public void setCollectionConverter(java.lang.String collectionConverterClassName)
Set the collection converter class name

Parameters:
collectionConverterClassName - The converter to set

getCollectionClassName

public java.lang.String getCollectionClassName()
Returns:
the collection class name (can be also a Map)

setCollectionClassName

public void setCollectionClassName(java.lang.String collectionClassName)
Set the collection class name. This collection class has to implement ManageableCollection

Parameters:
collectionClassName - The collection class name 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

getJcrNodeType

public java.lang.String getJcrNodeType()
Getter for property jcrNodeType.

Returns:
jcrNodeType

setJcrNodeType

public void setJcrNodeType(java.lang.String value)
Setter for property jcrNodeType.

Parameters:
value - jcrNodeType

isJcrAutoCreated

public boolean isJcrAutoCreated()
Getter for property 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

isJcrSameNameSiblings

public boolean isJcrSameNameSiblings()
Getter for property jcrSameNameSiblings.

Returns:
jcrSameNameSiblings

setJcrSameNameSiblings

public void setJcrSameNameSiblings(boolean value)
Setter for property jcrSameNameSiblings.

Parameters:
value - jcrSameNameSiblings

toString

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


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