public abstract class CsdlOption
extends java.lang.Object
Bitmask flags for CsdlParser.csdlOptions
.
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_CASE_CONFLICTS
Set this option to allow model elements with names differing only in case.
|
static int |
DEFAULT_VARIABLE_SCALE
Set this option to default unspecified scale to "variable" rather than "0".
|
static int |
DEFAULT_VARIABLE_SRID
Set this option to default unspecified scale to "variable" rather than "0".
|
static int |
DISABLE_FACET_WARNINGS
Set this option to disallow warnings about questionable values for type facets, such as unspecified scale.
|
static int |
DISABLE_LOGGING_OF_ERRORS
Disable logging of parsing errors.
|
static int |
DISABLE_LOGGING_OF_WARNINGS
Disable logging of parsing warnings.
|
static int |
DISABLE_NAME_VALIDATION
Set this option to force the parser to skip validation of element names.
|
static int |
EXCLUDE_SERVER_ONLY_ELEMENTS
Skip server-only elements in the csdl xml to be parsed and added to CsdlDocument.
|
static int |
FAIL_IF_PROVIDER_INCOMPATIBLE
Enable errors for incompatibility with DataServiceProvider implementation (e.g.
|
static int |
IGNORE_ALL_ANNOTATIONS
A combination of
IGNORE_EDM_ANNOTATIONS and IGNORE_XML_ANNOTATIONS . |
static int |
IGNORE_ALL_REFERENCES
A combination of
IGNORE_EXTERNAL_REFERENCES , IGNORE_INTERNAL_REFERENCES , and IGNORE_STANDARD_REFERENCES . |
static int |
IGNORE_EDM_ANNOTATIONS
Set this option to force the parser to ignore EDM annotations (OData V4+ annotations).
|
static int |
IGNORE_EXTERNAL_REFERENCES
Set this option to force the parser to ignore Edmx Reference elements which have a non-standard Uri (e.g.
|
static int |
IGNORE_INTERNAL_REFERENCES
Set this option to force the parser to ignore Edmx Reference elements which have a non-standard Uri (e.g.
|
static int |
IGNORE_STANDARD_REFERENCES
Set this option to force the parser to ignore Edmx Reference elements which have a standard Uri (e.g.
|
static int |
IGNORE_UNDEFINED_TERMS
Set this option to force the parser to ignore annotations using undefined terms.
|
static int |
IGNORE_XML_ANNOTATIONS
Set this option to force the parser to ignore XML annotations (custom XML attributes).
|
static int |
LOG_WITH_UNQUALIFIED_FILE_NAMES
Use unqualified file names (without directory path) in logged error/warning messages.
|
static int |
PROCESS_MIXED_VERSIONS
Set this option to force the parser to process elements from multiple OData versions.
|
static int |
RESOLVE_UNDEFINED_TERMS
Set this option to force the parser to resolve annotations using undefined terms.
|
static int |
RETAIN_ORIGINAL_TEXT
Set this option to force the parser to retain the original CSDL (XML) text in
CsdlDocument.originalText . |
static int |
RETAIN_RESOLVED_TEXT
Set this option to force the parser to retain the resolved CSDL (XML) text in
CsdlDocument.resolvedText . |
static int |
STRICT_FACET_WARNINGS
Set this option to enable the strictest possible warnings about questionable values for type facets, such as unspecified nullability.
|
static int |
TRACE_PARSING_OF_ELEMENTS
Set this option to force the parser to trace elements encountered during parsing.
|
static int |
WARN_ABOUT_UNDEFINED_TERMS
Set this option to force the parser to ignore annotations using undefined terms, but log a warning message.
|
static int |
WARN_IF_PROVIDER_INCOMPATIBLE
Enable warnings for incompatibility with DataServiceProvider implementation (e.g.
|
Constructor and Description |
---|
CsdlOption() |
public static final int PROCESS_MIXED_VERSIONS
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.
public static final int RETAIN_ORIGINAL_TEXT
Set this option to force the parser to retain the original CSDL (XML) text in CsdlDocument.originalText
.
public static final int RETAIN_RESOLVED_TEXT
Set this option to force the parser to retain the resolved CSDL (XML) text in CsdlDocument.resolvedText
.
public static final int IGNORE_EXTERNAL_REFERENCES
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.
public static final int IGNORE_INTERNAL_REFERENCES
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.
public static final int IGNORE_STANDARD_REFERENCES
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/").
public static final int IGNORE_ALL_REFERENCES
A combination of IGNORE_EXTERNAL_REFERENCES
, IGNORE_INTERNAL_REFERENCES
, and IGNORE_STANDARD_REFERENCES
.
public static final int IGNORE_EDM_ANNOTATIONS
Set this option to force the parser to ignore EDM annotations (OData V4+ annotations).
public static final int IGNORE_XML_ANNOTATIONS
Set this option to force the parser to ignore XML annotations (custom XML attributes).
public static final int IGNORE_ALL_ANNOTATIONS
A combination of IGNORE_EDM_ANNOTATIONS
and IGNORE_XML_ANNOTATIONS
.
public static final int IGNORE_UNDEFINED_TERMS
Set this option to force the parser to ignore annotations using undefined terms.
public static final int RESOLVE_UNDEFINED_TERMS
Set this option to force the parser to resolve annotations using undefined terms.
public static final int WARN_ABOUT_UNDEFINED_TERMS
Set this option to force the parser to ignore annotations using undefined terms, but log a warning message.
public static final int TRACE_PARSING_OF_ELEMENTS
Set this option to force the parser to trace elements encountered during parsing.
public static final int DISABLE_NAME_VALIDATION
Set this option to force the parser to skip validation of element names.
public static final int ALLOW_CASE_CONFLICTS
Set this option to allow model elements with names differing only in case.
public static final int DEFAULT_VARIABLE_SCALE
Set this option to default unspecified scale to "variable" rather than "0".
public static final int DEFAULT_VARIABLE_SRID
Set this option to default unspecified scale to "variable" rather than "0".
public static final int DISABLE_FACET_WARNINGS
Set this option to disallow warnings about questionable values for type facets, such as unspecified scale.
public static final int STRICT_FACET_WARNINGS
Set this option to enable the strictest possible warnings about questionable values for type facets, such as unspecified nullability.
public static final int DISABLE_LOGGING_OF_ERRORS
Disable logging of parsing errors. Parsing errors will still be thrown as exceptions even if disabled for logging.
public static final int DISABLE_LOGGING_OF_WARNINGS
Disable logging of parsing warnings.
public static final int FAIL_IF_PROVIDER_INCOMPATIBLE
Enable errors for incompatibility with DataServiceProvider implementation (e.g. SQLDatabaseProvider). Parsing of metadata will fail if such errors are detected.
public static final int WARN_IF_PROVIDER_INCOMPATIBLE
Enable warnings for incompatibility with DataServiceProvider implementation (e.g. SQLDatabaseProvider). Parsing of metadata will succeed if such warnings are detected.
public static final int LOG_WITH_UNQUALIFIED_FILE_NAMES
Use unqualified file names (without directory path) in logged error/warning messages.
public static final int EXCLUDE_SERVER_ONLY_ELEMENTS
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".