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

Public Member Functions

 PortfolioAction (Document document, DocumentWorkflow workflow, boolean forward, Row row)
 
Document getDocument ()
 
boolean isForward ()
 
Row getRow ()
 
DocumentWorkflow getWorkflow ()
 
DocumentDefinition getDocumentDefinition ()
 
int compareTo (PortfolioAction o)
 

Detailed Description

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

Definition at line 30 of file PortfolioAction.java.

Constructor & Destructor Documentation

◆ PortfolioAction()

org.turro.financials.portfolio.PortfolioAction.PortfolioAction ( Document  document,
DocumentWorkflow  workflow,
boolean  forward,
Row  row 
)

Definition at line 37 of file PortfolioAction.java.

37  {
38  this.document = document;
39  this.workflow = workflow;
40  this.forward = forward;
41  this.row = row;
42  }

Member Function Documentation

◆ compareTo()

int org.turro.financials.portfolio.PortfolioAction.compareTo ( PortfolioAction  o)

Definition at line 69 of file PortfolioAction.java.

69  {
70  int result = CompareUtil.compare(document.getContract().getId(), o.document.getContract().getId());
71  if(result == 0) {
72  result = CompareUtil.compare(forward, o.forward);
73  }
74  if(result == 0) {
75  if(forward) {
76  result = CompareUtil.compare(workflow.getDescendant().getId(), o.workflow.getDescendant().getId());
77  } else {
78  result = CompareUtil.compare(workflow.getAncestor().getId(), o.workflow.getAncestor().getId());
79  }
80  }
81  if(result == 0) {
82  result = CompareUtil.compare(document.getDocumentDefinition().getId(), o.document.getDocumentDefinition().getId());
83  }
84  if(result == 0) {
85  result = document.getDocumentDate().compareTo(o.document.getDocumentDate());
86  }
87  if(result == 0) {
88  result = CompareUtil.compare(document.getId(), o.document.getId());
89  }
90  return result;
91  }
DocumentDefinition getDocumentDefinition()
Definition: Document.java:167
Here is the call graph for this function:

◆ getDocument()

Document org.turro.financials.portfolio.PortfolioAction.getDocument ( )

Definition at line 44 of file PortfolioAction.java.

44  {
45  return document;
46  }

◆ getDocumentDefinition()

DocumentDefinition org.turro.financials.portfolio.PortfolioAction.getDocumentDefinition ( )

Definition at line 60 of file PortfolioAction.java.

60  {
61  if(forward) {
62  return workflow.getDescendant();
63  } else {
64  return workflow.getAncestor();
65  }
66  }
Here is the call graph for this function:

◆ getRow()

Row org.turro.financials.portfolio.PortfolioAction.getRow ( )

Definition at line 52 of file PortfolioAction.java.

52  {
53  return row;
54  }

◆ getWorkflow()

DocumentWorkflow org.turro.financials.portfolio.PortfolioAction.getWorkflow ( )

Definition at line 56 of file PortfolioAction.java.

56  {
57  return workflow;
58  }

◆ isForward()

boolean org.turro.financials.portfolio.PortfolioAction.isForward ( )

Definition at line 48 of file PortfolioAction.java.

48  {
49  return forward;
50  }

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