org.mybatis.generator.api.dom.java
Class FullyQualifiedJavaType

java.lang.Object
  extended by org.mybatis.generator.api.dom.java.FullyQualifiedJavaType
All Implemented Interfaces:
Comparable<FullyQualifiedJavaType>
Direct Known Subclasses:
PrimitiveTypeWrapper

public class FullyQualifiedJavaType
extends Object
implements Comparable<FullyQualifiedJavaType>

Author:
Jeff Butler

Constructor Summary
FullyQualifiedJavaType(String fullTypeSpecification)
          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(Object obj)
           
static FullyQualifiedJavaType getBooleanPrimitiveInstance()
           
static FullyQualifiedJavaType getCriteriaInstance()
           
static FullyQualifiedJavaType getDateInstance()
           
 String getFullyQualifiedName()
          This method returns the fully qualified name - including any generic type parameters
static FullyQualifiedJavaType getGeneratedCriteriaInstance()
           
 List<String> getImportList()
          Returns a list of Strings that are the fully qualified names of this type, and any generic type argument associated with this type.
static FullyQualifiedJavaType getIntInstance()
           
static FullyQualifiedJavaType getNewArrayListInstance()
           
static FullyQualifiedJavaType getNewHashMapInstance()
           
static FullyQualifiedJavaType getNewIteratorInstance()
           
static FullyQualifiedJavaType getNewListInstance()
           
static FullyQualifiedJavaType getNewMapInstance()
           
static FullyQualifiedJavaType getObjectInstance()
           
 String getPackageName()
           
 PrimitiveTypeWrapper getPrimitiveTypeWrapper()
           
 String getShortName()
           
static FullyQualifiedJavaType getStringInstance()
           
 int hashCode()
           
 boolean isExplicitlyImported()
           
 boolean isPrimitive()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullyQualifiedJavaType

public FullyQualifiedJavaType(String fullTypeSpecification)
Use this constructor to construct a generic type with the specified type parameters

Parameters:
fullTypeSpecification -
Method Detail

isExplicitlyImported

public boolean isExplicitlyImported()
Returns:
Returns the explicitlyImported.

getFullyQualifiedName

public String getFullyQualifiedName()
This method returns the fully qualified name - including any generic type parameters

Returns:
Returns the fullyQualifiedName.

getImportList

public List<String> getImportList()
Returns a list of Strings that are the fully qualified names of this type, and any generic type argument associated with this type.


getPackageName

public String getPackageName()
Returns:
Returns the packageName.

getShortName

public String getShortName()
Returns:
Returns the shortName - including any type arguments.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class 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()

getGeneratedCriteriaInstance

public static final FullyQualifiedJavaType getGeneratedCriteriaInstance()

compareTo

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

addTypeArgument

public void addTypeArgument(FullyQualifiedJavaType type)


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.