|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.ClassPropertyType
public class ClassPropertyType
Property type implementation that represents a Java class directly.
Constructor Summary | |
---|---|
|
ClassPropertyType(java.lang.Class type)
|
protected |
ClassPropertyType(java.lang.Class type,
boolean returnSuperTypes)
Constructor allowing subclasses to configure the returning of supertypes. |
Method Summary | |
---|---|
static java.lang.Class |
convertPrimitive(java.lang.Class type)
If the specified class is a primitive class then the wrapper version of the class is returned. |
protected java.util.Iterator |
createRawSuperTypeIterator()
Called by getSuperTypes() to create the Iterator and can be used for custom configuration of the iterator as necessary. |
boolean |
equals(java.lang.Object o)
|
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. |
int |
hashCode()
|
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. |
java.lang.String |
toString()
|
protected PropertyType |
wrapRawSuperType(java.lang.Object o)
Called to wrap the specified class in a PropertyType. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassPropertyType(java.lang.Class type)
protected ClassPropertyType(java.lang.Class type, boolean returnSuperTypes)
Method Detail |
---|
public static java.lang.Class convertPrimitive(java.lang.Class type)
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
protected java.util.Iterator createRawSuperTypeIterator()
protected PropertyType wrapRawSuperType(java.lang.Object o)
public java.util.Iterator getSuperTypes()
getSuperTypes
in interface PropertyType
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |