org.progeeks.meta
Interface PropertyType

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
EnumeratedPropertyType
All Known Implementing Classes:
ClassEnumeratedPropertyType, ClassPropertyType, ContainerPropertyType, DateTimeType, DeferredPropertyType, DirectoryType, FileType, FilteredFileType, HibernateAnnotations.AccessPropertyType, HibernateAnnotations.CascadePropertyType, HibernateAnnotations.FetchPropertyType, HibernateAnnotations.LazyPropertyType, HibernateAnnotations.OptimisticLockingPropertyType, HibernateAnnotations.PolymorphismPropertyType, HibernateAnnotations.UnsavedValuePropertyType, ListPropertyType, LongStringType, MetaClassPropertyType, MonthType, PercentType, RangedNumberType

public interface PropertyType
extends java.io.Serializable

Represents a property type of a meta-object. This is an additional abstraction on top of the Java Class object to provide more flexible subtyping. All PropertyTypes will have a base Java class that they sub-type or represent. This is useful as a fall-back when a more specific handler is not available. Additionally, PropertyTypes can be used to test an Object's membership in the type family.

Version:
$Revision: 1.4 $
Author:
Paul Speed

Method Summary
 java.lang.Class getBaseClass()
          Returns the Java class upon which this property type is based.
 java.util.Iterator getSuperTypes()
          Returns an iterator containing all potential supertypes for this type.
 boolean isAssignableFrom(PropertyType type)
          Returns true if the specified type is the same as or a subclass of this property type.
 boolean isInstance(java.lang.Object obj)
          Returns true if the specified object is an instance of this type.
 

Method Detail

getBaseClass

java.lang.Class getBaseClass()
Returns the Java class upon which this property type is based.


isInstance

boolean isInstance(java.lang.Object obj)
Returns true if the specified object is an instance of this type.


isAssignableFrom

boolean isAssignableFrom(PropertyType type)
Returns true if the specified type is the same as or a subclass of this property type.


getSuperTypes

java.util.Iterator getSuperTypes()
Returns an iterator containing all potential supertypes for this type.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.