Show TOC

Interface /IWBEP/IF_V4_ANNO_CASTLocate this document in the navigation structure

This is the interface for annotation cast expressions.

It includes interface /IWBEP/IF_V4_ANNO_ITEM.

Methods
Method CREATE_ANNOTATION
This method creates an annotation.
Code Syntax
    importing
      IV_TERM_NAMESPACE type STRING
      IV_TERM_NAME type STRING
      IV_QUALIFIER type STRING
    returning
      value(RO_ANNOTATION) type ref to /IWBEP/IF_V4_ANNO_ANNOTATION
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 1:
Parameter

Description

iv_term_namespace

Term namespace.

iv_term_name

Term name.

iv_qualifier

Qualifier.

ro_annotation

Annotation.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

An exception is raised if the provided term name or term namespace is not valid according to the OData V4 specification.

Method CREATE_CAST
This method creates a cast expression..
Code Syntax
    importing
      IV_TYPE_NAME type STRING
      IV_TYPE_NAMESPACE type STRING
    returning
      value(RO_CAST) type ref to /IWBEP/IF_V4_ANNO_CAST
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 2:
Parameter

Description

iv_type_name

Type name.

iv_type_namespace

Type namespace.

ro_cast

Cast expression.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

Method CREATE_CON_EXPRESSION
This method creates an conditional expression.
Code Syntax
    importing
      IV_CON_EXPRESSION_OPERATOR type /IWBEP/IF_V4_ANNO_TYPES=>TY_CON_EXPRESSION_OPERATOR
    returning
      value(RO_CONDITIONAL_EXPRESSION) type ref to /IWBEP/IF_V4_ANNO_COND_EXP
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 3:
Parameter

Description

iv_con_expression_operator

Conditional expression operator.

ro_conditional_expression

Conditional expression.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

An exception is raised if the provided conditional expression is not supported.

Method CREATE_FUNCTION
This method creates an function.
Code Syntax
    importing
      IV_FUNCTION_NAMESPACE type STRING
      IV_FUNCTION_NAME type STRING
    returning
      value(RO_FUNCTION) type ref to /IWBEP/IF_V4_ANNO_FUNCTION
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 4:
Parameter

Description

iv_function_namespace

Function namespace.

iv_function_name

Function name.

ro_function

Function

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

An exception is raised if the provided function name or function namespace is not valid according to the OData V4 specification. An exception is also raised if the provided function name or namespace is initial.

Method CREATE_ISOF
This method creates an IsOf expression.
Code Syntax
    importing
      IV_TYPE_NAME type STRING
      IV_TYPE_NAMESPACE type STRING
    returning
      value(RO_ISOF) type ref to /IWBEP/IF_V4_ANNO_ISOF
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 5:
Parameter

Description

iv_type_name

Type name.

iv_type_namespace

Type namespace.

ro_isof

IsOf expression.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

Method CREATE_LABELED_ELEMENT
This method creates a labeled element.
Code Syntax
    importing
      IV_LABEL_NAME type STRING
    returning
      value(RO_LABELED_ELEMENT) type ref to /IWBEP/IF_V4_ANNO_LABEL_ELEM
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 6:
Parameter

Description

iv_label_name

Label name.

ro_labeled_element

Labeled element expression.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

An exception is raised if the provided label name is not valid according to the OData V4 specification. An exception is also raised if the provided label name is initial.

Method CREATE_NULL
This method creates a null expression.
Code Syntax
    returning
      value(RO_NULL) type ref to /IWBEP/IF_V4_ANNO_NULL
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 7:
Parameter

Description

ro_null

Null expression.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.

Method CREATE_RECORD
This method creates a record.
Code Syntax
    importing
      IV_RECORD_TYPE_NAMESPACE type STRING
      IV_RECORD_TYPE type STRING
    returning
      value(RO_RECORD) type ref to /IWBEP/IF_V4_ANNO_RECORD
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 8:
Parameter

Description

iv_record_type_namespace

Record namespace.

iv_record_type

Record type.

ro_record

Record

Exceptions

The annotation exception is iwbep/cx_v4_annotation. An exception is raised if the provided record type name or record type namespace is not valid according to the OData V4 specification.

Method CREATE_SIMPLE_VALUE
This method creates a simple value.
Code Syntax
    returning
      value(RO_SIMPLE_VALUE) type ref to /IWBEP/IF_V4_ANNO_SIMP_VAL
    raising
      /IWBEP/CX_V4_ANNOTATION .
Table 9:
Parameter

Description

ro_simple_value

Annotation simple value.

Exceptions

The annotation exception is iwbep/cx_v4_annotation.