Class SubsetFilteringPropertyOracle

java.lang.Object
com.google.gwt.core.ext.SubsetFilteringPropertyOracle
All Implemented Interfaces:
PropertyOracle

public class SubsetFilteringPropertyOracle extends 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 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. Throws BadPropertyValueException if the property is undefined. The result of invoking this method with the same propertyName must be stable.
      Specified by:
      getConfigurationProperty in interface PropertyOracle
      Parameters:
      propertyName -
      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. Throws BadPropertyValueException if the property is either undefined or has a value that is unsupported. The result of invoking this method with the same propertyName must be stable.
      Specified by:
      getSelectionProperty in interface PropertyOracle
      Parameters:
      logger -
      propertyName -
      Returns:
      the selection property instance (never null)
      Throws:
      BadPropertyValueException - if the property is unknown or not a selection property