Class JTypeName

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

public final class JTypeName extends Object
Represents a class name.
Version:
$Revision: 6669 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Keith Visco
  • Constructor Details

    • JTypeName

      public JTypeName()
      Creates a default JTypeName.
    • JTypeName

      public JTypeName(String name)
      Creates a new JTypeName with the given name.
      Parameters:
      name - The fully qualified class name.
  • Method Details

    • getLocalName

      public String getLocalName()
      Returns the local name of this JTypeName.
      Returns:
      The local name of this JTypeName.
    • getPackageName

      public String getPackageName()
      Returns the package name of this JTypeName.
      Returns:
      The package name of this JTypeName.
    • getQualifiedName

      public String getQualifiedName()
      Returns the qualified name of this JTypeName.
      Returns:
      The qualified name of this JTypeName.
    • setLocalName

      public void setLocalName(String localName)
      Sets the local name for this JTypeName. Setting the local name will modify the existing local name and will reset the existing qualified name.
      Parameters:
      localName - The local name to set.
    • setPackageName

      public void setPackageName(String packageName)
      Sets the package name of this JTypeName. Setting the package name will modify the existing package name and will reset the existing qualified name.
      Parameters:
      packageName - The package name to set.
    • setQualifiedName

      public void setQualifiedName(String qName)
      Sets the qualified name of this JTypeName. Setting the qualified name will overwrite any previous values set via calls to setLocalName(String) and setPackageName(String).
      Parameters:
      qName - The qualified name.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object