public final class VarProperties extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
expectPropertyValues(Map<String,Object> propertyValues,
String path)
Returns the value set at the given property path.
|
static VarBinding |
expectVarBinding(Map<String,Object> propertyValues,
String path)
Returns the variable binding at the given property path.
|
static Map<String,Object> |
getAlternativePropertyValues(Map<String,Object> propertyValues)
If the given properties define one of multiple alternative values, returns the properties of
the specified alternative.
|
static Map<String,Object> |
getIfPropertyValues(Map<String,Object> propertyValues,
String path)
Returns a value set if it is referenced by the given property path.
|
static VarBinding |
getIfVarBinding(Map<String,Object> propertyValues,
String path)
Returns a variable binding if it is referenced by the given property path.
|
static String |
getPathFirst(List<String> path)
Returns the first name in the given variable set path
|
static List<String> |
getPathRest(List<String> path)
Returns the subpath of the given variable set path.
|
static Object |
getPropertyValue(Map<String,Object> propertyValues,
List<String> valuePath)
Returns the value at the given property path.
|
static Object |
getPropertyValue(Map<String,Object> propertyValues,
String path)
Returns the value at the given property path.
|
static Map<String,Object> |
getPropertyValues(List<VarBinding> bindings)
Transforms a set of variable bindings into a map of property values.
|
static Map<String,Object> |
getPropertyValues(Map<String,Object> propertyValues,
String path)
Returns the value set at the given property path.
|
static List<String> |
getValuePath(String path)
Returns the list of elements in given value path.
|
static DataValue.Type[] |
getValueTypes(Map<String,Object> propertyValues)
Returns the accepted value types represented by the given properties.
|
static VarBinding |
getVarBinding(Map<String,Object> propertyValues,
String path)
Returns the variable binding at the given property path.
|
static Stream<VarBinding> |
getVarBindings(Map<String,Object> propertyValues)
Returns the variable bindings specified by the given property values.
|
static List<String> |
getVarPath(VarBinding binding)
Returns the variable set path for the given variable binding.
|
static void |
putPropertyValue(Map<String,Object> propertyValues,
List<String> path,
VarBinding binding)
Sets the property at the given path to the given variable binding.
|
static ArrayDomain<?> |
toArrayDomain(Map<String,Object> propertyValues)
Returns the array domain specified by the given properties.
|
static ValueDomain<?> |
toArrayItemsDomain(Map<String,Object> propertyValues)
Returns the array domain specified by the given properties.
|
static ValueDomain<?> |
toBooleanDomain(Map<String,Object> propertyValues)
Returns the boolean domain specified by the given properties.
|
static ValueDomain<?> |
toBooleanItemsDomain(Map<String,Object> propertyValues)
Returns the boolean domain specified by the given properties.
|
static ValueDomain<?> |
toItemsDomain(Map<String,Object> propertyValues)
Returns the value domain for alternate array items specified by the given properties.
|
static ValueDomain<?> |
toNumberDomain(DataValue.Type type,
Map<String,Object> propertyValues)
Returns the number domain specified by the given properties.
|
static ValueDomain<?> |
toNumberItemsDomain(DataValue.Type type,
Map<String,Object> propertyValues)
Returns the number domain specified by the given properties.
|
static ValueDomain<?> |
toObjectDomain(Map<String,Object> propertyValues)
Returns the object domain specified by the given properties.
|
static ValueDomain<?> |
toStringDomain(Map<String,Object> propertyValues)
Returns the string domain specified by the given properties.
|
static ValueDomain<?> |
toStringItemsDomain(Map<String,Object> propertyValues)
Returns the string domain specified by the given properties.
|
static ValueDomain<?> |
toValueDomain(Map<String,Object> propertyValues)
Returns the value domain specified by the given properties.
|
public static Map<String,Object> getPropertyValues(List<VarBinding> bindings)
public static void putPropertyValue(Map<String,Object> propertyValues, List<String> path, VarBinding binding)
public static VarBinding getVarBinding(Map<String,Object> propertyValues, String path)
public static VarBinding getIfVarBinding(Map<String,Object> propertyValues, String path)
public static Map<String,Object> getPropertyValues(Map<String,Object> propertyValues, String path)
public static Map<String,Object> getIfPropertyValues(Map<String,Object> propertyValues, String path)
public static VarBinding expectVarBinding(Map<String,Object> propertyValues, String path)
public static Map<String,Object> expectPropertyValues(Map<String,Object> propertyValues, String path)
public static Object getPropertyValue(Map<String,Object> propertyValues, String path)
public static Object getPropertyValue(Map<String,Object> propertyValues, List<String> valuePath)
public static Stream<VarBinding> getVarBindings(Map<String,Object> propertyValues)
public static List<String> getVarPath(VarBinding binding)
public static List<String> getValuePath(String path)
public static String getPathFirst(List<String> path)
public static List<String> getPathRest(List<String> path)
public static Map<String,Object> getAlternativePropertyValues(Map<String,Object> propertyValues)
propertyValues.public static DataValue.Type[] getValueTypes(Map<String,Object> propertyValues)
public static ValueDomain<?> toValueDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toItemsDomain(Map<String,Object> propertyValues)
public static ArrayDomain<?> toArrayDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toBooleanDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toStringDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toObjectDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toNumberDomain(DataValue.Type type, Map<String,Object> propertyValues)
public static ValueDomain<?> toArrayItemsDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toBooleanItemsDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toStringItemsDomain(Map<String,Object> propertyValues)
public static ValueDomain<?> toNumberItemsDomain(DataValue.Type type, Map<String,Object> propertyValues)
Copyright © 2020 The Cornutum Project. All rights reserved.