org.acm.seguin.ide.jbuilder
Class UMLNode

java.lang.Object
  extended by FileNode
      extended by org.acm.seguin.ide.jbuilder.UMLNode

public class UMLNode
extends FileNode

File node representing a UML class diagram

Author:
Chris Seguin

Field Summary
static java.lang.String JAVASTYLE_DIR
           
 
Constructor Summary
UMLNode(Project project, Node parent, Url url)
          Constructor for the UMLNode object
 
Method Summary
 net.sourceforge.jrefactory.uml.UMLPackage getDiagram()
          Gets the Diagram attribute of the UMLNode object
 javax.swing.Icon getDisplayIcon()
          Gets the DisplayIcon attribute of the UMLNode object
 java.lang.String getDisplayName()
          Gets the DisplayName attribute of the UMLNode object
static void initLog()
           
static void initOpenTool(byte majorVersion, byte minorVersion)
          Initialize the open tools
 boolean isModified()
          Determines if the diagram has been modified
 boolean isPersistant()
          Gets the Persistant attribute of the UMLNode object
static void log(java.lang.String message)
           
 void save()
          Saves the diagram to the disk
 void saveAs(Url url)
          Description of the Method
 void setDiagram(net.sourceforge.jrefactory.uml.UMLPackage diagram)
          Sets the Diagram attribute of the UMLNode object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASTYLE_DIR

public static java.lang.String JAVASTYLE_DIR
Constructor Detail

UMLNode

public UMLNode(Project project,
               Node parent,
               Url url)
        throws DuplicateNodeException
Constructor for the UMLNode object

Parameters:
project - Description of Parameter
parent - Description of Parameter
url - Description of Parameter
Throws:
DuplicateNodeException - Description of Exception
Method Detail

setDiagram

public void setDiagram(net.sourceforge.jrefactory.uml.UMLPackage diagram)
Sets the Diagram attribute of the UMLNode object

Parameters:
diagram - The new Diagram value

getDiagram

public net.sourceforge.jrefactory.uml.UMLPackage getDiagram()
Gets the Diagram attribute of the UMLNode object

Returns:
The Diagram value

getDisplayIcon

public javax.swing.Icon getDisplayIcon()
Gets the DisplayIcon attribute of the UMLNode object

Returns:
The DisplayIcon value

getDisplayName

public java.lang.String getDisplayName()
Gets the DisplayName attribute of the UMLNode object

Returns:
The DisplayName value

isModified

public boolean isModified()
Determines if the diagram has been modified

Returns:
true if it has

isPersistant

public boolean isPersistant()
Gets the Persistant attribute of the UMLNode object

Returns:
The Persistant value

initOpenTool

public static void initOpenTool(byte majorVersion,
                                byte minorVersion)
Initialize the open tools

Parameters:
majorVersion - the version number
minorVersion - the version number

initLog

public static void initLog()

log

public static void log(java.lang.String message)

save

public void save()
          throws java.io.IOException,
                 InvalidUrlException
Saves the diagram to the disk

Throws:
java.io.IOException - Description of Exception
InvalidUrlException - Description of Exception

saveAs

public void saveAs(Url url)
            throws java.io.IOException,
                   InvalidUrlException,
                   DuplicateNodeException
Description of the Method

Parameters:
url - Description of Parameter
Throws:
java.io.IOException - Description of Exception
InvalidUrlException - Description of Exception
DuplicateNodeException - Description of Exception