Package com.google.gwt.core.ext
Class SubsetFilteringPropertyOracle
- java.lang.Object
-
- com.google.gwt.core.ext.SubsetFilteringPropertyOracle
-
- All Implemented Interfaces:
PropertyOracle
public class SubsetFilteringPropertyOracle extends java.lang.Object implements PropertyOracle
A property oracle that prevents access to any properties not named in its predefined set.
Used by the generator driver framework to limit property access for the purpose of forcing generators to accurately declare their property dependencies.
-
-
Constructor Summary
Constructors Constructor Description SubsetFilteringPropertyOracle(java.util.Set<java.lang.String> accessiblePropertyNames, PropertyOracle wrappedPropertyOracle, java.lang.String accessViolationMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationPropertygetConfigurationProperty(java.lang.String propertyName)Attempts to get a named configuration property.SelectionPropertygetSelectionProperty(TreeLogger logger, java.lang.String propertyName)Attempts to get a named deferred binding property.
-
-
-
Constructor Detail
-
SubsetFilteringPropertyOracle
public SubsetFilteringPropertyOracle(java.util.Set<java.lang.String> accessiblePropertyNames, PropertyOracle wrappedPropertyOracle, java.lang.String accessViolationMessage)
-
-
Method Detail
-
getConfigurationProperty
public ConfigurationProperty getConfigurationProperty(java.lang.String propertyName) throws BadPropertyValueException
Description copied from interface:PropertyOracleAttempts to get a named configuration property. ThrowsBadPropertyValueExceptionif the property is undefined. The result of invoking this method with the samepropertyNamemust be stable.- Specified by:
getConfigurationPropertyin interfacePropertyOracle- Returns:
- the configuration property instance (never null)
- Throws:
BadPropertyValueException- if the property is unknown or not a configuration property
-
getSelectionProperty
public SelectionProperty getSelectionProperty(TreeLogger logger, java.lang.String propertyName) throws BadPropertyValueException
Description copied from interface:PropertyOracleAttempts to get a named deferred binding property. ThrowsBadPropertyValueExceptionif the property is either undefined or has a value that is unsupported. The result of invoking this method with the samepropertyNamemust be stable.- Specified by:
getSelectionPropertyin interfacePropertyOracle- Returns:
- the selection property instance (never null)
- Throws:
BadPropertyValueException- if the property is unknown or not a selection property
-
-