public class YamlProperties
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
YamlProperties.PropType |
Constructor and Description |
---|
YamlProperties(java.io.File yamlFile) |
YamlProperties(java.lang.String prefix,
java.io.File yamlFile) |
YamlProperties(java.lang.String prefix,
java.lang.String yaml) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decryptValue(java.lang.String value) |
java.lang.Object |
get(java.lang.String name,
YamlProperties.PropType type) |
java.util.Map<java.lang.String,java.lang.String> |
getGroup(java.lang.String name)
Returns a flattened value map with full-path keys (including prefix).
|
java.util.List<java.lang.String> |
getList(java.lang.String name) |
YamlLoader |
getLoader() |
java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String name)
Finds a single-depth prop map for the given name (prefix omitted).
|
java.util.Map<?,?> |
getRoot() |
java.lang.String |
getString(java.lang.String name) |
boolean |
isEncrypted(java.lang.String name) |
protected void |
parseGroupMap(java.util.Map<java.lang.String,java.lang.Object> groupMap,
java.util.Map<java.lang.String,java.lang.String> resultMap,
java.lang.String prefix)
Flattens the group map
|
static YamlBuilder |
translate(java.lang.String prefix,
java.util.Properties properties,
java.util.Properties map)
Translate old-style properties to yaml according to rules in
compatibility mapping file configurations.map.
|
public YamlProperties(java.io.File yamlFile) throws java.io.IOException
java.io.IOException
public YamlProperties(java.lang.String prefix, java.io.File yamlFile) throws java.io.IOException
java.io.IOException
public YamlProperties(java.lang.String prefix, java.lang.String yaml) throws java.io.IOException
java.io.IOException
public YamlLoader getLoader()
public java.util.Map<?,?> getRoot()
public java.lang.String getString(java.lang.String name)
public boolean isEncrypted(java.lang.String name)
public java.lang.String decryptValue(java.lang.String value)
public java.util.List<java.lang.String> getList(java.lang.String name)
public java.util.Map<java.lang.String,java.lang.String> getGroup(java.lang.String name)
protected void parseGroupMap(java.util.Map<java.lang.String,java.lang.Object> groupMap, java.util.Map<java.lang.String,java.lang.String> resultMap, java.lang.String prefix)
public java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String name)
public java.lang.Object get(java.lang.String name, YamlProperties.PropType type)
public static YamlBuilder translate(java.lang.String prefix, java.util.Properties properties, java.util.Properties map) throws java.lang.ReflectiveOperationException
java.lang.ReflectiveOperationException
Copyright © 2019 CenturyLink, Inc.