|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.DeferredPropertyType
public class DeferredPropertyType
Represents an unresolved property type of a meta-object. This is to support deferred resolution of property types within a meta-class. The actual functionality of the PropertyType implementation throws UnsupportedOperationExceptions since these operations cannot be done without resolving the type. When the type has been resolved within the meta-class it will be replaced with the real type.
Constructor Summary | |
---|---|
DeferredPropertyType(java.lang.String metaClassName)
Creates a deferred type the will resolve to the specified meta-class when resolution is requested. |
|
DeferredPropertyType(java.lang.String metaClassName,
PropertyType alternateType)
Creates a deferred type the will resolve to the specified meta-class when resolution is requested. |
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. |
PropertyType |
resolveType(MetaClassRegistry registry)
Returns the replacement property type as can be resolved from the specified class registry. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeferredPropertyType(java.lang.String metaClassName)
public DeferredPropertyType(java.lang.String metaClassName, PropertyType alternateType)
Method Detail |
---|
public PropertyType resolveType(MetaClassRegistry registry)
public java.lang.Class getBaseClass()
getBaseClass
in interface PropertyType
public boolean isInstance(java.lang.Object obj)
isInstance
in interface PropertyType
public boolean isAssignableFrom(PropertyType type)
isAssignableFrom
in interface PropertyType
public java.util.Iterator getSuperTypes()
getSuperTypes
in interface PropertyType
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |