Class CustomPropertyUtils
java.lang.Object
org.yaml.snakeyaml.introspector.PropertyUtils
com.randomnoun.maven.plugin.yamlCombine.CustomPropertyUtils
A class to retain ordering in YAML files
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Set
<org.yaml.snakeyaml.introspector.Property> createPropertySet
(Class<? extends Object> type, org.yaml.snakeyaml.introspector.BeanAccess bAccess) Set
<org.yaml.snakeyaml.introspector.Property> getProperties
(Class<? extends Object> type) Set
<org.yaml.snakeyaml.introspector.Property> getProperties
(Class<? extends Object> type, org.yaml.snakeyaml.introspector.BeanAccess bAccess) getPropertiesMap
(Class<?> type, org.yaml.snakeyaml.introspector.BeanAccess bAccess) org.yaml.snakeyaml.introspector.Property
getProperty
(Class<? extends Object> type, String name) org.yaml.snakeyaml.introspector.Property
getProperty
(Class<? extends Object> type, String name, org.yaml.snakeyaml.introspector.BeanAccess bAccess) boolean
boolean
void
setAllowReadOnlyProperties
(boolean allowReadOnlyProperties) void
setBeanAccess
(org.yaml.snakeyaml.introspector.BeanAccess beanAccess) void
setSkipMissingProperties
(boolean skipMissingProperties) Skip properties that are missing during deserialization of YAML to a Java object.
-
Constructor Details
-
CustomPropertyUtils
public CustomPropertyUtils()
-
-
Method Details
-
getPropertiesMap
protected Map<String,org.yaml.snakeyaml.introspector.Property> getPropertiesMap(Class<?> type, org.yaml.snakeyaml.introspector.BeanAccess bAccess) - Overrides:
getPropertiesMap
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
getProperties
- Overrides:
getProperties
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
getProperties
public Set<org.yaml.snakeyaml.introspector.Property> getProperties(Class<? extends Object> type, org.yaml.snakeyaml.introspector.BeanAccess bAccess) - Overrides:
getProperties
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
createPropertySet
protected Set<org.yaml.snakeyaml.introspector.Property> createPropertySet(Class<? extends Object> type, org.yaml.snakeyaml.introspector.BeanAccess bAccess) - Overrides:
createPropertySet
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
getProperty
public org.yaml.snakeyaml.introspector.Property getProperty(Class<? extends Object> type, String name) - Overrides:
getProperty
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
getProperty
public org.yaml.snakeyaml.introspector.Property getProperty(Class<? extends Object> type, String name, org.yaml.snakeyaml.introspector.BeanAccess bAccess) - Overrides:
getProperty
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
setBeanAccess
- Overrides:
setBeanAccess
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
setAllowReadOnlyProperties
- Overrides:
setAllowReadOnlyProperties
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
isAllowReadOnlyProperties
- Overrides:
isAllowReadOnlyProperties
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-
setSkipMissingProperties
Skip properties that are missing during deserialization of YAML to a Java object. The default is false.- Overrides:
setSkipMissingProperties
in classorg.yaml.snakeyaml.introspector.PropertyUtils
- Parameters:
skipMissingProperties
- true if missing properties should be skipped, false otherwise.
-
isSkipMissingProperties
- Overrides:
isSkipMissingProperties
in classorg.yaml.snakeyaml.introspector.PropertyUtils
-