public class PropertyUtils extends Object
Constructor and Description |
---|
PropertyUtils() |
Modifier and Type | Method and Description |
---|---|
protected Set<Property> |
createPropertySet(Class<? extends Object> type,
BeanAccess bAccess) |
Set<Property> |
getProperties(Class<? extends Object> type) |
Set<Property> |
getProperties(Class<? extends Object> type,
BeanAccess bAccess) |
protected Map<String,Property> |
getPropertiesMap(Class<?> type,
BeanAccess bAccess) |
Property |
getProperty(Class<? extends Object> type,
String name) |
Property |
getProperty(Class<? extends Object> type,
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.
|
protected Map<String,Property> getPropertiesMap(Class<?> type, BeanAccess bAccess) throws IntrospectionException
IntrospectionException
public Set<Property> getProperties(Class<? extends Object> type) throws IntrospectionException
IntrospectionException
public Set<Property> getProperties(Class<? extends Object> type, BeanAccess bAccess) throws IntrospectionException
IntrospectionException
protected Set<Property> createPropertySet(Class<? extends Object> type, BeanAccess bAccess) throws IntrospectionException
IntrospectionException
public Property getProperty(Class<? extends Object> type, String name) throws IntrospectionException
IntrospectionException
public Property getProperty(Class<? extends Object> type, String name, BeanAccess bAccess) throws IntrospectionException
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.Copyright © 2008–2015. All rights reserved.