org.acm.seguin.ide.common
Class CPDDuplicateCodeViewer.Duplicates

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.acm.seguin.ide.common.CPDDuplicateCodeViewer.Duplicates
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Enclosing class:
CPDDuplicateCodeViewer

public class CPDDuplicateCodeViewer.Duplicates
extends javax.swing.tree.DefaultMutableTreeNode

Description of the Class

Author:
Mike Atkinson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
CPDDuplicateCodeViewer.Duplicates(java.lang.String message, java.lang.String sourcecode)
          Constructor for the Duplicates object
 
Method Summary
 void addDuplicate(CPDDuplicateCodeViewer.Duplicate duplicate)
          Adds a feature to the Duplicate attribute of the Duplicates object
 java.lang.String getSourceCode()
          Gets the sourceCode attribute of the Duplicates object
 java.lang.String toString()
          Description of the Method
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CPDDuplicateCodeViewer.Duplicates

public CPDDuplicateCodeViewer.Duplicates(java.lang.String message,
                                         java.lang.String sourcecode)
Constructor for the Duplicates object

Parameters:
message - Description of Parameter
sourcecode - Description of Parameter
Method Detail

getSourceCode

public java.lang.String getSourceCode()
Gets the sourceCode attribute of the Duplicates object

Returns:
The sourceCode value

addDuplicate

public void addDuplicate(CPDDuplicateCodeViewer.Duplicate duplicate)
Adds a feature to the Duplicate attribute of the Duplicates object

Parameters:
duplicate - The feature to be added to the Duplicate attribute

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode
Returns:
Description of the Return Value