org.exolab.javasource

Class JTypeName

public final 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 of this JTypeName.
StringgetQualifiedName()
Returns the qualified name of 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)

See Also: java.lang.Object#equals(java.lang.Object) {@inheritDoc }

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.

hashCode

public int hashCode()

See Also: java.lang.Object#hashCode() {@inheritDoc }

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 and setPackageName.

Parameters: qName the qualified name

toString

public String toString()

See Also: java.lang.Object#toString() {@inheritDoc }

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