Class IRIFactoryImpl

java.lang.Object
org.apache.jena.iri.impl.AbsIRIFactoryImpl
org.apache.jena.iri.impl.IRIFactoryImpl
All Implemented Interfaces:
Force, IRIComponents, IRIFactoryI, ViolationCodes
Direct Known Subclasses:
IRIFactory

public class IRIFactoryImpl extends AbsIRIFactoryImpl implements ViolationCodes, Force, IRIComponents
  • Field Details

  • Constructor Details

    • IRIFactoryImpl

      public IRIFactoryImpl()
    • IRIFactoryImpl

      public IRIFactoryImpl(IRIFactoryImpl template)
  • Method Details

    • 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(String enc) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • create

      public IRI create(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(String scheme)
    • getScheme

      public SchemeSpecificPart getScheme(String scheme, Parser parser)
    • noScheme

      public SchemeSpecificPart noScheme()
    • getRequired

      public int getRequired()
    • getProhibited

      public int getProhibited()
    • useSchemeSpecificRules

      public void useSchemeSpecificRules(String scheme, boolean asErr)