genjava

package
v2.1.1144 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToPascalCase = casee.ToPascalCase

Functions

func DefaultValue

func DefaultValue(typ *spec.TypeDef, value string) string

func GenerateClient added in v2.1.859

func GenerateClient(specification *spec.Spec, packageName string, generatePath string) *gen.Sources

func GenerateModels

func GenerateModels(specification *spec.Spec, packageName string, generatePath string) *gen.Sources

func GenerateService added in v2.0.602

func GenerateService(specification *spec.Spec, packageName string, swaggerPath string, generatePath string, servicesPath string) *gen.Sources

func JavaIsReferenceType added in v2.0.736

func JavaIsReferenceType(typ *spec.TypeDef) bool

func JavaType

func JavaType(typ *spec.TypeDef) string

func JoinDelimParams added in v2.1.880

func JoinDelimParams(params []string) string

func JoinParams

func JoinParams(params []string) string

func NewJavaWriter

func NewJavaWriter() *gen.Writer

func PlainJavaType

func PlainJavaType(typ string, referenceTypesOnly bool) (string, bool)

PlainJavaType Returns Java type name and boolean indicating if the type is reference or value type

func TrimSlash added in v2.1.1060

func TrimSlash(param string) string

Types

type Module added in v2.0.614

type Module struct {
	RootPath    string
	Path        string
	PackageName string
	PackageStar string
}

func Package added in v2.0.618

func Package(rootPath string, packageName string) Module

func (Module) GetPath added in v2.0.620

func (m Module) GetPath(filename string) string

func (Module) Subpackage added in v2.0.620

func (m Module) Subpackage(name string) Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL