Package org.pentaho.di.laf
Class OverlayProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.pentaho.di.laf.OverlayProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>,Handler,PropertyHandler
public class OverlayProperties extends Properties implements PropertyHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description OverlayProperties(String file)
-
Method Summary
All 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 filesystemStringgetName()booleanload(String filename)cleanse and reload the property filebooleanloadProps(String filename)load properties for the given properties file-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.laf.PropertyHandler
getProperty, getProperty
-
-
-
-
Constructor Detail
-
OverlayProperties
public OverlayProperties(String file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
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
-
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
-
load
public boolean load(String filename) throws IOException
cleanse and reload the property file- Parameters:
filename-- Returns:
- Throws:
IOException
-
getName
public String getName()
-
-