com.puppycrawl.tools.checkstyle
Class PropertiesExpander
java.lang.Object
com.puppycrawl.tools.checkstyle.PropertiesExpander
- All Implemented Interfaces:
- PropertyResolver
public final class PropertiesExpander
- extends Object
- implements PropertyResolver
Resolves external properties from an
underlying Properties
object.
- Author:
- lkuehne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesExpander
public PropertiesExpander(Properties aProperties)
- Creates a new PropertiesExpander.
- Parameters:
aProperties
- the underlying properties to use for
property resolution.
- Throws:
IllegalArgumentException
- indicates null was passed
resolve
public String resolve(String aPropertyName)
- Resolves a property name to it's value.
- Specified by:
resolve
in interface PropertyResolver
- Parameters:
aPropertyName
- the name of the property.
- Returns:
- the value that is associated with
propertyName
.