Class RegexParser

java.lang.Object
de.hybris.platform.acceleratorservices.util.RegexParser
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class RegexParser extends Object implements org.springframework.beans.factory.InitializingBean
Parser operating on a configured regular expression to return a matching part or null.
  • Constructor Details

    • RegexParser

      public RegexParser()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • parse

      public String parse(String value)
      Parse the value and return the matched part or null
      Parameters:
      value -
      Returns:
      matched part or null
    • parse

      public String parse(String value, int group)
      Parse the value and return the matched group or null
      Parameters:
      value -
      group -
      Returns:
      matched group or null
    • setRegex

      public void setRegex(String regex)
      Parameters:
      regex - the regex to set
    • getRegex

      protected String getRegex()
      Returns:
      the regex