mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
40 lines
1.1 KiB
Smalltalk
40 lines
1.1 KiB
Smalltalk
package $packageName$;
|
|
|
|
import $annotationPackageName$.AllowableValues;
|
|
import $annotationPackageName$.Required;
|
|
|
|
$imports:{ import |
|
|
import $import$;
|
|
}$
|
|
|
|
/**
|
|
* $model.description$
|
|
* NOTE: This class is auto generated by the drive code generator program so please do not edit the class manually.
|
|
* @author ramesh
|
|
*
|
|
*/
|
|
public class $className$ extends $extends$ {
|
|
|
|
$fields:{ field |
|
|
|
|
/**
|
|
* $field.description$
|
|
*/
|
|
private $field.fieldDefinition.returnType$ $field.fieldDefinition.name$ $field.fieldDefinition.initialization$;$\r$}$
|
|
|
|
$fields:{ field |
|
|
/**
|
|
* $field.description$
|
|
* $if(field.required)$@Required$endif$
|
|
* $if(field.allowableValues)$@AllowableValues(value="$field.allowedValuesString$")$endif$
|
|
*/
|
|
public $field.fieldDefinition.returnType$ get$field.fieldDefinition.NameForMethod$() {
|
|
return $field.fieldDefinition.name$;
|
|
}
|
|
|
|
public void set$field.fieldDefinition.NameForMethod$($field.fieldDefinition.returnType$ $field.fieldDefinition.name$) {
|
|
this.$field.fieldDefinition.name$ = $field.fieldDefinition.name$;
|
|
}
|
|
|
|
}$
|
|
} |