dictionary

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContainer added in v0.8.3

type BaseContainer struct {
	ID   string `xml:"id,attr"`
	Name string `xml:",chardata"`
}

type Configuration added in v0.8.3

type Configuration struct {
	Name       xml.Name    `xml:"configuration"`
	Subtypes   []Subtype   `xml:"subtype"`
	Containers []Container `xml:"container"`
}

func Parse added in v0.8.3

func Parse(reader io.Reader) (*Configuration, error)

type Container added in v0.8.3

type Container struct {
	ID                   string        `xml:"id,attr"`
	DocDescription       string        `xml:"doc_description"`
	Key                  int           `xml:"key"`
	CreatedSchemaVersion int           `xml:"created_schema_version"`
	DeletedSchemaVersion int           `xml:"deleted_schema_version"`
	BaseContainer        BaseContainer `xml:"base_container,omitempty"`
	Fields               []Field       `xml:"field"`
}

type ContainerDefinition

type ContainerDefinition struct {
	Name          string
	Key           int
	SchemaVersion int
	ExtVersion    int
	Fields        []FieldDefinition
}

type Dictionary added in v0.6.4

type Dictionary struct {
	// contains filtered or unexported fields
}

func New added in v0.6.4

func New() *Dictionary

func NewWithSchema added in v0.8.3

func NewWithSchema(matrixxSchema *Configuration, extensionSchema *Configuration) *Dictionary

func (*Dictionary) Add added in v0.6.4

func (d *Dictionary) Add(def *ContainerDefinition)

func (*Dictionary) Lookup added in v0.7.0

func (d *Dictionary) Lookup(key, schemaVersion, extVersion int) (*ContainerDefinition, error)

type Field added in v0.8.3

type Field struct {
	ID                   string `xml:"id,attr"`
	DocDescription       string `xml:"doc_description"`
	Datatype             string `xml:"datatype"`
	IsArray              bool   `xml:"array"`
	IsList               bool   `xml:"list"`
	StructID             string `xml:"struct_id"`
	SubTypeReference     string `xml:"subtype_reference"`
	CreatedSchemaVersion int    `xml:"created_schema_version"`
	DeletedSchemaVersion int    `xml:"deleted_schema_version"`
}

type FieldDefinition

type FieldDefinition struct {
	Number      int
	Name        string
	Type        field.Type
	IsMulti     bool
	IsContainer bool
}

type Subtype added in v0.8.3

type Subtype struct {
	ID       string  `xml:"id,attr"`
	Datatype string  `xml:"datatype"`
	Values   []Value `xml:"value"`
}

type Value added in v0.8.3

type Value struct {
	ID    string `xml:"id,attr"`
	Value string `xml:",chardata"`
}

Jump to

Keyboard shortcuts

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