Class DictionaryTarget
- java.lang.Object
-
- com.suse.salt.netapi.datatypes.target.AbstractTarget<java.lang.String>
-
- com.suse.salt.netapi.datatypes.target.DictionaryTarget
-
- Direct Known Subclasses:
Grains,GrainsRegEx,Pillar,PillarExact,PillarRegEx
abstract class DictionaryTarget extends AbstractTarget<java.lang.String>
Base class for all grain and pillar target types
-
-
Field Summary
Fields Modifier and Type Field Description static charDEFAULT_DELIMITERprotected chardelimiterprotected java.lang.Stringkeyprotected java.lang.Stringvalue-
Fields inherited from class com.suse.salt.netapi.datatypes.target.AbstractTarget
target, type
-
-
Constructor Summary
Constructors Constructor Description DictionaryTarget(TargetType type, java.lang.String target)DictionaryTarget(TargetType type, java.lang.String target, char delimiter)DictionaryTarget(TargetType type, java.lang.String key, java.lang.String value)DictionaryTarget(TargetType type, java.lang.String key, java.lang.String value, char delimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetDelimiter()java.lang.StringgetKey()java.util.Map<java.lang.String,java.lang.Object>getProps()java.lang.StringgetValue()-
Methods inherited from class com.suse.salt.netapi.datatypes.target.AbstractTarget
getTarget, getType
-
-
-
-
Field Detail
-
DEFAULT_DELIMITER
public static final char DEFAULT_DELIMITER
- See Also:
- Constant Field Values
-
key
protected final java.lang.String key
-
value
protected final java.lang.String value
-
delimiter
protected final char delimiter
-
-
Constructor Detail
-
DictionaryTarget
DictionaryTarget(TargetType type, java.lang.String target)
-
DictionaryTarget
DictionaryTarget(TargetType type, java.lang.String target, char delimiter)
-
DictionaryTarget
DictionaryTarget(TargetType type, java.lang.String key, java.lang.String value)
-
DictionaryTarget
DictionaryTarget(TargetType type, java.lang.String key, java.lang.String value, char delimiter)
-
-
Method Detail
-
getKey
public java.lang.String getKey()
- Returns:
- the grain name of this matcher
-
getValue
public java.lang.String getValue()
- Returns:
- the value to match the grain
-
getDelimiter
public char getDelimiter()
- Returns:
- the delimiter used by this target
-
getProps
public java.util.Map<java.lang.String,java.lang.Object> getProps()
- Overrides:
getPropsin classAbstractTarget<java.lang.String>- Returns:
- a map of items to include in the API call payload This will include the 'delimiter' key if not using the default delimiter.
-
-