validationrule

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "ValidationRule"

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	FullName string `xml:"fullName"`
	Active   struct {
		Text string `xml:",chardata"`
	} `xml:"active"`
	Description *struct {
		Text string `xml:",innerxml"`
	} `xml:"description"`
	ErrorConditionFormula *TextLiteral `xml:"errorConditionFormula"`
	ErrorDisplayField     *struct {
		Text string `xml:",chardata"`
	} `xml:"errorDisplayField"`
	ErrorMessage struct {
		Text string `xml:",innerxml"`
	} `xml:"errorMessage"`
}

type ValidationRule

type ValidationRule struct {
	metadata.MetadataInfo
	XMLName xml.Name `xml:"ValidationRule"`
	Xmlns   string   `xml:"xmlns,attr"`
	Rule
}

func Open

func Open(path string) (*ValidationRule, error)

func (*ValidationRule) NameFromPath

func (c *ValidationRule) NameFromPath(path string) metadata.MetadataObjectName

func (*ValidationRule) SetMetadata

func (c *ValidationRule) SetMetadata(m metadata.MetadataInfo)

func (ValidationRule) Tidy

func (f ValidationRule) Tidy()

func (*ValidationRule) Type

type ValidationRuleList

type ValidationRuleList []Rule

func (ValidationRuleList) Tidy

func (rules ValidationRuleList) Tidy()

Jump to

Keyboard shortcuts

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