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 = (1 as 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 = (2 as 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 = (4 as 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 = (8 as 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 = (16 as 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 = (32 as Int)
  • A combination of IGNORE_EXTERNAL_REFERENCES, IGNORE_INTERNAL_REFERENCES, and IGNORE_STANDARD_REFERENCES.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public static let ignoreXmlAnnotations: Int = (128 as Int)
  • A combination of IGNORE_EDM_ANNOTATIONS and IGNORE_XML_ANNOTATIONS.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public static let resolveUndefinedTerms: Int = (512 as 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 = (1024 as Int)
  • Set this option to force the parser to trace elements encountered during parsing.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public static let allowCaseConflicts: Int = (8192 as Int)