java.lang.Object
dev.orne.config.impl.AbstractConfig
dev.orne.config.impl.AbstractMutableConfig
dev.orne.config.impl.AbstractWatchableConfig
dev.orne.config.impl.XmlConfigImpl
- All Implemented Interfaces:
Config
- Direct Known Subclasses:
XmlMutableConfigImpl
Implementation of
Config based on a XML document.- Since:
- 0.1
- Version:
- 1.0, 2025-07
- Author:
- (w) Iker Hernaez
- See Also:
-
Field Summary
Fields inherited from class dev.orne.config.impl.AbstractConfig
KEY_BLANK_ERR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXmlConfigImpl(ConfigOptions options, MutableConfigOptions mutableOptions, XmlConfigOptions xmlOptions) Creates a new instance.XmlConfigImpl(ConfigOptions options, XmlConfigOptions xmlOptions) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsInt(String key) Returnstrueif the property with the key passed as argument has been configured in this configuration instance.protected StringReturns the XML attributes references prefix.protected DocumentReturns the XML document with the configuration options.protected @Nullable StringReturns the value of the configuration property asString.Returns the configuration property keys contained in this configuration instance .protected StringReturns the configuration nested properties separator.protected booleanReturnstrueif this configuration instance contains no property.Methods inherited from class dev.orne.config.impl.AbstractWatchableConfig
addListener, getEvents, notifyLocalChanges, notifyParentChanges, remove, removeListener, setMethods inherited from class dev.orne.config.impl.AbstractMutableConfig
getEncoder, removeInt, setIntMethods inherited from class dev.orne.config.impl.AbstractConfig
contains, get, getDecoder, getDecorator, getKeys, getParent, getResolver, getUndecored, isEmpty, isOverrideParentPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.orne.config.Config
as, get, get, getBoolean, getBoolean, getBoolean, getInteger, getInteger, getInteger, getKeys, getKeys, getLong, getLong, getLong, subset
-
Constructor Details
-
XmlConfigImpl
Creates a new instance.- Parameters:
options- The configuration builder options.xmlOptions- The XML based configuration builder options.
-
XmlConfigImpl
protected XmlConfigImpl(ConfigOptions options, MutableConfigOptions mutableOptions, XmlConfigOptions xmlOptions) Creates a new instance.- Parameters:
options- The configuration builder options.mutableOptions- The mutable configuration builder options.xmlOptions- The XML based configuration builder options.
-
-
Method Details
-
getDocument
Returns the XML document with the configuration options.- Returns:
- The XML document with the configuration options.
-
getPropertySeparator
Returns the configuration nested properties separator.- Returns:
- The configuration nested properties separator.
-
getAttributePrefix
Returns the XML attributes references prefix.- Returns:
- The XML attributes references prefix.
-
isEmptyInt
protected boolean isEmptyInt()Returnstrueif this configuration instance contains no property.Parent configuration
- Specified by:
isEmptyIntin classAbstractConfig- Returns:
- Returns
trueif the configuration contains no property.
-
containsInt
Returnstrueif the property with the key passed as argument has been configured in this configuration instance.- Specified by:
containsIntin classAbstractConfig- Parameters:
key- The configuration property.- Returns:
- Returns
trueif the property has been configured.
-
getKeysInt
Returns the configuration property keys contained in this configuration instance .- Specified by:
getKeysIntin classAbstractConfig- Returns:
- The configuration property keys.
-
getInt
Returns the value of the configuration property asString.- Specified by:
getIntin classAbstractConfig- Parameters:
key- The configuration property.- Returns:
- The configuration parameter value.
-