-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents_view.go
65 lines (51 loc) · 1.26 KB
/
components_view.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package gostructurizr
type ComponentsViewNode struct {
container *ContainerNode
key, description *string
addAllElement bool
addAllPeople bool
autoLayout bool
}
func componentsView(container *ContainerNode) *ComponentsViewNode {
return &ComponentsViewNode{
container: container,
}
}
func (s *ComponentsViewNode) WithKey(key string) *ComponentsViewNode {
s.key = &key
return s
}
func (s *ComponentsViewNode) Key() *string {
return s.key
}
func (s *ComponentsViewNode) WithDescription(desc string) *ComponentsViewNode {
s.description = &desc
return s
}
func (s *ComponentsViewNode) Description() *string {
return s.description
}
func (s *ComponentsViewNode) Container() *ContainerNode {
return s.container
}
func (s *ComponentsViewNode) AddAllElements() *ComponentsViewNode {
s.addAllElement = true
return s
}
func (s *ComponentsViewNode) WithAutoLayout() *ComponentsViewNode {
s.autoLayout = true
return s
}
func (s *ComponentsViewNode) AutoLayout() bool {
return s.autoLayout
}
func (s *ComponentsViewNode) IsAllElements() bool {
return s.addAllElement
}
func (s *ComponentsViewNode) AddAllPeople() *ComponentsViewNode {
s.addAllPeople = true
return s
}
func (s *ComponentsViewNode) IsAllPeople() bool {
return s.addAllPeople
}