org.tynamo.descriptor
Class TynamoPropertyDescriptorImpl
java.lang.Object
org.tynamo.descriptor.TynamoDescriptor
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
- See Also:
- Serialized Form
| Methods inherited from class org.tynamo.descriptor.TynamoDescriptor |
addExtension, addExtension, copyExtensionsFrom, getBeanType, getExtension, getExtension, getExtensions, getType, isNonVisual, removeExtension, removeExtension, setBeanType, setExtensions, setNonVisual, supportsExtension, supportsExtension |
TynamoPropertyDescriptorImpl
public TynamoPropertyDescriptorImpl(Class beanType,
TynamoPropertyDescriptor descriptor)
- It's kinda like an old-skool C++ copy constructor
TynamoPropertyDescriptorImpl
public TynamoPropertyDescriptorImpl(Class beanType,
Class propertyType)
TynamoPropertyDescriptorImpl
public TynamoPropertyDescriptorImpl(Class beanType,
String name,
Class propertyType)
TynamoPropertyDescriptorImpl
public TynamoPropertyDescriptorImpl(TynamoPropertyDescriptorImpl dto)
- Parameters:
dto -
getPropertyType
public Class getPropertyType()
- Specified by:
getPropertyType in interface TynamoPropertyDescriptor
- Returns:
setPropertyType
public void setPropertyType(Class propertyType)
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:
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
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
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-2012. All Rights Reserved.