enclosedGeneratedTypes = genType.enclosedTypes
}
-
-
/**
* Template method which generate the whole body of the interface.
*
* @return string with code for interface body in JAVA format
*/
override body() '''
- «type.comment.asJavadoc»
+ «wrapToDocumentation(formatDataForJavaDoc(type))»
public interface «type.name»
«superInterfaces»
{
def private generateAnnotations(List<AnnotationType> annotations) '''
«IF annotations != null && !annotations.empty»
«FOR annotation : annotations»
- @«annotation.name»
+ @«annotation.importedName»
«IF annotation.parameters != null && !annotation.parameters.empty»
(
«FOR param : annotation.parameters SEPARATOR ","»
«IF !enclosedGeneratedTypes.empty»
«FOR innerClass : enclosedGeneratedTypes SEPARATOR "\n"»
«IF (innerClass instanceof GeneratedTransferObject)»
- «IF (innerClass as GeneratedTransferObject).unionType»
- «val unionTemplate = new UnionTemplate(innerClass as GeneratedTransferObject)»
+ «IF innerClass.unionType»
+ «val unionTemplate = new UnionTemplate(innerClass)»
«unionTemplate.generateAsInnerClass»
«this.importMap.putAll(unionTemplate.importMap)»
«ELSE»
- «val classTemplate = new ClassTemplate(innerClass as GeneratedTransferObject)»
+ «val classTemplate = new ClassTemplate(innerClass)»
«classTemplate.generateAsInnerClass»
«this.importMap.putAll(classTemplate.importMap)»
«ENDIF»