Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1031725 // Additions of ExtendedBEAObject [Include] - note: these end up in GazelleBEA too. todo: fix include structures

JavaX fragment (include)

1  
S beaHTMLURL(BEA o) {
2  
  ret o == null ?: o.myURI();
3  
}
4  
5  
S beaHTML(O o) {
6  
  if (o cast BEA) ret beaHTML(o);
7  
  ret htmlEncode2(o);
8  
}
9  
10  
BEA beaGetOpt(long id) {
11  
  ret getConceptOpt BEA(id);
12  
}
13  
14  
static Cl<BEA> beaDeleteType(S type) {
15  
  ret deleteConceptsWhereIC BEA(+type);
16  
}
17  
18  
int beaCount(S type) {
19  
  ret countConceptsWhereCI BEAObject(+type);
20  
}
21  
  
22  
// first param can be type
23  
BEA beaNew(O... _) {
24  
  _ = prependParamIfOddCount("type", _);
25  
  ret cnew BEA(_);
26  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031725
Snippet name: Additions of ExtendedBEAObject [Include] - note: these end up in GazelleBEA too. todo: fix include structures
Eternal ID of this version: #1031725/11
Text MD5: f03aca5b2f8a91ad62ce70e130833144
Author: stefan
Category: javax / gazelle bea
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-13 17:39:35
Source code size: 479 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 1066
Version history: 10 change(s)
Referenced in: [show references]