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) |
boolean |
isAllowReadOnlyProperties() |
boolean |
isSkipMissingProperties() |
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)
public Set<Property> getProperties(Class<? extends Object> type, BeanAccess bAccess)
protected Set<Property> createPropertySet(Class<? extends Object> type, BeanAccess bAccess)
public Property getProperty(Class<? extends Object> type, String name, BeanAccess bAccess)
public void setBeanAccess(BeanAccess beanAccess)
public void setAllowReadOnlyProperties(boolean allowReadOnlyProperties)
public boolean isAllowReadOnlyProperties()
public void setSkipMissingProperties(boolean skipMissingProperties)
skipMissingProperties
- true if missing properties should be skipped, false otherwise.public boolean isSkipMissingProperties()
Copyright © 2008–2019. All rights reserved.