com.mysema.query.codegen
Class TypeModelAdapter

java.lang.Object
  extended by com.mysema.query.codegen.TypeModelAdapter
All Implemented Interfaces:
TypeModel
Direct Known Subclasses:
EntityModel, TypeExtendsModel, TypeSuperModel

public class TypeModelAdapter
extends Object
implements TypeModel

TypeModelAdapter is a basic adapter implementation for the TypeModel interface

Author:
tiwe

Field Summary
protected  TypeModel typeModel
           
 
Constructor Summary
TypeModelAdapter(TypeModel typeModel)
           
 
Method Summary
 TypeModel as(TypeCategory category)
           
 boolean equals(Object o)
           
 TypeCategory getCategory()
           
 String getFullName()
           
 String getLocalGenericName(TypeModel context, boolean asArgType)
           
<T extends Appendable>
T
getLocalGenericName(TypeModel context, T builder, boolean asArgType)
           
 String getLocalRawName(TypeModel context)
           
<T extends Appendable>
T
getLocalRawName(TypeModel context, T builder)
           
 String getPackageName()
           
 TypeModel getParameter(int i)
           
 int getParameterCount()
           
 String getPrimitiveName()
           
 TypeModel getSelfOrValueType()
           
 String getSimpleName()
           
 boolean hasEntityFields()
           
 int hashCode()
           
 boolean isFinal()
           
 boolean isPrimitive()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

typeModel

protected final TypeModel typeModel
Constructor Detail

TypeModelAdapter

public TypeModelAdapter(TypeModel typeModel)
Method Detail

as

public TypeModel as(TypeCategory category)
Specified by:
as in interface TypeModel
Returns:

equals

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

getCategory

public TypeCategory getCategory()
Specified by:
getCategory in interface TypeModel
Returns:

getFullName

public String getFullName()
Specified by:
getFullName in interface TypeModel
Returns:

getLocalGenericName

public String getLocalGenericName(TypeModel context,
                                  boolean asArgType)
Specified by:
getLocalGenericName in interface TypeModel
Returns:

getLocalGenericName

public <T extends Appendable> T getLocalGenericName(TypeModel context,
                                                    T builder,
                                                    boolean asArgType)
                                         throws IOException
Specified by:
getLocalGenericName in interface TypeModel
Returns:
Throws:
IOException

getLocalRawName

public String getLocalRawName(TypeModel context)
Specified by:
getLocalRawName in interface TypeModel
Returns:

getLocalRawName

public <T extends Appendable> T getLocalRawName(TypeModel context,
                                                T builder)
                                     throws IOException
Specified by:
getLocalRawName in interface TypeModel
Returns:
Throws:
IOException

getPackageName

public String getPackageName()
Specified by:
getPackageName in interface TypeModel
Returns:

getParameter

public TypeModel getParameter(int i)
Specified by:
getParameter in interface TypeModel
Returns:

getParameterCount

public int getParameterCount()
Specified by:
getParameterCount in interface TypeModel
Returns:

getPrimitiveName

public String getPrimitiveName()
Specified by:
getPrimitiveName in interface TypeModel
Returns:

getSelfOrValueType

public TypeModel getSelfOrValueType()
Specified by:
getSelfOrValueType in interface TypeModel
Returns:

getSimpleName

public String getSimpleName()
Specified by:
getSimpleName in interface TypeModel
Returns:

hasEntityFields

public boolean hasEntityFields()
Specified by:
hasEntityFields in interface TypeModel
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isFinal

public boolean isFinal()
Specified by:
isFinal in interface TypeModel
Returns:

isPrimitive

public boolean isPrimitive()
Specified by:
isPrimitive in interface TypeModel
Returns:

toString

public String toString()
Specified by:
toString in interface TypeModel
Overrides:
toString in class Object


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.