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
-
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
-
className
- the class only portion of the full class name.
-
packageName
- the package portion of the full class name.
-
pcs
- a support object for property change events
-
PROPERTY_NAME
-
-
PROPERTY_TEXT
-
-
NetRexxClass()
- Create a NetRexxClass object given no parameters
-
NetRexxClass(String)
- Create a NetRexxClass object given the full class name
-
NetRexxClass(String, String)
- Create a NetRexxClass object given the class and package names, e.g.
-
addPropertyChangeListener(PropertyChangeListener)
- add a property change listener
-
equals(Object)
- Two netrexx classes are equal if they have the same name
-
getClassName()
-
-
getName()
-
-
getPackageName()
-
-
getProject()
-
-
getText()
-
-
hashCode()
-
-
removePropertyChangeListener(PropertyChangeListener)
- remove a property change listener
-
setName(String)
- setName - sets the class' name - a fully qualified name
-
setProject(Project)
-
-
setText(String)
- setText - sets the text of the class
-
toString()
-
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
PROPERTY_NAME
public static final Rexx PROPERTY_NAME
PROPERTY_TEXT
public static final Rexx PROPERTY_TEXT
packageName
protected String packageName
- the package portion of the full class name. Can be null. e.g. vnr.ide
className
protected String className
- the class only portion of the full class name. Can't be null. e.g. Desktop
pcs
protected PropertyChangeSupport pcs
- a support object for property change events
NetRexxClass
public NetRexxClass()
- Create a NetRexxClass object given no parameters
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
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
toString
public String toString()
- Returns:
- the class' name (packageName)
- Overrides:
- toString in class Object
- See Also:
- toString
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
setText
public void setText(String newText)
- setText - sets the text of the class
getText
public String getText()
- Returns:
- the text of the class
getPackageName
public String getPackageName()
- Returns:
- the package component of the class
- See Also:
- String
getClassName
public String getClassName()
- Returns:
- the class name component of the class, i.e. no package portion is present
- See Also:
- String
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pcl)
- add a property change listener
- See Also:
- addPropertyChangeListener
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pcl)
- remove a property change listener
- See Also:
- removePropertyChangeListener
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
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
- See Also:
- hashCode
getName
public String getName()
getProject
public Project getProject()
setProject
public void setProject(Project $3)
All Packages Class Hierarchy This Package Previous Next Index