Class ProtocolRestricter

java.lang.Object
net.sf.saxon.lib.ProtocolRestricter
All Implemented Interfaces:
Predicate<URI>

public class ProtocolRestricter extends Object implements Predicate<URI>
This class implements the rules in a property such as XMLConstants.ACCESS_EXTERNAL_SCHEMA, which constrain the set of URIs that can be used by supplying a list of permitted protocols.
  • Method Details

    • make

      public static Predicate<URI> make(String value)
    • test

      public boolean test(URI uri)
      Evaluates this predicate on the given argument.
      Specified by:
      test in interface Predicate<URI>
      Parameters:
      uri - the input argument
      Returns:
      true if the input argument matches the predicate, otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object