org.trails.descriptor
Class CollectionDescriptor

java.lang.Object
  extended by org.trails.descriptor.TrailsDescriptor
      extended by org.trails.descriptor.TrailsPropertyDescriptor
          extended by org.trails.descriptor.CollectionDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IDescriptor, IExtensible, IPropertyDescriptor

public class CollectionDescriptor
extends TrailsPropertyDescriptor

See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class org.trails.descriptor.TrailsDescriptor
type
 
Fields inherited from interface org.trails.descriptor.IPropertyDescriptor
DEFAULT_LENGTH, UNDEFINED_INDEX
 
Constructor Summary
CollectionDescriptor(java.lang.Class beanType, CollectionDescriptor collectionDescriptor)
           
CollectionDescriptor(java.lang.Class beanType, IPropertyDescriptor descriptor)
           
CollectionDescriptor(java.lang.Class beanType, java.lang.String name, java.lang.Class type)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getAddExpression()
           
 java.lang.Class getElementType()
           
 java.lang.String getInverseProperty()
           
 java.lang.String getRemoveExpression()
           
 java.lang.String getSwapExpression()
           
 boolean isAllowRemove()
           
 boolean isChildRelationship()
           
 boolean isCollection()
          (non-Javadoc)
 boolean isOneToMany()
          Is this a OneToMany collection? or a ManyToMany collection?
 void setAddExpression(java.lang.String addExpression)
           
 void setAllowRemove(boolean allowRemove)
           
 void setChildRelationship(boolean childRelationship)
           
 void setElementType(java.lang.Class elementType)
           
 void setInverseProperty(java.lang.String inverseProperty)
           
 void setOneToMany(boolean oneToMany)
           
 void setRemoveExpression(java.lang.String removeExpression)
           
 void setSwapExpression(java.lang.String swapExpression)
           
 
Methods inherited from class org.trails.descriptor.TrailsPropertyDescriptor
copyFrom, equals, getBeanType, getFormat, getIndex, getLength, getName, getPropertyType, isBoolean, isDate, isEmbedded, isIdentifier, isLarge, isNumeric, isObjectReference, isReadOnly, isRequired, isRichText, isSearchable, isString, isSummary, setBeanType, setFormat, setIndex, setLarge, setLength, setName, setReadOnly, setRequired, setRichText, setSearchable, setSummary
 
Methods inherited from class org.trails.descriptor.TrailsDescriptor
addExtension, addExtension, copyExtensionsFrom, getDisplayName, getExtension, getExtension, getExtensions, getShortDescription, getType, isHidden, removeExtension, removeExtension, setDisplayName, setExtensions, setHidden, setShortDescription, setType, supportsExtension, supportsExtension
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.trails.descriptor.IPropertyDescriptor
getShortDescription, setShortDescription
 
Methods inherited from interface org.trails.descriptor.IDescriptor
getDisplayName, isHidden, setDisplayName, setHidden
 
Methods inherited from interface org.trails.descriptor.IExtensible
addExtension, addExtension, getExtension, getExtension, getExtensions, removeExtension, removeExtension, supportsExtension, supportsExtension
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

CollectionDescriptor

public CollectionDescriptor(java.lang.Class beanType,
                            IPropertyDescriptor descriptor)

CollectionDescriptor

public CollectionDescriptor(java.lang.Class beanType,
                            CollectionDescriptor collectionDescriptor)

CollectionDescriptor

public CollectionDescriptor(java.lang.Class beanType,
                            java.lang.String name,
                            java.lang.Class type)
Method Detail

isCollection

public boolean isCollection()
(non-Javadoc)

Specified by:
isCollection in interface IPropertyDescriptor
Overrides:
isCollection in class TrailsPropertyDescriptor
Returns:
Returns the collection.
See Also:
TrailsPropertyDescriptor.isCollection()

getElementType

public java.lang.Class getElementType()
Returns:
Returns the elementType.

setElementType

public void setElementType(java.lang.Class elementType)
Parameters:
elementType - The elementType to set.

getInverseProperty

public java.lang.String getInverseProperty()

setInverseProperty

public void setInverseProperty(java.lang.String inverseProperty)

isOneToMany

public boolean isOneToMany()
Is this a OneToMany collection? or a ManyToMany collection?


setOneToMany

public void setOneToMany(boolean oneToMany)

isChildRelationship

public boolean isChildRelationship()
Returns:
Returns the childRelationship.

setChildRelationship

public void setChildRelationship(boolean childRelationship)
Parameters:
childRelationship - The childRelationship to set.

getAddExpression

public java.lang.String getAddExpression()

setAddExpression

public void setAddExpression(java.lang.String addExpression)

getRemoveExpression

public java.lang.String getRemoveExpression()

setRemoveExpression

public void setRemoveExpression(java.lang.String removeExpression)

getSwapExpression

public java.lang.String getSwapExpression()

setSwapExpression

public void setSwapExpression(java.lang.String swapExpression)

isAllowRemove

public boolean isAllowRemove()

setAllowRemove

public void setAllowRemove(boolean allowRemove)

clone

public java.lang.Object clone()
Specified by:
clone in interface IDescriptor
Overrides:
clone in class TrailsPropertyDescriptor


Copyright © 2004-2008. All Rights Reserved.