net.sf.hibernate.tool.hbm2java
Class ClassName

java.lang.Object
  extended by net.sf.hibernate.tool.hbm2java.ClassName

public class ClassName
extends Object


Constructor Summary
ClassName(String fqn)
           
 
Method Summary
 boolean equals(Object other)
          Two ClassName are equals if their fullyQualifiedName are the same/equals!
 String getFullyQualifiedName()
           
 String getName()
          returns the atomar name for a class.
 String getPackageName()
          returns the package name for a class/type.
 boolean inJavaLang()
           
 boolean inSamePackage(ClassName other)
           
 boolean isArray()
          return true if this type is an array.
 boolean isPrimitive()
          Type is primitive if the basename (fqn without []) is in the PRIMITIVE set.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassName

public ClassName(String fqn)
Method Detail

equals

public boolean equals(Object other)
Two ClassName are equals if their fullyQualifiedName are the same/equals!

Overrides:
equals in class Object

getFullyQualifiedName

public String getFullyQualifiedName()

getName

public String getName()
returns the atomar name for a class. java.util.Set -> "Set"


getPackageName

public String getPackageName()
returns the package name for a class/type. java.util.Set -> "java.util" and Foo -> ""

Returns:

inJavaLang

public boolean inJavaLang()

inSamePackage

public boolean inSamePackage(ClassName other)

isArray

public boolean isArray()
return true if this type is an array. Check is done by checking if the type ends with [].


isPrimitive

public boolean isPrimitive()
Type is primitive if the basename (fqn without []) is in the PRIMITIVE set.

Returns:
boolean

toString

public String toString()
Overrides:
toString in class Object