Package 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 underlyingProperties
object.
-
-
Constructor Summary
Constructors Constructor Description PropertiesExpander(Properties properties)
Creates a new PropertiesExpander.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resolve(String name)
Resolves a property name to its value.
-
-
-
Constructor Detail
-
PropertiesExpander
public PropertiesExpander(Properties properties)
Creates a new PropertiesExpander.- Parameters:
properties
- the underlying properties to use for property resolution.- Throws:
IllegalArgumentException
- when properties argument is null
-
-
Method Detail
-
resolve
public String resolve(String name)
Description copied from interface:PropertyResolver
Resolves a property name to its value.- Specified by:
resolve
in interfacePropertyResolver
- Parameters:
name
- the name of the property.- Returns:
- the value that is associated with
propertyName
.
-
-