org.yaml.snakeyaml.introspector
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
IntrospectionExceptionpublic Set<Property> getProperties(Class<? extends Object> type) throws IntrospectionException
IntrospectionExceptionpublic Set<Property> getProperties(Class<? extends Object> type, BeanAccess bAccess) throws IntrospectionException
IntrospectionExceptionprotected Set<Property> createPropertySet(Class<? extends Object> type, BeanAccess bAccess) throws IntrospectionException
IntrospectionExceptionpublic Property getProperty(Class<? extends Object> type, String name) throws IntrospectionException
IntrospectionExceptionpublic Property getProperty(Class<? extends Object> type, String name, BeanAccess bAccess) throws IntrospectionException
IntrospectionExceptionpublic 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.