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

Inherits org.sleuthkit.datamodel.AbstractAttribute.

Public Member Functions

 Attribute (BlackboardAttribute.Type attributeType, byte[] valueBytes) throws IllegalArgumentException
 Attribute (BlackboardAttribute.Type attributeType, double valueDouble) throws IllegalArgumentException
 Attribute (BlackboardAttribute.Type attributeType, int valueInt) throws IllegalArgumentException
 Attribute (BlackboardAttribute.Type attributeType, long valueLong) throws IllegalArgumentException
 Attribute (BlackboardAttribute.Type attributeType, String valueString) throws IllegalArgumentException
boolean equals (Object that)
final long getAttributeParentId ()
long getId ()
int hashCode ()
String toString ()
Public Member Functions inherited from org.sleuthkit.datamodel.AbstractAttribute
 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

This is a concrete implementation of a simple Attribute Type.

Definition at line 28 of file Attribute.java.

Constructor & Destructor Documentation

◆ Attribute() [1/5]

org.sleuthkit.datamodel.Attribute.Attribute ( BlackboardAttribute.Type attributeType,
int valueInt ) throws IllegalArgumentException

Constructs an attribute with an integer value. The attribute should be added to an appropriate artifact.

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 Attribute.java.

Referenced by equals().

◆ Attribute() [2/5]

org.sleuthkit.datamodel.Attribute.Attribute ( BlackboardAttribute.Type attributeType,
long valueLong ) throws IllegalArgumentException

Constructs an attribute with a long/datetime value. The attribute should be added to an appropriate artifact.

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 70 of file Attribute.java.

◆ Attribute() [3/5]

org.sleuthkit.datamodel.Attribute.Attribute ( BlackboardAttribute.Type attributeType,
double valueDouble ) throws IllegalArgumentException

Constructs an attribute with a double value. The attribute should be added to an appropriate artifact.

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 86 of file Attribute.java.

◆ Attribute() [4/5]

org.sleuthkit.datamodel.Attribute.Attribute ( BlackboardAttribute.Type attributeType,
String valueString ) throws IllegalArgumentException

Constructs an attribute with a string value. The attribute should be added to an appropriate artifact.

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 102 of file Attribute.java.

◆ Attribute() [5/5]

org.sleuthkit.datamodel.Attribute.Attribute ( BlackboardAttribute.Type attributeType,
byte[] valueBytes ) throws IllegalArgumentException

Constructs an attribute with a byte array value. The attribute should be added to an appropriate artifact.

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 118 of file Attribute.java.

Member Function Documentation

◆ equals()

boolean org.sleuthkit.datamodel.Attribute.equals ( Object that)

Definition at line 191 of file Attribute.java.

References Attribute().

◆ getAttributeParentId()

final long org.sleuthkit.datamodel.Attribute.getAttributeParentId ( )

Gets the parent Id of this attribute. A parent is defined as the Object to which this attribute is associated with. Eg: For a file Attribute the attribute parent id would be the file object id.

Returns

Definition at line 152 of file Attribute.java.

◆ getId()

long org.sleuthkit.datamodel.Attribute.getId ( )

Returns the Id of the Attribute.

Returns

Definition at line 170 of file Attribute.java.

◆ hashCode()

◆ toString()


The documentation for this class was generated from the following file:
  • /home/carriersleuth/repos/sleuthkit/bindings/java/src/org/sleuthkit/datamodel/Attribute.java

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.