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

Public Member Functions

long getId ()
 
void setId (long id)
 
String getComposedName ()
 
void setComposedName (String composedName)
 
ContractPreference getContractPreference ()
 
void setContractPreference (ContractPreference contractPreference)
 
Set< LineTypeAccountgetLineTypeAccounts ()
 
void setLineTypeAccounts (Set< LineTypeAccount > lineTypeAccounts)
 
String getName ()
 
void setName (String name)
 
double getStockCoefficient ()
 
void setStockCoefficient (double stockCoefficient)
 
boolean isEmpty ()
 
LineType clone ()
 

Detailed Description

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

Definition at line 37 of file LineType.java.

Member Function Documentation

◆ clone()

LineType org.turro.financials.entity.LineType.clone ( )

Definition at line 123 of file LineType.java.

123  {
124  // soft clone: line type accounts are assigned
125  LineType lt = new LineType();
126  lt.setId(id);
127  lt.setName(name);
128  lt.setStockCoefficient(stockCoefficient);
129  lt.getLineTypeAccounts().addAll(lineTypeAccounts);
130  return lt;
131  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getComposedName()

String org.turro.financials.entity.LineType.getComposedName ( )

Definition at line 66 of file LineType.java.

66  {
67  if(composedName == null) {
68  setContractPreference(contractPreference);
69  }
70  return composedName;
71  }
void setContractPreference(ContractPreference contractPreference)
Definition: LineType.java:81
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getContractPreference()

ContractPreference org.turro.financials.entity.LineType.getContractPreference ( )

Definition at line 77 of file LineType.java.

77  {
78  return contractPreference;
79  }
Here is the caller graph for this function:

◆ getId()

long org.turro.financials.entity.LineType.getId ( )

Definition at line 58 of file LineType.java.

58  {
59  return id;
60  }
Here is the caller graph for this function:

◆ getLineTypeAccounts()

Set<LineTypeAccount> org.turro.financials.entity.LineType.getLineTypeAccounts ( )

Definition at line 92 of file LineType.java.

92  {
93  return lineTypeAccounts;
94  }
Here is the caller graph for this function:

◆ getName()

String org.turro.financials.entity.LineType.getName ( )

Definition at line 100 of file LineType.java.

100  {
101  return name;
102  }
Here is the caller graph for this function:

◆ getStockCoefficient()

double org.turro.financials.entity.LineType.getStockCoefficient ( )

Definition at line 108 of file LineType.java.

108  {
109  return stockCoefficient;
110  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.financials.entity.LineType.isEmpty ( )

Definition at line 118 of file LineType.java.

118  {
119  return id > 0;
120  }

◆ setComposedName()

void org.turro.financials.entity.LineType.setComposedName ( String  composedName)

Definition at line 73 of file LineType.java.

73  {
74  this.composedName = composedName;
75  }

◆ setContractPreference()

void org.turro.financials.entity.LineType.setContractPreference ( ContractPreference  contractPreference)

Definition at line 81 of file LineType.java.

81  {
82  this.contractPreference = contractPreference;
83  if(contractPreference != null) {
84  if("#".equals(contractPreference.getName())) {
85  composedName = name.replaceAll("\\%n", "");
86  } else {
87  composedName = name.replaceAll("\\%n", contractPreference.getName());
88  }
89  }
90  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setId()

void org.turro.financials.entity.LineType.setId ( long  id)

Definition at line 62 of file LineType.java.

62  {
63  this.id = id;
64  }
Here is the caller graph for this function:

◆ setLineTypeAccounts()

void org.turro.financials.entity.LineType.setLineTypeAccounts ( Set< LineTypeAccount lineTypeAccounts)

Definition at line 96 of file LineType.java.

96  {
97  this.lineTypeAccounts = lineTypeAccounts;
98  }

◆ setName()

void org.turro.financials.entity.LineType.setName ( String  name)

Definition at line 104 of file LineType.java.

104  {
105  this.name = name;
106  }
Here is the caller graph for this function:

◆ setStockCoefficient()

void org.turro.financials.entity.LineType.setStockCoefficient ( double  stockCoefficient)

Definition at line 112 of file LineType.java.

112  {
113  this.stockCoefficient = stockCoefficient;
114  }
Here is the caller graph for this function:

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