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 Summary
Constructors -
Method Summary
-
Constructor Details
-
RegexParser
public RegexParser()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
parse
Parse the value and return the matched part or null- Parameters:
value-- Returns:
- matched part or null
-
parse
Parse the value and return the matched group or null- Parameters:
value-group-- Returns:
- matched group or null
-
setRegex
- Parameters:
regex- the regex to set
-
getRegex
- Returns:
- the regex
-