Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
org.sleuthkit.datamodel.AbstractAttribute Class Referenceabstract

Inherited by org.sleuthkit.datamodel.Attribute, org.sleuthkit.datamodel.BlackboardAttribute, and org.sleuthkit.datamodel.OsAccount.OsAccountAttribute.

Public Member Functions

 AbstractAttribute (BlackboardAttribute.Type attributeType, byte[] valueBytes)
 AbstractAttribute (BlackboardAttribute.Type attributeType, double valueDouble)
 AbstractAttribute (BlackboardAttribute.Type attributeType, int valueInt)
 AbstractAttribute (BlackboardAttribute.Type attributeType, long valueLong)
 AbstractAttribute (BlackboardAttribute.Type attributeType, String valueString)
BlackboardAttribute.Type getAttributeType ()
String getDisplayString ()
byte[] getValueBytes ()
double getValueDouble ()
int getValueInt ()
long getValueLong ()
String getValueString ()
BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE getValueType ()

Detailed Description

An abstract base class for attributes as name-value pairs with type safety. The attribute type field indicates which one of the value fields is valid.

Definition at line 28 of file AbstractAttribute.java.

Constructor & Destructor Documentation

◆ AbstractAttribute() [1/5]

org.sleuthkit.datamodel.AbstractAttribute.AbstractAttribute ( BlackboardAttribute.Type attributeType,
int valueInt )

Constructs an attribute with an integer value.

Parameters
attributeTypeThe attribute type.
valueIntThe attribute value.
Exceptions
IllegalArgumentExceptionIf the value type of the specified attribute type is not TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.INTEGER.

Definition at line 52 of file AbstractAttribute.java.

References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.INTEGER.

◆ AbstractAttribute() [2/5]

org.sleuthkit.datamodel.AbstractAttribute.AbstractAttribute ( BlackboardAttribute.Type attributeType,
long valueLong )

Constructs an attribute with a long/datetime value.

Parameters
attributeTypeThe attribute type.
valueLongThe attribute value.
Exceptions
IllegalArgumentExceptionIf the value type of the specified standard attribute type is not TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.LONG or TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.DATETIME.

Definition at line 76 of file AbstractAttribute.java.

References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.DATETIME, and org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.LONG.

◆ AbstractAttribute() [3/5]

org.sleuthkit.datamodel.AbstractAttribute.AbstractAttribute ( BlackboardAttribute.Type attributeType,
double valueDouble )

Constructs an attribute with a double value.

Parameters
attributeTypeThe attribute type.
valueDoubleThe attribute value.
Exceptions
IllegalArgumentExceptionIf the value type of the specified attribute type is not TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.DOUBLE.

Definition at line 99 of file AbstractAttribute.java.

References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.DOUBLE.

◆ AbstractAttribute() [4/5]

org.sleuthkit.datamodel.AbstractAttribute.AbstractAttribute ( BlackboardAttribute.Type attributeType,
String valueString )

Constructs an attribute with a string value.

Parameters
attributeTypeThe attribute type.
valueStringThe attribute value.
Exceptions
IllegalArgumentExceptionIf the value type of the specified attribute type is not TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.STRING.

Definition at line 121 of file AbstractAttribute.java.

References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON, and org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.STRING.

◆ AbstractAttribute() [5/5]

org.sleuthkit.datamodel.AbstractAttribute.AbstractAttribute ( BlackboardAttribute.Type attributeType,
byte[] valueBytes )

Constructs an attribute with a byte array value.

Parameters
attributeTypeThe attribute type.
valueBytesThe attribute value.
Exceptions
IllegalArgumentExceptionIf the value type of the specified attribute type is not TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.BYTE.

Definition at line 148 of file AbstractAttribute.java.

References org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.BYTE.

Member Function Documentation

◆ getAttributeType()

◆ getDisplayString()

String org.sleuthkit.datamodel.AbstractAttribute.getDisplayString ( )

◆ getValueBytes()

byte[] org.sleuthkit.datamodel.AbstractAttribute.getValueBytes ( )

◆ getValueDouble()

double org.sleuthkit.datamodel.AbstractAttribute.getValueDouble ( )

◆ getValueInt()

int org.sleuthkit.datamodel.AbstractAttribute.getValueInt ( )

◆ getValueLong()

long org.sleuthkit.datamodel.AbstractAttribute.getValueLong ( )

◆ getValueString()

String org.sleuthkit.datamodel.AbstractAttribute.getValueString ( )

◆ getValueType()

BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE org.sleuthkit.datamodel.AbstractAttribute.getValueType ( )

Gets the value type of this attribute.

Returns
The value type

Definition at line 246 of file AbstractAttribute.java.

References getValueType().

Referenced by org.sleuthkit.datamodel.BlackboardAttribute.getDisplayString(), and getValueType().


The documentation for this class was generated from the following file:

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.