All files / output zcx_abapgit_type_not_supported.clas.mjs

9.09% Statements 6/66
66.66% Branches 2/3
9.09% Functions 1/11
9.09% Lines 6/66

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 661x 1x 1x                       1x                                                                                                   1x 1x
const {zcx_abapgit_exception} = await import("./zcx_abapgit_exception.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcx_abapgit_type_not_supported.clas.abap
class zcx_abapgit_type_not_supported extends zcx_abapgit_exception {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCX_ABAPGIT_TYPE_NOT_SUPPORTED';
  static IMPLEMENTED_INTERFACES = ["IF_T100_MESSAGE","IF_MESSAGE","IF_MESSAGE","IF_MESSAGE","IF_MESSAGE"];
  static ATTRIBUTES = {"MV_OBJ_TYPE": {"type": () => {return new abap.types.Character(4, {"qualifiedName":"TROBJTYPE","ddicName":"TROBJTYPE","description":"TROBJTYPE"});}, "visibility": "I", "is_constant": " ", "is_class": " "}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"TEXTID": {"type": () => {return new abap.types.Structure({
  "msgid": new abap.types.Character(20, {}),
  "msgno": new abap.types.Numc({length: 3}),
  "attr1": new abap.types.Character(255, {}),
  "attr2": new abap.types.Character(255, {}),
  "attr3": new abap.types.Character(255, {}),
  "attr4": new abap.types.Character(255, {})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});}, "is_optional": " "}, "PREVIOUS": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"});}, "is_optional": " "}, "LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "is_optional": " "}, "MSGV1": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "MSGV2": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "MSGV3": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "MSGV4": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "LONGTEXT": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "OBJ_TYPE": {"type": () => {return new abap.types.Character(4, {"qualifiedName":"TROBJTYPE","ddicName":"TROBJTYPE","description":"TROBJTYPE"});}, "is_optional": " "}}},
  "GET_TEXT": {"visibility": "U", "parameters": {}}};
  #mv_obj_type;
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "get_text": this.get_text.bind(this),
    };
    this.#mv_obj_type = new abap.types.Character(4, {"qualifiedName":"TROBJTYPE","ddicName":"TROBJTYPE","description":"TROBJTYPE"});
    this.FRIENDS_ACCESS_INSTANCE["mv_obj_type"] = this.#mv_obj_type;
  }
  async constructor_(INPUT) {
    let textid = new abap.types.Structure({
    "msgid": new abap.types.Character(20, {}),
    "msgno": new abap.types.Numc({length: 3}),
    "attr1": new abap.types.Character(255, {}),
    "attr2": new abap.types.Character(255, {}),
    "attr3": new abap.types.Character(255, {}),
    "attr4": new abap.types.Character(255, {})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});
    if (INPUT && INPUT.textid) {textid.set(INPUT.textid);}
    let previous = new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"});
    if (INPUT && INPUT.previous) {previous.set(INPUT.previous);}
    let log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});
    if (INPUT && INPUT.log) {log.set(INPUT.log);}
    let msgv1 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv1) {msgv1.set(INPUT.msgv1);}
    let msgv2 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv2) {msgv2.set(INPUT.msgv2);}
    let msgv3 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv3) {msgv3.set(INPUT.msgv3);}
    let msgv4 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv4) {msgv4.set(INPUT.msgv4);}
    let longtext = INPUT?.longtext || new abap.types.Character();
    let obj_type = INPUT?.obj_type;
    if (obj_type?.getQualifiedName === undefined || obj_type.getQualifiedName() !== "TROBJTYPE") { obj_type = undefined; }
    if (obj_type === undefined) { obj_type = new abap.types.Character(4, {"qualifiedName":"TROBJTYPE","ddicName":"TROBJTYPE","description":"TROBJTYPE"}).set(INPUT.obj_type); }
    await super.constructor_({textid: textid, previous: previous, log: log, msgv1: msgv1, msgv2: msgv2, msgv3: msgv3, msgv4: msgv4, longtext: longtext});
    this.#mv_obj_type.set(obj_type);
    return this;
  }
  async get_text() {
    let result = new abap.types.String({qualifiedName: "STRING"});
    result.set(new abap.types.String().set(`Object type ${abap.templateFormatting(this.#mv_obj_type)} is not supported by this system`));
    return result;
  }
}
abap.Classes['ZCX_ABAPGIT_TYPE_NOT_SUPPORTED'] = zcx_abapgit_type_not_supported;
export {zcx_abapgit_type_not_supported};