org.trails.descriptor
Class TrailsPropertyDescriptor

java.lang.Object
  extended by org.trails.descriptor.TrailsDescriptor
      extended by 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

Field Summary
 
Fields inherited from class org.trails.descriptor.TrailsDescriptor
LOG, type
 
Fields inherited from interface org.trails.descriptor.IPropertyDescriptor
DEFAULT_LENGTH, UNDEFINED_INDEX
 
Constructor Summary
TrailsPropertyDescriptor(java.lang.Class beanType, java.lang.Class type)
           
TrailsPropertyDescriptor(java.lang.Class beanType, IPropertyDescriptor descriptor)
          It's kinda like an old-skool C++ copy constructor
TrailsPropertyDescriptor(java.lang.Class beanType, java.lang.String name, java.lang.Class type)
           
TrailsPropertyDescriptor(TrailsPropertyDescriptor dto)
           
 
Method Summary
 java.lang.Object clone()
           
 void copyFrom(IDescriptor descriptor)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getBeanType()
           
 java.lang.String getFormat()
           
 int getIndex()
           
 int getLength()
           
 java.lang.String getName()
           
 java.lang.Class getPropertyType()
           
 boolean isBoolean()
           
 boolean isCollection()
           
 boolean isDate()
           
 boolean isEmbedded()
           
 boolean isIdentifier()
           
 boolean isLarge()
           
 boolean isNumeric()
           
 boolean isObjectReference()
           
 boolean isReadOnly()
           
 boolean isRequired()
           
 boolean isRichText()
           
 boolean isSearchable()
           
 boolean isString()
           
 boolean isSummary()
           
 void setBeanType(java.lang.Class beanType)
           
 void setFormat(java.lang.String format)
           
 void setIndex(int index)
           
 void setLarge(boolean large)
           
 void setLength(int length)
           
 void setName(java.lang.String name)
           
 void setReadOnly(boolean readOnly)
           
 void setRequired(boolean required)
           
 void setRichText(boolean richText)
           
 void setSearchable(boolean searchable)
           
 void setSummary(boolean summary)
           
 
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
 

Constructor Detail

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 -
Method Detail

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.