diff --git a/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java b/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java index 17a6ca5eb8391f71868c800d6ab241480af6453b..a5f35d1df8b752f7f21d253748a62a3ef575df10 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java +++ b/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java @@ -323,10 +323,13 @@ public byte[] getValueBytes() { /** * Gets the owner Id of this attribute. An owner is defined as the Object * to which this attribute is associated with. - * Eg: For a file Attribute, the owner id would be the file object id. + * Eg: For a file Attribute, the owner id would be the file object id. + * + * Each implementation is expected to give a more specific name. + * * @return */ - public long getAttributeOwnerId() { + long getAttributeOwnerId() { return this.attributeOwnerId; } diff --git a/bindings/java/src/org/sleuthkit/datamodel/Attribute.java b/bindings/java/src/org/sleuthkit/datamodel/Attribute.java index ce3afbccded0ab00a1d645aedfd2c3e69d945db4..ad6e436c08377a95df1de1781e009f57dac2644d 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/Attribute.java +++ b/bindings/java/src/org/sleuthkit/datamodel/Attribute.java @@ -130,6 +130,18 @@ public Attribute(BlackboardAttribute.Type attributeType, byte[] valueBytes) thro super(attributeOwnerId, attributeType, valueInt, valueLong, valueDouble, valueString, valueBytes, sleuthkitCase); } + /** + * Gets the owner Id of this attribute. An owner is defined as the Object + * to which this attribute is associated with. + * Eg: For a file Attribute, the owner id would be the file object id. + * + * @return + */ + @Override + public long getAttributeOwnerId() { + return super.getAttributeOwnerId(); + } + @Override public int hashCode() {