_interface

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assigner

type Assigner interface {
	// Assign assigns values to the XML element.
	Assign(e *xml.Element) error
	GetPath() string
	// AttributeAssigner is an interface for types that can set and get XML attributes.
	AttributeAssigner
}

Assigner is an interface for types that can assign values to XML elements and have a path and attributes.

type AttributeAssigner

type AttributeAssigner interface {
	// SetAttributes sets the XML attributes for the implementing type.
	SetAttributes(attributes attributes.Attributes)
	// GetAttributes gets the XML attributes for the implementing type.
	GetAttributes() attributes.Attributes
}

AttributeAssigner is an interface for types that can set and get XML attributes.

type FieldValidator

type FieldValidator interface {
	ValidateField(field string)
	IsValidField(field string) bool
	CountValidatedField() int
}

Jump to

Keyboard shortcuts

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