Package: ItemGetNameVisitorImpl
ItemGetNameVisitorImpl
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ItemGetNameVisitorImpl() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| visit(DetailBarLabel) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| visit(DetailInputBox) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| visit(VariableAssignment) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
Coverage
1: package networkconfigurator.actions;
2: 
3: import model.assignment.VariableAssignment;
4: import networkconfigurator.DetailBarLabel;
5: import networkconfigurator.DetailInputBox;
6: 
7: /**
8:  * the visitor implementation to get the name.
9:  * 
10:  * @author Jannik
11:  */
12: public class ItemGetNameVisitorImpl implements ItemGetNameVisitor {
13: 
14:         @Override
15:         public String visit(final VariableAssignment va) {
16:                 return va.getValue();
17:         }
18: 
19:         @Override
20:         public String visit(final DetailBarLabel label) {
21:                 return label.getLabelVaule();
22:         }
23: 
24:         @Override
25:         public String visit(final DetailInputBox detailBarInputBox) {
26:                 return detailBarInputBox.getContentValue();
27:         }
28: 
29: }