Skip to content

Package: PropertyBarEntry

PropertyBarEntry

Coverage

1: package networkconfigurator;
2:
3: import java.awt.Component;
4:
5: import model.type.TypeDoesNotExistException;
6: import model.type.TypeExceptions;
7: import model.type.ValueNotInRangeOfTypeException;
8: import networkconfigurator.actions.ItemGetNameVisitor;
9: import networkconfigurator.actions.ItemSetNameVisitor;
10:
11: /**
12: * Entry which can be on the detailbar.
13: *
14: * @author Jannik G.
15: *
16: */
17: public interface PropertyBarEntry {
18:         /**
19:          * Accept methode for the DetaibarVisitor.
20:          *
21:          * @param visitor
22:          * the visitor
23:          * @return component on the detailbar.
24:          */
25:         Component accept(DetailBarVisitor visitor);
26:
27:         /**
28:          * Accept methode for the CompareVaNameVisitor.
29:          *
30:          * @param visitor
31:          * the visitor
32:          * @return boolean if va was found.
33:          */
34:         boolean accept(CompareVaNameVisitor visitor);
35:
36:         /**
37:          * Accept methode for the ItemGetNameVisitor.
38:          *
39:          * @param visitor
40:          * the visitor
41:          * @return String of the Item.
42:          */
43:         String accept(ItemGetNameVisitor visitor);
44:
45:         /**
46:          * Accept methode for the ItemSetNameVisitor.
47:          *
48:          * @param visitor
49:          * the visitor
50:          * @throws TypeExceptions
51:          * The TypeExceptions.
52:          * @throws TypeDoesNotExistException
53:          * The TypeDoesNotExistException.
54:          * @throws ValueNotInRangeOfTypeException
55:          * The value is not in the range of the given type.
56:          * @throws IllegalArgumentException
57:          * see java.lang.IllegalArgumentException.
58:          */
59:         void accept(ItemSetNameVisitor visitor) throws IllegalArgumentException,
60:                         ValueNotInRangeOfTypeException, TypeDoesNotExistException, TypeExceptions;
61: }