Sleuth Kit Java Bindings (JNI)  4.11.1
Java bindings for using The Sleuth Kit
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, int valueInt)
 
 AbstractAttribute (BlackboardAttribute.Type attributeType, long valueLong)
 
 AbstractAttribute (BlackboardAttribute.Type attributeType, double valueDouble)
 
 AbstractAttribute (BlackboardAttribute.Type attributeType, String valueString)
 
 AbstractAttribute (BlackboardAttribute.Type attributeType, byte[] valueBytes)
 
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

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.AbstractAttribute.getValueType(), and org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.INTEGER.

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, org.sleuthkit.datamodel.AbstractAttribute.getValueType(), and org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.LONG.

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, and org.sleuthkit.datamodel.AbstractAttribute.getValueType().

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.AbstractAttribute.getValueType(), org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.JSON, and org.sleuthkit.datamodel.BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE.STRING.

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, and org.sleuthkit.datamodel.AbstractAttribute.getValueType().

Member Function Documentation

byte [] org.sleuthkit.datamodel.AbstractAttribute.getValueBytes ( )
double org.sleuthkit.datamodel.AbstractAttribute.getValueDouble ( )
int org.sleuthkit.datamodel.AbstractAttribute.getValueInt ( )
BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE org.sleuthkit.datamodel.AbstractAttribute.getValueType ( )

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

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.