org.trails.descriptor
Class EmbeddedDescriptor

java.lang.Object
  extended by org.trails.descriptor.TrailsDescriptor
      extended by org.trails.descriptor.TrailsClassDescriptor
          extended by org.trails.descriptor.EmbeddedDescriptor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IClassDescriptor, IDescriptor, IExtensible, IIdentifierDescriptor, IPropertyDescriptor

public class EmbeddedDescriptor
extends TrailsClassDescriptor
implements IIdentifierDescriptor

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
EmbeddedDescriptor(java.lang.Class beanType, IClassDescriptor descriptor)
           
EmbeddedDescriptor(java.lang.Class beanType, java.lang.String displayName, java.lang.Class type)
           
 
Method Summary
 java.lang.Object clone()
           
 void copyFrom(IDescriptor descriptor)
           
 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 isGenerated()
           
 boolean isIdentifier()
           
 boolean isLarge()
           
 boolean isNumeric()
           
 boolean isObjectReference()
           
 boolean isOwningObjectReference()
           
 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 setGenerated(boolean generated)
           
 void setIdentifier(boolean identifier)
           
 void setIndex(int index)
           
 void setLarge(boolean large)
           
 void setLength(int length)
           
 void setName(java.lang.String name)
           
 void setPropertyType(java.lang.Class propertyType)
           
 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.TrailsClassDescriptor
copyPropertyDescriptorsFrom, getHasCyclicRelationships, getIdentifierDescriptor, getMethodDescriptors, getPluralDisplayName, getPropertyDescriptor, getPropertyDescriptors, getPropertyDescriptors, isAllowRemove, isAllowSave, isChild, setAllowRemove, setAllowSave, setChild, setHasCyclicRelationships, setMethodDescriptors, setPropertyDescriptors, toString
 
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
 
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
 
Methods inherited from interface org.trails.descriptor.IClassDescriptor
getDisplayName, getShortDescription, getType, setDisplayName, setShortDescription
 

Constructor Detail

EmbeddedDescriptor

public EmbeddedDescriptor(java.lang.Class beanType,
                          java.lang.String displayName,
                          java.lang.Class type)

EmbeddedDescriptor

public EmbeddedDescriptor(java.lang.Class beanType,
                          IClassDescriptor descriptor)
Method Detail

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:

isOwningObjectReference

public boolean isOwningObjectReference()

isEmbedded

public boolean isEmbedded()
Specified by:
isEmbedded in interface IPropertyDescriptor

getPropertyType

public java.lang.Class getPropertyType()
Specified by:
getPropertyType in interface IPropertyDescriptor
Returns:

setPropertyType

public void setPropertyType(java.lang.Class propertyType)

getIndex

public int getIndex()
Specified by:
getIndex in interface IPropertyDescriptor

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.

setIndex

public void setIndex(int index)
Specified by:
setIndex 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

isCollection

public boolean isCollection()
Specified by:
isCollection in interface IPropertyDescriptor

clone

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

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

isLarge

public boolean isLarge()
Specified by:
isLarge in interface IPropertyDescriptor

setLarge

public void setLarge(boolean large)
Specified by:
setLarge in interface IPropertyDescriptor

getLength

public int getLength()
Specified by:
getLength in interface IPropertyDescriptor

setLength

public void setLength(int length)
Specified by:
setLength 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

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

isRichText

public boolean isRichText()
Specified by:
isRichText in interface IPropertyDescriptor

setRichText

public void setRichText(boolean richText)
Specified by:
setRichText 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.

copyFrom

public void copyFrom(IDescriptor descriptor)
Overrides:
copyFrom in class TrailsClassDescriptor

isIdentifier

public boolean isIdentifier()
Specified by:
isIdentifier in interface IPropertyDescriptor

setIdentifier

public void setIdentifier(boolean identifier)

isGenerated

public boolean isGenerated()
Specified by:
isGenerated in interface IIdentifierDescriptor

setGenerated

public void setGenerated(boolean generated)
Specified by:
setGenerated in interface IIdentifierDescriptor


Copyright © 2004-2008. All Rights Reserved.