All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnr.ide.NetRexxClass

java.lang.Object
   |
   +----vnr.ide.NetRexxClass

public class NetRexxClass
extends Object
This class represents a component of the Project - a NetRexxClass

At this point, it's just a string, although future implementations may get more advanced

Author:
dIon Gillard 1998-03-25
See Also:
Project, String

Variable Index

 o CLASS_TEXT_TEMPLATE
the class template is a string that has three objects to be formatted 0 - the package name 1 - the class name (either fully or not fully qualified, doesn't matter 2 - the unqualified class name
 o className
the class only portion of the full class name.
 o packageName
the package portion of the full class name.
 o pcs
a support object for property change events
 o PROPERTY_NAME
 o PROPERTY_TEXT

Constructor Index

 o NetRexxClass()
Create a NetRexxClass object given no parameters
 o NetRexxClass(String)
Create a NetRexxClass object given the full class name
 o NetRexxClass(String, String)
Create a NetRexxClass object given the class and package names, e.g.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
add a property change listener
 o equals(Object)
Two netrexx classes are equal if they have the same name
 o getClassName()
 o getName()
 o getPackageName()
 o getProject()
 o getText()
 o hashCode()
 o removePropertyChangeListener(PropertyChangeListener)
remove a property change listener
 o setName(String)
setName - sets the class' name - a fully qualified name
 o setProject(Project)
 o setText(String)
setText - sets the text of the class
 o toString()

Variables

 o CLASS_TEXT_TEMPLATE
 protected static Rexx CLASS_TEXT_TEMPLATE
the class template is a string that has three objects to be formatted 0 - the package name 1 - the class name (either fully or not fully qualified, doesn't matter 2 - the unqualified class name

See Also:
MessageFormat
 o PROPERTY_NAME
 public static final Rexx PROPERTY_NAME
 o PROPERTY_TEXT
 public static final Rexx PROPERTY_TEXT
 o packageName
 protected String packageName
the package portion of the full class name. Can be null. e.g. vnr.ide

 o className
 protected String className
the class only portion of the full class name. Can't be null. e.g. Desktop

 o pcs
 protected PropertyChangeSupport pcs
a support object for property change events

Constructors

 o NetRexxClass
 public NetRexxClass()
Create a NetRexxClass object given no parameters

 o NetRexxClass
 public NetRexxClass(String fullName)
Create a NetRexxClass object given the full class name

Parameters:
fullName - is the fully qualified name, e.g. vnr.ide.Desktop
See Also:
String
 o NetRexxClass
 public NetRexxClass(String pkgName,
                     String clsName)
Create a NetRexxClass object given the class and package names, e.g. vnr.ide and Desktop

Parameters:
pkgName - - the package name
clsName - - the class name
See Also:
String

Methods

 o toString
 public String toString()
Returns:
the class' name (packageName)
Overrides:
toString in class Object
See Also:
toString
 o setName
 public void setName(String n)
setName - sets the class' name - a fully qualified name

Parameters:
n - - the name for the class, e.g. vnr.ide.NetRexxClass
 o setText
 public void setText(String newText)
setText - sets the text of the class

 o getText
 public String getText()
Returns:
the text of the class
 o getPackageName
 public String getPackageName()
Returns:
the package component of the class
See Also:
String
 o getClassName
 public String getClassName()
Returns:
the class name component of the class, i.e. no package portion is present
See Also:
String
 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener pcl)
add a property change listener

See Also:
addPropertyChangeListener
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener pcl)
remove a property change listener

See Also:
removePropertyChangeListener
 o equals
 public boolean equals(Object o)
Two netrexx classes are equal if they have the same name

Parameters:
o - - the object being compared to this one
Returns:
true if: o is not null, o is a NetRexxClass and the names are the same. false otherwise.
Overrides:
equals in class Object
See Also:
equals
 o hashCode
 public int hashCode()
Overrides:
hashCode in class Object
See Also:
hashCode
 o getName
 public String getName()
 o getProject
 public Project getProject()
 o setProject
 public void setProject(Project $3)

All Packages  Class Hierarchy  This Package  Previous  Next  Index