Example usage for Java org.apache.commons.configuration XMLConfiguration fields, constructors, methods, implement or subclass
The text is from its open source code.
XMLConfiguration(HierarchicalConfiguration c) Creates a new instance of XMLConfiguration and copies the content of the passed in configuration into this object. | |
XMLConfiguration(String fileName) Creates a new instance of XMLConfiguration . | |
XMLConfiguration(File file) Creates a new instance of XMLConfiguration . | |
XMLConfiguration(URL url) Creates a new instance of XMLConfiguration . | |
XMLConfiguration() Creates a new instance of XMLConfiguration . |
void | addNodes(String key, Collection nodes) Adds a collection of nodes directly to this configuration. |
void | clear() Removes all properties from this configuration. |
void | clearProperty(String key) |
void | clearTree(String key) |
Object | clone() Creates a copy of this object. |
boolean | containsKey(String key) |
String | getBasePath() |
Document | getDocument() Returns the XML document this configuration was loaded from. |
File | getFile() |
String | getFileName() |
Iterator | getKeys() |
Iterator | getKeys(String prefix) |
Object | getProperty(String key) |
ReloadingStrategy | getReloadingStrategy() |
String | getRootElementName() Returns the name of the root element. |
URL | getURL() |
boolean | isEmpty() |
void | load(InputStream in) Loads the configuration from the given input stream. |
void | load(Reader in) Load the configuration from the given reader. |
void | load(InputSource source) Loads a configuration file from the specified input source. |
void | load() |
void | registerEntityId(String publicId, URL entityURL) Registers the specified DTD URL for the specified public identifier. |
void | save(Writer writer) Saves the configuration to the specified writer. |
void | save() |
void | save(OutputStream out, String encoding) |
void | setAttributeSplittingDisabled(boolean attributeSplittingDisabled) Sets a flag whether attribute splitting is disabled. |
void | setAutoSave(boolean autoSave) |
void | setBasePath(String basePath) |
void | setDocumentBuilder(DocumentBuilder documentBuilder) Sets the DocumentBuilder object to be used for loading documents. |
void | setEncoding(String encoding) |
void | setFile(File file) |
void | setFileName(String fileName) |
void | setProperty(String key, Object value) |
void | setReloadingStrategy(ReloadingStrategy strategy) |
void | setRootElementName(String name) Sets the name of the root element. |
void | setURL(URL url) |
void | setValidating(boolean validating) Sets the value of the validating flag. |