org.sleuthkit.autopsy.datamodel/0 0.0 1

org.sleuthkit.autopsy.datamodel
Class VolumeNode

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by org.openide.nodes.Node
          extended by org.openide.nodes.AbstractNode
              extended by org.sleuthkit.autopsy.datamodel.VolumeNode
All Implemented Interfaces:
org.openide.util.HelpCtx.Provider, org.openide.util.Lookup.Provider, ContentNode

public class VolumeNode
extends org.openide.nodes.AbstractNode

This class is used to represent the "Node" for the volume. Its child is the root directory of a file system


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.Node
org.openide.nodes.Node.Cookie, org.openide.nodes.Node.Handle, org.openide.nodes.Node.IndexedProperty<T,E>, org.openide.nodes.Node.Property<T>, org.openide.nodes.Node.PropertySet
 
Field Summary
 
Fields inherited from class org.openide.nodes.AbstractNode
displayFormat, systemActions
 
Fields inherited from class org.openide.nodes.Node
EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, PROP_LEAF, PROP_NAME, PROP_OPENED_ICON, PROP_PARENT_NODE, PROP_PROPERTY_SETS, PROP_SHORT_DESCRIPTION
 
Constructor Summary
VolumeNode(org.sleuthkit.datamodel.Volume vol)
           
 
Method Summary
<T> T
accept(ContentNodeVisitor<T> v)
          Visitor pattern support.
protected  org.openide.nodes.Sheet createSheet()
           
 javax.swing.Action[] getActions(boolean popup)
          Right click action for volume node
 org.sleuthkit.datamodel.Content getContent()
          Returns the content of this node.
 java.lang.String[] getDisplayPath()
          Returns full path to this node.
 int getFileIDColumn()
          Returns the location of the file ID / Metadata address on the columns on the directory table.
 long getID()
          Gets the ID of this node.
 java.lang.String getName()
          Returns the programmatic name for this node.
 java.lang.Object[][] getRowValues(int rows)
          Gets the row values for this node.
 java.lang.String[] getSystemPath()
          Returns full path to this node.
 byte[] read(long offset, long len)
          Reads the content of this node.
 void setName(java.lang.String name)
           
 
Methods inherited from class org.openide.nodes.AbstractNode
canCopy, canCut, canDestroy, canRename, clipboardCopy, clipboardCut, cloneNode, createActions, createPasteTypes, drag, getActions, getCookie, getCookieSet, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPreferredAction, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setSheet
 
Methods inherited from class org.openide.nodes.Node
addNodeListener, addPropertyChangeListener, clone, destroy, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hashCode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setHidden, setShortDescription, toString
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setPreferred, setValue
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VolumeNode

public VolumeNode(org.sleuthkit.datamodel.Volume vol)
Parameters:
vol - underlying Content instance
Method Detail

getRowValues

public java.lang.Object[][] getRowValues(int rows)
                                  throws java.sql.SQLException
Gets the row values for this node. The main purpose of this method is to get the 'x' number of the row values for this node to set the width of each column of the DataResult Table. Row values is the children and it's properties.

Specified by:
getRowValues in interface ContentNode
Parameters:
rows - the number of rows we want to show
Returns:
rowValues the row values for this node.
Throws:
java.sql.SQLException

getFileIDColumn

public int getFileIDColumn()
Returns the location of the file ID / Metadata address on the columns on the directory table.

Specified by:
getFileIDColumn in interface ContentNode
Returns:

getActions

public javax.swing.Action[] getActions(boolean popup)
Right click action for volume node

Overrides:
getActions in class org.openide.nodes.Node
Parameters:
popup -
Returns:

createSheet

protected org.openide.nodes.Sheet createSheet()
Overrides:
createSheet in class org.openide.nodes.AbstractNode

accept

public <T> T accept(ContentNodeVisitor<T> v)
Description copied from interface: ContentNode
Visitor pattern support.

Type Parameters:
T - visitor return type
Parameters:
v - visitor
Returns:
visitor return value

setName

public void setName(java.lang.String name)
Overrides:
setName in class org.openide.nodes.AbstractNode

getName

public java.lang.String getName()
Description copied from interface: ContentNode
Returns the programmatic name for this node. This is NOT the name to display to users, or the plain name of the Content object - use Node.getDisplayName() for that.

Specified by:
getName in interface ContentNode
Overrides:
getName in class java.beans.FeatureDescriptor
Returns:
name the programmatic name for this node

getID

public long getID()
Gets the ID of this node.

Specified by:
getID in interface ContentNode
Returns:
ID the ID of this node

read

public byte[] read(long offset,
                   long len)
            throws org.sleuthkit.datamodel.TskException
Reads the content of this node.

Specified by:
read in interface ContentNode
Parameters:
offset - the starting offset
len - the length
Returns:
the bytes
Throws:
org.sleuthkit.datamodel.TskException

getContent

public org.sleuthkit.datamodel.Content getContent()
Returns the content of this node.

Specified by:
getContent in interface ContentNode
Returns:
content the content of this node (can be image, volume, directory, or file)

getDisplayPath

public java.lang.String[] getDisplayPath()
Returns full path to this node.

Specified by:
getDisplayPath in interface ContentNode
Returns:
the path of this node

getSystemPath

public java.lang.String[] getSystemPath()
Returns full path to this node.

Specified by:
getSystemPath in interface ContentNode
Returns:
the path of this node

org.sleuthkit.autopsy.datamodel/0 0.0 1