mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Add the types
This commit is contained in:
parent
23842f1f14
commit
89ae84b4fc
56
src/aff_types/zif_abapgit_aff_intf_v1.intf.abap
Normal file
56
src/aff_types/zif_abapgit_aff_intf_v1.intf.abap
Normal file
|
@ -0,0 +1,56 @@
|
|||
INTERFACE zif_abapgit_aff_intf_v1 PUBLIC.
|
||||
|
||||
"! <p class="shorttext">Interface Category</p>
|
||||
"! Interface category
|
||||
"! $values {@link zif_abapgit_aff_intf_v1.data:co_category}
|
||||
TYPES ty_category TYPE n LENGTH 2.
|
||||
|
||||
CONSTANTS:
|
||||
"! <p class="shorttext">Interface Category</p>
|
||||
"! Interface category
|
||||
BEGIN OF co_category,
|
||||
"! <p class="shorttext">General</p>
|
||||
"! General interface
|
||||
general TYPE ty_category VALUE '00',
|
||||
"! <p class="shorttext">Classic BAdI</p>
|
||||
"! Interface definition of a classic BAdI
|
||||
classic_badi TYPE ty_category VALUE '01',
|
||||
"! <p class="shorttext">Business (Static Components)</p>
|
||||
"! Business interface for static components
|
||||
business_static_components TYPE ty_category VALUE '51',
|
||||
"! <p class="shorttext">Business (Instance-dep. components)</p>
|
||||
"! Business interface for instance-dependent components
|
||||
business_instance_components TYPE ty_category VALUE '52',
|
||||
"! <p class="shorttext">DB Procedure Proxy</p>
|
||||
"! Generated interface of a database procedure proxy
|
||||
db_procedure_proxy TYPE ty_category VALUE '65',
|
||||
"! <p class="shorttext">Web Dynpro Runtime</p>
|
||||
"! Web Dynpro runtime interface
|
||||
web_dynpro_runtime TYPE ty_category VALUE '80',
|
||||
"! <p class="shorttext">Enterprise Services</p>
|
||||
"! Generated interface of enterprise services
|
||||
enterprise_service TYPE ty_category VALUE '90',
|
||||
END OF co_category.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Interface Properties</p>
|
||||
"! Interface properties
|
||||
BEGIN OF ty_main,
|
||||
"! $required
|
||||
format_version TYPE zif_abapgit_aff_types_v1=>ty_format_version,
|
||||
"! <p class="shorttext">Header</p>
|
||||
"! Header
|
||||
"! $required
|
||||
header TYPE zif_abapgit_aff_types_v1=>ty_header_60_src,
|
||||
"! <p class="shorttext">Interface Category</p>
|
||||
"! Interface category
|
||||
category TYPE ty_category,
|
||||
"! <p class="shorttext">Proxy Interface</p>
|
||||
"! Interface is a proxy interface
|
||||
proxy TYPE abap_bool,
|
||||
"! <p class="shorttext">Descriptions</p>
|
||||
"! Descriptions maintained in SE80
|
||||
descriptions TYPE zif_abapgit_aff_oo_types_v1=>ty_descriptions,
|
||||
END OF ty_main.
|
||||
|
||||
ENDINTERFACE.
|
15
src/aff_types/zif_abapgit_aff_intf_v1.intf.xml
Normal file
15
src/aff_types/zif_abapgit_aff_intf_v1.intf.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_INTF" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<VSEOINTERF>
|
||||
<CLSNAME>ZIF_ABAPGIT_AFF_INTF_V1</CLSNAME>
|
||||
<LANGU>E</LANGU>
|
||||
<DESCRIPT>AFF: Interface v1</DESCRIPT>
|
||||
<EXPOSURE>2</EXPOSURE>
|
||||
<STATE>1</STATE>
|
||||
<UNICODE>X</UNICODE>
|
||||
</VSEOINTERF>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
86
src/aff_types/zif_abapgit_aff_oo_types_v1.intf.abap
Normal file
86
src/aff_types/zif_abapgit_aff_oo_types_v1.intf.abap
Normal file
|
@ -0,0 +1,86 @@
|
|||
"! <p class="shorttext synchronized" lang="en">Common types for classes and interfaces</p>
|
||||
"! Types which can be reused for Class and Interface AFF Types
|
||||
INTERFACE zif_abapgit_aff_oo_types_v1
|
||||
PUBLIC.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Name and Description</p>
|
||||
"! Name and description
|
||||
BEGIN OF ty_component_description,
|
||||
"! <p class="shorttext">Name</p>
|
||||
"! Name
|
||||
"! $required
|
||||
name TYPE zif_abapgit_aff_types_v1=>ty_object_name_30,
|
||||
"! <p class="shorttext">Description</p>
|
||||
"! Description
|
||||
"! $required
|
||||
description TYPE zif_abapgit_aff_types_v1=>ty_description_60,
|
||||
END OF ty_component_description,
|
||||
|
||||
"! <p class="shorttext">Component Descriptions</p>
|
||||
"! Class component descriptions
|
||||
ty_component_descriptions TYPE SORTED TABLE OF ty_component_description WITH UNIQUE KEY name.
|
||||
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Method Description</p>
|
||||
"! Method description
|
||||
BEGIN OF ty_method,
|
||||
"! <p class="shorttext">Method Name</p>
|
||||
"! Name of the method
|
||||
"! $required
|
||||
name TYPE zif_abapgit_aff_types_v1=>ty_object_name_30,
|
||||
"! <p class="shorttext">Method Description</p>
|
||||
"! Description of the method
|
||||
"! $required
|
||||
description TYPE zif_abapgit_aff_types_v1=>ty_description_60,
|
||||
"! <p class="shorttext">Parameter Descriptions</p>
|
||||
"! Parameter descriptions
|
||||
parameters TYPE ty_component_descriptions,
|
||||
"! <p class="shorttext">Exception Descriptions</p>
|
||||
"! Exception descriptions
|
||||
exceptions TYPE ty_component_descriptions,
|
||||
END OF ty_method,
|
||||
"! <p class="shorttext">Method Descriptions</p>
|
||||
"! Method descriptions
|
||||
ty_methods TYPE SORTED TABLE OF ty_method WITH UNIQUE KEY name.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Event Description</p>
|
||||
"! Event description
|
||||
BEGIN OF ty_event,
|
||||
"! <p class="shorttext">Event Name</p>
|
||||
"! Name of the event
|
||||
"! $required
|
||||
name TYPE zif_abapgit_aff_types_v1=>ty_object_name_30,
|
||||
"! <p class="shorttext">Event Description</p>
|
||||
"! Description of the event
|
||||
"! $required
|
||||
description TYPE zif_abapgit_aff_types_v1=>ty_description_60,
|
||||
"! <p class="shorttext">Parameter Descriptions</p>
|
||||
"! Parameter descriptions
|
||||
parameters TYPE ty_component_descriptions,
|
||||
END OF ty_event,
|
||||
"! <p class="shorttext">Event Descriptions</p>
|
||||
"! Event descriptions
|
||||
ty_events TYPE SORTED TABLE OF ty_event WITH UNIQUE KEY name.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Descriptions</p>
|
||||
"! Descriptions maintained in SE80
|
||||
BEGIN OF ty_descriptions,
|
||||
"! <p class="shorttext">Type Descriptions</p>
|
||||
"! Type descriptions
|
||||
types TYPE ty_component_descriptions,
|
||||
"! <p class="shorttext">Attribute Descriptions</p>
|
||||
"! Attribute descriptions
|
||||
attributes TYPE ty_component_descriptions,
|
||||
"! <p class="shorttext">Event Descriptions</p>
|
||||
"! Event descriptions
|
||||
events TYPE ty_events,
|
||||
"! <p class="shorttext">Method Descriptions</p>
|
||||
"! Method descriptions
|
||||
methods TYPE ty_methods,
|
||||
END OF ty_descriptions.
|
||||
|
||||
ENDINTERFACE.
|
15
src/aff_types/zif_abapgit_aff_oo_types_v1.intf.xml
Normal file
15
src/aff_types/zif_abapgit_aff_oo_types_v1.intf.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_INTF" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<VSEOINTERF>
|
||||
<CLSNAME>ZIF_ABAPGIT_AFF_OO_TYPES_V1</CLSNAME>
|
||||
<LANGU>E</LANGU>
|
||||
<DESCRIPT>Common types for classes and interfaces</DESCRIPT>
|
||||
<EXPOSURE>2</EXPOSURE>
|
||||
<STATE>1</STATE>
|
||||
<UNICODE>X</UNICODE>
|
||||
</VSEOINTERF>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
194
src/aff_types/zif_abapgit_aff_types_v1.intf.abap
Normal file
194
src/aff_types/zif_abapgit_aff_types_v1.intf.abap
Normal file
|
@ -0,0 +1,194 @@
|
|||
"! <p class="shorttext synchronized" lang="en">General types reusable in AFF</p>
|
||||
"! Types which can be reused in all AFF object types
|
||||
INTERFACE zif_abapgit_aff_types_v1 PUBLIC.
|
||||
|
||||
"! <p class="shorttext">ABAP File Format Version</p>
|
||||
"! The ABAP file format version
|
||||
TYPES ty_format_version TYPE string.
|
||||
|
||||
"! <p class="shorttext">ABAP Language Version</p>
|
||||
"! ABAP language version
|
||||
"! $values {@link zif_abapgit_aff_types_v1.data:co_abap_language_version}
|
||||
"! $default {@link zif_abapgit_aff_types_v1.data:co_abap_language_version.standard}
|
||||
TYPES ty_abap_language_version TYPE c LENGTH 1.
|
||||
|
||||
"! <p class="shorttext">ABAP Language Version</p>
|
||||
"! ABAP language version
|
||||
"! $values {@link zif_abapgit_aff_types_v1.data:co_abap_language_version_cloud}
|
||||
"! $default {@link zif_abapgit_aff_types_v1.data:co_abap_language_version_cloud.standard}
|
||||
TYPES ty_abap_language_version_cloud TYPE c LENGTH 1.
|
||||
|
||||
"! <p class="shorttext">ABAP Language Version</p>
|
||||
"! ABAP language version
|
||||
"! $values {@link zif_abapgit_aff_types_v1.data:co_abap_language_version_src}
|
||||
"! $default {@link zif_abapgit_aff_types_v1.data:co_abap_language_version_src.standard}
|
||||
TYPES ty_abap_language_version_src TYPE c LENGTH 1.
|
||||
|
||||
CONSTANTS:
|
||||
"! <p class="shorttext">ABAP Language Version (Source Code Objects)</p>
|
||||
"! ABAP language version for source code objects like CLAS, INTF, FUGR or PROG.
|
||||
BEGIN OF co_abap_language_version_src,
|
||||
"! <p class="shorttext">Standard</p>
|
||||
"! Standard
|
||||
standard TYPE ty_abap_language_version_src VALUE 'X',
|
||||
"! <p class="shorttext">ABAP for Key Users</p>
|
||||
"! ABAP for key user extensibility
|
||||
key_user TYPE ty_abap_language_version_src VALUE '2',
|
||||
"! <p class="shorttext">ABAP Cloud Development</p>
|
||||
"! ABAP cloud development
|
||||
cloud_development TYPE ty_abap_language_version_src VALUE '5',
|
||||
END OF co_abap_language_version_src.
|
||||
|
||||
CONSTANTS:
|
||||
"! <p class="shorttext">ABAP Language Version (Non-Source Code Objects)</p>
|
||||
"! ABAP language version for non-source code objects
|
||||
BEGIN OF co_abap_language_version,
|
||||
"! <p class="shorttext">Standard</p>
|
||||
"! Standard
|
||||
standard TYPE ty_abap_language_version VALUE space,
|
||||
"! <p class="shorttext">ABAP for Key Users</p>
|
||||
"! ABAP for key user extensibility
|
||||
key_user TYPE ty_abap_language_version VALUE '2',
|
||||
"! <p class="shorttext">ABAP Cloud Development</p>
|
||||
"! ABAP cloud development
|
||||
cloud_development TYPE ty_abap_language_version VALUE '5',
|
||||
END OF co_abap_language_version.
|
||||
|
||||
CONSTANTS:
|
||||
"! <p class="shorttext">ABAP Language Version</p>
|
||||
"! ABAP language version for objects which only exist for standard and cloud development (no key user extensibility)
|
||||
BEGIN OF co_abap_language_version_cloud,
|
||||
"! <p class="shorttext">Standard</p>
|
||||
"! Standard
|
||||
standard TYPE ty_abap_language_version_cloud VALUE space,
|
||||
"! <p class="shorttext">ABAP Cloud Development</p>
|
||||
"! ABAP cloud development
|
||||
cloud_development TYPE ty_abap_language_version_cloud VALUE '5',
|
||||
END OF co_abap_language_version_cloud.
|
||||
|
||||
"! <p class="shorttext">Description</p>
|
||||
"! Description of the ABAP object
|
||||
TYPES ty_description_60 TYPE c LENGTH 60.
|
||||
"! <p class="shorttext">Description</p>
|
||||
"! Description of the ABAP object
|
||||
TYPES ty_description_100 TYPE c LENGTH 100.
|
||||
|
||||
"! <p class="shorttext">Object Name</p>
|
||||
"! Object name with max. length 30
|
||||
TYPES ty_object_name_30 TYPE c LENGTH 30.
|
||||
|
||||
"! <p class="shorttext">Original Language</p>
|
||||
"! Original language of the ABAP object
|
||||
TYPES ty_original_language TYPE sy-langu.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Header for Source Code Objects</p>
|
||||
"! The header for an ABAP main object (with source code) with a description of 60 characters
|
||||
BEGIN OF ty_header_60_src,
|
||||
"! $required
|
||||
description TYPE ty_description_60,
|
||||
"! $required
|
||||
original_language TYPE ty_original_language,
|
||||
abap_language_version TYPE ty_abap_language_version_src,
|
||||
END OF ty_header_60_src.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Header for Non-Source Code Objects (no key user)</p>
|
||||
"! The header for an ABAP main object (without source code) with a description of 60 characters (no key user)
|
||||
BEGIN OF ty_header_60_cloud,
|
||||
"! $required
|
||||
description TYPE ty_description_60,
|
||||
"! $required
|
||||
original_language TYPE ty_original_language,
|
||||
abap_language_version TYPE ty_abap_language_version_cloud,
|
||||
END OF ty_header_60_cloud.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Header for Non-Source Code Objects</p>
|
||||
"! The header for an ABAP main object (without source code) with a description of 60 characters
|
||||
BEGIN OF ty_header_60,
|
||||
"! $required
|
||||
description TYPE ty_description_60,
|
||||
"! $required
|
||||
original_language TYPE ty_original_language,
|
||||
abap_language_version TYPE ty_abap_language_version,
|
||||
END OF ty_header_60.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Header for Non-Source Code Objects</p>
|
||||
"! The header for an ABAP main object (without source code) with a description of 100 characters
|
||||
BEGIN OF ty_header_100,
|
||||
"! $required
|
||||
description TYPE ty_description_100,
|
||||
"! $required
|
||||
original_language TYPE ty_original_language,
|
||||
abap_language_version TYPE ty_abap_language_version,
|
||||
END OF ty_header_100.
|
||||
|
||||
TYPES:
|
||||
"! <p class="shorttext">Header for Subobjects</p>
|
||||
"! The header for an ABAP subobject with a description of 60 characters
|
||||
BEGIN OF ty_header_only_description,
|
||||
"! $required
|
||||
description TYPE ty_description_60,
|
||||
END OF ty_header_only_description.
|
||||
|
||||
"! <p class="shorttext">Option</p>
|
||||
"! Option
|
||||
"! $values {@link zif_abapgit_aff_types_v1.data:co_option}
|
||||
TYPES ty_option TYPE c LENGTH 2.
|
||||
|
||||
CONSTANTS:
|
||||
"! <p class="shorttext">Option</p>
|
||||
"! Option
|
||||
BEGIN OF co_option,
|
||||
"! <p class="shorttext">Equals</p>
|
||||
"! Equals
|
||||
equals TYPE ty_option VALUE 'EQ',
|
||||
"! <p class="shorttext">Between</p>
|
||||
"! Between
|
||||
between TYPE ty_option VALUE 'BT',
|
||||
"! <p class="shorttext">Greater Than</p>
|
||||
"! Greater than
|
||||
greater_than TYPE ty_option VALUE 'GT',
|
||||
"! <p class="shorttext">Contains Pattern</p>
|
||||
"! Contains pattern
|
||||
contains_pattern TYPE ty_option VALUE 'CP',
|
||||
"! <p class="shorttext">Not Equal</p>
|
||||
"! Not equal
|
||||
not_equal TYPE ty_option VALUE 'NE',
|
||||
"! <p class="shorttext">Not Between</p>
|
||||
"! Not between
|
||||
not_between TYPE ty_option VALUE 'NB',
|
||||
"! <p class="shorttext">Not Contains Pattern</p>
|
||||
"! Not contains pattern
|
||||
not_contains_pattern TYPE ty_option VALUE 'NP',
|
||||
"! <p class="shorttext">Greater Equal</p>
|
||||
"! Greater equal
|
||||
greater_equal TYPE ty_option VALUE 'GE',
|
||||
"! <p class="shorttext">Less Than</p>
|
||||
"! Less than
|
||||
less_than TYPE ty_option VALUE 'LT',
|
||||
"! <p class="shorttext">Less Equal</p>
|
||||
"! Less equal
|
||||
less_equal TYPE ty_option VALUE 'LE',
|
||||
END OF co_option.
|
||||
|
||||
"! <p class="shorttext">Sign</p>
|
||||
"! Sign
|
||||
"! $values {@link zif_abapgit_aff_types_v1.data:co_sign}
|
||||
TYPES ty_sign TYPE c LENGTH 1.
|
||||
|
||||
CONSTANTS:
|
||||
"! <p class="shorttext">Sign</p>
|
||||
"! Sign
|
||||
BEGIN OF co_sign,
|
||||
"! <p class="shorttext">Include</p>
|
||||
"! Include
|
||||
include TYPE ty_sign VALUE 'I',
|
||||
"! <p class="shorttext">Exclude</p>
|
||||
"! Exclude
|
||||
exclude TYPE ty_sign VALUE 'E',
|
||||
END OF co_sign.
|
||||
|
||||
ENDINTERFACE.
|
15
src/aff_types/zif_abapgit_aff_types_v1.intf.xml
Normal file
15
src/aff_types/zif_abapgit_aff_types_v1.intf.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_INTF" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<VSEOINTERF>
|
||||
<CLSNAME>ZIF_ABAPGIT_AFF_TYPES_V1</CLSNAME>
|
||||
<LANGU>E</LANGU>
|
||||
<DESCRIPT>General types reusable in AFF</DESCRIPT>
|
||||
<EXPOSURE>2</EXPOSURE>
|
||||
<STATE>1</STATE>
|
||||
<UNICODE>X</UNICODE>
|
||||
</VSEOINTERF>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
Loading…
Reference in New Issue
Block a user