Autopsy  4.19.3
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-2021 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(KeywordHits kh);
57 
58  T visit(HashsetHits hh);
59 
60  T visit(EmailExtracted ee);
61 
62  T visit(InterestingHits ih);
63 
64  T visit(Tags tagsNodeKey);
65 
66  T visit(Reports reportsItem);
67 
68  T visit(Accounts accountsItem);
69 
70  T visit(FileTypes fileTypesItem);
71 
72  T visit(FileTypesByMimeType aThis);
73 
74  T visit(OsAccounts osAccoutItem);
75 
76  T visit(HostGrouping aThis);
77 
78  T visit(PersonGrouping aThis);
79 
80  T visit(HostDataSources aThis);
81 
82  T visit(DataSourcesByType aThis);
83 
84  T visit(AnalysisResults aThis);
85 
86  T visit(DataArtifacts aThis);
87 
88 
89  static abstract public class Default<T> implements AutopsyItemVisitor<T> {
90 
91  protected abstract T defaultVisit(AutopsyVisitableItem ec);
92 
93  @Override
94  public T visit(FileTypesByExtension sf) {
95  return defaultVisit(sf);
96  }
97 
98  @Override
100  return defaultVisit(fsf);
101  }
102 
103  @Override
105  return defaultVisit(df);
106  }
107 
108  @Override
110  return defaultVisit(ef);
111  }
112 
113  @Override
114  public T visit(FileTypesByMimeType ftByMimeType) {
115  return defaultVisit(ftByMimeType);
116  }
117 
118  @Override
119  public T visit(DeletedContent dc) {
120  return defaultVisit(dc);
121  }
122 
123  @Override
125  return defaultVisit(dcf);
126  }
127 
128  @Override
129  public T visit(FileSize fs) {
130  return defaultVisit(fs);
131  }
132 
133  @Override
134  public T visit(FileSize.FileSizeFilter fsf) {
135  return defaultVisit(fsf);
136  }
137 
138  @Override
139  public T visit(RecentFiles rf) {
140  return defaultVisit(rf);
141  }
142 
143  @Override
145  return defaultVisit(rff);
146  }
147 
148  @Override
149  public T visit(KeywordHits kh) {
150  return defaultVisit(kh);
151  }
152 
153  @Override
154  public T visit(HashsetHits hh) {
155  return defaultVisit(hh);
156  }
157 
158  @Override
159  public T visit(InterestingHits ih) {
160  return defaultVisit(ih);
161  }
162 
163  @Override
164  public T visit(EmailExtracted ee) {
165  return defaultVisit(ee);
166  }
167 
168  @Override
169  public T visit(Tags tagsNodeKey) {
170  return defaultVisit(tagsNodeKey);
171  }
172 
173  @Override
174  public T visit(DataSources i) {
175  return defaultVisit(i);
176  }
177 
178  @Override
179  public T visit(Views v) {
180  return defaultVisit(v);
181  }
182 
183  @Override
184  public T visit(DataSourceGrouping datasourceGrouping) {
185  return defaultVisit(datasourceGrouping);
186  }
187 
188  @Override
189  public T visit(HostGrouping hostGrouping) {
190  return defaultVisit(hostGrouping);
191  }
192 
193  @Override
194  public T visit(PersonGrouping personGrouping) {
195  return defaultVisit(personGrouping);
196  }
197 
198  @Override
199  public T visit(FileTypes ft) {
200  return defaultVisit(ft);
201  }
202 
203  @Override
204  public T visit(Reports reportsItem) {
205  return defaultVisit(reportsItem);
206  }
207 
208  @Override
209  public T visit(Accounts accountsItem) {
210  return defaultVisit(accountsItem);
211  }
212 
213  @Override
214  public T visit(OsAccounts osAccountItem) {
215  return defaultVisit(osAccountItem);
216  }
217 
218  @Override
219  public T visit(HostDataSources hostDataSources) {
220  return defaultVisit(hostDataSources);
221  }
222 
223  @Override
224  public T visit(DataSourcesByType dataSourceHosts) {
225  return defaultVisit(dataSourceHosts);
226  }
227 
228  @Override
229  public T visit(DataArtifacts aThis) {
230  return defaultVisit(aThis);
231  }
232 
233  @Override
234  public T visit(AnalysisResults aThis) {
235  return defaultVisit(aThis);
236  }
237  }
238 }
abstract T defaultVisit(AutopsyVisitableItem ec)
T visit(FileTypesByExtension.ExecutableFilter ef)

Copyright © 2012-2022 Basis Technology. Generated on: Thu Dec 1 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.