Documentation ¶
Index ¶
- Constants
- Variables
- func GetCSType(t string) string
- func GetComponentName(pkg string) string
- func GetGraphQlRelationType(rel *Association) string
- func GetGraphQlType(att *Attribute) string
- func GetJavaType(t string) string
- func IsValueType(t string) bool
- type Action
- type Association
- type Attribute
- type Class
- type Identifier
- type Import
- type InheritedAttribute
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 GetComponentName ¶
func GetGraphQlRelationType ¶
func GetGraphQlRelationType(rel *Association) string
func GetGraphQlType ¶
func GetJavaType ¶
func IsValueType ¶
Types ¶
type Association ¶
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 InheritedAttribute ¶
Click to show internal directories.
Click to hide internal directories.