javamodel

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatComment

func FormatComment(s string, leftCol int, rightCol int) string

func Generate

func Generate(schema *rdl.Schema, params *GeneratorParams) error

GenerateJavaModel generates the model code for the types defined in the RDL schema.

func GenerateSchema

func GenerateSchema(schema *rdl.Schema, cName string, writer io.Writer, ns string, banner string) error

func GenerationDir

func GenerationDir(outdir string, schema *rdl.Schema, ns string) (string, error)

func GenerationHeader

func GenerationHeader(banner string) string

func GenerationPackage

func GenerationPackage(schema *rdl.Schema, ns string) string

func JavaType

func JavaType(reg rdl.TypeRegistry, rdlType rdl.TypeRef, optional bool, items rdl.TypeRef, keys rdl.TypeRef) string

func SafeTypeVarName

func SafeTypeVarName(rtype rdl.TypeRef) rdl.TypeName

Types

type GeneratorParams

type GeneratorParams struct {
	Outdir         string
	Banner         string
	Namespace      string
	GenerateSchema bool
	GetSetters     bool
}

Jump to

Keyboard shortcuts

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