Documentation
¶
Overview ¶
Package occurspolicy validates occurrence constraints and all-group bounds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllGroupChildMaxValid ¶
IsAllGroupChildMaxValid reports whether an xs:all child maxOccurs is within the XSD 1.0 limit.
Types ¶
type AllGroupIssue ¶
type AllGroupIssue uint8
AllGroupIssue enumerates all group issue values.
const ( AllGroupOK AllGroupIssue = iota AllGroupMinNotZeroOrOne AllGroupMaxNotOne )
func CheckAllGroupBounds ¶
func CheckAllGroupBounds(minOccurs, maxOccurs occurs.Occurs) AllGroupIssue
CheckAllGroupBounds validates minOccurs/maxOccurs constraints for xs:all particles.
type BoundsIssue ¶
type BoundsIssue uint8
BoundsIssue enumerates bounds issue values.
const ( BoundsOK BoundsIssue = iota BoundsOverflow BoundsMaxZeroWithMinNonZero BoundsMinGreaterThanMax )
func CheckBounds ¶
func CheckBounds(minOccurs, maxOccurs occurs.Occurs) BoundsIssue
CheckBounds validates general minOccurs/maxOccurs consistency.
Click to show internal directories.
Click to hide internal directories.