org.exolab.javasource
Class JTypeName

java.lang.Object
  extended by org.exolab.javasource.JTypeName

public class JTypeName
extends java.lang.Object

Represents a class name

Version:
$REVISION$ $DATE$
Author:
Keith Visco

Constructor Summary
JTypeName()
          Creates a default JTypeName
JTypeName(java.lang.String name)
          Creates a new JTypeName with the given name
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getLocalName()
          Returns the local name of this JTypeName
 java.lang.String getPackageName()
          Returns the package name
 java.lang.String getQualifiedName()
          Returns the qualified name for this JTypeName
 int hashCode()
           
 void setLocalName(java.lang.String localName)
          Sets the local name for this JTypeName.
 void setPackageName(java.lang.String packageName)
          Sets the package name of this JTypeName.
 void setQualifiedName(java.lang.String qName)
          Sets the qualified name of this JTypeName.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JTypeName

public JTypeName()
Creates a default JTypeName


JTypeName

public JTypeName(java.lang.String name)
Creates a new JTypeName with the given name

Parameters:
name - the fully qualified class name
Method Detail

getLocalName

public java.lang.String getLocalName()
Returns the local name of this JTypeName

Returns:
the local name

getPackageName

public java.lang.String getPackageName()
Returns the package name

Returns:
the package name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getQualifiedName

public java.lang.String getQualifiedName()
Returns the qualified name for this JTypeName

Returns:
the qualified name

setLocalName

public void setLocalName(java.lang.String localName)
Sets the local name for this JTypeName. Setting the local name will modify the existing local name and existing qualified name.

Parameters:
localName - the local name to set

setPackageName

public void setPackageName(java.lang.String packageName)
Sets the package name of this JTypeName. Setting the package name will modify the existing package name and the existing qualified name.

Parameters:
packageName - the package name to set

setQualifiedName

public void setQualifiedName(java.lang.String qName)
Sets the qualified name of this JTypeName. Setting the qualified name will overwrite any previous values set via calls to #setLocalName and #setPackageName.

Parameters:
qName - the qualified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com