Class ValidatorClassNameMatcher.Builder

java.lang.Object
com.streamwide.smartms.lib.template.serialization.ValidatorClassNameMatcher.Builder
Enclosing class:
ValidatorClassNameMatcher

public static final class ValidatorClassNameMatcher.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • accept

      @NonNull public ValidatorClassNameMatcher.Builder accept(@NonNull Class<?>... classes)
      Accept the specified classes for deserialization, unless they are otherwise rejected.
      Parameters:
      classes - Classes to accept
      Returns:
      this object
    • reject

      @NonNull public ValidatorClassNameMatcher.Builder reject(@NonNull Class<?>... classes)
      Reject the specified classes for deserialization, even if they are otherwise accepted.
      Parameters:
      classes - Classes to reject
      Returns:
      this object
    • accept

      @NonNull public ValidatorClassNameMatcher.Builder accept(@NonNull String... patterns)
      Accept the wildcard specified classes for deserialization, unless they are otherwise rejected.
      Parameters:
      patterns - Wildcard file name patterns as defined by FilenameUtils.wildcardMatch
      Returns:
      this object
    • reject

      @NonNull public ValidatorClassNameMatcher.Builder reject(@NonNull String... patterns)
      Reject the wildcard specified classes for deserialization, even if they are otherwise accepted.
      Parameters:
      patterns - Wildcard file name patterns as defined by FilenameUtils.wildcardMatch
      Returns:
      this object
    • accept

      @NonNull public ValidatorClassNameMatcher.Builder accept(@NonNull Pattern pattern)
      Accept class names that match the supplied pattern for deserialization, unless they are otherwise rejected.
      Parameters:
      pattern - standard Java regexp
      Returns:
      this object
    • reject

      @NonNull public ValidatorClassNameMatcher.Builder reject(@NonNull Pattern pattern)
      Reject class names that match the supplied pattern for deserialization, even if they are otherwise accepted.
      Parameters:
      pattern - standard Java regexp
      Returns:
      this object
    • accept

      @NonNull public ValidatorClassNameMatcher.Builder accept(@NonNull ClassNameMatcher m)
      Accept class names where the supplied ClassNameMatcher matches for deserialization, unless they are otherwise rejected.
      Parameters:
      m - the matcher to use
      Returns:
      this object
    • reject

      @NonNull public ValidatorClassNameMatcher.Builder reject(@NonNull ClassNameMatcher m)
      Reject class names where the supplied ClassNameMatcher matches for deserialization, even if they are otherwise accepted.
      Parameters:
      m - the matcher to use
      Returns:
      this object
    • build

      @NonNull public ValidatorClassNameMatcher build()