Class DefaultMatchingRule<T>

  • All Implemented Interfaces:

    public class DefaultMatchingRule<T>
    extends Object
    implements MatchingRule<T>
    Default matching rule used as a fall-back if no explicit matching rule is specified. It is simply using java equals() method to match values.
    Radovan Semancik
    • Constructor Detail

      • DefaultMatchingRule

        public DefaultMatchingRule()
    • Method Detail

      • 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<T>
      • isSupported

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

        public boolean match​(T a,
                             T b)
        Description copied from interface: MatchingRule
        Matches two objects.
        Specified by:
        match in interface MatchingRule<T>
      • normalize

        public T normalize​(T original)
        Description copied from interface: MatchingRule
        Returns a normalized version of the value. For normalized version the following holds: if A matches B then normalize(A) == normalize(B)
        Specified by:
        normalize in interface MatchingRule<T>