org.exolab.javasource

Class JTypeName

public class JTypeName extends Object

Represents a class name

Version: $REVISION$ $DATE$

Author: Keith Visco

Constructor Summary
JTypeName()
Creates a default JTypeName
JTypeName(String name)
Creates a new JTypeName with the given name
Method Summary
booleanequals(Object obj)
StringgetLocalName()
Returns the local name of this JTypeName
StringgetPackageName()
Returns the package name
StringgetQualifiedName()
Returns the qualified name for this JTypeName
inthashCode()
voidsetLocalName(String localName)
Sets the local name for this JTypeName.
voidsetPackageName(String packageName)
Sets the package name of this JTypeName.
voidsetQualifiedName(String qName)
Sets the qualified name of this JTypeName.
StringtoString()

Constructor Detail

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 Detail

equals

public boolean equals(Object obj)

getLocalName

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

Returns: the local name

getPackageName

public String getPackageName()
Returns the package name

Returns: the package name

getQualifiedName

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

Returns: the qualified name

hashCode

public int hashCode()

setLocalName

public void setLocalName(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(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(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 String toString()
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com