Interface DocumentAddressResolver

    • Method Detail

      • getRelativeAddressFor

        @Nullable
        String getRelativeAddressFor​(@NotNull
                                     SDDocument current,
                                     @NotNull
                                     SDDocument referenced)
        Produces a relative reference from one document to another.
        Parameters:
        current - The document that is being generated.
        referenced - The document that is referenced.
        Returns:
        The reference to be put inside current to refer to referenced. This can be a relative URL as well as an absolute. If null is returned, then the SDDocument will produce a "implicit reference" (for example, <xs:import> without the @schemaLocation attribute, etc).