/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty( final String key ) { return parent.getConfigProperty( key ); }
/** * Checks, whether the given key is localy defined in this instance or whether the key's value is inherited. * * @param key the key that should be checked. * @return true, if the key is defined locally, false otherwise. */ public boolean isLocallyDefined( final String key ) { return this.configuration.containsKey( key ); }
public Enumeration<String> getConfigProperties() { return new StringEnumeration( keys() ); }
/** * Returns all keys with the given prefix. * * @param prefix the prefix * @return the iterator containing all keys with that prefix */ public Iterator<String> findPropertyKeys( final String prefix ) { return parent.findPropertyKeys( prefix ); }
/** * Creates a new configuration. */ public HierarchicalConfiguration() { this.configuration = new DefaultConfiguration(); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return getConfigProperty(key, null); }
/** * Returns all defined configuration properties for the report. The enumeration contains all keys of the changed * properties, properties set from files or the system properties are not included. * * @return all defined configuration properties for the report. */ public Enumeration<String> getConfigProperties() { if ( wrappedConfiguration instanceof ModifiableConfiguration ) { final ModifiableConfiguration modConfiguration = (ModifiableConfiguration) wrappedConfiguration; return modConfiguration.getConfigProperties(); } return super.getConfigProperties(); } }
/** * Returns a given property as int value. Zero is returned if the property value is no number or the property is not * set. * * @param name the name of the property * @return the parsed number value or zero */ public int getIntProperty( final String name ) { return getIntProperty( name, 0 ); }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return getProperty(key); }
/** * Returns all defined configuration properties for the report. The enumeration contains all keys of the changed * properties, properties set from files or the system properties are not included. * * @return all defined configuration properties for the report. */ public Enumeration<String> getConfigProperties() { return this.configuration.getConfigProperties(); }
/** * Returns the boolean value of a given configuration property. The boolean value true is returned, if the contained * string is equal to 'true'. * * @param name the name of the property * @return the boolean value of the property. */ public boolean getBoolProperty( final String name ) { return getBoolProperty( name, false ); }
/** * Lods the property file from a classpath resource name. The classpath resource must be loadable via * <code>PropertyFileConfiguration.class.getResource(..)</code> * * @param resourceName the resource name to be loaded. */ public void load(final String resourceName) { load(resourceName, PropertyFileConfiguration.class); }
/** * Returns the text encoding that should be used to encode URLs. * * @return the encoding for URLs. */ public String getURLEncoding() { return configuration.getConfigProperty( "org.pentaho.reporting.engine.classic.core.URLEncoding" ); }
/** * Creates a new configuration. */ public HierarchicalConfiguration() { this.configuration = new DefaultConfiguration(); }
public Enumeration<String> getConfigProperties() { return new StringEnumeration(keys()); }
/** * Returns all defined configuration properties for the report. The * enumeration contains all keys of the changed properties, properties set * from files or the system properties are not included. * * @return all defined configuration properties for the report. */ public Enumeration<String> getConfigProperties() { return this.configuration.getConfigProperties(); }
/** * Checks, whether a given property is defined. * * @param name the name of the property * @return true, if the property is defined, false otherwise. */ public boolean isPropertySet( final String name ) { return parent.getConfigProperty( name ) != null; }
public void initialize( final Configuration configuration ) { this.bundleName = configuration .getConfigProperty( "org.pentaho.reporting.engine.classic.core.modules.gui.common.IconThemeBundle" ); //$NON-NLS-1$ }
/** * Checks, whether a given property is defined. * * @param name the name of the property * @return true, if the property is defined, false otherwise. */ public boolean isPropertySet(final String name) { return parent.getConfigProperty(name) != null; }
/** * Returns the configuration property with the specified key. * * @param key the property key. * @return the property value. */ public String getConfigProperty(final String key) { return parent.getConfigProperty(key); }