Package org.eclnt.jsfserver.util
Class BeanIntrospector
java.lang.Object
org.eclnt.jsfserver.util.BeanIntrospector
Central class for introspecting properties of a class via reflection.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildBeanPropertyNameFromMethodName(String methodName) Converts name of property access method (starting with "is" or "get") into property name.static StringDerive bean name out of "raw name".static StringbuildMethodNameFromPropertyName(String methodPrefix, String propertyName) Builds method name out of propertyName for setting/getting properties.static booleanreadProperties(Class cl) The list of properties is always stable within one virtual machine - so you can use the list for purposes in which the list is required to be stable.readProperty(Class cl, String propertyName) static void
-
Constructor Details
-
BeanIntrospector
public BeanIntrospector()
-
-
Method Details
-
resetBuffers
public static void resetBuffers() -
readPropertiesAsList
The list of properties is always stable within one virtual machine - so you can use the list for purposes in which the list is required to be stable. Example: if calculating a hash code out of the properties then the sequence of properties must be stable in order to properly calculate the hash code. -
readProperty
public static BeanIntrospector.PropertyIntrospectionInfo readProperty(Class cl, String propertyName) -
readProperties
-
checkIfSimpleDataType
-
buildBeanPropertyNameFromMethodName
Converts name of property access method (starting with "is" or "get") into property name. -
buildBeanPropertyNameFromPartialMethodName
Derive bean name out of "raw name". The "raw name" is the name of the method without "get" or "is". -
buildMethodNameFromPropertyName
Builds method name out of propertyName for setting/getting properties.- Parameters:
methodPrefix- "set,"get","is",...propertyName- The property name, e.g. "firstName"- Returns:
- The full method name e.g. "setFirstName"
-