Package org.pentaho.di.laf
Class OverlayPropertyHandler
- java.lang.Object
-
- org.pentaho.di.laf.OverlayPropertyHandler
-
- All Implemented Interfaces:
Handler,PropertyHandler
public class OverlayPropertyHandler extends Object implements PropertyHandler
-
-
Constructor Summary
Constructors Constructor Description OverlayPropertyHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String filename)check to see whether a property file exists within the classpath or filesystemstatic PropertyHandlergetInstance()static StringgetLAFProp(String key)StringgetProperty(String key)return the value of a given key from the properties listStringgetProperty(String key, String defValue)return the value of a given key from the properties list, returning the defValue string should the key not be foundprotected booleanloadAltProps()booleanloadProps(String filename)load properties for the given properties file
-
-
-
Field Detail
-
propFile
protected static final String propFile
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static PropertyHandler getInstance()
-
loadAltProps
protected boolean loadAltProps()
-
getProperty
public String getProperty(String key)
Description copied from interface:PropertyHandlerreturn the value of a given key from the properties list- Specified by:
getPropertyin interfacePropertyHandler- Returns:
- null if the key is not found
-
loadProps
public boolean loadProps(String filename)
Description copied from interface:PropertyHandlerload properties for the given properties file- Specified by:
loadPropsin interfacePropertyHandler- Returns:
- true if load was successful
-
getProperty
public String getProperty(String key, String defValue)
Description copied from interface:PropertyHandlerreturn the value of a given key from the properties list, returning the defValue string should the key not be found- Specified by:
getPropertyin interfacePropertyHandler- Returns:
- a string representing either the value associated with the passed key or defValue should that key not be found
-
exists
public boolean exists(String filename)
Description copied from interface:PropertyHandlercheck to see whether a property file exists within the classpath or filesystem- Specified by:
existsin interfacePropertyHandler- Returns:
- true if resource exists
-
-