1 /*
2 * Sleuth Kit Data Model
3 *
4 * Copyright 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
21 import com.google.common.base.MoreObjects;
22 import java.util.Arrays;
23 import java.util.Objects;
24
29
33 private long attributeParentId;
34
38 private long id;
39
40
53 super(attributeType, valueInt);
54 }
55
56
71 super(attributeType, valueLong);
72 }
73
74
87 super(attributeType, valueDouble);
88 }
89
90
103 super(attributeType, valueString);
104 }
105
106
119 super(attributeType, valueBytes);
120 }
121
139 int valueInt, long valueLong, double valueDouble, String valueString, byte[] valueBytes,
141 super(attributeType, valueInt, valueLong, valueDouble, valueString, valueBytes, sleuthkitCase);
142 this.id = id;
143 }
144
153 return this.attributeParentId;
154 }
155
161 final void setAttributeParentId(long attributeParentId) {
162 this.attributeParentId = attributeParentId;
163 }
164
165
171 return id;
172 }
173
174
179 void setId(long id) {
180 this.id = id;
181 }
182
183 @Override
185 return Objects.hash(
188 }
189
190 @Override
192 if (this == that) {
193 return true;
195 return areValuesEqual(that);
196 } else {
197 return false;
198 }
199 }
200
201 @Override
203 return MoreObjects.toStringHelper(this)
210 .add("Case", getCaseDatabase())
212 }
213 }
Attribute(BlackboardAttribute.Type attributeType, long valueLong)
Attribute(BlackboardAttribute.Type attributeType, int valueInt)
Attribute(BlackboardAttribute.Type attributeType, double valueDouble)
Attribute(BlackboardAttribute.Type attributeType, String valueString)
BlackboardAttribute.Type getAttributeType()
final long getAttributeParentId()
boolean equals(Object that)
Attribute(BlackboardAttribute.Type attributeType, byte[] valueBytes)