Package de.mhus.lib.core.config
Class IConfig
-
- All Implemented Interfaces:
ILog,IProperties,IReadProperties,MNlsProvider,Nls,Serializable,Iterable<Map.Entry<String,Object>>,Map<String,Object>
- Direct Known Subclasses:
DirectoryToConfigWrapper,EmptyConfig,HashConfig,JsonConfig,PropertiesConfig,XmlConfig
public abstract class IConfig extends WritableResourceNode<IConfig>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.mhus.lib.core.directory.WritableResourceNode
MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UP
-
Fields inherited from class de.mhus.lib.core.directory.ResourceNode
compiledCache, compiler
-
-
Constructor Summary
Constructors Constructor Description IConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPropertiesgetRenditionProperties(String rendition)Returns a set of properties to define the rendition.Collection<String>getRenditions()Returns a list of available renditions.booleanhasContent()booleanisValid()-
Methods inherited from class de.mhus.lib.core.directory.WritableResourceNode
createConfig, moveConfig, removeConfig, setString
-
Methods inherited from class de.mhus.lib.core.directory.ResourceNode
containsValue, dump, entrySet, getExtracted, getExtracted, getExtracted, getInputStream, getInputStream, getName, getNode, getNodeByPath, getNodeKeys, getNodes, getNodes, getParent, getPropertyKeys, getRenditionProperties, getUrl, keys, size, values
-
Methods inherited from class de.mhus.lib.core.AbstractProperties
containsKey, get, getBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getFormatted, getInt, getLong, getNumber, getProperty, getString, getString, isEditable, isEmpty, isProperty, iterator, keySet, put, putAll, putReadProperties, remove, removeProperty, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumber, setProperty, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.mhus.lib.core.IProperties
clear
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
- Specified by:
isValidin classResourceNode<IConfig>
-
hasContent
public boolean hasContent()
- Specified by:
hasContentin classResourceNode<IConfig>
-
getRenditions
public Collection<String> getRenditions()
Description copied from class:ResourceNodeReturns a list of available renditions. Will not return the default rendition.- Specified by:
getRenditionsin classResourceNode<IConfig>- Returns:
- The list or null if hasContent() is false
-
getRenditionProperties
public IProperties getRenditionProperties(String rendition)
Description copied from class:ResourceNodeReturns a set of properties to define the rendition.- Specified by:
getRenditionPropertiesin classResourceNode<IConfig>- Returns:
- properties
-
-