Class NamePattern

  • All Implemented Interfaces:
    java.io.Serializable

    @Internal
    public class NamePattern
    extends java.lang.Object
    implements java.io.Serializable
    Pattern matcher for syntax used for patterns in input config. Accepted patterns can contain wildcards (*) which are then translated into java.util.regex.Patterns.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NamePattern​(java.lang.String pattern)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      boolean matches​(java.lang.String what)
      Match input string against the pattern.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamePattern

        public NamePattern​(java.lang.String pattern)
        Constructor. Convert ingest config pattern into java java.util.regex.Pattern.
        Parameters:
        pattern - string pattern to wrap into this object
    • Method Detail

      • matches

        public boolean matches​(java.lang.String what)
        Match input string against the pattern.
        Parameters:
        what - the string to match
        Returns:
        true if matches
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object