Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.puppycrawl.tools.checkstyle
Class PropertiesExpander

    java.lang.Object
      com.puppycrawl.tools.checkstyle.PropertiesExpander

All Implemented Interfaces:
  PropertyResolver

public final class PropertiesExpander
extends java.lang.Object
implements PropertyResolver

Resolves external properties from an underlying `Properties` object.

Author:
  lkuehne

Constructor Summary
`PropertiesExpander(java.util.Properties aProperties)` Creates a new PropertiesExpander.

Method Summary
`java.lang.String` | `resolve(java.lang.String aPropertyName)` Resolves a property through the underlying Properties object.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PropertiesExpander

    public PropertiesExpander(java.util.Properties aProperties)

  Creates a new PropertiesExpander.

Parameters:
  `aProperties` - the underlying properties to use for property resolution.
Throws:
  `java.lang.IllegalArgumentException` - indicates null was passed

Method Detail

### resolve

    public java.lang.String resolve(java.lang.String aPropertyName)

  Resolves a property through the underlying Properties object.

  Specified by:
    `resolve` in interface `PropertyResolver`
  Parameters:
    `aPropertyName` - the name of the property.
  Returns:
    the value that is associated with `propertyName`.
  See Also:
    `PropertyResolver.resolve(java.lang.String)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Back to the Checkstyle Home Page
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD