BrightSide Workbench Full Report + Source Code
org.turro.financials.handshake.HandshakeList Class Reference
Inheritance diagram for org.turro.financials.handshake.HandshakeList:
Collaboration diagram for org.turro.financials.handshake.HandshakeList:

Public Member Functions

void populate ()
 

Static Public Member Functions

static int count ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file HandshakeList.java.

Member Function Documentation

◆ count()

static int org.turro.financials.handshake.HandshakeList.count ( )
static

Definition at line 59 of file HandshakeList.java.

59  {
60  int count = 0;
61  File folder = new File(ElephantContext.getRealPath(HandshakeContract.HANDSHAKE_FOLDER));
62  if(folder.exists()) {
63  count += folder.listFiles().length;
64  }
65  folder = new File(ElephantContext.getRealPath(HandshakeDocument.HANDSHAKE_FOLDER));
66  if(folder.exists()) {
67  count += folder.listFiles().length;
68  }
69  return count;
70  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ populate()

void org.turro.financials.handshake.HandshakeList.populate ( )

Definition at line 32 of file HandshakeList.java.

32  {
33  File folder = new File(ElephantContext.getRealPath(HandshakeContract.HANDSHAKE_FOLDER));
34  if(folder.exists()) {
35  for(File file : folder.listFiles()) {
36  HandshakeContract hc = HandshakeContract.createHandshakeFromFile(file);
37  if(hc != null) {
38  add(new HandshakeItem(file, hc));
39  }
40  }
41  }
42  folder = new File(ElephantContext.getRealPath(HandshakeDocument.HANDSHAKE_FOLDER));
43  if(folder.exists()) {
44  for(File file : folder.listFiles()) {
45  HandshakeDocument hd = HandshakeDocument.createHandshakeFromFile(file);
46  if(hd != null) {
47  add(new HandshakeItem(file, hd));
48  Contract contract = HandshakeContract.getContractFromHandshake(hd.contract);
49  for(HandshakeProduct hp : hd.getProducts()) {
50  hp.contract = contract;
51  hp.petitioner = hd.contract.petitioner;
52  add(new HandshakeItem(null, hp));
53  }
54  }
55  }
56  }
57  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: