BrightSide Workbench Full Report + Source Code
org.turro.entities.portfolio.DocumentByEntityVM Class Reference
Collaboration diagram for org.turro.entities.portfolio.DocumentByEntityVM:

Public Member Functions

 DocumentByEntityVM ()
 
IElephantEntity getEntity ()
 
void setEntity (@BindingParam("entity") IElephantEntity entity)
 
void setCategory (@BindingParam("category") IElephantEntity category)
 
void update ()
 
List< DocumentPortfoliogetModel ()
 
String getLabel (String label)
 
double getFinalBalance ()
 
double getFinalInvoice ()
 
double getFinalPortfolio ()
 
double getFinalSettlement ()
 
int getFinalCount ()
 

Detailed Description

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

Definition at line 35 of file DocumentByEntityVM.java.

Constructor & Destructor Documentation

◆ DocumentByEntityVM()

org.turro.entities.portfolio.DocumentByEntityVM.DocumentByEntityVM ( )

Definition at line 41 of file DocumentByEntityVM.java.

41  {
42  documents = new DocumentByEntityList();
43  }

Member Function Documentation

◆ getEntity()

IElephantEntity org.turro.entities.portfolio.DocumentByEntityVM.getEntity ( )

Definition at line 45 of file DocumentByEntityVM.java.

45  {
46  return entity;
47  }

◆ getFinalBalance()

double org.turro.entities.portfolio.DocumentByEntityVM.getFinalBalance ( )

Definition at line 80 of file DocumentByEntityVM.java.

80  {
81  return entityModel == null ? 0.0 : entityModel.getFinalBalance();
82  }
Here is the call graph for this function:

◆ getFinalCount()

int org.turro.entities.portfolio.DocumentByEntityVM.getFinalCount ( )

Definition at line 96 of file DocumentByEntityVM.java.

96  {
97  return entityModel == null ? 0 : entityModel.getFinalCount();
98  }
Here is the call graph for this function:

◆ getFinalInvoice()

double org.turro.entities.portfolio.DocumentByEntityVM.getFinalInvoice ( )

Definition at line 84 of file DocumentByEntityVM.java.

84  {
85  return entityModel == null ? 0.0 : entityModel.getFinalInvoice();
86  }
Here is the call graph for this function:

◆ getFinalPortfolio()

double org.turro.entities.portfolio.DocumentByEntityVM.getFinalPortfolio ( )

Definition at line 88 of file DocumentByEntityVM.java.

88  {
89  return entityModel == null ? 0.0 : entityModel.getFinalPortfolio();
90  }
Here is the call graph for this function:

◆ getFinalSettlement()

double org.turro.entities.portfolio.DocumentByEntityVM.getFinalSettlement ( )

Definition at line 92 of file DocumentByEntityVM.java.

92  {
93  return entityModel == null ? 0.0 : entityModel.getFinalSettlement();
94  }
Here is the call graph for this function:

◆ getLabel()

String org.turro.entities.portfolio.DocumentByEntityVM.getLabel ( String  label)

Definition at line 76 of file DocumentByEntityVM.java.

76  {
77  return I_.get(label);
78  }
Here is the call graph for this function:

◆ getModel()

List<DocumentPortfolio> org.turro.entities.portfolio.DocumentByEntityVM.getModel ( )

Definition at line 66 of file DocumentByEntityVM.java.

66  {
67  if(entity != null) {
68  documents.clear();
69  entityModel = new EntityPortfolioList(documents, category.getAllChildren().getEntityPaths());
70  return new ArrayList(entityModel);
71  } else {
72  return Collections.EMPTY_LIST;
73  }
74  }
List< String > getEntityPaths()
Definition: EntitySet.java:31
Here is the call graph for this function:

◆ setCategory()

void org.turro.entities.portfolio.DocumentByEntityVM.setCategory ( @BindingParam("category") IElephantEntity  category)

Definition at line 58 of file DocumentByEntityVM.java.

58  {
59  this.category = category;
60  }

◆ setEntity()

void org.turro.entities.portfolio.DocumentByEntityVM.setEntity ( @BindingParam("entity") IElephantEntity  entity)

Definition at line 51 of file DocumentByEntityVM.java.

51  {
52  this.entity = entity;
53  this.category = entity;
54  }

◆ update()

void org.turro.entities.portfolio.DocumentByEntityVM.update ( )

Definition at line 64 of file DocumentByEntityVM.java.

64 {}

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