org.tynamo.descriptor
Class TynamoPropertyDescriptorImpl

java.lang.Object
  extended by org.tynamo.descriptor.TynamoDescriptor
      extended by org.tynamo.descriptor.TynamoPropertyDescriptorImpl
All Implemented Interfaces:
Serializable, Cloneable, Descriptor, Extensible, TynamoPropertyDescriptor
Direct Known Subclasses:
CollectionDescriptor, IdentifierDescriptorImpl, ObjectReferenceDescriptor

public class TynamoPropertyDescriptorImpl
extends TynamoDescriptor
implements TynamoPropertyDescriptor

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.tynamo.descriptor.TynamoDescriptor
LOG, type
 
Fields inherited from interface org.tynamo.descriptor.TynamoPropertyDescriptor
DEFAULT_LENGTH, UNDEFINED_INDEX
 
Constructor Summary
TynamoPropertyDescriptorImpl(Class beanType, Class type)
           
TynamoPropertyDescriptorImpl(Class beanType, TynamoPropertyDescriptor descriptor)
          It's kinda like an old-skool C++ copy constructor
TynamoPropertyDescriptorImpl(TynamoPropertyDescriptorImpl dto)
           
 
Method Summary
 Object clone()
           
 void copyFrom(Descriptor descriptor)
           
 boolean equals(Object obj)
           
 Class getBeanType()
           
 String getFormat()
           
 int getIndex()
           
 int getLength()
           
 String getName()
           
 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(Class beanType)
           
 void setFormat(String format)
           
 void setIndex(int index)
           
 void setLarge(boolean large)
           
 void setLength(int length)
           
 void setName(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.tynamo.descriptor.TynamoDescriptor
addExtension, addExtension, copyExtensionsFrom, getExtension, getExtension, getExtensions, getType, isHidden, removeExtension, removeExtension, setExtensions, setHidden, setType, supportsExtension, supportsExtension
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tynamo.descriptor.Descriptor
isHidden, setHidden
 
Methods inherited from interface org.tynamo.descriptor.Extensible
addExtension, addExtension, getExtension, getExtension, getExtensions, removeExtension, removeExtension, supportsExtension, supportsExtension
 

Constructor Detail

TynamoPropertyDescriptorImpl

public TynamoPropertyDescriptorImpl(Class beanType,
                                    TynamoPropertyDescriptor descriptor)
It's kinda like an old-skool C++ copy constructor


TynamoPropertyDescriptorImpl

public TynamoPropertyDescriptorImpl(Class beanType,
                                    Class type)

TynamoPropertyDescriptorImpl

public TynamoPropertyDescriptorImpl(TynamoPropertyDescriptorImpl dto)
Parameters:
dto -
Method Detail

getPropertyType

public Class getPropertyType()
Specified by:
getPropertyType in interface TynamoPropertyDescriptor
Returns:

isNumeric

public boolean isNumeric()
Specified by:
isNumeric in interface TynamoPropertyDescriptor
Returns:

isBoolean

public boolean isBoolean()
Specified by:
isBoolean in interface TynamoPropertyDescriptor

isDate

public boolean isDate()
Specified by:
isDate in interface TynamoPropertyDescriptor
Returns:

isString

public boolean isString()
Specified by:
isString in interface TynamoPropertyDescriptor
Returns:

isObjectReference

public boolean isObjectReference()
Specified by:
isObjectReference in interface TynamoPropertyDescriptor
Returns:

getIndex

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

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface TynamoPropertyDescriptor

isRequired

public boolean isRequired()
Specified by:
isRequired in interface TynamoPropertyDescriptor
Returns:
Returns the required.

setRequired

public void setRequired(boolean required)
Specified by:
setRequired in interface TynamoPropertyDescriptor
Parameters:
required - The required to set.

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface TynamoPropertyDescriptor
Returns:

setReadOnly

public void setReadOnly(boolean readOnly)
Specified by:
setReadOnly in interface TynamoPropertyDescriptor
Parameters:
readOnly - The readOnly to set.

isIdentifier

public boolean isIdentifier()
Specified by:
isIdentifier in interface TynamoPropertyDescriptor
Returns:
Returns the identifier.

isCollection

public boolean isCollection()
Specified by:
isCollection in interface TynamoPropertyDescriptor
Returns:
Returns the collection.

clone

public Object clone()
Specified by:
clone in interface Descriptor
Overrides:
clone in class TynamoDescriptor

copyFrom

public void copyFrom(Descriptor descriptor)
Overrides:
copyFrom in class TynamoDescriptor

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getLength

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

setLength

public void setLength(int length)
Specified by:
setLength in interface TynamoPropertyDescriptor

isLarge

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

setLarge

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

getFormat

public String getFormat()
Specified by:
getFormat in interface TynamoPropertyDescriptor

setFormat

public void setFormat(String format)
Specified by:
setFormat in interface TynamoPropertyDescriptor

isSearchable

public boolean isSearchable()
Specified by:
isSearchable in interface TynamoPropertyDescriptor

setSearchable

public void setSearchable(boolean searchable)
Specified by:
setSearchable in interface TynamoPropertyDescriptor

isSummary

public boolean isSummary()
Specified by:
isSummary in interface TynamoPropertyDescriptor

setSummary

public void setSummary(boolean summary)
Specified by:
setSummary in interface TynamoPropertyDescriptor

isRichText

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

setRichText

public void setRichText(boolean richText)
Specified by:
setRichText in interface TynamoPropertyDescriptor

isEmbedded

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

getBeanType

public Class getBeanType()
Specified by:
getBeanType in interface TynamoPropertyDescriptor

setBeanType

public void setBeanType(Class beanType)
Specified by:
setBeanType in interface TynamoPropertyDescriptor

getName

public String getName()
Specified by:
getName in interface TynamoPropertyDescriptor
Returns:

setName

public void setName(String name)
Specified by:
setName in interface TynamoPropertyDescriptor


Copyright © 2004-2009. All Rights Reserved.