Class TypePatternMatcherFactory

java.lang.Object
org.hibernate.search.mapper.pojo.model.typepattern.impl.TypePatternMatcherFactory

public class TypePatternMatcherFactory extends Object
  • Constructor Details

  • Method Details

    • createExactRawTypeMatcher

      public TypePatternMatcher createExactRawTypeMatcher(Class<?> exactTypeToMatch)
    • createRawSuperTypeMatcher

      public TypePatternMatcher createRawSuperTypeMatcher(Class<?> superTypeToMatch)
    • createExtractingMatcher

      public ExtractingTypePatternMatcher createExtractingMatcher(Type typePattern, Type typeToExtract)
      Parameters:
      typePattern - The type used as a pattern to be matched. Not all types are accepted.
      typeToExtract - The type to extract when matching the pattern. Not all types are accepted.
      Returns:
      A type pattern matcher matching subtypes of typePattern and returning the typeToExtract resolved against the type submitted to the matcher in the even of a match.
      Throws:
      UnsupportedOperationException - If this factory does not support creating a type pattern matcher for the given types.