Package com.google.gwt.core.ext
Class SubsetFilteringPropertyOracle
java.lang.Object
com.google.gwt.core.ext.SubsetFilteringPropertyOracle
- All Implemented Interfaces:
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.
Used by the generator driver framework to limit property access for the purpose of forcing generators to accurately declare their property dependencies.
-
Constructor Summary
ConstructorDescriptionSubsetFilteringPropertyOracle
(Set<String> accessiblePropertyNames, PropertyOracle wrappedPropertyOracle, String accessViolationMessage) -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationProperty
(String propertyName) Attempts to get a named configuration property.getSelectionProperty
(TreeLogger logger, String propertyName) Attempts to get a named deferred binding property.
-
Constructor Details
-
SubsetFilteringPropertyOracle
public SubsetFilteringPropertyOracle(Set<String> accessiblePropertyNames, PropertyOracle wrappedPropertyOracle, String accessViolationMessage)
-
-
Method Details
-
getConfigurationProperty
public ConfigurationProperty getConfigurationProperty(String propertyName) throws BadPropertyValueException Description copied from interface:PropertyOracle
Attempts to get a named configuration property. ThrowsBadPropertyValueException
if the property is undefined. The result of invoking this method with the samepropertyName
must be stable.- Specified by:
getConfigurationProperty
in 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, String propertyName) throws BadPropertyValueException Description copied from interface:PropertyOracle
Attempts to get a named deferred binding property. ThrowsBadPropertyValueException
if the property is either undefined or has a value that is unsupported. The result of invoking this method with the samepropertyName
must be stable.- Specified by:
getSelectionProperty
in interfacePropertyOracle
- Returns:
- the selection property instance (never null)
- Throws:
BadPropertyValueException
- if the property is unknown or not a selection property
-