|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.core.util.PropertyUtils
public final class PropertyUtils
Utilities to deal with property meta data.
Method Summary | |
---|---|
static void |
checkPropertySetType(Class<?> propertySetType) Checks of the given type is a property set types. |
static boolean |
isPropertyMethod(Method method) Checks if the given method is a property accessor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void checkPropertySetType(Class<?> propertySetType) throws NullPointerException, IllegalArgumentException
Property set types are interfaces marked with a PropertySet
annotation.
propertySetType
- the type to check.
NullPointerException
- if
propertySetType
is
null
.
IllegalArgumentException
- of
propertySetType
is not a property set type.
public static boolean isPropertyMethod(Method method) throws NullPointerException
method
is a property accessor. The property accessor is not required to provide a
get
prefix.
method
- the method to check for being a property accessor.
true
if it is a property descriptor,
false
otherwise.
NullPointerException
- if
method
is
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |