132 lines
27 KiB
Go
Raw Normal View History

2020-08-23 14:15:53 +00:00
//
// Copyright 2020 FoxyUtils ehf. All rights reserved.
//
// This is a commercial product and requires a license to operate.
// A trial license can be obtained at https://unidoc.io
//
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
//
// Use of this source code is governed by the UniDoc End User License Agreement
// terms that can be accessed at https://unidoc.io/eula/
2021-09-22 16:41:01 +00:00
package terms ;import (_a "encoding/xml";_e "fmt";_b "github.com/unidoc/unioffice";_ec "github.com/unidoc/unioffice/schema/purl.org/dc/elements";);func NewPoint ()*Point {_gdg :=&Point {};return _gdg };func (_bfb *TGN )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0054\u0047\u004e";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
2020-12-17 22:07:08 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the RFC1766 and its children
func (_fcb *RFC1766 )Validate ()error {return _fcb .ValidateWithPath ("\u0052F\u0043\u0031\u0037\u0036\u0036");};
2021-03-16 20:51:18 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the ISO639_2 and its children, prefixing error messages with path
func (_dca *ISO639_2 )ValidateWithPath (path string )error {return nil };
2021-03-16 20:51:18 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the ElementsAndRefinementsGroup and its children, prefixing error messages with path
func (_ggb *ElementsAndRefinementsGroup )ValidateWithPath (path string )error {for _cgg ,_bgf :=range _ggb .Choice {if _eag :=_bgf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_cgg ));_eag !=nil {return _eag ;};};return nil ;};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the ElementsAndRefinementsGroup and its children
func (_bdb *ElementsAndRefinementsGroup )Validate ()error {return _bdb .ValidateWithPath ("E\u006c\u0065\u006d\u0065\u006e\u0074s\u0041\u006e\u0064\u0052\u0065\u0066\u0069\u006e\u0065m\u0065\u006e\u0074s\u0047r\u006f\u0075\u0070");};func (_fa *MESH )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u004d\u0045\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type DCMIType struct{};func (_ce *DCMIType )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type ElementOrRefinementContainer struct{Choice []*ElementsAndRefinementsGroupChoice ;};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the RFC1766 and its children, prefixing error messages with path
func (_gedd *RFC1766 )ValidateWithPath (path string )error {return nil };func (_adc *LCSH )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u004c\u0043\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_cedd *UDC )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0055\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the RFC3066 and its children, prefixing error messages with path
func (_bca *RFC3066 )ValidateWithPath (path string )error {return nil };func NewTGN ()*TGN {_ebd :=&TGN {};return _ebd };func (_bda *Period )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_ggga ,_gad :=d .Token ();if _gad !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0050e\u0072\u0069o\u0064\u003a\u0020\u0025\u0073",_gad );};if _gfa ,_acg :=_ggga .(_a .EndElement );_acg &&_gfa .Name ==start .Name {break ;};};return nil ;};type ISO639_2 struct{};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the MESH and its children, prefixing error messages with path
func (_dea *MESH )ValidateWithPath (path string )error {return nil };func NewW3CDTF ()*W3CDTF {_bde :=&W3CDTF {};return _bde };func (_dbce *ISO3166 )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_eae ,_ac :=d .Token ();if _ac !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0049\u0053\u004f\u0033\u0031\u0036\u0036\u003a\u0020\u0025\u0073",_ac );};if _egg ,_edg :=_eae .(_a .EndElement );_edg &&_egg .Name ==start .Name {break ;};};return nil ;};func (_fea *ElementsAndRefinementsGroupChoice )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _fea .Any !=nil {_eafg :=_a .StartElement {Name :_a .Name {Local :"\u0064\u0063\u003a\u0061\u006e\u0079"}};for _ ,_ga :=range _fea .Any {e .EncodeElement (_ga ,_eafg );};};return nil ;};type W3CDTF struct{};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the UDC and its children, prefixing error messages with path
func (_ceg *UDC )ValidateWithPath (path string )error {return nil };func (_gf *ISO639_2 )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_cad ,_df :=d .Token ();if _df !=nil {return _e .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0049\u0053\u004f6\u0033\u0039\u005f\u0032: \u0025\u0073",_df );};if _dd ,_cbe :=_cad .(_a .EndElement );_cbe &&_dd .Name ==start .Name {break ;};};return nil ;};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the ISO3166 and its children, prefixing error messages with path
2021-09-22 16:41:01 +00:00
func (_eccf *ISO3166 )ValidateWithPath (path string )error {return nil };func (_eb *IMT )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0049\u004d\u0054";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type LCSH struct{};
2021-08-23 20:44:48 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the UDC and its children
func (_adb *UDC )Validate ()error {return _adb .ValidateWithPath ("\u0055\u0044\u0043")};type Period struct{};
// ValidateWithPath validates the Period and its children, prefixing error messages with path
func (_ebg *Period )ValidateWithPath (path string )error {return nil };func (_cdc *ISO639_2 )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0049\u0053\u004f\u0036\u0033\u0039\u002d\u0032";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_fbe *ElementsAndRefinementsGroup )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _fbe .Choice !=nil {for _ ,_daf :=range _fbe .Choice {_daf .MarshalXML (e ,_a .StartElement {});};};return nil ;};func (_cee *DDC )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_da ,_ecc :=d .Token ();if _ecc !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0044\u0044\u0043\u003a\u0020\u0025\u0073",_ecc );};if _cd ,_bcb :=_da .(_a .EndElement );_bcb &&_cd .Name ==start .Name {break ;};};return nil ;};
2020-08-23 14:15:53 +00:00
2021-06-16 07:10:52 +00:00
// Validate validates the MESH and its children
2021-09-22 16:41:01 +00:00
func (_aee *MESH )Validate ()error {return _aee .ValidateWithPath ("\u004d\u0045\u0053\u0048")};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the LCSH and its children
func (_efc *LCSH )Validate ()error {return _efc .ValidateWithPath ("\u004c\u0043\u0053\u0048")};func (_fga *ISO3166 )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0049S\u004f\u0033\u0031\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_bdc *ElementsAndRefinementsGroupChoice )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ad :for {_gd ,_debb :=d .Token ();if _debb !=nil {return _debb ;};switch _cef :=_gd .(type ){case _a .StartElement :switch _cef .Name {case _a .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0070\u0075\u0072\u006c\u002e\u006f\u0072\u0067/\u0064c\u002f\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u002f\u0031\u002e\u0031\u002f",Local :"\u0061\u006e\u0079"}:_dae :=_ec .NewAny ();if _ee :=d .DecodeElement (_dae ,&_cef );_ee !=nil {return _ee ;};_bdc .Any =append (_bdc .Any ,_dae );default:_b .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u0041\u006ed\u0052\u0065\u0066\u0069\u006e\u0065\u006d\u0065\u006e\u0074\u0073\u0047\u0072\u006fu\u0070\u0043\u0068o\u0069\u0063\u0065\u0020\u0025\u0076",_cef .Name );if _dce :=d .Skip ();_dce !=nil {return _dce ;};};case _a .EndElement :break _ad ;case _a .CharData :};};return nil ;};func (_adg *URI )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0055\u0052\u0049";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewLCC ()*LCC {_ged :=&LCC {};return _ged };
2021-01-04 16:11:39 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the URI and its children, prefixing error messages with path
func (_ggdb *URI )ValidateWithPath (path string )error {return nil };func (_aef *RFC3066 )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0052F\u0043\u0033\u0030\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewIMT ()*IMT {_ffe :=&IMT {};return _ffe };func (_fdg *ElementsAndRefinementsGroup )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ffc :for {_gg ,_cbf :=d .Token ();if _cbf !=nil {return _cbf ;};switch _ffca :=_gg .(type ){case _a .StartElement :switch _ffca .Name {case _a .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0070\u0075\u0072\u006c\u002e\u006f\u0072\u0067/\u0064c\u002f\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u002f\u0031\u002e\u0031\u002f",Local :"\u0061\u006e\u0079"}:_ccg :=NewElementsAndRefinementsGroupChoice ();if _fbea :=d .DecodeElement (&_ccg .Any ,&_ffca );_fbea !=nil {return _fbea ;};_fdg .Choice =append (_fdg .Choice ,_ccg );default:_b .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074ed\u0020e\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0045\u006ce\u006d\u0065\u006e\u0074\u0073\u0041\u006e\u0064\u0052\u0065\u0066\u0069\u006e\u0065\u006d\u0065\u006et\u0073\u0047\u0072\u006f\u0075\u0070\u0020\u0025\u0076",_ffca .Name );if _cg :=d .Skip ();_cg !=nil {return _cg ;};};case _a .EndElement :break _ffc ;case _a .CharData :};};return nil ;};func (_ggf *Point )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_edc ,_ffb :=d .Token ();if _ffb !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0050\u006f\u0069\u006et\u003a\u0020\u0025\u0073",_ffb );};if _cab ,_fc :=_edc .(_a .EndElement );_fc &&_cab .Name ==start .Name {break ;};};return nil ;};type ElementsAndRefinementsGroupChoice struct{Any []*_ec .Any ;};func NewMESH ()*MESH {_dgb :=&MESH {};return _dgb };
2021-06-16 07:10:52 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the ISO3166 and its children
func (_daa *ISO3166 )Validate ()error {return _daa .ValidateWithPath ("\u0049S\u004f\u0033\u0031\u0036\u0036");};
2021-01-04 16:11:39 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the DCMIType and its children
func (_dbf *DCMIType )Validate ()error {return _dbf .ValidateWithPath ("\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065");};func (_dg *ElementOrRefinementContainer )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0065\u006c\u0065\u006de\u006e\u0074\u004f\u0072\u0052\u0065\u0066\u0069\u006e\u0065m\u0065n\u0074\u0043\u006f\u006e\u0074\u0061\u0069n\u0065\u0072";e .EncodeToken (start );if _dg .Choice !=nil {for _ ,_ab :=range _dg .Choice {_ab .MarshalXML (e ,_a .StartElement {});};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
2021-03-16 20:51:18 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the Point and its children, prefixing error messages with path
func (_gab *Point )ValidateWithPath (path string )error {return nil };func NewISO639_2 ()*ISO639_2 {_ccgd :=&ISO639_2 {};return _ccgd };type Box struct{};type IMT struct{};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the ElementsAndRefinementsGroupChoice and its children
func (_bbd *ElementsAndRefinementsGroupChoice )Validate ()error {return _bbd .ValidateWithPath ("\u0045\u006c\u0065\u006d\u0065\u006et\u0073\u0041\u006e\u0064\u0052\u0065\u0066\u0069\u006e\u0065\u006d\u0065\u006et\u0073\u0047\u0072\u006f\u0075\u0070\u0043h\u006f\u0069\u0063\u0065");};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the IMT and its children, prefixing error messages with path
func (_ffa *IMT )ValidateWithPath (path string )error {return nil };func (_afa *UDC )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_daed ,_bfbc :=d .Token ();if _bfbc !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0044\u0043\u003a\u0020\u0025\u0073",_bfbc );};if _cdb ,_fee :=_daed .(_a .EndElement );_fee &&_cdb .Name ==start .Name {break ;};};return nil ;};func NewElementsAndRefinementsGroupChoice ()*ElementsAndRefinementsGroupChoice {_ced :=&ElementsAndRefinementsGroupChoice {};return _ced ;};
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the LCSH and its children, prefixing error messages with path
func (_fbg *LCSH )ValidateWithPath (path string )error {return nil };
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the LCC and its children, prefixing error messages with path
func (_ggg *LCC )ValidateWithPath (path string )error {return nil };
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the Period and its children
func (_gbg *Period )Validate ()error {return _gbg .ValidateWithPath ("\u0050\u0065\u0072\u0069\u006f\u0064");};
2021-03-16 20:51:18 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the TGN and its children, prefixing error messages with path
func (_fec *TGN )ValidateWithPath (path string )error {return nil };type LCC struct{};func (_dac *LCSH )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_adf ,_bgc :=d .Token ();if _bgc !=nil {return _e .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004c\u0043\u0053\u0048\u003a\u0020\u0025\u0073",_bgc );};if _dag ,_gcc :=_adf .(_a .EndElement );_gcc &&_dag .Name ==start .Name {break ;};};return nil ;};func NewRFC1766 ()*RFC1766 {_eeg :=&RFC1766 {};return _eeg };
2020-08-23 14:15:53 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the RFC3066 and its children
func (_caa *RFC3066 )Validate ()error {return _caa .ValidateWithPath ("\u0052F\u0043\u0033\u0030\u0036\u0036");};type DDC struct{};func NewElementsAndRefinementsGroup ()*ElementsAndRefinementsGroup {_bf :=&ElementsAndRefinementsGroup {};return _bf ;};func NewDDC ()*DDC {_fd :=&DDC {};return _fd };func (_fgb *RFC1766 )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0052F\u0043\u0031\u0037\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_cbcc *RFC3066 )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_fcc ,_ccf :=d .Token ();if _ccf !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0033\u0030\u0036\u0036\u003a\u0020\u0025\u0073",_ccf );};if _gdgc ,_dgg :=_fcc .(_a .EndElement );_dgg &&_gdgc .Name ==start .Name {break ;};};return nil ;};
2020-11-09 01:00:18 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the Box and its children
func (_fe *Box )Validate ()error {return _fe .ValidateWithPath ("\u0042\u006f\u0078")};func (_bee *LCC )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u004c\u0043\u0043";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewDCMIType ()*DCMIType {_ag :=&DCMIType {};return _ag };
2021-05-31 16:22:30 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the IMT and its children
func (_dbc *IMT )Validate ()error {return _dbc .ValidateWithPath ("\u0049\u004d\u0054")};func NewISO3166 ()*ISO3166 {_gcd :=&ISO3166 {};return _gcd };func NewURI ()*URI {_ecd :=&URI {};return _ecd };type ISO3166 struct{};func NewUDC ()*UDC {_adfc :=&UDC {};return _adfc };
2021-05-31 16:22:30 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the ISO639_2 and its children
func (_ef *ISO639_2 )Validate ()error {return _ef .ValidateWithPath ("\u0049\u0053\u004f\u0036\u0033\u0039\u005f\u0032");};
2021-05-31 16:22:30 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the LCC and its children
func (_bae *LCC )Validate ()error {return _bae .ValidateWithPath ("\u004c\u0043\u0043")};
2021-05-31 16:22:30 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the W3CDTF and its children
func (_fgg *W3CDTF )Validate ()error {return _fgg .ValidateWithPath ("\u0057\u0033\u0043\u0044\u0054\u0046");};func (_eed *RFC1766 )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_gfb ,_gfg :=d .Token ();if _gfg !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0031\u0037\u0036\u0036\u003a\u0020\u0025\u0073",_gfg );};if _bge ,_fef :=_gfb .(_a .EndElement );_fef &&_bge .Name ==start .Name {break ;};};return nil ;};
2020-11-09 01:00:18 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the ElementOrRefinementContainer and its children, prefixing error messages with path
func (_bd *ElementOrRefinementContainer )ValidateWithPath (path string )error {for _deba ,_dec :=range _bd .Choice {if _ba :=_dec .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_deba ));_ba !=nil {return _ba ;};};return nil ;};type RFC3066 struct{};
2020-08-31 22:58:25 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the DDC and its children, prefixing error messages with path
func (_edf *DDC )ValidateWithPath (path string )error {return nil };type URI struct{};func (_fgaf *Period )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0050\u0065\u0072\u0069\u006f\u0064";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
2020-08-31 22:58:25 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the TGN and its children
func (_bbe *TGN )Validate ()error {return _bbe .ValidateWithPath ("\u0054\u0047\u004e")};type Point struct{};func (_bb *Box )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0042\u006f\u0078";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_dgd *MESH )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_dee ,_feg :=d .Token ();if _feg !=nil {return _e .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004d\u0045\u0053\u0048\u003a\u0020\u0025\u0073",_feg );};if _add ,_dbe :=_dee .(_a .EndElement );_dbe &&_add .Name ==start .Name {break ;};};return nil ;};func (_deb *ElementOrRefinementContainer )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_bcbb :for {_ca ,_cdf :=d .Token ();if _cdf !=nil {return _cdf ;};switch _eaf :=_ca .(type ){case _a .StartElement :switch _eaf .Name {case _a .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0070\u0075\u0072\u006c\u002e\u006f\u0072\u0067/\u0064c\u002f\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u002f\u0031\u002e\u0031\u002f",Local :"\u0061\u006e\u0079"}:_ff :=NewElementsAndRefinementsGroupChoice ();if _fb :=d .DecodeElement (&_ff .Any ,&_eaf );_fb !=nil {return _fb ;};_deb .Choice =append (_deb .Choice ,_ff );default:_b .Log ("\u0073k\u0069\u0070\u0070\u0069\u006e\u0067\u0020un\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006de\u006e\u0074 \u006f\u006e\u0020E\u006c\u0065\u006d\u0065\u006e\u0074\u004f\u0072\u0052\u0065\u0066\u0069\u006e\u0065\u006d\u0065n\u0074\u0043on\u0074\u0061\u0069n\u0065\u0072\u0020\u0025\u0076",_eaf .Name );if _fgd :=d .Skip ();_fgd !=nil {return _fgd ;};};case _a .EndElement :break _bcbb ;case _a .CharData :};};return nil ;};
2020-10-12 13:59:12 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the DDC and its children
func (_dc *DDC )Validate ()error {return _dc .ValidateWithPath ("\u0044\u0044\u0043")};
2021-04-23 20:00:00 +00:00
2021-09-22 16:41:01 +00:00
// ValidateWithPath validates the Box and its children, prefixing error messages with path
func (_cc *Box )ValidateWithPath (path string )error {return nil };type MESH struct{};func (_cde *URI )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_ccfb ,_gdga :=d .Token ();if _gdga !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0052\u0049\u003a\u0020\u0025\u0073",_gdga );};if _efe ,_eab :=_ccfb .(_a .EndElement );_eab &&_efe .Name ==start .Name {break ;};};return nil ;};func (_ega *W3CDTF )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0057\u0033\u0043\u0044\u0054\u0046";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type UDC struct{};func (_ceff *Point )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0050\u006f\u0069n\u0074";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_d *Box )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_c ,_ed :=d .Token ();if _ed !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0042\u006f\u0078\u003a\u0020\u0025\u0073",_ed );};if _ecg ,_bc :=_c .(_a .EndElement );_bc &&_ecg .Name ==start .Name {break ;};};return nil ;};
2021-07-30 17:03:26 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the W3CDTF and its children, prefixing error messages with path
2021-09-22 16:41:01 +00:00
func (_dba *W3CDTF )ValidateWithPath (path string )error {return nil };func NewPeriod ()*Period {_fbb :=&Period {};return _fbb };func NewElementOrRefinementContainer ()*ElementOrRefinementContainer {_cbc :=&ElementOrRefinementContainer {};return _cbc ;};
// ValidateWithPath validates the DCMIType and its children, prefixing error messages with path
func (_af *DCMIType )ValidateWithPath (path string )error {return nil };type ElementsAndRefinementsGroup struct{Choice []*ElementsAndRefinementsGroupChoice ;};func (_ea *DCMIType )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_fg ,_cb :=d .Token ();if _cb !=nil {return _e .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0044\u0043\u004dI\u0054\u0079\u0070\u0065: \u0025\u0073",_cb );};if _db ,_g :=_fg .(_a .EndElement );_g &&_db .Name ==start .Name {break ;};};return nil ;};type TGN struct{};func (_eg *DDC )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0044\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_ffag *W3CDTF )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_dece ,_adga :=d .Token ();if _adga !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u00573\u0043\u0044T\u0046\u003a\u0020\u0025\u0073",_adga );};if _acgg ,_dgf :=_dece .(_a .EndElement );_dgf &&_acgg .Name ==start .Name {break ;};};return nil ;};type RFC1766 struct{};
// ValidateWithPath validates the ElementsAndRefinementsGroupChoice and its children, prefixing error messages with path
func (_gc *ElementsAndRefinementsGroupChoice )ValidateWithPath (path string )error {for _dbd ,_be :=range _gc .Any {if _ecge :=_be .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0041\u006e\u0079\u005b\u0025\u0064\u005d",path ,_dbd ));_ecge !=nil {return _ecge ;};};return nil ;};func (_bbg *LCC )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_ae ,_agg :=d .Token ();if _agg !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004c\u0043\u0043\u003a\u0020\u0025\u0073",_agg );};if _bcf ,_afe :=_ae .(_a .EndElement );_afe &&_bcf .Name ==start .Name {break ;};};return nil ;};
2021-07-30 17:03:26 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the ElementOrRefinementContainer and its children
2021-09-22 16:41:01 +00:00
func (_age *ElementOrRefinementContainer )Validate ()error {return _age .ValidateWithPath ("\u0045\u006c\u0065\u006de\u006e\u0074\u004f\u0072\u0052\u0065\u0066\u0069\u006e\u0065m\u0065n\u0074\u0043\u006f\u006e\u0074\u0061\u0069n\u0065\u0072");};func NewRFC3066 ()*RFC3066 {_gcce :=&RFC3066 {};return _gcce };
2021-08-23 20:44:48 +00:00
2021-09-22 16:41:01 +00:00
// Validate validates the URI and its children
func (_ddc *URI )Validate ()error {return _ddc .ValidateWithPath ("\u0055\u0052\u0049")};
// Validate validates the Point and its children
func (_gef *Point )Validate ()error {return _gef .ValidateWithPath ("\u0050\u006f\u0069n\u0074")};func (_ffbc *TGN )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_cbfe ,_dcb :=d .Token ();if _dcb !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0054\u0047\u004e\u003a\u0020\u0025\u0073",_dcb );};if _ebe ,_gdf :=_cbfe .(_a .EndElement );_gdf &&_ebe .Name ==start .Name {break ;};};return nil ;};func (_bac *IMT )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for {_gce ,_ggd :=d .Token ();if _ggd !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0049\u004d\u0054\u003a\u0020\u0025\u0073",_ggd );};if _gcg ,_cf :=_gce .(_a .EndElement );_cf &&_gcg .Name ==start .Name {break ;};};return nil ;};func NewLCSH ()*LCSH {_gbc :=&LCSH {};return _gbc };func NewBox ()*Box {_bg :=&Box {};return _bg };func init (){_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u004c\u0043\u0053\u0048",NewLCSH );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u004d\u0045\u0053\u0048",NewMESH );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0044\u0044\u0043",NewDDC );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u004c\u0043\u0043",NewLCC );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0044\u0043",NewUDC );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0050\u0065\u0072\u0069\u006f\u0064",NewPeriod );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0057\u0033\u0043\u0044\u0054\u0046",NewW3CDTF );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065",NewDCMIType );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0049\u004d\u0054",NewIMT );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0052\u0049",NewURI );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0049\u0053\u004f\u0036\u0033\u0039\u002d\u0032",NewISO639_2 );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0052F\u0043\u0031\u0037\u0036\u0036",NewRFC1766 );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0052F\u0043\u0033\u0030\u0036\u0036",NewRFC3066 );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0050\u006f\u0069n\u0074",NewPoint );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0049S\u004f\u0033\u0031\u0036\u0036",NewISO3166 );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0042\u006f\u0078",NewBox );_b .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0054\u0047\u004e"