Sleuth Kit Java Bindings (JNI)  4.12.1
Java bindings for using The Sleuth Kit
SleuthkitItemVisitor.java
Go to the documentation of this file.
1 /*
2  * Sleuth Kit Data Model
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.datamodel;
20 
35 public interface SleuthkitItemVisitor<T> {
36 
44  T visit(Directory d);
45 
53  T visit(File f);
54 
62  T visit(FileSystem fs);
63 
71  T visit(Image i);
72 
80  T visit(Volume v);
81 
89  T visit(VolumeSystem vs);
90 
98  T visit(Pool pool);
99 
108 
117 
125  T visit(LayoutFile lf);
126 
134  T visit(VirtualDirectory ld);
135 
143  T visit(LocalDirectory ld);
144 
152  T visit(DerivedFile df);
153 
161  T visit(LocalFile lf);
162 
170  T visit(SlackFile sf);
171 
179  T visit(Report report);
180 
188  T visit(OsAccount account);
189 
197  T visit(UnsupportedContent unsupportedContent);
198 
206  T visit(LocalFilesDataSource localFilesDataSource);
207 
217  static abstract public class Default<T> implements SleuthkitItemVisitor<T> {
218 
219  protected abstract T defaultVisit(SleuthkitVisitableItem s);
220 
221  @Override
222  public T visit(Directory d) {
223  return defaultVisit(d);
224  }
225 
226  @Override
227  public T visit(File f) {
228  return defaultVisit(f);
229  }
230 
231  @Override
232  public T visit(FileSystem fs) {
233  return defaultVisit(fs);
234  }
235 
236  @Override
237  public T visit(Image i) {
238  return defaultVisit(i);
239  }
240 
241  @Override
242  public T visit(Volume v) {
243  return defaultVisit(v);
244  }
245 
246  @Override
247  public T visit(VolumeSystem vs) {
248  return defaultVisit(vs);
249  }
250 
251  @Override
252  public T visit(Pool p) {
253  return defaultVisit(p);
254  }
255 
256  @Override
257  public T visit(BlackboardArtifact ba) {
258  return defaultVisit(ba);
259  }
260 
261  @Override
263  return defaultVisit(tw);
264  }
265 
266  @Override
267  public T visit(LayoutFile lf) {
268  return defaultVisit(lf);
269  }
270 
271  @Override
272  public T visit(VirtualDirectory vd) {
273  return defaultVisit(vd);
274  }
275 
276  @Override
277  public T visit(LocalDirectory ld) {
278  return defaultVisit(ld);
279  }
280 
281  @Override
282  public T visit(DerivedFile df) {
283  return defaultVisit(df);
284  }
285 
286  @Override
287  public T visit(LocalFile lf) {
288  return defaultVisit(lf);
289  }
290 
291  @Override
292  public T visit(SlackFile sf) {
293  return defaultVisit(sf);
294  }
295 
296  @Override
297  public T visit(Report report) {
298  return defaultVisit(report);
299  }
300 
301  @Override
302  public T visit(OsAccount account) {
303  return defaultVisit(account);
304  }
305 
306  @Override
307  public T visit(UnsupportedContent unsupportedContent) {
308  return defaultVisit(unsupportedContent);
309  }
310 
311  @Override
312  public T visit(LocalFilesDataSource localFilesDataSource) {
313  return defaultVisit(localFilesDataSource);
314  }
315  }
316 }
T visit(LocalFilesDataSource localFilesDataSource)
T visit(UnsupportedContent unsupportedContent)
abstract T defaultVisit(SleuthkitVisitableItem s)

Copyright © 2011-2021 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.