public class PermutationProperties extends Object
This is essentially a table where columns are soft permutations
and rows are property names. Each values for each column are stored
in an instance of BindingProperties
).
Constructor and Description |
---|
PermutationProperties(Iterable<BindingProperties> softProperties) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.thirdparty.guava.common.collect.ImmutableMap<String,String>> |
findEmbeddedProperties(TreeLogger logger)
Returns the binding property values to be embedded into the initial JavaScript fragment
for this permutation.
|
com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProperty> |
getBindingProperties()
Returns the binding properties in dependency order (permutation-independent).
|
ConfigurationProperties |
getConfigurationProperties()
Returns the permutation-independent properties.
|
com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProperties> |
getSoftProperties()
Returns the properties for each soft permutation, ordered by soft permutation id.
|
boolean |
isEqualInEachPermutation(String key)
Returns true if a binding property has the same value in every soft permutation.
|
boolean |
isTrueInAnyPermutation(String name)
Checks if a boolean binding property is set to true in any soft permutation.
|
String |
mustGetString(String key)
Returns the value of a binding property as a string.
|
String |
prettyPrint()
Dumps the properties for this hard permuation, for logging and soyc.
|
public PermutationProperties(Iterable<BindingProperties> softProperties)
public ConfigurationProperties getConfigurationProperties()
public com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProperty> getBindingProperties()
public com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProperties> getSoftProperties()
If soft permutations aren't turned on, the list will contain one item.
public String mustGetString(String key)
IllegalStateException
- if it doesn't exist or if the soft permutations
don't all have the same value.public boolean isEqualInEachPermutation(String key)
public boolean isTrueInAnyPermutation(String name)
public com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.thirdparty.guava.common.collect.ImmutableMap<String,String>> findEmbeddedProperties(TreeLogger logger)
public String prettyPrint()
Copyright © 2018. All rights reserved.