Class IRIProviderAny

  • All Implemented Interfaces:
    IRIProvider

    public class IRIProviderAny
    extends java.lang.Object
    implements IRIProvider
    Non-resolving provider that accepts anything string for <...>.

    Caveat emptor.

    • Constructor Summary

      Constructors 
      Constructor Description
      IRIProviderAny()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check​(java.lang.String iriStr)
      Create an IRI, throw IRIException if the string does not conform to the grammar or violates additional rules of the provider.
      IRIx create​(java.lang.String iri)
      Create an IRI, throw IRIException if the string does not conform to the grammar.
      boolean isStrictMode​(java.lang.String scheme)  
      void strictMode​(java.lang.String scheme, boolean runStrict)
      Run in strict mode - the exact definition of "strict" depends on the provider.
      static IRIProviderAny stringProvider()
      The IRIProvider builder does not create this kind of IRIProvider!
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IRIProviderAny

        public IRIProviderAny()
    • Method Detail

      • stringProvider

        public static IRIProviderAny stringProvider()
        The IRIProvider builder does not create this kind of IRIProvider!
      • create

        public IRIx create​(java.lang.String iri)
        Description copied from interface: IRIProvider
        Create an IRI, throw IRIException if the string does not conform to the grammar.
        Specified by:
        create in interface IRIProvider
      • check

        public void check​(java.lang.String iriStr)
                   throws IRIException
        Description copied from interface: IRIProvider
        Create an IRI, throw IRIException if the string does not conform to the grammar or violates additional rules of the provider.
        Specified by:
        check in interface IRIProvider
        Throws:
        IRIException
      • strictMode

        public void strictMode​(java.lang.String scheme,
                               boolean runStrict)
        Description copied from interface: IRIProvider
        Run in strict mode - the exact definition of "strict" depends on the provider. When strict a provider should implement to the letter of the specifications, including URI-scheme rules. This strictness should be documented.
        Specified by:
        strictMode in interface IRIProvider
      • isStrictMode

        public boolean isStrictMode​(java.lang.String scheme)
        Specified by:
        isStrictMode in interface IRIProvider