2019-08-02 10:49:16 +00:00

56 lines
1.3 KiB
Go

// Copyright 2017 FoxyUtils ehf. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased via https://unidoc.io website.
package terms
import (
"encoding/xml"
"fmt"
)
type MESH struct {
}
func NewMESH() *MESH {
ret := &MESH{}
return ret
}
func (m *MESH) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
start.Name.Local = "MESH"
e.EncodeToken(start)
e.EncodeToken(xml.EndElement{Name: start.Name})
return nil
}
func (m *MESH) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// initialize to default
// skip any extensions we may find, but don't support
for {
tok, err := d.Token()
if err != nil {
return fmt.Errorf("parsing MESH: %s", err)
}
if el, ok := tok.(xml.EndElement); ok && el.Name == start.Name {
break
}
}
return nil
}
// Validate validates the MESH and its children
func (m *MESH) Validate() error {
return m.ValidateWithPath("MESH")
}
// ValidateWithPath validates the MESH and its children, prefixing error messages with path
func (m *MESH) ValidateWithPath(path string) error {
return nil
}