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 ¶
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
}
type LoopSetRule ¶
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
}
Click to show internal directories.
Click to hide internal directories.