All files / output cx_web_message_error.clas.mjs

50% Statements 51/102
100% Branches 2/2
7.14% Functions 1/14
50% Lines 51/102

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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 1021x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x           1x 1x           1x 1x 1x 1x                                                             1x               1x         1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {cx_dynamic_check} = await import("./cx_dynamic_check.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cx_web_message_error.clas.abap
class cx_web_message_error extends cx_dynamic_check {
  static STATIC_SUPER = cx_dynamic_check;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CX_WEB_MESSAGE_ERROR';
  static IMPLEMENTED_INTERFACES = ["IF_T100_DYN_MSG","IF_T100_MESSAGE","IF_T100_MESSAGE","IF_MESSAGE","IF_MESSAGE"];
  static ATTRIBUTES = {"IF_T100_DYN_MSG~MSGTY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"SYMSGTY","ddicName":"SYMSGTY","description":"SYMSGTY"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "IF_T100_DYN_MSG~MSGV1": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "IF_T100_DYN_MSG~MSGV2": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "IF_T100_DYN_MSG~MSGV3": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "IF_T100_DYN_MSG~MSGV4": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "IF_T100_MESSAGE~T100KEY": {"type": () => {return new abap.types.Structure({
  "msgid": new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}),
  "msgno": new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}),
  "attr1": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
  "attr2": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
  "attr3": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
  "attr4": new abap.types.String({qualifiedName: "SCX_ATTRNAME"})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "IF_T100_MESSAGE~DEFAULT_TEXTID": {"type": () => {return new abap.types.Structure({
  "msgid": new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}),
  "msgno": new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}),
  "attr1": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
  "attr2": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
  "attr3": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
  "attr4": new abap.types.String({qualifiedName: "SCX_ATTRNAME"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"TEXTID": {"type": () => {return new abap.types.Character(32, {});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "PREVIOUS": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}}},
  "GET_MESSAGE_NUMBER": {"visibility": "U", "parameters": {"MSGNO": {"type": () => {return new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"});}, "is_optional": " ", "parm_kind": "R", "type_name": "NumericType"}}}};
  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_message_number": this.get_message_number.bind(this),
    };
    if (this.if_t100_dyn_msg$msgty === undefined) this.if_t100_dyn_msg$msgty = new abap.types.Character(1, {"qualifiedName":"SYMSGTY","ddicName":"SYMSGTY","description":"SYMSGTY"});
    if (this.if_t100_dyn_msg$msgv1 === undefined) this.if_t100_dyn_msg$msgv1 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (this.if_t100_dyn_msg$msgv2 === undefined) this.if_t100_dyn_msg$msgv2 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (this.if_t100_dyn_msg$msgv3 === undefined) this.if_t100_dyn_msg$msgv3 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (this.if_t100_dyn_msg$msgv4 === undefined) this.if_t100_dyn_msg$msgv4 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    this.if_t100_message$default_textid = abap.Classes['IF_T100_MESSAGE'].if_t100_message$default_textid;
    if (this.if_t100_message$t100key === undefined) this.if_t100_message$t100key = new abap.types.Structure({
    "msgid": new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}),
    "msgno": new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}),
    "attr1": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
    "attr2": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
    "attr3": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
    "attr4": new abap.types.String({qualifiedName: "SCX_ATTRNAME"})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});
    this.if_t100_message$default_textid = abap.Classes['IF_T100_MESSAGE'].if_t100_message$default_textid;
    if (this.if_t100_message$t100key === undefined) this.if_t100_message$t100key = new abap.types.Structure({
    "msgid": new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}),
    "msgno": new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}),
    "attr1": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
    "attr2": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
    "attr3": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
    "attr4": new abap.types.String({qualifiedName: "SCX_ATTRNAME"})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});
  }
  async constructor_(INPUT) {
    let textid = new abap.types.Character(32, {});
    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);}
    await super.constructor_({textid: textid, previous: previous});
    return this;
  }
  async get_message_number() {
    let msgno = new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"});
    msgno.clear();
    return msgno;
  }
}
abap.Classes['CX_WEB_MESSAGE_ERROR'] = cx_web_message_error;
cx_web_message_error.if_t100_message$default_textid = new abap.types.Structure({
"msgid": new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}),
"msgno": new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}),
"attr1": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
"attr2": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
"attr3": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
"attr4": new abap.types.String({qualifiedName: "SCX_ATTRNAME"})}, undefined, undefined, {}, {});
cx_web_message_error.if_t100_message$default_textid.get().msgid.set('AB');
cx_web_message_error.if_t100_message$default_textid.get().msgno.set('123');
cx_web_message_error.if_t100_message$default_textid.get().attr1.set('');
cx_web_message_error.if_t100_message$default_textid.get().attr2.set('');
cx_web_message_error.if_t100_message$default_textid.get().attr3.set('');
cx_web_message_error.if_t100_message$default_textid.get().attr4.set('');
cx_web_message_error.if_t100_message$default_textid = new abap.types.Structure({
"msgid": new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}),
"msgno": new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}),
"attr1": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
"attr2": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
"attr3": new abap.types.String({qualifiedName: "SCX_ATTRNAME"}),
"attr4": new abap.types.String({qualifiedName: "SCX_ATTRNAME"})}, undefined, undefined, {}, {});
cx_web_message_error.if_t100_message$default_textid.get().msgid.set('AB');
cx_web_message_error.if_t100_message$default_textid.get().msgno.set('123');
cx_web_message_error.if_t100_message$default_textid.get().attr1.set('');
cx_web_message_error.if_t100_message$default_textid.get().attr2.set('');
cx_web_message_error.if_t100_message$default_textid.get().attr3.set('');
cx_web_message_error.if_t100_message$default_textid.get().attr4.set('');
export {cx_web_message_error};