Autopsy  4.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-2014 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 
26 interface AutopsyItemVisitor<T> {
27 
28  T visit(DataSources i);
29 
30  T visit(Views v);
31 
32  T visit(FileTypeExtensionFilters sf);
33 
34  T visit(FileTypeExtensionFilters.RootFilter fsf);
35 
36  T visit(FileTypeExtensionFilters.DocumentFilter df);
37 
38  T visit(FileTypeExtensionFilters.ExecutableFilter ef);
39 
40  T visit(RecentFiles rf);
41 
42  T visit(RecentFiles.RecentFilesFilter rff);
43 
44  T visit(DeletedContent dc);
45 
46  T visit(DeletedContent.DeletedContentFilter dcf);
47 
48  T visit(FileSize fs);
49 
50  T visit(FileSize.FileSizeFilter fsf);
51 
52  T visit(ExtractedContent ec);
53 
54  T visit(KeywordHits kh);
55 
56  T visit(HashsetHits hh);
57 
58  T visit(EmailExtracted ee);
59 
60  T visit(InterestingHits ih);
61 
62  T visit(Results r);
63 
64  T visit(Tags tagsNodeKey);
65 
66  T visit(Reports reportsItem);
67 
68  static abstract public class Default<T> implements AutopsyItemVisitor<T> {
69 
70  protected abstract T defaultVisit(AutopsyVisitableItem ec);
71 
72  @Override
73  public T visit(ExtractedContent ec) {
74  return defaultVisit(ec);
75  }
76 
77  @Override
78  public T visit(FileTypeExtensionFilters sf) {
79  return defaultVisit(sf);
80  }
81 
82  @Override
83  public T visit(FileTypeExtensionFilters.RootFilter fsf) {
84  return defaultVisit(fsf);
85  }
86 
87  @Override
88  public T visit(FileTypeExtensionFilters.DocumentFilter df) {
89  return defaultVisit(df);
90  }
91 
92  @Override
93  public T visit(FileTypeExtensionFilters.ExecutableFilter ef) {
94  return defaultVisit(ef);
95  }
96 
97  @Override
98  public T visit(DeletedContent dc) {
99  return defaultVisit(dc);
100  }
101 
102  @Override
104  return defaultVisit(dcf);
105  }
106 
107  @Override
108  public T visit(FileSize fs) {
109  return defaultVisit(fs);
110  }
111 
112  @Override
113  public T visit(FileSize.FileSizeFilter fsf) {
114  return defaultVisit(fsf);
115  }
116 
117  @Override
118  public T visit(RecentFiles rf) {
119  return defaultVisit(rf);
120  }
121 
122  @Override
123  public T visit(RecentFiles.RecentFilesFilter rff) {
124  return defaultVisit(rff);
125  }
126 
127  @Override
128  public T visit(KeywordHits kh) {
129  return defaultVisit(kh);
130  }
131 
132  @Override
133  public T visit(HashsetHits hh) {
134  return defaultVisit(hh);
135  }
136 
137  @Override
138  public T visit(InterestingHits ih) {
139  return defaultVisit(ih);
140  }
141 
142  @Override
143  public T visit(EmailExtracted ee) {
144  return defaultVisit(ee);
145  }
146 
147  @Override
148  public T visit(Tags tagsNodeKey) {
149  return defaultVisit(tagsNodeKey);
150  }
151 
152  @Override
153  public T visit(DataSources i) {
154  return defaultVisit(i);
155  }
156 
157  @Override
158  public T visit(Views v) {
159  return defaultVisit(v);
160  }
161 
162  @Override
163  public T visit(Results r) {
164  return defaultVisit(r);
165  }
166 
167  @Override
168  public T visit(Reports reportsItem) {
169  return defaultVisit(reportsItem);
170  }
171  }
172 }
abstract T defaultVisit(AutopsyVisitableItem ec)
T visit(FileTypeExtensionFilters.DocumentFilter df)
T visit(FileTypeExtensionFilters.RootFilter fsf)
T visit(FileTypeExtensionFilters.ExecutableFilter ef)

Copyright © 2012-2015 Basis Technology. Generated on: Wed Apr 6 2016
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.