types

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const LIST_TEMPLATE = "List<%s>"

Variables

View Source
var CS_TYPE_MAP = map[string]string{
	"boolean":  "bool",
	"date":     "DateTime",
	"dateTime": "DateTime",
}
View Source
var CS_VALUE_TYPES = []string{
	"bool",
	"byte",
	"char",
	"decimal",
	"double",
	"float",
	"int",
	"long",
	"DateTime"}
View Source
var GRAPHQL_TYPE_MAP = map[string]string{
	"string":    "String",
	"boolean":   "Boolean",
	"date":      "Date",
	"datetime":  "Date",
	"float":     "Float",
	"double":    "Double",
	"long":      "Long",
	"int":       "Int",
	"referanse": "String",
}
View Source
var JAVA_TYPE_MAP = map[string]string{
	"string":      "String",
	"boolean":     "Boolean",
	"date":        "Date",
	"dateTime":    "Date",
	"float":       "Float",
	"double":      "Double",
	"long":        "Long",
	"int":         "Integer",
	"hovedklasse": "FintMainObject",
	"referanse":   "FintReference",
	"abstrakt":    "FintAbstractObject",
	"datatype":    "FintComplexDatatypeObject",
}

Functions

func GetCSType

func GetCSType(t string) string

func GetComponentName

func GetComponentName(pkg string) string

func GetGraphQlRelationType

func GetGraphQlRelationType(rel *Association) string

func GetGraphQlType

func GetGraphQlType(att *Attribute) string

func GetJavaType

func GetJavaType(t string) string

func IsValueType

func IsValueType(t string) bool

Types

type Action

type Action struct {
	Name      string
	Package   string
	Namespace string
	Classes   []string
}

type Association

type Association struct {
	Name          string
	Target        string
	TargetPackage string
	Deprecated    bool
	Optional      bool
	List          bool
	Stereotype    string
}

type Attribute

type Attribute struct {
	Name       string
	Type       string
	List       bool
	Optional   bool
	Deprecated bool
}

type Class

type Class struct {
	Name                string
	Abstract            bool
	Deprecated          bool
	Extends             string
	Package             string
	Imports             []string
	Namespace           string
	Using               []string
	Documentation       string
	Attributes          []Attribute
	InheritedAttributes []InheritedAttribute
	Relations           []Association
	Resources           []Attribute
	Resource            bool
	ExtendsResource     bool
	Identifiable        bool
	Stereotype          string
	Identifiers         []Identifier
}

type Identifier

type Identifier struct {
	Name     string
	Optional bool
}

type Import

type Import struct {
	Java   string
	CSharp string
}

type InheritedAttribute

type InheritedAttribute struct {
	Owner string
	Attribute
}

Jump to

Keyboard shortcuts

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