public class PropertyAndBindingInfo extends Object implements Serializable
Each info object typically contains the information for one (soft) permutation.
Constructor and Description |
---|
PropertyAndBindingInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String key)
Returns true if the map contains a answer for the given GWT.create() argument.
|
boolean |
containsType(String key)
Returns true if the map contains a answer for the given GWT.create() argument.
|
static PropertyAndBindingInfo |
getCommonAnswers(Iterable<PropertyAndBindingInfo> maps)
Returns the answers that are the same in every permutation.
|
static com.google.gwt.thirdparty.guava.common.collect.Multimap<String,Integer> |
getPermutationIdsByPropertyName(List<PropertyAndBindingInfo> maps,
String key)
Given a property name, returns a map containing each possible return value and the
permutations that would create it.
|
static com.google.gwt.thirdparty.guava.common.collect.Multimap<String,Integer> |
getPermutationIdsByRequestTypes(List<PropertyAndBindingInfo> maps,
String key)
Given an argument to GWT.create(), returns a map containing each possible return type and the
permutations that would create it.
|
static com.google.gwt.thirdparty.guava.common.collect.SortedSetMultimap<String,String> |
getPossibleReboundTypesByRequestType(Iterable<PropertyAndBindingInfo> permutationPropertyAndBindingInfoList,
Set<String> requestTypes)
Returns the Java classes that GWT.create() might return in at least one permutation.
|
String |
getPropertyValue(String key)
Returns the property value for a propertyname.
|
String |
getReboundType(String key)
Returns the Java class that a GWT.create() call will construct.
|
void |
putPropertyValue(String propertyName,
String propertyValue)
Adds a property value.
|
public String getPropertyValue(String key)
public String getReboundType(String key)
key
- the GWT.create() argument (source type name)public void putPropertyValue(String propertyName, String propertyValue)
public boolean containsProperty(String key)
public boolean containsType(String key)
public static PropertyAndBindingInfo getCommonAnswers(Iterable<PropertyAndBindingInfo> maps)
public static com.google.gwt.thirdparty.guava.common.collect.SortedSetMultimap<String,String> getPossibleReboundTypesByRequestType(Iterable<PropertyAndBindingInfo> permutationPropertyAndBindingInfoList, Set<String> requestTypes)
requestTypes
- the GWT.create() arguments to include (source type names).public static com.google.gwt.thirdparty.guava.common.collect.Multimap<String,Integer> getPermutationIdsByRequestTypes(List<PropertyAndBindingInfo> maps, String key)
public static com.google.gwt.thirdparty.guava.common.collect.Multimap<String,Integer> getPermutationIdsByPropertyName(List<PropertyAndBindingInfo> maps, String key)
Copyright © 2018. All rights reserved.