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 ImportProperties
public Set<String> getAllNonAttributeValues()
getAllNonAttributeValues
in interface ImportProperties
public boolean containsPropertyValue(String value)
ImportProperties
containsPropertyValue
in interface ImportProperties
value
- a value to look forpublic boolean containsProperty(String path)
containsProperty
in interface ImportProperties
public boolean hasAttributeProperty(String key)
hasAttributeProperty
in interface ImportProperties
key
- Attribute key namepublic String getAttributeProperty(String key)
ImportProperties
getAttributeProperty
in interface ImportProperties
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.