de.smartics.properties.spi.core.util
Class PropertyUtils

Package class diagram package PropertyUtils
java.lang.Object
  extended by de.smartics.properties.spi.core.util.PropertyUtils

public final class PropertyUtils
     
     
extends Object

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

checkPropertySetType

public static void checkPropertySetType(Class<?> propertySetType)
                                 throws NullPointerException,
                                        IllegalArgumentException
Checks of the given type is a property set types.

Property set types are interfaces marked with a PropertySet annotation.

Parameters:
propertySetType - the type to check.
Throws:
NullPointerException - if propertySetType is null.
IllegalArgumentException - of propertySetType is not a property set type.

isPropertyMethod

public static boolean isPropertyMethod(Method method)
                                throws NullPointerException
Checks if the given method is a property accessor. The property accessor is not required to provide a get prefix.

Parameters:
method - the method to check for being a property accessor.
Returns:
true if it is a property descriptor, false otherwise.
Throws:
NullPointerException - if method is null.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.