org.trails.descriptor
Class TrailsPropertyDescriptor
java.lang.Object
org.trails.descriptor.TrailsDescriptor
org.trails.descriptor.TrailsPropertyDescriptor
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, IDescriptor, IExtensible, IPropertyDescriptor
- Direct Known Subclasses:
- CollectionDescriptor, IdentifierDescriptor, ObjectReferenceDescriptor
public class TrailsPropertyDescriptor
- extends TrailsDescriptor
- implements IPropertyDescriptor
- Author:
- fus8882
TODO To change the template for this generated type comment go to Window -
Preferences - Java - Code Style - Code Templates
- 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 |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrailsPropertyDescriptor
public TrailsPropertyDescriptor(java.lang.Class beanType,
IPropertyDescriptor descriptor)
- It's kinda like an old-skool C++ copy constructor
TrailsPropertyDescriptor
public TrailsPropertyDescriptor(java.lang.Class beanType,
java.lang.Class type)
TrailsPropertyDescriptor
public TrailsPropertyDescriptor(java.lang.Class beanType,
java.lang.String name,
java.lang.Class type)
TrailsPropertyDescriptor
public TrailsPropertyDescriptor(TrailsPropertyDescriptor dto)
- Parameters:
dto -
getPropertyType
public java.lang.Class getPropertyType()
- Specified by:
getPropertyType in interface IPropertyDescriptor
- Returns:
isNumeric
public boolean isNumeric()
- Specified by:
isNumeric in interface IPropertyDescriptor
- Returns:
isBoolean
public boolean isBoolean()
- Specified by:
isBoolean in interface IPropertyDescriptor
isDate
public boolean isDate()
- Specified by:
isDate in interface IPropertyDescriptor
- Returns:
isString
public boolean isString()
- Specified by:
isString in interface IPropertyDescriptor
- Returns:
isObjectReference
public boolean isObjectReference()
- Specified by:
isObjectReference in interface IPropertyDescriptor
- Returns:
getIndex
public int getIndex()
- Specified by:
getIndex in interface IPropertyDescriptor
setIndex
public void setIndex(int index)
- Specified by:
setIndex in interface IPropertyDescriptor
isRequired
public boolean isRequired()
- Specified by:
isRequired in interface IPropertyDescriptor
- Returns:
- Returns the required.
setRequired
public void setRequired(boolean required)
- Specified by:
setRequired in interface IPropertyDescriptor
- Parameters:
required - The required to set.
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly in interface IPropertyDescriptor
- Returns:
setReadOnly
public void setReadOnly(boolean readOnly)
- Specified by:
setReadOnly in interface IPropertyDescriptor
- Parameters:
readOnly - The readOnly to set.
isIdentifier
public boolean isIdentifier()
- Specified by:
isIdentifier in interface IPropertyDescriptor
- Returns:
- Returns the identifier.
isCollection
public boolean isCollection()
- Specified by:
isCollection in interface IPropertyDescriptor
- Returns:
- Returns the collection.
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
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getLength
public int getLength()
- Specified by:
getLength in interface IPropertyDescriptor
setLength
public void setLength(int length)
- Specified by:
setLength in interface IPropertyDescriptor
isLarge
public boolean isLarge()
- Specified by:
isLarge in interface IPropertyDescriptor
setLarge
public void setLarge(boolean large)
- Specified by:
setLarge in interface IPropertyDescriptor
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat in interface IPropertyDescriptor
setFormat
public void setFormat(java.lang.String format)
- Specified by:
setFormat in interface IPropertyDescriptor
isSearchable
public boolean isSearchable()
- Specified by:
isSearchable in interface IPropertyDescriptor
setSearchable
public void setSearchable(boolean searchable)
- Specified by:
setSearchable in interface IPropertyDescriptor
isSummary
public boolean isSummary()
- Specified by:
isSummary in interface IPropertyDescriptor
setSummary
public void setSummary(boolean summary)
- Specified by:
setSummary in interface IPropertyDescriptor
isRichText
public boolean isRichText()
- Specified by:
isRichText in interface IPropertyDescriptor
setRichText
public void setRichText(boolean richText)
- Specified by:
setRichText in interface IPropertyDescriptor
isEmbedded
public boolean isEmbedded()
- Specified by:
isEmbedded in interface IPropertyDescriptor
getBeanType
public java.lang.Class getBeanType()
- Specified by:
getBeanType in interface IPropertyDescriptor
setBeanType
public void setBeanType(java.lang.Class beanType)
- Specified by:
setBeanType in interface IPropertyDescriptor
getName
public java.lang.String getName()
- Specified by:
getName in interface IPropertyDescriptor
- Returns:
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface IPropertyDescriptor
Copyright © 2004-2008. All Rights Reserved.