public class PropertyUtils
extends java.lang.Object
Constructor and Description |
---|
PropertyUtils() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Property> |
getProperties(java.lang.Class<? extends java.lang.Object> type) |
java.util.Set<Property> |
getProperties(java.lang.Class<? extends java.lang.Object> type,
BeanAccess bAccess) |
Property |
getProperty(java.lang.Class<? extends java.lang.Object> type,
java.lang.String name) |
Property |
getProperty(java.lang.Class<? extends java.lang.Object> type,
java.lang.String name,
BeanAccess bAccess) |
void |
setAllowReadOnlyProperties(boolean allowReadOnlyProperties) |
void |
setBeanAccess(BeanAccess beanAccess) |
void |
setSkipMissingProperties(boolean skipMissingProperties)
Skip properties that are missing during deserialization of YAML to a Java
object.
|
public java.util.Set<Property> getProperties(java.lang.Class<? extends java.lang.Object> type) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public java.util.Set<Property> getProperties(java.lang.Class<? extends java.lang.Object> type, BeanAccess bAccess) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public Property getProperty(java.lang.Class<? extends java.lang.Object> type, java.lang.String name) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public Property getProperty(java.lang.Class<? extends java.lang.Object> type, java.lang.String name, BeanAccess bAccess) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public void setBeanAccess(BeanAccess beanAccess)
public void setAllowReadOnlyProperties(boolean allowReadOnlyProperties)
public void setSkipMissingProperties(boolean skipMissingProperties)
skipMissingProperties
- true if missing properties should be skipped, false otherwise.