Class DictionaryTarget
java.lang.Object
com.suse.salt.netapi.datatypes.target.AbstractTarget<String>
com.suse.salt.netapi.datatypes.target.DictionaryTarget
- Direct Known Subclasses:
Grains, GrainsRegEx, Pillar, PillarExact, PillarRegEx
Base class for all grain and pillar target types
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charprotected final charprotected final Stringprotected final StringFields inherited from class AbstractTarget
target, type -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryTarget(TargetType type, String target) DictionaryTarget(TargetType type, String target, char delimiter) DictionaryTarget(TargetType type, String key, String value) DictionaryTarget(TargetType type, String key, String value, char delimiter) -
Method Summary
Methods inherited from class AbstractTarget
getTarget, getType
-
Field Details
-
DEFAULT_DELIMITER
public static final char DEFAULT_DELIMITER- See Also:
-
key
-
value
-
delimiter
protected final char delimiter
-
-
Constructor Details
-
DictionaryTarget
DictionaryTarget(TargetType type, String target) -
DictionaryTarget
DictionaryTarget(TargetType type, String target, char delimiter) -
DictionaryTarget
DictionaryTarget(TargetType type, String key, String value) -
DictionaryTarget
DictionaryTarget(TargetType type, String key, String value, char delimiter)
-
-
Method Details
-
getKey
- Returns:
- the grain name of this matcher
-
getValue
- Returns:
- the value to match the grain
-
getDelimiter
public char getDelimiter()- Returns:
- the delimiter used by this target
-
getProps
-