|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.ClassPropertyType
org.progeeks.meta.ClassEnumeratedPropertyType
public class ClassEnumeratedPropertyType
Extends ClassPropertyType to implement the EnumeratedPropertyType interface. Usually the value list is a list of integer objects for normal enumerated type, but the values can be anything. Almost universally, this class will be subclassed to a specific type.
Constructor Summary | |
---|---|
ClassEnumeratedPropertyType(java.lang.Class type,
java.lang.Object[] values)
|
|
ClassEnumeratedPropertyType(int[] ints)
Creates a new enumerated type of integer that only allows a set of Integer values converted from the specified array of ints. |
|
ClassEnumeratedPropertyType(java.lang.Integer[] values)
Creates a new enumerated type of integer that only allows the specified Integer values. |
Method Summary | |
---|---|
java.util.List |
getEnumeratedValues()
Returns the list of acceptable values. |
boolean |
isEnumeratedValue(java.lang.Object object)
Returns true if the specified value is a valid value for this enumerated type. |
boolean |
isInstance(java.lang.Object obj)
Returns true if the specified object is an instance of this type and also a valid enumerated value. |
protected PropertyType |
wrapRawSuperType(java.lang.Object o)
Called to wrap the specified class in a PropertyType. |
Methods inherited from class org.progeeks.meta.ClassPropertyType |
---|
convertPrimitive, createRawSuperTypeIterator, equals, getBaseClass, getSuperTypes, hashCode, isAssignableFrom, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.progeeks.meta.PropertyType |
---|
getBaseClass, getSuperTypes, isAssignableFrom |
Constructor Detail |
---|
public ClassEnumeratedPropertyType(java.lang.Integer[] values)
public ClassEnumeratedPropertyType(int[] ints)
public ClassEnumeratedPropertyType(java.lang.Class type, java.lang.Object[] values)
Method Detail |
---|
public boolean isInstance(java.lang.Object obj)
isInstance
in interface PropertyType
isInstance
in class ClassPropertyType
public java.util.List getEnumeratedValues()
getEnumeratedValues
in interface EnumeratedPropertyType
public boolean isEnumeratedValue(java.lang.Object object)
isEnumeratedValue
in interface EnumeratedPropertyType
protected PropertyType wrapRawSuperType(java.lang.Object o)
wrapRawSuperType
in class ClassPropertyType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |