com.taursys.tools.util
Class ClassPathNode

java.lang.Object
  extended bycom.taursys.tools.util.ClassPathNode

public class ClassPathNode
extends java.lang.Object

ClassPathNode is a tree node for a ClassPath tree.

Version:
1.0
Author:
Marty Phelan

Field Summary
static int TYPE_DIR
           
static int TYPE_FILE
           
static int TYPE_ROOT
           
 
Constructor Summary
ClassPathNode()
          Constructs a new ClassPathNode with blank names and TYPE_ROOT
ClassPathNode(java.lang.String displayName, java.lang.String qualifiedName, int type)
          Constructs a new ClassPathNode with all properties given
 
Method Summary
 java.lang.String getDisplayName()
          Get the display name for this ClassPathNode
 java.lang.String getQualifiedName()
          Get the fully qualified name for this class or package
 int getType()
          Get the type of node: root, directory, or file Should be one of: TYPE_ROOT, TYPE_DIR, or TYPE_FILE
 void setDisplayName(java.lang.String newDisplayName)
          Set the display name for this ClassPathNode
 void setQualifiedName(java.lang.String newQualifiedName)
          Set the fully qualified name for this class or package
 void setType(int newType)
          Set the type of node: root, directory, or file Should be one of: TYPE_ROOT, TYPE_DIR, or TYPE_FILE
 java.lang.String toString()
          Returns the displayName as a String representation of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ROOT

public static final int TYPE_ROOT
See Also:
Constant Field Values

TYPE_DIR

public static final int TYPE_DIR
See Also:
Constant Field Values

TYPE_FILE

public static final int TYPE_FILE
See Also:
Constant Field Values
Constructor Detail

ClassPathNode

public ClassPathNode()
Constructs a new ClassPathNode with blank names and TYPE_ROOT


ClassPathNode

public ClassPathNode(java.lang.String displayName,
                     java.lang.String qualifiedName,
                     int type)
Constructs a new ClassPathNode with all properties given

Method Detail

getDisplayName

public java.lang.String getDisplayName()
Get the display name for this ClassPathNode

Returns:
the display name for this ClassPathNode

setDisplayName

public void setDisplayName(java.lang.String newDisplayName)
Set the display name for this ClassPathNode

Parameters:
newDisplayName - display name for this ClassPathNode

setQualifiedName

public void setQualifiedName(java.lang.String newQualifiedName)
Set the fully qualified name for this class or package

Parameters:
newQualifiedName - the fully qualified name for this class or package

getQualifiedName

public java.lang.String getQualifiedName()
Get the fully qualified name for this class or package

Returns:
the fully qualified name for this class or package

setType

public void setType(int newType)
Set the type of node: root, directory, or file Should be one of: TYPE_ROOT, TYPE_DIR, or TYPE_FILE

Parameters:
newType - the type of node: root, directory, or file

getType

public int getType()
Get the type of node: root, directory, or file Should be one of: TYPE_ROOT, TYPE_DIR, or TYPE_FILE

Returns:
the type of node: root, directory, or file

toString

public java.lang.String toString()
Returns the displayName as a String representation of this node.

Returns:
the displayName as a String representation of this node.


Copyright © 2007 Martin T Phelan. All Rights Reserved.