rules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MASK_REQUIRED = "REQUIRED"
	MASK_OPTIONAL = "OPTIONAL"
	MASK_NOTUSED  = "NOTUSED"
	MASK_NONE     = ""
)

Variables

This section is empty.

Functions

func IsMaskRequired

func IsMaskRequired(mask string) bool

Types

type ElementRule

type ElementRule struct {
	Mask         string
	Name         string
	AcceptValues []string
	Composite    ElementSetRule
}

type ElementSetRule

type ElementSetRule map[string]ElementRule

func (ElementSetRule) Get

func (e ElementSetRule) Get(name string) ElementRule

func (ElementSetRule) GetMask

func (e ElementSetRule) GetMask(name, defaultMask string) string

type GroupRule

type GroupRule struct {
	GS    SegmentRule
	GE    SegmentRule
	Trans TransactionRule
}

type InterChangeRule

type InterChangeRule struct {
	ISA   SegmentRule
	IEA   SegmentRule
	Group GroupRule
}

type LoopRule

type LoopRule struct {
	Segments    SegmentSetRule
	Mask        string
	RepeatCount int
	Name        string
	Composite   LoopSetRule
}

func (LoopRule) Repeat

func (s LoopRule) Repeat() int

type LoopSetRule

type LoopSetRule map[int]LoopRule

type SegmentRule

type SegmentRule struct {
	Elements    ElementSetRule
	Mask        string
	RepeatCount int
	Name        string
	Description string
}

func (SegmentRule) Repeat

func (s SegmentRule) Repeat() int

type SegmentSetRule

type SegmentSetRule map[int]SegmentRule

func (SegmentSetRule) Get

func (s SegmentSetRule) Get(index int) *SegmentRule

type TransactionRule

type TransactionRule struct {
	ST    SegmentRule
	BHT   SegmentRule
	SE    SegmentRule
	Loops LoopSetRule
}

Jump to

Keyboard shortcuts

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