Class Target


  • public class Target
    extends Object
    • Constructor Detail

      • Target

        public Target()
    • Method Detail

      • getType

        public String getType()
      • getRules

        public List<Rule> getRules()
      • matches

        public boolean matches​(String targetType)
        Return whether this Target pertains to the given target type.
        Parameters:
        targetType - MIME type to compare with
        Returns:
        true if the target matches to the given target type
      • getFirstMatch

        public Rule getFirstMatch​(MimeType providedType)
        Return the first rule in the ruleset matching the given MimeType or null if there are no matching rules.
        Parameters:
        providedType - MimeType to search a matching Rule for
        Returns:
        the first rule matching the given MIME type