BrightSide Workbench Full Report + Source Code
org.turro.financials.treasury.m111.ModelType Enum Reference

Public Member Functions

String getOpAccount ()
 
long getBookId ()
 
int getOrder ()
 
String getRetAccount ()
 

Static Public Member Functions

static ModelType checkType (String accountId)
 
static boolean isTaxable (String accountId)
 
static String getModel ()
 

Public Attributes

 RET_PERSONAL =(10000, "475110[0-9]*", "[6,2][0-9]*", 1L)
 
 RET_PROFESSIONAL =(11000, "475120[0-9]*", "[6,2][0-9]*", 1L)
 
 RET_RENTER =(12000, "47513[0-9]*", "6[0-9]*", 1L)
 
 RET_DIVIDEND =(13000, "47514[0-9]*", "6[0-9]*", 1L)
 
String opAccount
 

Detailed Description

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

Definition at line 24 of file m111/ModelType.java.

Member Function Documentation

◆ checkType()

static ModelType org.turro.financials.treasury.m111.ModelType.checkType ( String  accountId)
static

Definition at line 58 of file m111/ModelType.java.

58  {
59  if(accountId.matches(RET_PERSONAL.getRetAccount())) {
60  return RET_PERSONAL;
61  } else if(accountId.matches(RET_PROFESSIONAL.getRetAccount())) {
62  return RET_PROFESSIONAL;
63  } else if(accountId.matches(RET_RENTER.getRetAccount())) {
64  return RET_RENTER;
65  } else if(accountId.matches(RET_DIVIDEND.getRetAccount())) {
66  return RET_DIVIDEND;
67  }
68  return null;
69  }

◆ getBookId()

long org.turro.financials.treasury.m111.ModelType.getBookId ( )

Definition at line 46 of file m111/ModelType.java.

46  {
47  return bookId;
48  }

◆ getModel()

static String org.turro.financials.treasury.m111.ModelType.getModel ( )
static

Definition at line 84 of file m111/ModelType.java.

84  {
85  return "111,115,123";
86  }

◆ getOpAccount()

String org.turro.financials.treasury.m111.ModelType.getOpAccount ( )

Definition at line 42 of file m111/ModelType.java.

42  {
43  return opAccount;
44  }

◆ getOrder()

int org.turro.financials.treasury.m111.ModelType.getOrder ( )

Definition at line 50 of file m111/ModelType.java.

50  {
51  return order;
52  }
Here is the caller graph for this function:

◆ getRetAccount()

String org.turro.financials.treasury.m111.ModelType.getRetAccount ( )

Definition at line 54 of file m111/ModelType.java.

54  {
55  return retAccount;
56  }

◆ isTaxable()

static boolean org.turro.financials.treasury.m111.ModelType.isTaxable ( String  accountId)
static

Definition at line 71 of file m111/ModelType.java.

71  {
72  if(accountId.matches(RET_PERSONAL.getOpAccount())) {
73  return true;
74  } else if(accountId.matches(RET_PROFESSIONAL.getOpAccount())) {
75  return true;
76  } else if(accountId.matches(RET_RENTER.getOpAccount())) {
77  return true;
78  } else if(accountId.matches(RET_DIVIDEND.getOpAccount())) {
79  return true;
80  }
81  return false;
82  }

Member Data Documentation

◆ opAccount

String org.turro.financials.treasury.m111.ModelType.opAccount

Definition at line 32 of file m111/ModelType.java.

◆ RET_DIVIDEND

org.turro.financials.treasury.m111.ModelType.RET_DIVIDEND =(13000, "47514[0-9]*", "6[0-9]*", 1L)

Definition at line 29 of file m111/ModelType.java.

◆ RET_PERSONAL

org.turro.financials.treasury.m111.ModelType.RET_PERSONAL =(10000, "475110[0-9]*", "[6,2][0-9]*", 1L)

Definition at line 26 of file m111/ModelType.java.

◆ RET_PROFESSIONAL

org.turro.financials.treasury.m111.ModelType.RET_PROFESSIONAL =(11000, "475120[0-9]*", "[6,2][0-9]*", 1L)

Definition at line 27 of file m111/ModelType.java.

◆ RET_RENTER

org.turro.financials.treasury.m111.ModelType.RET_RENTER =(12000, "47513[0-9]*", "6[0-9]*", 1L)

Definition at line 28 of file m111/ModelType.java.


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