public class XmlImportProperties extends Object implements ImportProperties
| Constructor and Description |
|---|
XmlImportProperties(String configFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperty(String path) |
boolean |
containsPropertyValue(String value)
See whether a value exists in the properties file.
|
Set<String> |
getAllNonAttributeValues() |
String |
getAttributeProperty(String key)
Get the value for the given attribute name.
|
String |
getFirstPropertyWithValue(String value) |
String |
getProperty(String key)
Get the value for the specified key, or null.
|
String |
getProperty(String key,
String defaultValue) |
boolean |
hasAttributeProperty(String key) |
public XmlImportProperties(String configFile)
public String getProperty(String key)
getProperty in interface ImportPropertiespublic Set<String> getAllNonAttributeValues()
getAllNonAttributeValues in interface ImportPropertiespublic boolean containsPropertyValue(String value)
ImportPropertiescontainsPropertyValue in interface ImportPropertiesvalue - a value to look forpublic boolean containsProperty(String path)
containsProperty in interface ImportPropertiespublic boolean hasAttributeProperty(String key)
hasAttributeProperty in interface ImportPropertieskey - Attribute key namepublic String getAttributeProperty(String key)
ImportPropertiesgetAttributeProperty in interface ImportPropertiesCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.