net.sf.bloof.metrics
Class FileNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--net.sf.bloof.metrics.FileNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class FileNode
extends javax.swing.tree.DefaultMutableTreeNode

Represents a node in the source navigation tree.

Version:
$Id: FileNode.java,v 1.2 2003/06/28 06:51:40 pekacki Exp $
Author:
Lukasz Pekacki
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
FileNode(java.lang.Object aO)
          Default constructor
FileNode(java.lang.String aFileName, java.lang.String aPathName)
          Main constructor
 
Method Summary
 java.lang.String getName()
          Returns the name of the file of this filenode
 java.lang.String getPathName()
          Returns the pathname of the file
 void setFileName(java.lang.String aFileName)
          Sets the aFileName.
 void setPathName(java.lang.String aPathName)
          Sets the aPathName.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileNode

public FileNode(java.lang.Object aO)
Default constructor

Parameters:
aO - object

FileNode

public FileNode(java.lang.String aFileName,
                java.lang.String aPathName)
Main constructor

Parameters:
aFileName - name of the file
aPathName - relative path of the file in the SCM tree
Method Detail

getName

public java.lang.String getName()
Returns the name of the file of this filenode

Returns:
String name of the file of this filenode

getPathName

public java.lang.String getPathName()
Returns the pathname of the file

Returns:
String

setFileName

public void setFileName(java.lang.String aFileName)
Sets the aFileName.

Parameters:
aFileName - The fileName to set

setPathName

public void setPathName(java.lang.String aPathName)
Sets the aPathName.

Parameters:
aPathName - The pathName to set


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.