Package org.yaml.snakeyaml.introspector
Class PropertyUtils
- java.lang.Object
-
- org.yaml.snakeyaml.introspector.PropertyUtils
-
public class PropertyUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)PropertygetProperty(Class<? extends Object> type, String name)PropertygetProperty(Class<? extends Object> type, String name, BeanAccess bAccess)booleanisAllowReadOnlyProperties()booleanisSkipMissingProperties()voidsetAllowReadOnlyProperties(boolean allowReadOnlyProperties)voidsetBeanAccess(BeanAccess beanAccess)voidsetSkipMissingProperties(boolean skipMissingProperties)Skip properties that are missing during deserialization of YAML to a Java object.
-
-
-
Method Detail
-
getPropertiesMap
protected Map<String,Property> getPropertiesMap(Class<?> type, BeanAccess bAccess)
-
getProperties
public Set<Property> getProperties(Class<? extends Object> type, BeanAccess bAccess)
-
createPropertySet
protected Set<Property> createPropertySet(Class<? extends Object> type, BeanAccess bAccess)
-
getProperty
public Property getProperty(Class<? extends Object> type, String name, BeanAccess bAccess)
-
setBeanAccess
public void setBeanAccess(BeanAccess beanAccess)
-
setAllowReadOnlyProperties
public void setAllowReadOnlyProperties(boolean allowReadOnlyProperties)
-
isAllowReadOnlyProperties
public boolean isAllowReadOnlyProperties()
-
setSkipMissingProperties
public void setSkipMissingProperties(boolean skipMissingProperties)
Skip properties that are missing during deserialization of YAML to a Java object. The default is false.- Parameters:
skipMissingProperties- true if missing properties should be skipped, false otherwise.
-
isSkipMissingProperties
public boolean isSkipMissingProperties()
-
-