document

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iso20022Document

type Iso20022Document interface {
	// Validate will be process validation check of document
	Validate() error

	// NameSpace check will return xmlns of document
	NameSpace() string

	// GetXmlName returns xml name of document
	GetXmlName() *xml.Name

	// GetAttrs returns attributes of document
	GetAttrs() []xml.Attr

	// InspectMessage returns message
	InspectMessage() Iso20022Message
}

Document interface for ISO 20022

func NewDocument

func NewDocument(space string) (doc Iso20022Document, err error)

func ParseIso20022Document

func ParseIso20022Document(buf []byte) (Iso20022Document, error)

ParseIso20022Document will return a interface of ISO 20022 document after pass buffer

type Iso20022DocumentObject

type Iso20022DocumentObject struct {
	XMLName xml.Name
	Attrs   []xml.Attr      `xml:",any,attr,omitempty" json:",omitempty"`
	Message Iso20022Message `xml:",any"`
}

func (*Iso20022DocumentObject) GetAttrs

func (doc *Iso20022DocumentObject) GetAttrs() []xml.Attr

func (*Iso20022DocumentObject) GetXmlName

func (doc *Iso20022DocumentObject) GetXmlName() *xml.Name

func (*Iso20022DocumentObject) InspectMessage

func (doc *Iso20022DocumentObject) InspectMessage() Iso20022Message

func (Iso20022DocumentObject) MarshalXML

func (doc Iso20022DocumentObject) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (Iso20022DocumentObject) NameSpace

func (doc Iso20022DocumentObject) NameSpace() string

func (Iso20022DocumentObject) Validate

func (doc Iso20022DocumentObject) Validate() error

type Iso20022Message

type Iso20022Message interface {
	// Validate will be process validation check of document
	Validate() error
}

Element interface for ISO 20022

Jump to

Keyboard shortcuts

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