utils

package
v0.1.162 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(text string) string

func FlattenedFields

func FlattenedFields(reg rdl.TypeRegistry, t *rdl.Type) []*rdl.StructFieldDef

func FormatComment

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

func GetOutputPathInfo

func GetOutputPathInfo(outdir string, name string, ext string) (string, string)

func GetUserDefinedTypeAnnotations

func GetUserDefinedTypeAnnotations(userDefinedType rdl.TypeRef, schemaTypes []*rdl.Type) map[rdl.ExtendedAnnotation]string

func JavaGenerateParsecErrorBody

func JavaGenerateParsecErrorBody(schema *rdl.Schema, writer io.Writer, namespace string) error

func JavaGenerateParsecErrorDetail

func JavaGenerateParsecErrorDetail(schema *rdl.Schema, writer io.Writer, namespace string) error

func JavaGenerateParsecResourceError

func JavaGenerateParsecResourceError(schema *rdl.Schema, writer io.Writer, namespace string) error

func JavaGenerateResourceError

func JavaGenerateResourceError(schema *rdl.Schema, writer io.Writer, namespace string) error

func JavaGenerateResourceException

func JavaGenerateResourceException(schema *rdl.Schema, writer io.Writer, namespace string) error

func JavaGenerationDir

func JavaGenerationDir(outdir string, schema *rdl.Schema, namespace string) (string, error)

func JavaGenerationHeader

func JavaGenerationHeader(banner string) string

func JavaGenerationOrigHeader

func JavaGenerationOrigHeader(banner string) string

func JavaGenerationOrigPackage

func JavaGenerationOrigPackage(schema *rdl.Schema, namespace string) string

func JavaGenerationPackage

func JavaGenerationPackage(schema *rdl.Schema, namespace string) string

func JavaGenerationRootPath

func JavaGenerationRootPath(schema *rdl.Schema) string

func JavaGenerationSourceDir

func JavaGenerationSourceDir(schema *rdl.Schema, namespace string) (string, error)

func JavaType

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

func LeftJustified

func LeftJustified(text string, width int) string

func OutputWriter

func OutputWriter(outdir string, name string, ext string) (*bufio.Writer, *os.File, string, error)

func Split

func Split(str string, delim rune) []string

func Uncapitalize

func Uncapitalize(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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