types

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 1 Imported by: 6

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 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 GetJavaType

func GetJavaType(t string) string

func IsValueType added in v1.6.0

func IsValueType(t string) bool

Types

type Action

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

type Association

type Association struct {
	Name         string
	Target       string
	Deprecated   bool
	Multiplicity 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
	Relations       []Association
	Resources       []Attribute
	Resource        bool
	ExtendsResource bool
	Identifiable    bool
	GitTag          string
	Stereotype      string
}

type Import

type Import struct {
	Java   string
	CSharp string
}

Jump to

Keyboard shortcuts

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