Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
TimelineEventDescription.java
Go to the documentation of this file.
1/*
2 * Sleuth Kit Data Model
3 *
4 * Copyright 2018-2019 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 */
19package org.sleuthkit.datamodel;
20
25class TimelineEventDescription {
26
27 private final String shortDesc;
28 private final String mediumDesc;
29 private final String fullDesc;
30
42 TimelineEventDescription(String fullDescription, String medDescription, String shortDescription) {
43 this.shortDesc = shortDescription;
44 this.mediumDesc = medDescription;
45 this.fullDesc = fullDescription;
46 }
47
56 TimelineEventDescription(String fullDescription) {
57 this.shortDesc = "";
58 this.mediumDesc = "";
59 this.fullDesc = fullDescription;
60 }
61
69 String getDescription(TimelineLevelOfDetail levelOfDetail) {
70 switch (levelOfDetail) {
71 case HIGH:
72 default:
73 return this.fullDesc;
74 case MEDIUM:
75 return this.mediumDesc;
76 case LOW:
77 return this.shortDesc;
78 }
79 }
80
81}

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