Class JTypeName


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

      Constructors 
      Constructor Description
      JTypeName()
      Creates a default JTypeName.
      JTypeName​(java.lang.String name)
      Creates a new JTypeName with the given name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 of this JTypeName.
      java.lang.String getQualifiedName()
      Returns the qualified name of 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 of this JTypeName.
      • getPackageName

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

        public java.lang.String getQualifiedName()
        Returns the qualified name of this JTypeName.
        Returns:
        The qualified name of this JTypeName.
      • 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 will reset the 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 will reset 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(String) and setPackageName(String).
        Parameters:
        qName - The qualified 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
      • toString

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