public class PropertiesDocument extends Object
| Constructor and Description |
|---|
PropertiesDocument()
Create blank PropertiesDocument with blank Properties object
|
PropertiesDocument(Document testRunArgs)
Create a Properties Document using the input as the existing Document.
|
PropertiesDocument(File xmlFile)
Create a Properties Document from an input XML file
|
| Modifier and Type | Method and Description |
|---|---|
Document |
getDocument()
Create a Document corresponding to the internal Properties object.
|
Properties |
getProperties()
Return the Properties object
|
String |
getProperty(String key)
Return a value for a key in the Properties object
|
void |
removeProperty(String key)
Delete a key and its value from the Properties object
|
void |
setProperty(String key,
String value)
Update a value in the Properties object
|
public PropertiesDocument()
public PropertiesDocument(File xmlFile) throws ParserConfigurationException, SAXException, IOException
xmlFile - File to open for parsingSAXException - Exception on parsing input as XMLIOException - Exception if XML could not be read for properties fileParserConfigurationException - Exception if Document Builder could not be createdInvalidPropertiesFormatException - Exception if XML is not in Properties formatpublic PropertiesDocument(Document testRunArgs) throws ParserConfigurationException
testRunArgs - Document to use as baseParserConfigurationException - Exception if Document Builder could not be createdpublic Document getDocument()
public Properties getProperties()
public String getProperty(String key)
key - String with key namepublic void removeProperty(String key)
key - The key to removeCopyright © 2021 Open Geospatial Consortium. All rights reserved.