Package io.jenkins.plugins.casc.model
Class Mapping
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,CNode>
-
- io.jenkins.plugins.casc.model.Mapping
-
public final class Mapping extends HashMap<String,CNode> implements CNode
- Author:
- Nicolas De Loof
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface io.jenkins.plugins.casc.model.CNode
CNode.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapping
asMapping()
Mapping
clone()
String
getScalarValue(String key)
Source
getSource()
Indicate the source (file, line number) this specific configuration node comes from.CNode.Type
getType()
void
put(String key, Boolean value)
void
put(String key, Number value)
void
put(String key, String value)
void
putIfNotEmpty(String key, Sequence seq)
void
putIfNotNull(String key, CNode node)
void
setSource(Source source)
-
Methods inherited from class java.util.HashMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.casc.model.CNode
asScalar, asSequence, isSensitiveData
-
-
-
-
Field Detail
-
EMPTY
public static final Mapping EMPTY
-
-
Method Detail
-
getType
public CNode.Type getType()
-
getScalarValue
public String getScalarValue(String key) throws ConfiguratorException
- Throws:
ConfiguratorException
-
setSource
public void setSource(Source source)
-
getSource
public Source getSource()
Description copied from interface:CNode
Indicate the source (file, line number) this specific configuration node comes from. This is used to offer relevant diagnostic messages
-
-