org.yasl.xmlobjects
Interface PropertyResolver

All Known Implementing Classes:
PropertyResolverImpl

public interface PropertyResolver

Version:
1.0
Author:
Jeff Chapman

Method Summary
 String getProperty(String key)
          Returns the property associated with the key or null if the key is invalid.
 void setProperty(String key, String value)
          Maps the value to the key in the properties map.
 

Method Detail

setProperty

public void setProperty(String key,
                        String value)
Maps the value to the key in the properties map.

Parameters:
key - String
value - String

getProperty

public String getProperty(String key)
Returns the property associated with the key or null if the key is invalid.

If the key is not mapped in the property resolver's property map, the method will check the System properties.

The method will strip the leading $ character if the key is prefixed with it.

Parameters:
key - String
Returns:
String