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-04-23 20:00:00 +00:00
|
|
|
package terms ;import (_f "encoding/xml";_d "fmt";_fd "github.com/unidoc/unioffice";_ff "github.com/unidoc/unioffice/schema/purl.org/dc/elements";);
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the ElementOrRefinementContainer and its children
|
|
|
|
func (_fb *ElementOrRefinementContainer )Validate ()error {return _fb .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");};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the LCSH and its children, prefixing error messages with path
|
|
|
|
func (_fdb *LCSH )ValidateWithPath (path string )error {return nil };func NewISO639_2 ()*ISO639_2 {_cb :=&ISO639_2 {};return _cb };func (_fef *DDC )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_bb ,_bg :=d .Token ();if _bg !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0044\u0044\u0043\u003a\u0020\u0025\u0073",_bg );};if _ba ,_ec :=_bb .(_f .EndElement );_ec &&_ba .Name ==start .Name {break ;};};return nil ;};type RFC3066 struct{};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the TGN and its children
|
|
|
|
func (_ebb *TGN )Validate ()error {return _ebb .ValidateWithPath ("\u0054\u0047\u004e")};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the ElementOrRefinementContainer and its children, prefixing error messages with path
|
|
|
|
func (_cca *ElementOrRefinementContainer )ValidateWithPath (path string )error {for _dfb ,_ed :=range _cca .Choice {if _dbe :=_ed .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_dfb ));_dbe !=nil {return _dbe ;};};return nil ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the UDC and its children, prefixing error messages with path
|
|
|
|
func (_bfe *UDC )ValidateWithPath (path string )error {return nil };func (_aga *Point )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_abb ,_ccg :=d .Token ();if _ccg !=nil {return _d .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0050\u006f\u0069\u006et\u003a\u0020\u0025\u0073",_ccg );};if _gcf ,_ffc :=_abb .(_f .EndElement );_ffc &&_gcf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the ISO3166 and its children
|
|
|
|
func (_adc *ISO3166 )Validate ()error {return _adc .ValidateWithPath ("\u0049S\u004f\u0033\u0031\u0036\u0036");};func (_acaa *Point )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0050\u006f\u0069n\u0074";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_bec *TGN )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0054\u0047\u004e";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};type ISO639_2 struct{};func (_fede *TGN )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_adb ,_ccc :=d .Token ();if _ccc !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0054\u0047\u004e\u003a\u0020\u0025\u0073",_ccc );};if _bbg ,_deg :=_adb .(_f .EndElement );_deg &&_bbg .Name ==start .Name {break ;};};return nil ;};type ISO3166 struct{};func NewRFC1766 ()*RFC1766 {_bbb :=&RFC1766 {};return _bbb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the W3CDTF and its children, prefixing error messages with path
|
|
|
|
func (_fag *W3CDTF )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the DDC and its children, prefixing error messages with path
|
|
|
|
func (_bd *DDC )ValidateWithPath (path string )error {return nil };type RFC1766 struct{};func (_fcc *LCSH )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_da ,_eb :=d .Token ();if _eb !=nil {return _d .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004c\u0043\u0053\u0048\u003a\u0020\u0025\u0073",_eb );};if _ecd ,_gda :=_da .(_f .EndElement );_gda &&_ecd .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the UDC and its children
|
|
|
|
func (_ddf *UDC )Validate ()error {return _ddf .ValidateWithPath ("\u0055\u0044\u0043")};func (_afa *RFC3066 )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_efg ,_faa :=d .Token ();if _faa !=nil {return _d .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0033\u0030\u0036\u0036\u003a\u0020\u0025\u0073",_faa );};if _adgg ,_ffge :=_efg .(_f .EndElement );_ffge &&_adgg .Name ==start .Name {break ;};};return nil ;};func NewPeriod ()*Period {_gaa :=&Period {};return _gaa };func NewRFC3066 ()*RFC3066 {_bda :=&RFC3066 {};return _bda };func (_ag *ElementOrRefinementContainer )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_gd :for {_ece ,_dfa :=d .Token ();if _dfa !=nil {return _dfa ;};switch _ca :=_ece .(type ){case _f .StartElement :switch _ca .Name {case _f .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"}:_gf :=NewElementsAndRefinementsGroupChoice ();if _gcb :=d .DecodeElement (&_gf .Any ,&_ca );_gcb !=nil {return _gcb ;};_ag .Choice =append (_ag .Choice ,_gf );default:_fd .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",_ca .Name );if _acd :=d .Skip ();_acd !=nil {return _acd ;};};case _f .EndElement :break _gd ;case _f .CharData :};};return nil ;};func (_gdbc *LCC )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u004c\u0043\u0043";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the ElementsAndRefinementsGroup and its children
|
|
|
|
func (_bbe *ElementsAndRefinementsGroup )Validate ()error {return _bbe .ValidateWithPath ("E\u006c\u0065\u006d\u0065\u006e\u0074s\u0041\u006e\u0064\u0052\u0065\u0066\u0069\u006e\u0065m\u0065\u006e\u0074s\u0047r\u006f\u0075\u0070");};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the ISO3166 and its children, prefixing error messages with path
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_fde *ISO3166 )ValidateWithPath (path string )error {return nil };func (_bfa *IMT )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0049\u004d\u0054";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_aef *MESH )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u004d\u0045\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};type UDC struct{};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the ISO639_2 and its children
|
|
|
|
func (_gdb *ISO639_2 )Validate ()error {return _gdb .ValidateWithPath ("\u0049\u0053\u004f\u0036\u0033\u0039\u005f\u0032");};type DCMIType struct{};func NewElementsAndRefinementsGroup ()*ElementsAndRefinementsGroup {_gcd :=&ElementsAndRefinementsGroup {};return _gcd ;};type ElementOrRefinementContainer struct{Choice []*ElementsAndRefinementsGroupChoice ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the ElementsAndRefinementsGroupChoice and its children
|
|
|
|
func (_bgf *ElementsAndRefinementsGroupChoice )Validate ()error {return _bgf .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");};type DDC struct{};func (_aa *DDC )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0044\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_fcd *URI )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_ege ,_dcd :=d .Token ();if _dcd !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0052\u0049\u003a\u0020\u0025\u0073",_dcd );};if _eeb ,_aeg :=_ege .(_f .EndElement );_aeg &&_eeb .Name ==start .Name {break ;};};return nil ;};func (_cee *MESH )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_agg ,_ab :=d .Token ();if _ab !=nil {return _d .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004d\u0045\u0053\u0048\u003a\u0020\u0025\u0073",_ab );};if _fgg ,_gfg :=_agg .(_f .EndElement );_gfg &&_fgg .Name ==start .Name {break ;};};return nil ;};func NewMESH ()*MESH {_dbf :=&MESH {};return _dbf };type IMT struct{};type LCSH struct{};func (_fec *RFC3066 )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0052F\u0043\u0033\u0030\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_ccb *ElementOrRefinementContainer )MarshalXML (e *_f .Encoder ,start _f .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 _ccb .Choice !=nil {for _ ,_ac :=range _ccb .Choice {_ac .MarshalXML (e ,_f .StartElement {});};};e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_gga *ISO639_2 )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_eag ,_dbb :=d .Token ();if _dbb !=nil {return _d .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0049\u0053\u004f6\u0033\u0039\u005f\u0032: \u0025\u0073",_dbb );};if _aca ,_ef :=_eag .(_f .EndElement );_ef &&_aca .Name ==start .Name {break ;};};return nil ;};type LCC struct{};func (_bf *DCMIType )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};type ElementsAndRefinementsGroupChoice struct{Any []*_ff .Any ;};func NewLCC ()*LCC {_eagg :=&LCC {};return _eagg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the LCC and its children, prefixing error messages with path
|
|
|
|
func (_eaf *LCC )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the ISO639_2 and its children, prefixing error messages with path
|
|
|
|
func (_agd *ISO639_2 )ValidateWithPath (path string )error {return nil };func NewURI ()*URI {_ffd :=&URI {};return _ffd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the LCSH and its children
|
|
|
|
func (_ead *LCSH )Validate ()error {return _ead .ValidateWithPath ("\u004c\u0043\u0053\u0048")};func (_ddgf *RFC1766 )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0052F\u0043\u0031\u0037\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the RFC1766 and its children
|
|
|
|
func (_cg *RFC1766 )Validate ()error {return _cg .ValidateWithPath ("\u0052F\u0043\u0031\u0037\u0036\u0036");};func NewIMT ()*IMT {_de :=&IMT {};return _de };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the MESH and its children
|
|
|
|
func (_gfb *MESH )Validate ()error {return _gfb .ValidateWithPath ("\u004d\u0045\u0053\u0048")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the Period and its children
|
|
|
|
func (_fegg *Period )Validate ()error {return _fegg .ValidateWithPath ("\u0050\u0065\u0072\u0069\u006f\u0064");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the IMT and its children
|
|
|
|
func (_fee *IMT )Validate ()error {return _fee .ValidateWithPath ("\u0049\u004d\u0054")};func (_acda *Period )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0050\u0065\u0072\u0069\u006f\u0064";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_ada *IMT )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_feff ,_fed :=d .Token ();if _fed !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0049\u004d\u0054\u003a\u0020\u0025\u0073",_fed );};if _cae ,_gad :=_feff .(_f .EndElement );_gad &&_cae .Name ==start .Name {break ;};};return nil ;};func NewElementsAndRefinementsGroupChoice ()*ElementsAndRefinementsGroupChoice {_ga :=&ElementsAndRefinementsGroupChoice {};return _ga ;};func (_gbe *LCSH )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u004c\u0043\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the LCC and its children
|
|
|
|
func (_ffab *LCC )Validate ()error {return _ffab .ValidateWithPath ("\u004c\u0043\u0043")};type Box struct{};func NewTGN ()*TGN {_cgd :=&TGN {};return _cgd };type TGN struct{};func (_g *Box )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_gg ,_fa :=d .Token ();if _fa !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0042\u006f\u0078\u003a\u0020\u0025\u0073",_fa );};if _b ,_be :=_gg .(_f .EndElement );_be &&_b .Name ==start .Name {break ;};};return nil ;};func NewW3CDTF ()*W3CDTF {_fea :=&W3CDTF {};return _fea };func (_accc *W3CDTF )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_dffg ,_dea :=d .Token ();if _dea !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u00573\u0043\u0044T\u0046\u003a\u0020\u0025\u0073",_dea );};if _cgg ,_fdgd :=_dffg .(_f .EndElement );_fdgd &&_cgg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the MESH and its children, prefixing error messages with path
|
|
|
|
func (_baf *MESH )ValidateWithPath (path string )error {return nil };
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the ElementsAndRefinementsGroup and its children, prefixing error messages with path
|
|
|
|
func (_gcg *ElementsAndRefinementsGroup )ValidateWithPath (path string )error {for _ddg ,_age :=range _gcg .Choice {if _bdc :=_age .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_ddg ));_bdc !=nil {return _bdc ;};};return nil ;};func (_ggdg *Period )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_ebd ,_aee :=d .Token ();if _aee !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0050e\u0072\u0069o\u0064\u003a\u0020\u0025\u0073",_aee );};if _aab ,_bdcf :=_ebd .(_f .EndElement );_bdcf &&_aab .Name ==start .Name {break ;};};return nil ;};func NewDCMIType ()*DCMIType {_df :=&DCMIType {};return _df };func (_fg *ElementsAndRefinementsGroup )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_dc :for {_ggd ,_dd :=d .Token ();if _dd !=nil {return _dd ;};switch _ged :=_ggd .(type ){case _f .StartElement :switch _ged .Name {case _f .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"}:_add :=NewElementsAndRefinementsGroupChoice ();if _ffg :=d .DecodeElement (&_add .Any ,&_ged );_ffg !=nil {return _ffg ;};_fg .Choice =append (_fg .Choice ,_add );default:_fd .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",_ged .Name );if _fgf :=d .Skip ();_fgf !=nil {return _fgf ;};};case _f .EndElement :break _dc ;case _f .CharData :};};return nil ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the RFC1766 and its children, prefixing error messages with path
|
|
|
|
func (_dffa *RFC1766 )ValidateWithPath (path string )error {return nil };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the DDC and its children
|
|
|
|
func (_ae *DDC )Validate ()error {return _ae .ValidateWithPath ("\u0044\u0044\u0043")};func NewBox ()*Box {_e :=&Box {};return _e };func (_fc *ISO639_2 )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0049\u0053\u004f\u0036\u0033\u0039\u002d\u0032";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};type URI struct{};func NewISO3166 ()*ISO3166 {_ade :=&ISO3166 {};return _ade };func (_cd *RFC1766 )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_ggc ,_ace :=d .Token ();if _ace !=nil {return _d .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0031\u0037\u0036\u0036\u003a\u0020\u0025\u0073",_ace );};if _dg ,_ggf :=_ggc .(_f .EndElement );_ggf &&_dg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-12-17 22:07:08 +00:00
|
|
|
// ValidateWithPath validates the Point and its children, prefixing error messages with path
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_dbac *Point )ValidateWithPath (path string )error {return nil };func (_cef *ElementsAndRefinementsGroupChoice )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_gfc :for {_dff ,_ffa :=d .Token ();if _ffa !=nil {return _ffa ;};switch _bdg :=_dff .(type ){case _f .StartElement :switch _bdg .Name {case _f .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"}:_ee :=_ff .NewAny ();if _bc :=d .DecodeElement (_ee ,&_bdg );_bc !=nil {return _bc ;};_cef .Any =append (_cef .Any ,_ee );default:_fd .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",_bdg .Name );if _ffe :=d .Skip ();_ffe !=nil {return _ffe ;};};case _f .EndElement :break _gfc ;case _f .CharData :};};return nil ;};func NewUDC ()*UDC {_aff :=&UDC {};return _aff };func (_fbc *W3CDTF )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0057\u0033\u0043\u0044\u0054\u0046";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_dfaa *ElementsAndRefinementsGroup )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _dfaa .Choice !=nil {for _ ,_cad :=range _dfaa .Choice {_cad .MarshalXML (e ,_f .StartElement {});};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the IMT and its children, prefixing error messages with path
|
|
|
|
func (_ecg *IMT )ValidateWithPath (path string )error {return nil };type Period struct{};func NewPoint ()*Point {_baa :=&Point {};return _baa };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the ElementsAndRefinementsGroupChoice and its children, prefixing error messages with path
|
|
|
|
func (_bca *ElementsAndRefinementsGroupChoice )ValidateWithPath (path string )error {for _eab ,_edb :=range _bca .Any {if _eca :=_edb .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002f\u0041\u006e\u0079\u005b\u0025\u0064\u005d",path ,_eab ));_eca !=nil {return _eca ;};};return nil ;};func (_a *Box )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0042\u006f\u0078";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the Point and its children
|
|
|
|
func (_dfd *Point )Validate ()error {return _dfd .ValidateWithPath ("\u0050\u006f\u0069n\u0074")};func (_bfd *UDC )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0055\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_fe *DCMIType )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_dbd ,_fab :=d .Token ();if _fab !=nil {return _d .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0044\u0043\u004dI\u0054\u0079\u0070\u0065: \u0025\u0073",_fab );};if _ad ,_gb :=_dbd .(_f .EndElement );_gb &&_ad .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the Box and its children, prefixing error messages with path
|
|
|
|
func (_db *Box )ValidateWithPath (path string )error {return nil };type Point struct{};func (_acc *ISO3166 )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_cfg ,_dba :=d .Token ();if _dba !=nil {return _d .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0049\u0053\u004f\u0033\u0031\u0036\u0036\u003a\u0020\u0025\u0073",_dba );};if _gae ,_dfe :=_cfg .(_f .EndElement );_dfe &&_gae .Name ==start .Name {break ;};};return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the DCMIType and its children
|
|
|
|
func (_cc *DCMIType )Validate ()error {return _cc .ValidateWithPath ("\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the DCMIType and its children, prefixing error messages with path
|
|
|
|
func (_gc *DCMIType )ValidateWithPath (path string )error {return nil };func (_ebdd *URI )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0055\u0052\u0049";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_af *ISO3166 )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Name .Local ="\u0049S\u004f\u0033\u0031\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func NewElementOrRefinementContainer ()*ElementOrRefinementContainer {_ce :=&ElementOrRefinementContainer {};return _ce ;};type MESH struct{};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the Box and its children
|
|
|
|
func (_ea *Box )Validate ()error {return _ea .ValidateWithPath ("\u0042\u006f\u0078")};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the TGN and its children, prefixing error messages with path
|
|
|
|
func (_bfg *TGN )ValidateWithPath (path string )error {return nil };func (_bgb *ElementsAndRefinementsGroupChoice )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _bgb .Any !=nil {_feg :=_f .StartElement {Name :_f .Name {Local :"\u0064\u0063\u003a\u0061\u006e\u0079"}};for _ ,_eg :=range _bgb .Any {e .EncodeElement (_eg ,_feg );};};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the RFC3066 and its children, prefixing error messages with path
|
|
|
|
func (_edc *RFC3066 )ValidateWithPath (path string )error {return nil };
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the RFC3066 and its children
|
|
|
|
func (_fcae *RFC3066 )Validate ()error {return _fcae .ValidateWithPath ("\u0052F\u0043\u0033\u0030\u0036\u0036");};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the URI and its children, prefixing error messages with path
|
|
|
|
func (_cbf *URI )ValidateWithPath (path string )error {return nil };type W3CDTF struct{};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the URI and its children
|
|
|
|
func (_ffae *URI )Validate ()error {return _ffae .ValidateWithPath ("\u0055\u0052\u0049")};func NewLCSH ()*LCSH {_ddd :=&LCSH {};return _ddd };type ElementsAndRefinementsGroup struct{Choice []*ElementsAndRefinementsGroupChoice ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the W3CDTF and its children
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_fbca *W3CDTF )Validate ()error {return _fbca .ValidateWithPath ("\u0057\u0033\u0043\u0044\u0054\u0046");};func (_aaf *LCC )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_dfbf ,_fca :=d .Token ();if _fca !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004c\u0043\u0043\u003a\u0020\u0025\u0073",_fca );};if _fdg ,_gada :=_dfbf .(_f .EndElement );_gada &&_fdg .Name ==start .Name {break ;};};return nil ;};func (_ceb *UDC )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for {_fge ,_dca :=d .Token ();if _dca !=nil {return _d .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0044\u0043\u003a\u0020\u0025\u0073",_dca );};if _bfb ,_bfad :=_fge .(_f .EndElement );_bfad &&_bfb .Name ==start .Name {break ;};};return nil ;};func NewDDC ()*DDC {_adg :=&DDC {};return _adg };
|
|
|
|
|
|
|
|
// ValidateWithPath validates the Period and its children, prefixing error messages with path
|
|
|
|
func (_bgbc *Period )ValidateWithPath (path string )error {return nil };func init (){_fd .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 );_fd .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 );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0044\u0044\u0043",NewDDC );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u004c\u0043\u0043",NewLCC );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0044\u0043",NewUDC );_fd .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 );_fd .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 );_fd .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 );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0049\u004d\u0054",NewIMT );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0052\u0049",NewURI );_fd .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 );_fd .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 );_fd .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 );_fd .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 );_fd .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 );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0042\u006f\u0078",NewBox );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0054\u0047\u004e",NewTGN );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0065\u006c\u0065\u006de\u006e\u0074\u004f\u0072\u0052\u0065\u0066\u0069\u006e\u0065m\u0065n\u0074\u0043\u006f\u006e\u0074\u0061\u0069n\u0065\u0072",NewElementOrRefinementContainer );_fd .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","e\u006c\u0065\u006d\u0065\u006e\u0074s\u0041\u006e\u0064\u0052\u0065\u0066\u0069\u006e\u0065m\u0065\u006e\u0074s\u0047r\u006f\u0075\u0070",NewElementsAndRefinementsGroup );};
|