CSDLOption

public class CSDLOption

Bitmask flags for CsdlParser.csdlOptions.

  • Set this option to force the parser to process elements from multiple OData versions. Without this option, only elements belonging to the outermost schema’s OData version will be processed. Other elements will be ignored.

    Declaration

    Swift

    public static let processMixedVersions: Int
  • Set this option to force the parser to retain the original CSDL (XML) text in CsdlDocument.originalText.

    Declaration

    Swift

    public static let retainOriginalText: Int
  • Set this option to force the parser to retain the resolved CSDL (XML) text in CsdlDocument.resolvedText.

    Declaration

    Swift

    public static let retainResolvedText: Int
  • Set this option to force the parser to ignore Edmx Reference elements which have a non-standard Uri (e.g. not starting with “http://docs.oasis-open.org/odata/”) and which do not share the same origin as the referencing document.

    Declaration

    Swift

    public static let ignoreExternalReferences: Int
  • Set this option to force the parser to ignore Edmx Reference elements which have a non-standard Uri (e.g. not starting with “http://docs.oasis-open.org/odata/”) and which share the same origin as the referencing document.

    Declaration

    Swift

    public static let ignoreInternalReferences: Int
  • Set this option to force the parser to ignore Edmx Reference elements which have a standard Uri (e.g. starting with “http://docs.oasis-open.org/odata/”).

    Declaration

    Swift

    public static let ignoreStandardReferences: Int
  • A combination of IGNORE_EXTERNAL_REFERENCES, IGNORE_INTERNAL_REFERENCES, and IGNORE_STANDARD_REFERENCES.

    Declaration

    Swift

    public static let ignoreAllReferences: Int
  • Set this option to force the parser to ignore EDM annotations (OData V4+ annotations).

    Declaration

    Swift

    public static let ignoreEdmAnnotations: Int
  • Set this option to force the parser to ignore XML annotations (custom XML attributes).

    Declaration

    Swift

    public static let ignoreXmlAnnotations: Int
  • A combination of IGNORE_EDM_ANNOTATIONS and IGNORE_XML_ANNOTATIONS.

    Declaration

    Swift

    public static let ignoreAllAnnotations: Int
  • Set this option to force the parser to ignore annotations using undefined terms.

    Declaration

    Swift

    public static let ignoreUndefinedTerms: Int
  • Set this option to force the parser to resolve annotations using undefined terms.

    Declaration

    Swift

    public static let resolveUndefinedTerms: Int
  • Set this option to force the parser to ignore annotations using undefined terms, but log a warning message.

    Declaration

    Swift

    public static let warnAboutUndefinedTerms: Int
  • Set this option to force the parser to trace elements encountered during parsing.

    Declaration

    Swift

    public static let traceParsingOfElements: Int
  • Set this option to force the parser to skip validation of element names.

    Declaration

    Swift

    public static let disableNameValidation: Int
  • Set this option to allow model elements with names differing only in case.

    Declaration

    Swift

    public static let allowCaseConflicts: Int
  • Set this option to default unspecified scale to “variable” rather than “0”.

    Declaration

    Swift

    public static let defaultVariableScale: Int
  • Set this option to default unspecified SRID to “variable” rather than “0”.

    Declaration

    Swift

    public static let defaultVariableSrid: Int
  • Set this option to disallow warnings about questionable values for type facets, such as unspecified scale.

    Declaration

    Swift

    public static let disableFacetWarnings: Int
  • Set this option to enable the strictest possible warnings about questionable values for type facets, such as unspecified nullability.

    Declaration

    Swift

    public static let strictFacetWarnings: Int
  • Disable logging of parsing errors. Parsing errors will still be thrown as exceptions even if disabled for logging.

    See also

    CsdlParser.logErrors.

    Declaration

    Swift

    public static let disableLoggingOfErrors: Int
  • Disable logging of parsing warnings.

    See also

    CsdlParser.logWarnings.

    Declaration

    Swift

    public static let disableLoggingOfWarnings: Int
  • Enable errors for incompatibility with DataServiceProvider implementation (e.g. SQLDatabaseProvider). Parsing of metadata will fail if such errors are detected.

    Declaration

    Swift

    public static let failIfProviderIncompatible: Int
  • Enable warnings for incompatibility with DataServiceProvider implementation (e.g. SQLDatabaseProvider). Parsing of metadata will succeed if such warnings are detected.

    Declaration

    Swift

    public static let warnIfProviderIncompatible: Int
  • Use unqualified file names (without directory path) in logged error/warning messages.

    Declaration

    Swift

    public static let logWithUnqualifiedFileNames: Int
  • Skip server-only elements in the csdl xml to be parsed and added to CsdlDocument. An element is server-only if it contains an Annotation child element with Term=“com.sap.cloud.server.odata.sql.v1.ServerOnly”.

    Declaration

    Swift

    public static let excludeServerOnlyElements: Int
  • If a metadata change is detected during loading, should a compatibility check be performed?

    Declaration

    Swift

    public static let csdlCompatibilityCheck: Int
  • Navigation property nullability inconsistency with foreign key nullability only produces a warning, even if FAIL_IF_PROVIDER_INCOMPATIBLE is enabled.

    Declaration

    Swift

    public static let allowInconsistentNullability: Int
  • Synthesize properties, constraints and resources for containment navigation properties.

    Declaration

    Swift

    public static let synthesizeTargetSets: Int
  • Set this option to allow model elements with EnumMember attributes having unqualified member names.

    Declaration

    Swift

    public static let allowUnqualifiedMembers: Int
  • map

    A map from option name to option value. Option names (map keys) appear in the map as underscore-separated uppercase words.

    Declaration

    Swift

    public static let map: IntMap