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

Public Member Functions

 PortfolioItem (Document document)
 
void addForward (DocumentWorkflow dw)
 
void addBackward (DocumentWorkflow dw)
 
Collection< WorkflowItemgetBackward ()
 
Document getDocument ()
 
void setDocument (Document document)
 
Collection< WorkflowItemgetForward ()
 
int compareTo (PortfolioItem o)
 

Detailed Description

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

Definition at line 29 of file PortfolioItem.java.

Constructor & Destructor Documentation

◆ PortfolioItem()

org.turro.financials.portfolio.PortfolioItem.PortfolioItem ( Document  document)

Definition at line 34 of file PortfolioItem.java.

34  {
35  this.document = document;
36  forward = new WorkflowSet();
37  backward = new WorkflowSet();
38  }

Member Function Documentation

◆ addBackward()

void org.turro.financials.portfolio.PortfolioItem.addBackward ( DocumentWorkflow  dw)

Definition at line 44 of file PortfolioItem.java.

44  {
45  backward.add(new WorkflowItem(dw));
46  }
Here is the caller graph for this function:

◆ addForward()

void org.turro.financials.portfolio.PortfolioItem.addForward ( DocumentWorkflow  dw)

Definition at line 40 of file PortfolioItem.java.

40  {
41  forward.add(new WorkflowItem(dw));
42  }
Here is the caller graph for this function:

◆ compareTo()

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

Definition at line 65 of file PortfolioItem.java.

65  {
66  int result = CompareUtil.compare(document.getContract().getId(), o.document.getContract().getId());
67  if(result == 0) {
68  result = CompareUtil.compare(document.getDocumentDefinition().getId(), o.document.getDocumentDefinition().getId());
69  }
70  if(result == 0) {
71  result = document.getDocumentDate().compareTo(o.document.getDocumentDate());
72  }
73  if(result == 0) {
74  result = CompareUtil.compare(document.getId(), o.document.getId());
75  }
76  return result;
77  }
DocumentDefinition getDocumentDefinition()
Definition: Document.java:167
Here is the call graph for this function:

◆ getBackward()

Collection<WorkflowItem> org.turro.financials.portfolio.PortfolioItem.getBackward ( )

Definition at line 48 of file PortfolioItem.java.

48  {
49  return backward;
50  }
Here is the caller graph for this function:

◆ getDocument()

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

Definition at line 52 of file PortfolioItem.java.

52  {
53  return document;
54  }
Here is the caller graph for this function:

◆ getForward()

Collection<WorkflowItem> org.turro.financials.portfolio.PortfolioItem.getForward ( )

Definition at line 60 of file PortfolioItem.java.

60  {
61  return forward;
62  }
Here is the caller graph for this function:

◆ setDocument()

void org.turro.financials.portfolio.PortfolioItem.setDocument ( Document  document)

Definition at line 56 of file PortfolioItem.java.

56  {
57  this.document = document;
58  }

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