public class PropertiesConfigFile extends AbstractConfigFile implements PropertiesCompatibleConfigFile
| Constructor and Description |
|---|
PropertiesConfigFile(String namespace,
ConfigRepository configRepository) |
| Modifier and Type | Method and Description |
|---|---|
Properties |
asProperties() |
ConfigFileFormat |
getConfigFileFormat()
Get the file format of this config file instance
|
String |
getContent()
Get file content of the namespace
|
boolean |
hasContent()
Whether the config file has any content
|
addChangeListener, getNamespace, getSourceType, onRepositoryChange, removeChangeListenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, getNamespace, getSourceType, removeChangeListenerpublic PropertiesConfigFile(String namespace, ConfigRepository configRepository)
public String getContent()
ConfigFilegetContent in interface ConfigFilenull if there is no contentpublic boolean hasContent()
ConfigFilehasContent in interface ConfigFilepublic ConfigFileFormat getConfigFileFormat()
ConfigFilegetConfigFileFormat in interface ConfigFilepublic Properties asProperties()
asProperties in interface PropertiesCompatibleConfigFileCopyright © 2023. All rights reserved.