org.apache.ibatis.ibator.api.dom.java
Class FullyQualifiedJavaType

java.lang.Object
  extended by org.apache.ibatis.ibator.api.dom.java.FullyQualifiedJavaType
All Implemented Interfaces:
java.lang.Comparable<FullyQualifiedJavaType>
Direct Known Subclasses:
JavaWildcardType, PrimitiveTypeWrapper

public class FullyQualifiedJavaType
extends java.lang.Object
implements java.lang.Comparable<FullyQualifiedJavaType>

Author:
Jeff Butler

Constructor Summary
FullyQualifiedJavaType(java.lang.String fullyQualifiedName)
          Use this constructor to construct a generic type with the specified type parameters
 
Method Summary
 void addTypeArgument(FullyQualifiedJavaType type)
           
 int compareTo(FullyQualifiedJavaType other)
           
 boolean equals(java.lang.Object obj)
           
static FullyQualifiedJavaType getBooleanPrimitiveInstance()
           
static FullyQualifiedJavaType getCriteriaInstance()
           
static FullyQualifiedJavaType getDateInstance()
           
 java.lang.String getFullyQualifiedName()
          This method returns the fully qualified name that is suitable for an import statement (i.e.
static FullyQualifiedJavaType getIntInstance()
           
static FullyQualifiedJavaType getNewArrayListInstance()
           
static FullyQualifiedJavaType getNewHashMapInstance()
           
static FullyQualifiedJavaType getNewIteratorInstance()
           
static FullyQualifiedJavaType getNewListInstance()
           
static FullyQualifiedJavaType getNewMapInstance()
           
static FullyQualifiedJavaType getObjectInstance()
           
 java.lang.String getPackageName()
           
 PrimitiveTypeWrapper getPrimitiveTypeWrapper()
           
 java.lang.String getShortName()
           
static FullyQualifiedJavaType getStringInstance()
           
 int hashCode()
           
 boolean isExplicitlyImported()
           
 boolean isPrimitive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullyQualifiedJavaType

public FullyQualifiedJavaType(java.lang.String fullyQualifiedName)
Use this constructor to construct a generic type with the specified type parameters

Parameters:
fullyQualifiedName -
Method Detail

isExplicitlyImported

public boolean isExplicitlyImported()
Returns:
Returns the explicitlyImported.

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
This method returns the fully qualified name that is suitable for an import statement (i.e. - without the generics specified)

Returns:
Returns the fullyQualifiedName.

getPackageName

public java.lang.String getPackageName()
Returns:
Returns the packageName.

getShortName

public java.lang.String getShortName()
Returns:
Returns the shortName.

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

isPrimitive

public boolean isPrimitive()
Returns:
Returns the primitive.

getPrimitiveTypeWrapper

public PrimitiveTypeWrapper getPrimitiveTypeWrapper()
Returns:
Returns the wrapperClass.

getIntInstance

public static final FullyQualifiedJavaType getIntInstance()

getNewMapInstance

public static final FullyQualifiedJavaType getNewMapInstance()

getNewListInstance

public static final FullyQualifiedJavaType getNewListInstance()

getNewHashMapInstance

public static final FullyQualifiedJavaType getNewHashMapInstance()

getNewArrayListInstance

public static final FullyQualifiedJavaType getNewArrayListInstance()

getNewIteratorInstance

public static final FullyQualifiedJavaType getNewIteratorInstance()

getStringInstance

public static final FullyQualifiedJavaType getStringInstance()

getBooleanPrimitiveInstance

public static final FullyQualifiedJavaType getBooleanPrimitiveInstance()

getObjectInstance

public static final FullyQualifiedJavaType getObjectInstance()

getDateInstance

public static final FullyQualifiedJavaType getDateInstance()

getCriteriaInstance

public static final FullyQualifiedJavaType getCriteriaInstance()

compareTo

public int compareTo(FullyQualifiedJavaType other)
Specified by:
compareTo in interface java.lang.Comparable<FullyQualifiedJavaType>

addTypeArgument

public void addTypeArgument(FullyQualifiedJavaType type)