Autopsy  4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
AutopsyItemVisitor.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2016 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.datamodel;
20 
22 
28 public interface AutopsyItemVisitor<T> {
29 
30  T visit(DataSources i);
31 
32  T visit(DataSourceGrouping datasourceGrouping);
33 
34  T visit(Views v);
35 
37 
39 
41 
43 
44  T visit(RecentFiles rf);
45 
47 
48  T visit(DeletedContent dc);
49 
51 
52  T visit(FileSize fs);
53 
55 
56  T visit(ExtractedContent ec);
57 
58  T visit(KeywordHits kh);
59 
60  T visit(HashsetHits hh);
61 
62  T visit(EmailExtracted ee);
63 
64  T visit(InterestingHits ih);
65 
66  T visit(Results r);
67 
68  T visit(Tags tagsNodeKey);
69 
70  T visit(Reports reportsItem);
71 
72  T visit(Accounts accountsItem);
73 
74  T visit(FileTypes fileTypesItem);
75 
76  T visit(FileTypesByMimeType aThis);
77 
78 
79  static abstract public class Default<T> implements AutopsyItemVisitor<T> {
80 
81  protected abstract T defaultVisit(AutopsyVisitableItem ec);
82 
83  @Override
84  public T visit(ExtractedContent ec) {
85  return defaultVisit(ec);
86  }
87 
88  @Override
89  public T visit(FileTypesByExtension sf) {
90  return defaultVisit(sf);
91  }
92 
93  @Override
95  return defaultVisit(fsf);
96  }
97 
98  @Override
100  return defaultVisit(df);
101  }
102 
103  @Override
105  return defaultVisit(ef);
106  }
107 
108  @Override
109  public T visit(FileTypesByMimeType ftByMimeType) {
110  return defaultVisit(ftByMimeType);
111  }
112 
113  @Override
114  public T visit(DeletedContent dc) {
115  return defaultVisit(dc);
116  }
117 
118  @Override
120  return defaultVisit(dcf);
121  }
122 
123  @Override
124  public T visit(FileSize fs) {
125  return defaultVisit(fs);
126  }
127 
128  @Override
129  public T visit(FileSize.FileSizeFilter fsf) {
130  return defaultVisit(fsf);
131  }
132 
133  @Override
134  public T visit(RecentFiles rf) {
135  return defaultVisit(rf);
136  }
137 
138  @Override
140  return defaultVisit(rff);
141  }
142 
143  @Override
144  public T visit(KeywordHits kh) {
145  return defaultVisit(kh);
146  }
147 
148  @Override
149  public T visit(HashsetHits hh) {
150  return defaultVisit(hh);
151  }
152 
153  @Override
154  public T visit(InterestingHits ih) {
155  return defaultVisit(ih);
156  }
157 
158  @Override
159  public T visit(EmailExtracted ee) {
160  return defaultVisit(ee);
161  }
162 
163  @Override
164  public T visit(Tags tagsNodeKey) {
165  return defaultVisit(tagsNodeKey);
166  }
167 
168  @Override
169  public T visit(DataSources i) {
170  return defaultVisit(i);
171  }
172 
173  @Override
174  public T visit(Views v) {
175  return defaultVisit(v);
176  }
177 
178  @Override
179  public T visit(DataSourceGrouping datasourceGrouping) {
180  return defaultVisit(datasourceGrouping);
181  }
182 
183  @Override
184  public T visit(Results r) {
185  return defaultVisit(r);
186  }
187 
188 
189  @Override
190  public T visit(FileTypes ft) {
191  return defaultVisit(ft);
192  }
193 
194  @Override
195  public T visit(Reports reportsItem) {
196  return defaultVisit(reportsItem);
197  }
198 
199  @Override
200  public T visit(Accounts accountsItem) {
201  return defaultVisit(accountsItem);
202  }
203  }
204 }
abstract T defaultVisit(AutopsyVisitableItem ec)
T visit(FileTypesByExtension.ExecutableFilter ef)

Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.