public class PermProps 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 BindingProps
).
Constructor and Description |
---|
PermProps(Iterable<BindingProps> softProps) |
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).
|
ConfigProps |
getConfigProps()
Returns the permutation-independent properties.
|
com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProps> |
getSoftProps()
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 PermProps(Iterable<BindingProps> softProps)
public ConfigProps getConfigProps()
public com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProperty> getBindingProperties()
public com.google.gwt.thirdparty.guava.common.collect.ImmutableList<BindingProps> getSoftProps()
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.