com.mysema.query.codegen
Class TypeModelAdapter
java.lang.Object
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
typeModel
protected final TypeModel typeModel
TypeModelAdapter
public TypeModelAdapter(TypeModel typeModel)
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.