Class Grains

All Implemented Interfaces:
Target<String>

public class Grains extends DictionaryTarget implements Target<String>
Matcher based on salt grains
  • Constructor Details

    • Grains

      public Grains(String target)
      Creates a grains matcher
      Parameters:
      target - the targeting expression
    • Grains

      public Grains(String target, char delimiter)
      Creates a grains matcher
      Parameters:
      target - the targeting expression
      delimiter - the character to delimit nesting in the grain name
    • Grains

      public Grains(String grain, String value)
      Creates a grains matcher
      Parameters:
      grain - the grain name
      value - the value to match
    • Grains

      public Grains(String grain, String value, char delimiter)
      Creates a grains matcher
      Parameters:
      grain - the grain name
      value - the value to match
      delimiter - the character to delimit nesting in the grain name
  • Method Details