Class XmlMatchingRule

java.lang.Object
com.evolveum.midpoint.prism.impl.match.XmlMatchingRule
All Implemented Interfaces:
MatchingRule<String>

public class XmlMatchingRule extends Object implements MatchingRule<String>
String matching rule that compares strings as XML snippets. The XML comparison is not schema aware. It will not handle QNames in values correctly. The comparison ignores XML formatting (whitespaces between elements).
Author:
Radovan Semancik
  • Constructor Details

    • XmlMatchingRule

      public XmlMatchingRule()
  • Method Details

    • getName

      public QName getName()
      Description copied from interface: MatchingRule
      QName that identifies the rule. This QName may be used to refer to this specific matching rule, it is an matching rule identifier.
      Specified by:
      getName in interface MatchingRule<String>
    • supports

      public boolean supports(QName xsdType)
      Description copied from interface: MatchingRule
      Returns true if the rule can be applied to the specified XSD type.
      Specified by:
      supports in interface MatchingRule<String>
    • getNormalizer

      @NotNull public @NotNull XmlNormalizer getNormalizer()
      Description copied from interface: MatchingRule
      Returns the normalizer corresponding to this rule.
      Specified by:
      getNormalizer in interface MatchingRule<String>
    • toString

      public String toString()
      Overrides:
      toString in class Object