addVocabularyReference

See addVocabularyReference(String, String?, String?).

Parameters

ns

Ns parameter.


open fun addVocabularyReference(ns: String, uri: String?)

See addVocabularyReference(String, String?, String?).

Parameters

ns

Ns parameter.

uri

Uri parameter.


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

Add a well-known vocabulary reference to this metadata. If this metadata already has a reference to the well-known vocabulary, then no change is made. If the reference is to one of the {@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlDocument#builtinVocabularyNamespaces CsdlDocument.builtinVocabularyNamespaces}, then all defined annotation terms/types from the vocabulary will also be added to the current metadata.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.csdl.CsdlDocument#builtinVocabularyNamespaces CsdlDocument.builtinVocabularyNamespaces}.

Parameters

ns

CSDL namespace.

uri

(nullable) Optional namespace URI. For builtin vocabulary namespaces, this can be derived from the namespace. For references to non-builtin vocabularies, it must be provided.

alias

(nullable) Optional namespace alias. For builtin vocabulary namespaces, this can be derived from the namespace. For references to non-builtin vocabularies, it can be provided.