org.sourcejammer.project.view
Class NodeName

java.lang.Object
  |
  +--org.sourcejammer.project.view.NodeName

public class NodeName
extends java.lang.Object

Represents the name of a Node on the project hierarchy. Contains a link to NodeName of parent node. If parent NodeName is null, then this is the root NodeName of an archive.


Field Summary
private  NodeName moParent
           
private  java.lang.String msName
           
 
Constructor Summary
NodeName()
           
 
Method Summary
static NodeName buildNodeNameObject(java.lang.String fullProjectPath, java.lang.String archiveName)
          Builds a NodeName from a full project path string.
private  java.lang.StringBuffer buildStringValue()
          If this object has a parent, call this method in parentfirst.
 java.lang.String getName()
          Return the name of the corresponding Node on the project hierarchy.
 NodeName getParent()
          Returns a NodeName object for the parent of the Node that corresponds to this NodeName object.
static void main(java.lang.String[] args)
           
 void setName(java.lang.String s)
           
 void setParent(NodeName parent)
           
 java.lang.String toString()
          Prints path up to this project node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

moParent

private NodeName moParent

msName

private java.lang.String msName
Constructor Detail

NodeName

public NodeName()
Method Detail

getName

public java.lang.String getName()
Return the name of the corresponding Node on the project hierarchy.


setName

public void setName(java.lang.String s)

getParent

public NodeName getParent()
Returns a NodeName object for the parent of the Node that corresponds to this NodeName object.


setParent

public void setParent(NodeName parent)

toString

public java.lang.String toString()
Prints path up to this project node. For example:

/this/is/a/path

Overrides:
toString in class java.lang.Object

buildStringValue

private java.lang.StringBuffer buildStringValue()
If this object has a parent, call this method in parentfirst. Then append directory switch and name.


buildNodeNameObject

public static NodeName buildNodeNameObject(java.lang.String fullProjectPath,
                                           java.lang.String archiveName)
Builds a NodeName from a full project path string.


main

public static void main(java.lang.String[] args)


Copyright © 2003 Soucejammer project.