|
|||||||||
| Home >> All >> org >> progeeks >> [ meta overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.progeeks.meta
Class DeferredPropertyType

java.lang.Objectorg.progeeks.meta.DeferredPropertyType
- All Implemented Interfaces:
- PropertyType
- public class DeferredPropertyType
- extends java.lang.Object
- implements PropertyType
- extends java.lang.Object
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.
- Version:
- $Revision: 1.3 $
| Field Summary | |
private PropertyType |
alternateType
|
private java.lang.String |
metaClassName
|
| 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. |
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()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
metaClassName
private java.lang.String metaClassName
alternateType
private PropertyType alternateType
| Constructor Detail |
DeferredPropertyType
public DeferredPropertyType(java.lang.String metaClassName)
- Creates a deferred type the will resolve to the specified meta-class
when resolution is requested. If the meta-class does not exist then
an exception will be thrown.
DeferredPropertyType
public DeferredPropertyType(java.lang.String metaClassName, PropertyType alternateType)
- Creates a deferred type the will resolve to the specified meta-class
when resolution is requested. If the meta-class does not exist then
the alternate type is returned.
| Method Detail |
resolveType
public PropertyType resolveType(MetaClassRegistry registry)
- Returns the replacement property type as can be
resolved from the specified class registry.
getBaseClass
public java.lang.Class getBaseClass()
- Returns the Java class upon which this property type
is based.
- Specified by:
getBaseClassin interfacePropertyType
isInstance
public boolean isInstance(java.lang.Object obj)
- Returns true if the specified object is an instance
of this type.
- Specified by:
isInstancein interfacePropertyType
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> progeeks >> [ meta overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.progeeks.meta.DeferredPropertyType