Package org.apache.cassandra.config
Class Properties
- java.lang.Object
-
- org.apache.cassandra.config.Properties
-
public final class Properties extends java.lang.ObjectUtility class for working withPropertytypes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.yaml.snakeyaml.introspector.PropertyandThen(org.yaml.snakeyaml.introspector.Property root, org.yaml.snakeyaml.introspector.Property leaf)Given two properties (root, leaf), calls first go through root and passed to leaf.static org.yaml.snakeyaml.introspector.PropertyandThen(org.yaml.snakeyaml.introspector.Property root, org.yaml.snakeyaml.introspector.Property leaf, java.lang.String delimiter)Given two properties (root, leaf), calls first go through root and passed to leaf.static LoaderdefaultLoader()static java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property>flatten(Loader loader, java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property> input)Given a map of Properties, takes any "nested" property (non primitive, value-type, or collection), and expands them, producing 1 or more Properties.static java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property>flatten(Loader loader, java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property> input, java.lang.String delimiter)Given a map of Properties, takes any "nested" property (non primitive, value-type, or collection), and expands them, producing 1 or more Properties.static booleanisCollection(org.yaml.snakeyaml.introspector.Property prop)static booleanisPrimitive(org.yaml.snakeyaml.introspector.Property prop)static org.yaml.snakeyaml.introspector.Propertyrename(java.lang.String newName, org.yaml.snakeyaml.introspector.Property prop)
-
-
-
Field Detail
-
DELIMITER
public static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
andThen
public static org.yaml.snakeyaml.introspector.Property andThen(org.yaml.snakeyaml.introspector.Property root, org.yaml.snakeyaml.introspector.Property leaf, java.lang.String delimiter)Given two properties (root, leaf), calls first go through root and passed to leaf.leaf.get(root.get(o))- Parameters:
root- first property in the chainleaf- last property in the chaindelimiter- for joining names- Returns:
- new Property which combines root -> leaf
-
andThen
public static org.yaml.snakeyaml.introspector.Property andThen(org.yaml.snakeyaml.introspector.Property root, org.yaml.snakeyaml.introspector.Property leaf)Given two properties (root, leaf), calls first go through root and passed to leaf.leaf.get(root.get(o))- Parameters:
root- first property in the chainleaf- last property in the chain- Returns:
- new Property which combines root -> leaf
-
flatten
public static java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property> flatten(Loader loader, java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property> input)
Given a map of Properties, takes any "nested" property (non primitive, value-type, or collection), and expands them, producing 1 or more Properties.- Parameters:
loader- for mapping type to map of propertiesinput- map to flatten- Returns:
- map of all flattened properties
-
flatten
public static java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property> flatten(Loader loader, java.util.Map<java.lang.String,org.yaml.snakeyaml.introspector.Property> input, java.lang.String delimiter)
Given a map of Properties, takes any "nested" property (non primitive, value-type, or collection), and expands them, producing 1 or more Properties.- Parameters:
loader- for mapping type to map of propertiesinput- map to flattendelimiter- for joining names- Returns:
- map of all flattened properties
-
isCollection
public static boolean isCollection(org.yaml.snakeyaml.introspector.Property prop)
- Returns:
- true if proeprty type is a collection
-
isPrimitive
public static boolean isPrimitive(org.yaml.snakeyaml.introspector.Property prop)
- Returns:
- true if property type is a primitive, or well known value type (may return false for user defined value types)
-
rename
public static org.yaml.snakeyaml.introspector.Property rename(java.lang.String newName, org.yaml.snakeyaml.introspector.Property prop)- Returns:
- a new property with an updated name
-
-