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-08-23 20:44:48 +00:00
package terms ;import (_g "encoding/xml";_c "fmt";_cc "github.com/unidoc/unioffice";_gg "github.com/unidoc/unioffice/schema/purl.org/dc/elements";);
2020-12-17 22:07:08 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the LCC and its children
func (_eeca *LCC )Validate ()error {return _eeca .ValidateWithPath ("\u004c\u0043\u0043")};func NewW3CDTF ()*W3CDTF {_gag :=&W3CDTF {};return _gag };func (_bdbe *TGN )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_abae ,_dge :=d .Token ();if _dge !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0054\u0047\u004e\u003a\u0020\u0025\u0073",_dge );};if _bff ,_cca :=_abae .(_g .EndElement );_cca &&_bff .Name ==start .Name {break ;};};return nil ;};func (_ece *Point )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0050\u006f\u0069n\u0074";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2020-12-17 22:07:08 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the TGN and its children
func (_dad *TGN )Validate ()error {return _dad .ValidateWithPath ("\u0054\u0047\u004e")};func NewElementOrRefinementContainer ()*ElementOrRefinementContainer {_ab :=&ElementOrRefinementContainer {};return _ab ;};type LCC struct{};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the LCC and its children, prefixing error messages with path
func (_bgf *LCC )ValidateWithPath (path string )error {return nil };func (_b *Box )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0042\u006f\u0078";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the ElementsAndRefinementsGroupChoice and its children, prefixing error messages with path
func (_gbd *ElementsAndRefinementsGroupChoice )ValidateWithPath (path string )error {for _cgcf ,_fgd :=range _gbd .Any {if _dcg :=_fgd .ValidateWithPath (_c .Sprintf ("\u0025\u0073\u002f\u0041\u006e\u0079\u005b\u0025\u0064\u005d",path ,_cgcf ));_dcg !=nil {return _dcg ;};};return nil ;};
2020-08-23 14:15:53 +00:00
2021-07-30 17:03:26 +00:00
// Validate validates the DCMIType and its children
2021-08-23 20:44:48 +00:00
func (_ee *DCMIType )Validate ()error {return _ee .ValidateWithPath ("\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065");};func (_bce *ElementsAndRefinementsGroup )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_dc :for {_gbe ,_bde :=d .Token ();if _bde !=nil {return _bde ;};switch _dd :=_gbe .(type ){case _g .StartElement :switch _dd .Name {case _g .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"}:_be :=NewElementsAndRefinementsGroupChoice ();if _cda :=d .DecodeElement (&_be .Any ,&_dd );_cda !=nil {return _cda ;};_bce .Choice =append (_bce .Choice ,_be );default:_cc .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",_dd .Name );if _ed :=d .Skip ();_ed !=nil {return _ed ;};};case _g .EndElement :break _dc ;case _g .CharData :};};return nil ;};func (_gb *ElementOrRefinementContainer )MarshalXML (e *_g .Encoder ,start _g .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 _gb .Choice !=nil {for _ ,_eea :=range _gb .Choice {_eea .MarshalXML (e ,_g .StartElement {});};};e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};type LCSH struct{};func (_fca *ISO639_2 )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0049\u0053\u004f\u0036\u0033\u0039\u002d\u0032";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2021-03-16 20:51:18 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the Period and its children, prefixing error messages with path
func (_bec *Period )ValidateWithPath (path string )error {return nil };
2021-03-16 20:51:18 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the LCSH and its children, prefixing error messages with path
func (_aca *LCSH )ValidateWithPath (path string )error {return nil };
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the IMT and its children
func (_cdfba *IMT )Validate ()error {return _cdfba .ValidateWithPath ("\u0049\u004d\u0054")};func (_ffd *IMT )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0049\u004d\u0054";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};type Box struct{};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the DCMIType and its children, prefixing error messages with path
func (_ad *DCMIType )ValidateWithPath (path string )error {return nil };type Point struct{};
2020-08-23 14:15:53 +00:00
2021-07-30 17:03:26 +00:00
// ValidateWithPath validates the Box and its children, prefixing error messages with path
2021-08-23 20:44:48 +00:00
func (_fc *Box )ValidateWithPath (path string )error {return nil };
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the Box and its children
func (_ggd *Box )Validate ()error {return _ggd .ValidateWithPath ("\u0042\u006f\u0078")};func (_cabg *LCSH )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u004c\u0043\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the ElementsAndRefinementsGroup and its children, prefixing error messages with path
func (_ec *ElementsAndRefinementsGroup )ValidateWithPath (path string )error {for _ccd ,_bda :=range _ec .Choice {if _cab :=_bda .ValidateWithPath (_c .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_ccd ));_cab !=nil {return _cab ;};};return nil ;};func NewMESH ()*MESH {_ffaf :=&MESH {};return _ffaf };type URI struct{};func NewISO639_2 ()*ISO639_2 {_abe :=&ISO639_2 {};return _abe };func (_adde *URI )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0055\u0052\u0049";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func (_efb *RFC3066 )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0052F\u0043\u0033\u0030\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func NewDDC ()*DDC {_acg :=&DDC {};return _acg };type ElementsAndRefinementsGroup struct{Choice []*ElementsAndRefinementsGroupChoice ;};func (_ebag *Point )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_dda ,_bb :=d .Token ();if _bb !=nil {return _c .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0050\u006f\u0069\u006et\u003a\u0020\u0025\u0073",_bb );};if _bgg ,_addd :=_dda .(_g .EndElement );_addd &&_bgg .Name ==start .Name {break ;};};return nil ;};type IMT struct{};func (_cec *ISO639_2 )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_dee ,_ebeb :=d .Token ();if _ebeb !=nil {return _c .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0049\u0053\u004f6\u0033\u0039\u005f\u0032: \u0025\u0073",_ebeb );};if _gac ,_bg :=_dee .(_g .EndElement );_bg &&_gac .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
func (_eeb *ISO3166 )ValidateWithPath (path string )error {return nil };type DCMIType struct{};
// ValidateWithPath validates the IMT and its children, prefixing error messages with path
func (_fe *IMT )ValidateWithPath (path string )error {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-08-23 20:44:48 +00:00
func (_cdc *MESH )Validate ()error {return _cdc .ValidateWithPath ("\u004d\u0045\u0053\u0048")};type Period struct{};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the UDC and its children, prefixing error messages with path
func (_fab *UDC )ValidateWithPath (path string )error {return nil };func (_bcb *ElementOrRefinementContainer )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_eg :for {_ca ,_aa :=d .Token ();if _aa !=nil {return _aa ;};switch _bf :=_ca .(type ){case _g .StartElement :switch _bf .Name {case _g .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"}:_de :=NewElementsAndRefinementsGroupChoice ();if _bfb :=d .DecodeElement (&_de .Any ,&_bf );_bfb !=nil {return _bfb ;};_bcb .Choice =append (_bcb .Choice ,_de );default:_cc .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",_bf .Name );if _bd :=d .Skip ();_bd !=nil {return _bd ;};};case _g .EndElement :break _eg ;case _g .CharData :};};return nil ;};func (_ae *ElementsAndRefinementsGroupChoice )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {if _ae .Any !=nil {_bdb :=_g .StartElement {Name :_g .Name {Local :"\u0064\u0063\u003a\u0061\u006e\u0079"}};for _ ,_ag :=range _ae .Any {e .EncodeElement (_ag ,_bdb );};};return nil ;};type UDC struct{};func (_caf *MESH )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_bdd ,_efd :=d .Token ();if _efd !=nil {return _c .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004d\u0045\u0053\u0048\u003a\u0020\u0025\u0073",_efd );};if _baa ,_gae :=_bdd .(_g .EndElement );_gae &&_baa .Name ==start .Name {break ;};};return nil ;};func (_add *DDC )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_af ,_ebe :=d .Token ();if _ebe !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0044\u0044\u0043\u003a\u0020\u0025\u0073",_ebe );};if _fa ,_gfd :=_af .(_g .EndElement );_gfd &&_fa .Name ==start .Name {break ;};};return nil ;};
2021-01-04 16:11:39 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the Point and its children
func (_cac *Point )Validate ()error {return _cac .ValidateWithPath ("\u0050\u006f\u0069n\u0074")};func (_df *LCC )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u004c\u0043\u0043";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func (_bac *UDC )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0055\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2021-06-16 07:10:52 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the ISO639_2 and its children
func (_eecb *ISO639_2 )Validate ()error {return _eecb .ValidateWithPath ("\u0049\u0053\u004f\u0036\u0033\u0039\u005f\u0032");};
2021-01-04 16:11:39 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the TGN and its children, prefixing error messages with path
func (_bef *TGN )ValidateWithPath (path string )error {return nil };func NewPeriod ()*Period {_faf :=&Period {};return _faf };type MESH struct{};func NewBox ()*Box {_d :=&Box {};return _d };
2021-03-16 20:51:18 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the RFC3066 and its children, prefixing error messages with path
func (_acad *RFC3066 )ValidateWithPath (path string )error {return nil };type W3CDTF struct{};func (_ea *ISO3166 )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0049S\u004f\u0033\u0031\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};type DDC struct{};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the DDC and its children, prefixing error messages with path
func (_fbd *DDC )ValidateWithPath (path string )error {return nil };func (_cgc *ElementsAndRefinementsGroupChoice )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_ega :for {_gfa ,_edb :=d .Token ();if _edb !=nil {return _edb ;};switch _aec :=_gfa .(type ){case _g .StartElement :switch _aec .Name {case _g .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"}:_ba :=_gg .NewAny ();if _ccf :=d .DecodeElement (_ba ,&_aec );_ccf !=nil {return _ccf ;};_cgc .Any =append (_cgc .Any ,_ba );default:_cc .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",_aec .Name );if _fg :=d .Skip ();_fg !=nil {return _fg ;};};case _g .EndElement :break _ega ;case _g .CharData :};};return nil ;};func (_adc *RFC1766 )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_fbe ,_gbc :=d .Token ();if _gbc !=nil {return _c .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0031\u0037\u0036\u0036\u003a\u0020\u0025\u0073",_gbc );};if _cgd ,_cf :=_fbe .(_g .EndElement );_cf &&_cgd .Name ==start .Name {break ;};};return nil ;};func NewElementsAndRefinementsGroup ()*ElementsAndRefinementsGroup {_bcc :=&ElementsAndRefinementsGroup {};return _bcc ;};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the RFC1766 and its children, prefixing error messages with path
func (_bfbf *RFC1766 )ValidateWithPath (path string )error {return nil };func (_fb *DCMIType )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the W3CDTF and its children
func (_fabc *W3CDTF )Validate ()error {return _fabc .ValidateWithPath ("\u0057\u0033\u0043\u0044\u0054\u0046");};
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the LCSH and its children
func (_ffa *LCSH )Validate ()error {return _ffa .ValidateWithPath ("\u004c\u0043\u0053\u0048")};func (_def *URI )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_faec ,_bbd :=d .Token ();if _bbd !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0052\u0049\u003a\u0020\u0025\u0073",_bbd );};if _dbb ,_agg :=_faec .(_g .EndElement );_agg &&_dbb .Name ==start .Name {break ;};};return nil ;};func (_ebc *LCSH )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_gfdf ,_bcbe :=d .Token ();if _bcbe !=nil {return _c .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004c\u0043\u0053\u0048\u003a\u0020\u0025\u0073",_bcbe );};if _egc ,_ced :=_gfdf .(_g .EndElement );_ced &&_egc .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 ISO639_2 and its children, prefixing error messages with path
func (_aag *ISO639_2 )ValidateWithPath (path string )error {return nil };
2021-03-16 20:51:18 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the ElementsAndRefinementsGroupChoice and its children
func (_ccc *ElementsAndRefinementsGroupChoice )Validate ()error {return _ccc .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");};func NewURI ()*URI {_aad :=&URI {};return _aad };func NewDCMIType ()*DCMIType {_ggc :=&DCMIType {};return _ggc };func (_ade *Period )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_egb ,_dff :=d .Token ();if _dff !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0050e\u0072\u0069o\u0064\u003a\u0020\u0025\u0073",_dff );};if _acd ,_agb :=_egb .(_g .EndElement );_agb &&_acd .Name ==start .Name {break ;};};return nil ;};func NewTGN ()*TGN {_ddag :=&TGN {};return _ddag };type ISO639_2 struct{};func (_adf *ISO3166 )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_ce ,_eba :=d .Token ();if _eba !=nil {return _c .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0049\u0053\u004f\u0033\u0031\u0036\u0036\u003a\u0020\u0025\u0073",_eba );};if _aba ,_edg :=_ce .(_g .EndElement );_edg &&_aba .Name ==start .Name {break ;};};return nil ;};func NewRFC1766 ()*RFC1766 {_fba :=&RFC1766 {};return _fba };
2020-08-23 14:15:53 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the ElementOrRefinementContainer and its children, prefixing error messages with path
func (_gad *ElementOrRefinementContainer )ValidateWithPath (path string )error {for _cce ,_gggc :=range _gad .Choice {if _ef :=_gggc .ValidateWithPath (_c .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_cce ));_ef !=nil {return _ef ;};};return nil ;};
2020-11-09 01:00:18 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the DDC and its children
func (_ga *DDC )Validate ()error {return _ga .ValidateWithPath ("\u0044\u0044\u0043")};func (_ggg *Box )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_ac ,_f :=d .Token ();if _f !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0042\u006f\u0078\u003a\u0020\u0025\u0073",_f );};if _e ,_ff :=_ac .(_g .EndElement );_ff &&_e .Name ==start .Name {break ;};};return nil ;};func (_aac *MESH )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u004d\u0045\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func (_eb *DCMIType )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_cg ,_cd :=d .Token ();if _cd !=nil {return _c .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0044\u0043\u004dI\u0054\u0079\u0070\u0065: \u0025\u0073",_cd );};if _ffg ,_gf :=_cg .(_g .EndElement );_gf &&_ffg .Name ==start .Name {break ;};};return nil ;};func (_fcc *TGN )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0054\u0047\u004e";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func NewRFC3066 ()*RFC3066 {_fgad :=&RFC3066 {};return _fgad };func (_eebc *Period )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0050\u0065\u0072\u0069\u006f\u0064";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2021-05-31 16:22:30 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the RFC3066 and its children
func (_ege *RFC3066 )Validate ()error {return _ege .ValidateWithPath ("\u0052F\u0043\u0033\u0030\u0036\u0036");};
2021-05-31 16:22:30 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the MESH and its children, prefixing error messages with path
func (_fac *MESH )ValidateWithPath (path string )error {return nil };
2021-05-31 16:22:30 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the URI and its children, prefixing error messages with path
func (_dcf *URI )ValidateWithPath (path string )error {return nil };func (_dcb *LCC )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_dgg ,_aaa :=d .Token ();if _aaa !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004c\u0043\u0043\u003a\u0020\u0025\u0073",_aaa );};if _gc ,_bfe :=_dgg .(_g .EndElement );_bfe &&_gc .Name ==start .Name {break ;};};return nil ;};type TGN struct{};
2021-05-31 16:22:30 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the RFC1766 and its children
func (_fd *RFC1766 )Validate ()error {return _fd .ValidateWithPath ("\u0052F\u0043\u0031\u0037\u0036\u0036");};func (_gfb *ElementsAndRefinementsGroup )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {if _gfb .Choice !=nil {for _ ,_cdfb :=range _gfb .Choice {_cdfb .MarshalXML (e ,_g .StartElement {});};};return nil ;};type ElementsAndRefinementsGroupChoice struct{Any []*_gg .Any ;};
2020-11-09 01:00:18 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the ElementsAndRefinementsGroup and its children
func (_fae *ElementsAndRefinementsGroup )Validate ()error {return _fae .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 NewUDC ()*UDC {_ada :=&UDC {};return _ada };
2020-08-31 22:58:25 +00:00
2021-07-30 17:03:26 +00:00
// Validate validates the URI and its children
2021-08-23 20:44:48 +00:00
func (_dce *URI )Validate ()error {return _dce .ValidateWithPath ("\u0055\u0052\u0049")};func (_addc *UDC )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_ddac ,_cfg :=d .Token ();if _cfg !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0044\u0043\u003a\u0020\u0025\u0073",_cfg );};if _fcb ,_bcd :=_ddac .(_g .EndElement );_bcd &&_fcb .Name ==start .Name {break ;};};return nil ;};func NewPoint ()*Point {_eeae :=&Point {};return _eeae };
2020-08-31 22:58:25 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the ISO3166 and its children
func (_fea *ISO3166 )Validate ()error {return _fea .ValidateWithPath ("\u0049S\u004f\u0033\u0031\u0036\u0036");};func NewISO3166 ()*ISO3166 {_gd :=&ISO3166 {};return _gd };func NewIMT ()*IMT {_ggb :=&IMT {};return _ggb };func (_gcc *RFC1766 )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0052F\u0043\u0031\u0037\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func NewLCSH ()*LCSH {_gfbf :=&LCSH {};return _gfbf };type ISO3166 struct{};func NewElementsAndRefinementsGroupChoice ()*ElementsAndRefinementsGroupChoice {_da :=&ElementsAndRefinementsGroupChoice {};return _da ;};
2020-10-12 13:59:12 +00:00
2021-08-23 20:44:48 +00:00
// Validate validates the UDC and its children
func (_bbf *UDC )Validate ()error {return _bbf .ValidateWithPath ("\u0055\u0044\u0043")};func (_gfe *DDC )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0044\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};
2021-04-23 20:00:00 +00:00
2021-08-23 20:44:48 +00:00
// ValidateWithPath validates the Point and its children, prefixing error messages with path
func (_bgc *Point )ValidateWithPath (path string )error {return nil };func (_gfg *W3CDTF )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Name .Local ="\u0057\u0033\u0043\u0044\u0054\u0046";e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func NewLCC ()*LCC {_dg :=&LCC {};return _dg };
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
func (_beg *W3CDTF )ValidateWithPath (path string )error {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
func (_cdf *ElementOrRefinementContainer )Validate ()error {return _cdf .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");};type RFC1766 struct{};func (_gaa *IMT )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_bcbc ,_fga :=d .Token ();if _fga !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0049\u004d\u0054\u003a\u0020\u0025\u0073",_fga );};if _eef ,_dba :=_bcbc .(_g .EndElement );_dba &&_eef .Name ==start .Name {break ;};};return nil ;};func (_bea *W3CDTF )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_cdg ,_feae :=d .Token ();if _feae !=nil {return _c .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u00573\u0043\u0044T\u0046\u003a\u0020\u0025\u0073",_feae );};if _ebg ,_abec :=_cdg .(_g .EndElement );_abec &&_ebg .Name ==start .Name {break ;};};return nil ;};type RFC3066 struct{};func (_dcd *RFC3066 )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_dca ,_ffdb :=d .Token ();if _ffdb !=nil {return _c .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0033\u0030\u0036\u0036\u003a\u0020\u0025\u0073",_ffdb );};if _gce ,_cea :=_dca .(_g .EndElement );_cea &&_gce .Name ==start .Name {break ;};};return nil ;};type ElementOrRefinementContainer struct{Choice []*ElementsAndRefinementsGroupChoice ;};
// Validate validates the Period and its children
func (_eae *Period )Validate ()error {return _eae .ValidateWithPath ("\u0050\u0065\u0072\u0069\u006f\u0064");};func init (){_cc .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 );_cc .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 );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0044\u0044\u0043",NewDDC );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u004c\u0043\u0043",NewLCC );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0044\u0043",NewUDC );_cc .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 );_cc .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 );_cc .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 );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0049\u004d\u0054",NewIMT );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0052\u0049",NewURI );_cc .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 );_cc .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 );_cc .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 );_cc .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 );_cc .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 );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0042\u006f\u0078",NewBox );_cc .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0054\u0047\u004e",NewTGN );_cc .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 );_cc .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 );};