Class EmptyMatcher

java.lang.Object
org.simpleframework.xml.core.EmptyMatcher
All Implemented Interfaces:
Matcher

class EmptyMatcher extends Object implements Matcher
The EmptyMatcher object is used as a delegate type that is used when no user specific matcher is specified. This ensures that no transform is resolved for a specified type, and allows the normal resolution of the stock transforms.
See Also:
  • Constructor Details

    • EmptyMatcher

      EmptyMatcher()
  • Method Details

    • match

      public Transform match(Class type) throws Exception
      This method is used to return a null value for the transform. Returning a null value allows the normal resolution of the stock transforms to be used when no matcher is specified.
      Specified by:
      match in interface Matcher
      Parameters:
      type - this is the type that is expecting a transform
      Returns:
      this transform will always return a null value
      Throws:
      Exception