includeNamespace

open fun includeNamespace(ns: String)

See includeNamespace(String, String?).

Parameters

ns

Ns parameter.


open fun includeNamespace(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 fabricated "Uri" (with value "include/ns.xml"). It can be used together with a {@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlParser#csdlFetcher CsdlParser.csdlFetcher} which resolves documents either by fabricated location (include/ns.xml) 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#includeReference(kotlin.String, kotlin.String, kotlin.String?) CsdlParser.includeReference}.

Parameters

ns

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

alias

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