org.trails.descriptor
Class TrailsClassDescriptor
java.lang.Object
org.trails.descriptor.TrailsDescriptor
org.trails.descriptor.TrailsClassDescriptor
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, IClassDescriptor, IDescriptor, IExtensible
- Direct Known Subclasses:
- EmbeddedDescriptor
public class TrailsClassDescriptor
- extends TrailsDescriptor
- implements IClassDescriptor
This represents all the Trails metadata for a single class.
- See Also:
- Serialized Form
| 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 |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TrailsClassDescriptor
public TrailsClassDescriptor(IClassDescriptor descriptor)
- This is a copy constructor. These need to be clonable for the security
aspect to be able to copy them, so if new properties are added they
should be added here too.
TrailsClassDescriptor
public TrailsClassDescriptor(java.lang.Class type)
TrailsClassDescriptor
public TrailsClassDescriptor(java.lang.Class type,
java.lang.String displayName)
TrailsClassDescriptor
public TrailsClassDescriptor(TrailsClassDescriptor dto)
- Parameters:
dto -
copyPropertyDescriptorsFrom
protected void copyPropertyDescriptorsFrom(IClassDescriptor descriptor)
getPropertyDescriptor
public IPropertyDescriptor getPropertyDescriptor(java.lang.String name)
- Specified by:
getPropertyDescriptor in interface IClassDescriptor
- Parameters:
string -
- Returns:
getPluralDisplayName
public java.lang.String getPluralDisplayName()
- Specified by:
getPluralDisplayName in interface IClassDescriptor
- Returns:
getPropertyDescriptors
public java.util.List<IPropertyDescriptor> getPropertyDescriptors(java.util.List<java.lang.String> properties)
- Specified by:
getPropertyDescriptors in interface IClassDescriptor
getMethodDescriptors
public java.util.List<IMethodDescriptor> getMethodDescriptors()
- Specified by:
getMethodDescriptors in interface IClassDescriptor
- Returns:
- Returns the methodDescriptors.
setMethodDescriptors
public void setMethodDescriptors(java.util.List<IMethodDescriptor> methodDescriptors)
- Specified by:
setMethodDescriptors in interface IClassDescriptor
- Parameters:
methodDescriptors - The methodDescriptors to set.
getPropertyDescriptors
public java.util.List<IPropertyDescriptor> getPropertyDescriptors()
- Specified by:
getPropertyDescriptors in interface IClassDescriptor
- Returns:
- Returns the propertyDescriptors.
setPropertyDescriptors
public void setPropertyDescriptors(java.util.List<IPropertyDescriptor> propertyDescriptors)
- Specified by:
setPropertyDescriptors in interface IClassDescriptor
- Parameters:
propertyDescriptors - The propertyDescriptors to set.
getIdentifierDescriptor
public IPropertyDescriptor getIdentifierDescriptor()
- Specified by:
getIdentifierDescriptor in interface IClassDescriptor
isChild
public boolean isChild()
- Specified by:
isChild in interface IClassDescriptor
- Returns:
- Returns the child.
setChild
public void setChild(boolean child)
- Specified by:
setChild in interface IClassDescriptor
- Parameters:
child - The child to set.
clone
public java.lang.Object clone()
- Specified by:
clone in interface IDescriptor- Overrides:
clone in class TrailsDescriptor
copyFrom
public void copyFrom(IDescriptor descriptor)
- Overrides:
copyFrom in class TrailsDescriptor
isAllowRemove
public boolean isAllowRemove()
- Specified by:
isAllowRemove in interface IClassDescriptor
setAllowRemove
public void setAllowRemove(boolean allowRemove)
- Specified by:
setAllowRemove in interface IClassDescriptor
isAllowSave
public boolean isAllowSave()
- Specified by:
isAllowSave in interface IClassDescriptor
setAllowSave
public void setAllowSave(boolean allowSave)
- Specified by:
setAllowSave in interface IClassDescriptor
getHasCyclicRelationships
public boolean getHasCyclicRelationships()
- Specified by:
getHasCyclicRelationships in interface IClassDescriptor
setHasCyclicRelationships
public void setHasCyclicRelationships(boolean hasBidirectionalRelationship)
- Specified by:
setHasCyclicRelationships in interface IClassDescriptor
toString
public java.lang.String toString()
- Added toString method to help with unit testing debugging.
- Overrides:
toString in class java.lang.Object
Copyright © 2004-2008. All Rights Reserved.