includeReference

open fun includeReference(uri: String, ns: String)

See includeReference(String, String, String?).

Parameters

uri

Uri parameter.

ns

Ns parameter.


open fun includeReference(uri: String, ns: String, alias: String?)

Add to {@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlParser#includeReferences CsdlParser.includeReferences} a supplementary CSDL edmx:Reference (with embedded edmx:Include). Call this function before {@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlParser#parse(kotlin.String, kotlin.String) CsdlParser.parse} if the document to be parsed is missing expected edmx:Reference elements for well-known schemas. This function generates an edmx:Reference with a caller-specified "Uri". It can be used together with a {@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlParser#csdlFetcher CsdlParser.csdlFetcher} which resolves documents either by caller-specified location (uri) or by namespace (ns).

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlParser#csdlOptions CsdlParser.csdlOptions}, {@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlParser#includeNamespace(kotlin.String, kotlin.String?) CsdlParser.includeNamespace}.

Parameters

uri

For the "Uri" attribute of "edmx:Reference".

ns

For the "Namespace" attribute of "edmx:Include".

alias

(nullable) For the "Alias" attribute of "edmx:Include".