Class SourceFileGenerationUtils
java.lang.Object
net.datenwerke.dtoservices.dtogenerator.util.SourceFileGenerationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringgetGetMethodForField(String fieldName, TypeMirror type) static StringgetIsModifiedMethodForField(String fieldName) static StringgetNullValueFor(String type) static PosoAnalizergetPoso(DeclaredType type) static PosoAnalizerstatic StringgetPropertyAccessorMethodForField(String fieldName) static Stringstatic Stringstatic StringgetSetMethodForField(String fieldName) static Stringstatic StringgetSimpleTypeName(DeclaredType typeDecl) Returns the name of a type including parameters such as Set<String>static StringgetTypeArguments(DeclaredType typeDecl) static CollectioninstantiateCollection(Class<?> colClass) static Collectionstatic booleanisBooleanType(TypeMirror type) static Class<?> isCollection(DeclaredType decl) Instantiates a new collection.static booleanisList(DeclaredType decl) static Class<?> isMap(DeclaredType decl) static booleanisPoso(DeclaredType typeDecl) static booleanisPosoClass(DeclaredType typeDecl) A Poso has theGenerateDtoannotation and is a class.static booleanisPosoCollection(DeclaredType type) static booleanisPosoEnum(DeclaredType typeDecl) A PosoEnum has theGenerateDtoannotation and is an enum.static booleanisPosoInterface(DeclaredType typeDecl) A Poso has theGenerateDtoannotation and is an interface.static booleanisSet(DeclaredType decl) static voidsetAnnotationProcessor(DtoAnnotationProcessor dtoAnnotationProcessor) static StringunproxySimpleType(String type)
-
Constructor Details
-
SourceFileGenerationUtils
public SourceFileGenerationUtils()
-
-
Method Details
-
setAnnotationProcessor
-
camelCaseToUnderscoreUpperCase
-
getGetMethodForField
-
getSetMethodForField
-
getIsModifiedMethodForField
-
getPropertyAccessorMethodForField
-
isCollection
Instantiates a new collection.- Parameters:
decl-
-
isMap
-
isSet
-
isList
-
instantiateCollection
-
instantiateCollection
-
isPoso
-
isPosoClass
A Poso has theGenerateDtoannotation and is a class.- Parameters:
typeDecl-
-
isPosoInterface
A Poso has theGenerateDtoannotation and is an interface.- Parameters:
typeDecl-
-
isPosoEnum
A PosoEnum has theGenerateDtoannotation and is an enum.- Parameters:
typeDecl-
-
getSimpleTypeName
Returns the name of a type including parameters such as Set<String> -
getTypeArguments
-
getQualifiedNameWithoutTypeArguments
-
getQualifiedNameWithoutTypeArguments
-
getSimpleNameWithoutTypeArguments
-
isPosoCollection
-
getPosoInCollection
-
getPoso
-
unproxySimpleType
-
isBooleanType
-
getNullValueFor
-