Class AttributeValueTransform


  • public class AttributeValueTransform
    extends Object
    Attribute value transform spec.
    • Constructor Detail

      • AttributeValueTransform

        public AttributeValueTransform​(Pattern matchPattern,
                                       String replacement)
        Creates a new target attribute spec.
        Parameters:
        matchPattern - The attribute value match pattern.
        replacement - The replacement string for the attribute value.
    • Method Detail

      • getMatchPattern

        public Pattern getMatchPattern()
        Returns the attribute value match pattern.
        Returns:
        The pattern.
      • getReplacement

        public String getReplacement()
        Returns the replacement string for the attribute value.
        Returns:
        The replacement string.
      • transformValue

        public String transformValue​(String value)
        Transforms the specified attribute value if the pattern is matched.
        Parameters:
        value - The attribute value, null if not specified.
        Returns:
        The potentially transformed value.