Class IRIFactoryImpl

    • Constructor Detail

      • IRIFactoryImpl

        public IRIFactoryImpl()
    • Method Detail

      • create

        public IRI create​(IRI i)
        Description copied from interface: IRIFactoryI
        Make a new IRI object (possibly including IRI resolution), and check it for violations of the standards being enforced by the factory. This method both allows IRI resolution against a base, and for creating a new IRI using a different factory, with different conformance settings, implementing a different URI or IRI standard, or variant thereof. This method does not throw exceptions, but records all errors and warnings found to be queried later using IRI.hasViolation(boolean) and IRI.violations(boolean).
        Specified by:
        create in interface IRIFactoryI
        Specified by:
        create in class AbsIRIFactoryImpl
        Parameters:
        i - The IRI to use.
        Returns:
        A new IRI object.
      • setEncoding

        public void setEncoding​(java.lang.String enc)
                         throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • create

        public IRI create​(java.lang.String s)
        Description copied from interface: IRIFactoryI
        Make a new IRI object (possibly including IRI resolution), and check it for violations of the standards being enforced by the factory. This method does not throw exceptions, but records all errors and warnings found to be queried later using IRI.hasViolation(boolean) and IRI.violations(boolean).
        Specified by:
        create in interface IRIFactoryI
        Overrides:
        create in class AbsIRIFactoryImpl
        Parameters:
        s - The IRI to use.
        Returns:
        A new IRI object.
      • setSameSchemeRelativeReferences

        public void setSameSchemeRelativeReferences​(java.lang.String scheme)
      • getRequired

        public int getRequired()
      • getProhibited

        public int getProhibited()
      • useSchemeSpecificRules

        public void useSchemeSpecificRules​(java.lang.String scheme,
                                           boolean asErr)