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

Public Member Functions

Long getId ()
 
void setId (Long id)
 
String getGrouping ()
 
void setGrouping (String grouping)
 
String getTitle ()
 
void setTitle (String title)
 
int getOrderNumber ()
 
void setOrderNumber (int orderNumber)
 
int getMinChars ()
 
void setMinChars (int minChars)
 
boolean isRequired ()
 
void setRequired (boolean required)
 
Category getCategory ()
 
void setCategory (Category category)
 
DescriptorType getType ()
 
void setType (DescriptorType type)
 
void assignDossier (Dossier dossier)
 
Dossier getAssignedDossier ()
 
DescriptorValue getValue ()
 
void setValue (DescriptorValue descriptorValue)
 
Object entityId ()
 
boolean isEmpty ()
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 36 of file DescriptorDefinition.java.

Member Function Documentation

◆ assignDossier()

void org.turro.dossier.entity.DescriptorDefinition.assignDossier ( Dossier  dossier)

Definition at line 123 of file DescriptorDefinition.java.

123  {
124  _dossier = dossier;
125  }

◆ entityId()

Object org.turro.dossier.entity.DescriptorDefinition.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 155 of file DescriptorDefinition.java.

155  {
156  return id;
157  }

◆ getAssignedDossier()

Dossier org.turro.dossier.entity.DescriptorDefinition.getAssignedDossier ( )

Definition at line 127 of file DescriptorDefinition.java.

127  {
128  return _dossier;
129  }
Here is the caller graph for this function:

◆ getCategory()

Category org.turro.dossier.entity.DescriptorDefinition.getCategory ( )

Definition at line 102 of file DescriptorDefinition.java.

102  {
103  return category;
104  }

◆ getGrouping()

String org.turro.dossier.entity.DescriptorDefinition.getGrouping ( )

Definition at line 62 of file DescriptorDefinition.java.

62  {
63  return grouping;
64  }
Here is the caller graph for this function:

◆ getId()

Long org.turro.dossier.entity.DescriptorDefinition.getId ( )

Definition at line 54 of file DescriptorDefinition.java.

54  {
55  return id;
56  }
Here is the caller graph for this function:

◆ getMinChars()

int org.turro.dossier.entity.DescriptorDefinition.getMinChars ( )

Definition at line 86 of file DescriptorDefinition.java.

86  {
87  return minChars;
88  }

◆ getOrderNumber()

int org.turro.dossier.entity.DescriptorDefinition.getOrderNumber ( )

Definition at line 78 of file DescriptorDefinition.java.

78  {
79  return orderNumber;
80  }
Here is the caller graph for this function:

◆ getTitle()

String org.turro.dossier.entity.DescriptorDefinition.getTitle ( )

Definition at line 70 of file DescriptorDefinition.java.

70  {
71  return title;
72  }
Here is the caller graph for this function:

◆ getType()

DescriptorType org.turro.dossier.entity.DescriptorDefinition.getType ( )

Definition at line 110 of file DescriptorDefinition.java.

110  {
111  return type;
112  }

◆ getValue()

DescriptorValue org.turro.dossier.entity.DescriptorDefinition.getValue ( )

Definition at line 131 of file DescriptorDefinition.java.

131  {
132  if(_value == null) {
133  for(DescriptorValue v : _dossier.getDescriptors()) {
134  if(Objects.equals(v.getDescriptorDefinition().getId(), id)) {
135  _value = v;
136  break;
137  }
138  }
139  }
140  return _value;
141  }
Set< DescriptorValue > getDescriptors()
Definition: Dossier.java:231
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.dossier.entity.DescriptorDefinition.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 160 of file DescriptorDefinition.java.

160  {
161  return Strings.isBlank(title) || type == null;
162  }
Here is the caller graph for this function:

◆ isRequired()

boolean org.turro.dossier.entity.DescriptorDefinition.isRequired ( )

Definition at line 94 of file DescriptorDefinition.java.

94  {
95  return required;
96  }

◆ setCategory()

void org.turro.dossier.entity.DescriptorDefinition.setCategory ( Category  category)

Definition at line 106 of file DescriptorDefinition.java.

106  {
107  this.category = category;
108  }
Here is the caller graph for this function:

◆ setGrouping()

void org.turro.dossier.entity.DescriptorDefinition.setGrouping ( String  grouping)

Definition at line 66 of file DescriptorDefinition.java.

66  {
67  this.grouping = grouping;
68  }

◆ setId()

void org.turro.dossier.entity.DescriptorDefinition.setId ( Long  id)

Definition at line 58 of file DescriptorDefinition.java.

58  {
59  this.id = id;
60  }

◆ setMinChars()

void org.turro.dossier.entity.DescriptorDefinition.setMinChars ( int  minChars)

Definition at line 90 of file DescriptorDefinition.java.

90  {
91  this.minChars = minChars;
92  }

◆ setOrderNumber()

void org.turro.dossier.entity.DescriptorDefinition.setOrderNumber ( int  orderNumber)

Definition at line 82 of file DescriptorDefinition.java.

82  {
83  this.orderNumber = orderNumber;
84  }

◆ setRequired()

void org.turro.dossier.entity.DescriptorDefinition.setRequired ( boolean  required)

Definition at line 98 of file DescriptorDefinition.java.

98  {
99  this.required = required;
100  }

◆ setTitle()

void org.turro.dossier.entity.DescriptorDefinition.setTitle ( String  title)

Definition at line 74 of file DescriptorDefinition.java.

74  {
75  this.title = title;
76  }

◆ setType()

void org.turro.dossier.entity.DescriptorDefinition.setType ( DescriptorType  type)

Definition at line 114 of file DescriptorDefinition.java.

114  {
115  this.type = type;
116  }

◆ setValue()

void org.turro.dossier.entity.DescriptorDefinition.setValue ( DescriptorValue  descriptorValue)

Definition at line 143 of file DescriptorDefinition.java.

143  {
144  _value = descriptorValue;
145  _value.setDescriptorDefinition(this);
146  if(_dossier != null && descriptorValue.getDossier() == null) {
147  descriptorValue.setDossier(_dossier);
148  _dossier.getDescriptors().add(_value);
149  }
150  }
void setDescriptorDefinition(DescriptorDefinition descriptorDefinition)
Here is the call graph for this function:
Here is the caller graph for this function:

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