public class PropertyUtil
extends org.apache.commons.configuration.XMLConfiguration
org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.FileConfigurationDelegateorg.apache.commons.configuration.HierarchicalConfiguration.BuilderVisitor, org.apache.commons.configuration.HierarchicalConfiguration.Node, org.apache.commons.configuration.HierarchicalConfiguration.NodeVisitor| Constructor and Description |
|---|
PropertyUtil() |
PropertyUtil(java.io.File... file) |
PropertyUtil(PropertyUtil prop) |
PropertyUtil(java.lang.String... file) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(java.util.Map<java.lang.String,?> props) |
void |
addProperty(java.lang.String key,
java.lang.Object value)
this will overwrite existing value if any
|
protected void |
addPropertyDirect(java.lang.String key,
java.lang.Object value) |
void |
clearProperty(java.lang.String key) |
void |
editProperty(java.lang.String key,
java.lang.Object value)
Add a property to the configuration.
|
boolean |
getBoolean(java.lang.String key) |
java.lang.Boolean |
getBoolean(java.lang.String key,
java.lang.Boolean defaultValue) |
java.lang.Object |
getObject(java.lang.String key) |
PasswordDecryptor |
getPasswordDecryptor() |
java.lang.String |
getPropertyValue(java.lang.String sPropertyName) |
java.lang.String |
getPropertyValueOrNull(java.lang.String sPropertyName) |
java.lang.String[] |
getStringArray(java.lang.String key,
java.lang.String... defaultValue) |
boolean |
load(java.lang.Class<?> cls,
java.lang.String propertyFile)
load property inside java/jar package
|
boolean |
load(java.io.File... files) |
boolean |
load(java.lang.String... files) |
protected java.lang.Object |
resolveContainerStore(java.lang.String key) |
void |
setProperty(java.lang.String key,
java.lang.Object value) |
void |
storePropertyFile(java.io.File f) |
addNodes, clear, clone, createDelegate, createDocument, createDocumentBuilder, createNode, createTransformer, getDocument, getDocumentBuilder, getEntityResolver, getPublicID, getRegisteredEntities, getRootElementName, getSystemID, initProperties, isAttributeSplittingDisabled, isSchemaValidation, isValidating, load, load, registerEntityId, resolveEntity, save, setAttributeSplittingDisabled, setDocumentBuilder, setEntityResolver, setPublicID, setRootElementName, setSchemaValidation, setSystemID, setValidating, validateclearTree, configurationChanged, configurationError, containsKey, fetchNodeList, getBasePath, getDelegate, getEncoding, getFile, getFileName, getFileSystem, getKeys, getKeys, getProperty, getReloadingStrategy, getReloadLock, getURL, isAutoSave, isEmpty, load, load, load, load, load, refresh, reload, resetFileSystem, save, save, save, save, save, save, setAutoSave, setBasePath, setDelegate, setEncoding, setFile, setFileName, setFileSystem, setReloadingStrategy, setURL, subnodeConfigurationChangedclearNode, clearNode, clearReferences, configurationAt, configurationAt, configurationsAt, createAddPath, createSubnodeConfiguration, createSubnodeConfiguration, fetchAddNode, findLastPathNode, findPropertyNodes, getDefaultExpressionEngine, getExpressionEngine, getMaxIndex, getRoot, getRootNode, interpolatedConfiguration, nodeDefined, nodeDefined, removeNode, removeNode, setDefaultExpressionEngine, setExpressionEngine, setRoot, setRootNode, subsetaddErrorLogListener, append, clearPropertyDirect, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setThrowExceptionOnMissingaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getByte, getByte, getByte, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getList, getList, getLong, getLong, getLong, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, subsetpublic PropertyUtil()
public PropertyUtil(PropertyUtil prop)
public PropertyUtil(java.lang.String... file)
public PropertyUtil(java.io.File... file)
protected java.lang.Object resolveContainerStore(java.lang.String key)
resolveContainerStore in class org.apache.commons.configuration.AbstractConfigurationprotected void addPropertyDirect(java.lang.String key,
java.lang.Object value)
addPropertyDirect in class org.apache.commons.configuration.AbstractHierarchicalFileConfigurationpublic void addAll(java.util.Map<java.lang.String,?> props)
public boolean load(java.lang.String... files)
public boolean load(java.io.File... files)
public boolean load(java.lang.Class<?> cls,
java.lang.String propertyFile)
cls - propertyFile - public boolean getBoolean(java.lang.String key)
getBoolean in interface org.apache.commons.configuration.ConfigurationgetBoolean in class org.apache.commons.configuration.AbstractConfigurationpublic java.lang.String[] getStringArray(java.lang.String key,
java.lang.String... defaultValue)
public java.lang.Boolean getBoolean(java.lang.String key,
java.lang.Boolean defaultValue)
getBoolean in interface org.apache.commons.configuration.ConfigurationgetBoolean in class org.apache.commons.configuration.AbstractConfigurationpublic java.lang.Object getObject(java.lang.String key)
public java.lang.String getPropertyValue(java.lang.String sPropertyName)
sPropertyName - public java.lang.String getPropertyValueOrNull(java.lang.String sPropertyName)
sPropertyName - public void storePropertyFile(java.io.File f)
public void addProperty(java.lang.String key,
java.lang.Object value)
addProperty in interface org.apache.commons.configuration.ConfigurationaddProperty in class org.apache.commons.configuration.AbstractConfigurationpublic void setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface org.apache.commons.configuration.ConfigurationsetProperty in class org.apache.commons.configuration.AbstractHierarchicalFileConfigurationpublic void editProperty(java.lang.String key,
java.lang.Object value)
key - value - public void clearProperty(java.lang.String key)
clearProperty in interface org.apache.commons.configuration.ConfigurationclearProperty in class org.apache.commons.configuration.AbstractHierarchicalFileConfigurationpublic PasswordDecryptor getPasswordDecryptor()
Copyright © 2000 Infostretch Corp.