org.trails.descriptor
Class CollectionDescriptor
java.lang.Object
org.trails.descriptor.TrailsDescriptor
org.trails.descriptor.TrailsPropertyDescriptor
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
|
| 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 |
LOG
protected static final org.apache.commons.logging.Log LOG
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)
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.