/** * 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 an enumeration of the property keys. * * @return An enumeration of the property keys. */ public Enumeration getConfigProperties() { return keys(); }
/** * Sets a parser configuration value. * * @param key the key. * @param value the value. */ public void setConfigProperty(final String key, final String value) { if (value == null) { this.parserConfiguration.remove(key); } else { this.parserConfiguration.setProperty(key, value); } }
/** * Returns the configuration properties. * * @return An enumeration of the configuration properties. */ public Enumeration getConfigProperties() { return this.parserConfiguration.getConfigProperties(); }
/** * Returns all keys with the given prefix. * * @param prefix the prefix * @return the iterator containing all keys with that prefix */ public Iterator findPropertyKeys(final String prefix) { return this.parserConfiguration.findPropertyKeys(prefix); }
/** * Returns the configuration property with the specified key (or the specified default value * if there is no such property). * <p/> * If the property is not defined in this configuration, the code will lookup the property in * the parent configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { return this.parserConfiguration.getConfigProperty(key, defaultValue); }
/** * Returns a clone of this instance. * * @return A clone. * * @throws CloneNotSupportedException if there is a problem cloning. */ public Object clone () throws CloneNotSupportedException { final FrontendDefaultHandler o = (FrontendDefaultHandler) super.clone(); o.parserConfiguration = (DefaultConfiguration) this.parserConfiguration.clone(); return o; } }
/** * Default constructor. */ protected FrontendDefaultHandler() { this.parserConfiguration = new DefaultConfiguration(); this.commentHandler = new CommentHandler(); }
/** * Sets the value of a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty(final String key, final String value) { if (value == null) { remove(key); } else { setProperty(key, value); } } }
/** * Returns an enumeration of the property keys. * * @return An enumeration of the property keys. */ public Enumeration getConfigProperties() { return keys(); }
/** * 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); }
/** * Sets the value of a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty(final String key, final String value) { if (value == null) { remove(key); } else { setProperty(key, value); } } }
public Enumeration getConfigProperties() { return keys(); }
/** * 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); }
/** * Sets the value of a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty(final String key, final String value) { if (value == null) { remove(key); } else { setProperty(key, value); } } }
/** * Searches all property keys that start with a given prefix. * * @param prefix the prefix that all selected property keys should share * @return the properties as iterator. */ public Iterator findPropertyKeys(final String prefix) { final TreeSet collector = new TreeSet(); final Enumeration enum1 = keys(); while (enum1.hasMoreElements()) { final String key = (String) enum1.nextElement(); if (key.startsWith(prefix)) { if (collector.contains(key) == false) { collector.add(key); } } } return Collections.unmodifiableSet(collector).iterator(); }
/** * Returns the configuration property with the specified key (or the * specified default value if there is no such property). * <p/> * If the property is not defined in this configuration, the code will * lookup the property in the parent configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { return getProperty(key, defaultValue); }
/** * Searches all property keys that start with a given prefix. * * @param prefix the prefix that all selected property keys should share * @return the properties as iterator. */ public Iterator findPropertyKeys(final String prefix) { final TreeSet collector = new TreeSet(); final Enumeration enum1 = keys(); while (enum1.hasMoreElements()) { final String key = (String) enum1.nextElement(); if (key.startsWith(prefix)) { if (collector.contains(key) == false) { collector.add(key); } } } return Collections.unmodifiableSet(collector).iterator(); }
/** * Returns the configuration property with the specified key (or the * specified default value if there is no such property). * <p/> * If the property is not defined in this configuration, the code will * lookup the property in the parent configuration. * * @param key the property key. * @param defaultValue the default value. * @return the property value. */ public String getConfigProperty(final String key, final String defaultValue) { return getProperty(key, defaultValue); }
/** * Searches all property keys that start with a given prefix. * * @param prefix the prefix that all selected property keys should share * @return the properties as iterator. */ public Iterator findPropertyKeys(final String prefix) { final TreeSet collector = new TreeSet(); final Enumeration enum1 = keys(); while (enum1.hasMoreElements()) { final String key = (String) enum1.nextElement(); if (key.startsWith(prefix)) { if (collector.contains(key) == false) { collector.add(key); } } } return Collections.unmodifiableSet(collector).iterator(); }