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

Public Member Functions

String getAsOperating ()
 
void setAsOperating (String asOperating)
 
String getAsRetention ()
 
void setAsRetention (String asRetention)
 
String getAsTax ()
 
void setAsTax (String asTax)
 
ContractDefinition getContractDefinition ()
 
void setContractDefinition (ContractDefinition contractDefinition)
 
long getId ()
 
void setId (long id)
 
String getName ()
 
void setName (String name)
 
String getAsCash ()
 
void setAsCash (String asCash)
 
String getAsContact ()
 
void setAsContact (String asContact)
 
boolean isEmpty ()
 
String getAsOperating (Contract contract)
 
String getAsRetention (Contract contract)
 
String getAsTax (Contract contract)
 
int compareTo (ContractPreference o)
 

Detailed Description

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

Definition at line 29 of file ContractPreference.java.

Member Function Documentation

◆ compareTo()

int org.turro.financials.entity.ContractPreference.compareTo ( ContractPreference  o)

Definition at line 128 of file ContractPreference.java.

128  {
129  int result = CompareUtil.compare(name, o.name);
130  if(result == 0) {
131  result = CompareUtil.compare(id, o.id);
132  }
133  return result;
134  }

◆ getAsCash()

String org.turro.financials.entity.ContractPreference.getAsCash ( )

Definition at line 91 of file ContractPreference.java.

91  {
92  return asCash;
93  }
Here is the caller graph for this function:

◆ getAsContact()

String org.turro.financials.entity.ContractPreference.getAsContact ( )

Definition at line 99 of file ContractPreference.java.

99  {
100  return asContact;
101  }

◆ getAsOperating() [1/2]

String org.turro.financials.entity.ContractPreference.getAsOperating ( )

Definition at line 43 of file ContractPreference.java.

43  {
44  return asOperating;
45  }
Here is the caller graph for this function:

◆ getAsOperating() [2/2]

String org.turro.financials.entity.ContractPreference.getAsOperating ( Contract  contract)

Definition at line 115 of file ContractPreference.java.

115  {
116  return asOperating.replaceAll("%om", contract.getOperatingModifier().ordinal() + "");
117  }
Here is the call graph for this function:

◆ getAsRetention() [1/2]

String org.turro.financials.entity.ContractPreference.getAsRetention ( )

Definition at line 51 of file ContractPreference.java.

51  {
52  return asRetention;
53  }
Here is the caller graph for this function:

◆ getAsRetention() [2/2]

String org.turro.financials.entity.ContractPreference.getAsRetention ( Contract  contract)

Definition at line 119 of file ContractPreference.java.

119  {
120  return asRetention.replaceAll("%om", contract.getOperatingModifier().ordinal() + "");
121  }
Here is the call graph for this function:

◆ getAsTax() [1/2]

String org.turro.financials.entity.ContractPreference.getAsTax ( )

Definition at line 59 of file ContractPreference.java.

59  {
60  return asTax;
61  }
Here is the caller graph for this function:

◆ getAsTax() [2/2]

String org.turro.financials.entity.ContractPreference.getAsTax ( Contract  contract)

Definition at line 123 of file ContractPreference.java.

123  {
124  return asTax.replaceAll("%om", contract.getOperatingModifier().ordinal() + "");
125  }
Here is the call graph for this function:

◆ getContractDefinition()

ContractDefinition org.turro.financials.entity.ContractPreference.getContractDefinition ( )

Definition at line 67 of file ContractPreference.java.

67  {
68  return contractDefinition;
69  }
Here is the caller graph for this function:

◆ getId()

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

Definition at line 75 of file ContractPreference.java.

75  {
76  return id;
77  }
Here is the caller graph for this function:

◆ getName()

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

Definition at line 83 of file ContractPreference.java.

83  {
84  return name;
85  }
Here is the caller graph for this function:

◆ isEmpty()

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

Definition at line 109 of file ContractPreference.java.

109  {
110  return contractDefinition == null || Strings.isEmpty(name);
111  }

◆ setAsCash()

void org.turro.financials.entity.ContractPreference.setAsCash ( String  asCash)

Definition at line 95 of file ContractPreference.java.

95  {
96  this.asCash = asCash;
97  }

◆ setAsContact()

void org.turro.financials.entity.ContractPreference.setAsContact ( String  asContact)

Definition at line 103 of file ContractPreference.java.

103  {
104  this.asContact = asContact;
105  }

◆ setAsOperating()

void org.turro.financials.entity.ContractPreference.setAsOperating ( String  asOperating)

Definition at line 47 of file ContractPreference.java.

47  {
48  this.asOperating = asOperating;
49  }

◆ setAsRetention()

void org.turro.financials.entity.ContractPreference.setAsRetention ( String  asRetention)

Definition at line 55 of file ContractPreference.java.

55  {
56  this.asRetention = asRetention;
57  }

◆ setAsTax()

void org.turro.financials.entity.ContractPreference.setAsTax ( String  asTax)

Definition at line 63 of file ContractPreference.java.

63  {
64  this.asTax = asTax;
65  }

◆ setContractDefinition()

void org.turro.financials.entity.ContractPreference.setContractDefinition ( ContractDefinition  contractDefinition)

Definition at line 71 of file ContractPreference.java.

71  {
72  this.contractDefinition = contractDefinition;
73  }
Here is the caller graph for this function:

◆ setId()

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

Definition at line 79 of file ContractPreference.java.

79  {
80  this.id = id;
81  }

◆ setName()

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

Definition at line 87 of file ContractPreference.java.

87  {
88  this.name = name;
89  }

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