v2m0

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	ID          string `xml:"id,attr"`
	ShortName   string `xml:"shortName,attr"`
	Description string `xml:"description,attr"`
	Classes     struct {
		Classes []Class `xml:"class"`
	} `xml:"classes"`
	Rules struct {
		Rules []Rule `xml:"rule"`
	} `xml:"rules"`
	Constraints struct {
		Constraints []Rule `xml:"constraint"`
	} `xml:"constraints,omitempty"`
	Parameters struct {
		Parameters []Parameter `xml:"parameter"`
	} `xml:"parameters"`
}

type Model

type Model struct {
	XMLName          xml.Name `xml:"model"`
	ID               string   `xml:"id,attr"`
	ShortName        string   `xml:"shortName,attr"`
	FormatXMLVersion string   `xml:"formatXmlVersion,attr"`
	Description      string   `xml:"description,attr"`
	Class            Class    `xml:"class"`
	Relations        struct {
		Relations []Relation `xml:"relation"`
	} `xml:"relations"`
}

type Parameter

type Parameter struct {
	ID           string `xml:"id,attr"`
	ShortName    string `xml:"shortName,attr"`
	Description  string `xml:"description,attr"`
	Type         string `xml:"type,attr"`
	DefaultValue string `xml:"defaultValue,attr"`
}

type Relation

type Relation struct {
	ID           string `xml:"id,attr"`
	ShortName    string `xml:"shortName,attr"`
	Description  string `xml:"description,attr"`
	OutObjects   string `xml:"outObj,attr"`
	InObjects    string `xml:"inObj,attr"`
	RelationType string `xml:"relationType,attr"`
	Script       string `xml:",innerxml"`
}

type Rule

type Rule struct {
	ID          string `xml:"id,attr"`
	ShortName   string `xml:"shortName,attr"`
	Description string `xml:"description,attr"`
	RelationID  string `xml:"relation,attr"`
	InitIDs     string `xml:"initId,attr"`
	ResultIDs   string `xml:"resultId,attr"`
}

Jump to

Keyboard shortcuts

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