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-06-16 07:10:52 +00:00
|
|
|
package terms ;import (_e "encoding/xml";_f "fmt";_ed "github.com/unidoc/unioffice";_eg "github.com/unidoc/unioffice/schema/purl.org/dc/elements";);
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the ElementsAndRefinementsGroupChoice and its children, prefixing error messages with path
|
|
|
|
func (_be *ElementsAndRefinementsGroupChoice )ValidateWithPath (path string )error {for _cdc ,_bcd :=range _be .Any {if _cg :=_bcd .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0041\u006e\u0079\u005b\u0025\u0064\u005d",path ,_cdc ));_cg !=nil {return _cg ;};};return nil ;};func NewRFC3066 ()*RFC3066 {_fccb :=&RFC3066 {};return _fccb };func (_fc *Box )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0042\u006f\u0078";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the LCC and its children, prefixing error messages with path
|
|
|
|
func (_fcgc *LCC )ValidateWithPath (path string )error {return nil };type RFC1766 struct{};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the RFC1766 and its children
|
|
|
|
func (_bgb *RFC1766 )Validate ()error {return _bgb .ValidateWithPath ("\u0052F\u0043\u0031\u0037\u0036\u0036");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the ElementsAndRefinementsGroup and its children, prefixing error messages with path
|
|
|
|
func (_aa *ElementsAndRefinementsGroup )ValidateWithPath (path string )error {for _dce ,_de :=range _aa .Choice {if _ccd :=_de .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_dce ));_ccd !=nil {return _ccd ;};};return nil ;};func (_bdea *MESH )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_bcb ,_bfbg :=d .Token ();if _bfbg !=nil {return _f .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004d\u0045\u0053\u0048\u003a\u0020\u0025\u0073",_bfbg );};if _ece ,_dca :=_bcb .(_e .EndElement );_dca &&_ece .Name ==start .Name {break ;};};return nil ;};func NewISO3166 ()*ISO3166 {_ad :=&ISO3166 {};return _ad };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the ISO3166 and its children, prefixing error messages with path
|
|
|
|
func (_bff *ISO3166 )ValidateWithPath (path string )error {return nil };func (_fbe *Period )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0050\u0065\u0072\u0069\u006f\u0064";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the ElementsAndRefinementsGroupChoice and its children
|
|
|
|
func (_cd *ElementsAndRefinementsGroupChoice )Validate ()error {return _cd .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 (_bcg *ElementOrRefinementContainer )MarshalXML (e *_e .Encoder ,start _e .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 _bcg .Choice !=nil {for _ ,_gd :=range _bcg .Choice {_gd .MarshalXML (e ,_e .StartElement {});};};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_dcg *Period )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_gge ,_ggc :=d .Token ();if _ggc !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0050e\u0072\u0069o\u0064\u003a\u0020\u0025\u0073",_ggc );};if _dfg ,_afab :=_gge .(_e .EndElement );_afab &&_dfg .Name ==start .Name {break ;};};return nil ;};type DCMIType struct{};type RFC3066 struct{};type ISO639_2 struct{};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the ISO639_2 and its children
|
|
|
|
func (_acd *ISO639_2 )Validate ()error {return _acd .ValidateWithPath ("\u0049\u0053\u004f\u0036\u0033\u0039\u005f\u0032");};type LCC struct{};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the Box and its children
|
|
|
|
func (_df *Box )Validate ()error {return _df .ValidateWithPath ("\u0042\u006f\u0078")};func NewUDC ()*UDC {_dabf :=&UDC {};return _dabf };func (_dab *IMT )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_cde ,_edf :=d .Token ();if _edf !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0049\u004d\u0054\u003a\u0020\u0025\u0073",_edf );};if _cdb ,_dbfg :=_cde .(_e .EndElement );_dbfg &&_cdb .Name ==start .Name {break ;};};return nil ;};func (_b *Box )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_d ,_ba :=d .Token ();if _ba !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0042\u006f\u0078\u003a\u0020\u0025\u0073",_ba );};if _bd ,_ff :=_d .(_e .EndElement );_ff &&_bd .Name ==start .Name {break ;};};return nil ;};func (_gda *UDC )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_aab ,_fac :=d .Token ();if _fac !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0044\u0043\u003a\u0020\u0025\u0073",_fac );};if _fbdb ,_eca :=_aab .(_e .EndElement );_eca &&_fbdb .Name ==start .Name {break ;};};return nil ;};type ISO3166 struct{};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the LCC and its children
|
|
|
|
func (_fdc *LCC )Validate ()error {return _fdc .ValidateWithPath ("\u004c\u0043\u0043")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the URI and its children
|
|
|
|
func (_bgd *URI )Validate ()error {return _bgd .ValidateWithPath ("\u0055\u0052\u0049")};func (_dff *Point )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0050\u006f\u0069n\u0074";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_ddb *ISO3166 )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_aca ,_gfa :=d .Token ();if _gfa !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0049\u0053\u004f\u0033\u0031\u0036\u0036\u003a\u0020\u0025\u0073",_gfa );};if _cf ,_bdc :=_aca .(_e .EndElement );_bdc &&_cf .Name ==start .Name {break ;};};return nil ;};func (_cba *LCSH )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u004c\u0043\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the TGN and its children
|
|
|
|
func (_dbe *TGN )Validate ()error {return _dbe .ValidateWithPath ("\u0054\u0047\u004e")};func (_cac *IMT )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0049\u004d\u0054";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_dc *DDC )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0044\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the LCSH and its children
|
|
|
|
func (_fdg *LCSH )Validate ()error {return _fdg .ValidateWithPath ("\u004c\u0043\u0053\u0048")};func (_cag *ISO639_2 )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_cfc ,_cgf :=d .Token ();if _cgf !=nil {return _f .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0049\u0053\u004f6\u0033\u0039\u005f\u0032: \u0025\u0073",_cgf );};if _eb ,_bfb :=_cfc .(_e .EndElement );_bfb &&_eb .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 DDC and its children
|
|
|
|
func (_gg *DDC )Validate ()error {return _gg .ValidateWithPath ("\u0044\u0044\u0043")};type TGN struct{};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-05-31 16:22:30 +00:00
|
|
|
// Validate validates the IMT and its children
|
2021-06-16 07:10:52 +00:00
|
|
|
func (_bba *IMT )Validate ()error {return _bba .ValidateWithPath ("\u0049\u004d\u0054")};func NewDCMIType ()*DCMIType {_c :=&DCMIType {};return _c };type ElementsAndRefinementsGroup struct{Choice []*ElementsAndRefinementsGroupChoice ;};type URI struct{};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the W3CDTF and its children, prefixing error messages with path
|
|
|
|
func (_acb *W3CDTF )ValidateWithPath (path string )error {return nil };func (_eff *LCC )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_cff ,_fcc :=d .Token ();if _fcc !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004c\u0043\u0043\u003a\u0020\u0025\u0073",_fcc );};if _fbg ,_gcg :=_cff .(_e .EndElement );_gcg &&_fbg .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
|
|
|
|
func (_fbda *MESH )Validate ()error {return _fbda .ValidateWithPath ("\u004d\u0045\u0053\u0048")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the DCMIType and its children
|
|
|
|
func (_bf *DCMIType )Validate ()error {return _bf .ValidateWithPath ("\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065");};func (_eaea *RFC3066 )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0052F\u0043\u0033\u0030\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_fdea *LCSH )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_acg ,_faf :=d .Token ();if _faf !=nil {return _f .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u004c\u0043\u0053\u0048\u003a\u0020\u0025\u0073",_faf );};if _gb ,_afdf :=_acg .(_e .EndElement );_afdf &&_gb .Name ==start .Name {break ;};};return nil ;};type Box struct{};type LCSH struct{};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the IMT and its children, prefixing error messages with path
|
|
|
|
func (_aag *IMT )ValidateWithPath (path string )error {return nil };func NewElementOrRefinementContainer ()*ElementOrRefinementContainer {_dbf :=&ElementOrRefinementContainer {};return _dbf ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the MESH and its children, prefixing error messages with path
|
|
|
|
func (_bffg *MESH )ValidateWithPath (path string )error {return nil };func NewBox ()*Box {_g :=&Box {};return _g };func (_da *ElementsAndRefinementsGroup )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _da .Choice !=nil {for _ ,_afa :=range _da .Choice {_afa .MarshalXML (e ,_e .StartElement {});};};return nil ;};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the Period and its children, prefixing error messages with path
|
|
|
|
func (_bffc *Period )ValidateWithPath (path string )error {return nil };func NewLCC ()*LCC {_gde :=&LCC {};return _gde };func NewPoint ()*Point {_bdf :=&Point {};return _bdf };
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-05-31 16:22:30 +00:00
|
|
|
// ValidateWithPath validates the DDC and its children, prefixing error messages with path
|
2021-06-16 07:10:52 +00:00
|
|
|
func (_ac *DDC )ValidateWithPath (path string )error {return nil };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the Box and its children, prefixing error messages with path
|
|
|
|
func (_ffa *Box )ValidateWithPath (path string )error {return nil };func NewLCSH ()*LCSH {_ccf :=&LCSH {};return _ccf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the Point and its children
|
|
|
|
func (_edg *Point )Validate ()error {return _edg .ValidateWithPath ("\u0050\u006f\u0069n\u0074")};func (_bac *ElementsAndRefinementsGroupChoice )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_aee :for {_affe ,_dfc :=d .Token ();if _dfc !=nil {return _dfc ;};switch _cca :=_affe .(type ){case _e .StartElement :switch _cca .Name {case _e .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"}:_gaf :=_eg .NewAny ();if _afe :=d .DecodeElement (_gaf ,&_cca );_afe !=nil {return _afe ;};_bac .Any =append (_bac .Any ,_gaf );default:_ed .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",_cca .Name );if _gef :=d .Skip ();_gef !=nil {return _gef ;};};case _e .EndElement :break _aee ;case _e .CharData :};};return nil ;};func NewDDC ()*DDC {_bc :=&DDC {};return _bc };func (_geb *RFC1766 )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_cdg ,_afaf :=d .Token ();if _afaf !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0031\u0037\u0036\u0036\u003a\u0020\u0025\u0073",_afaf );};if _ee ,_fff :=_cdg .(_e .EndElement );_fff &&_ee .Name ==start .Name {break ;};};return nil ;};func (_bde *ElementsAndRefinementsGroup )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_dcd :for {_ag ,_fcg :=d .Token ();if _fcg !=nil {return _fcg ;};switch _afd :=_ag .(type ){case _e .StartElement :switch _afd .Name {case _e .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"}:_eae :=NewElementsAndRefinementsGroupChoice ();if _ca :=d .DecodeElement (&_eae .Any ,&_afd );_ca !=nil {return _ca ;};_bde .Choice =append (_bde .Choice ,_eae );default:_ed .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",_afd .Name );if _dcdd :=d .Skip ();_dcdd !=nil {return _dcdd ;};};case _e .EndElement :break _dcd ;case _e .CharData :};};return nil ;};func NewRFC1766 ()*RFC1766 {_agg :=&RFC1766 {};return _agg };type Point struct{};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the ISO639_2 and its children, prefixing error messages with path
|
|
|
|
func (_ec *ISO639_2 )ValidateWithPath (path string )error {return nil };func (_ef *DDC )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_ega ,_bg :=d .Token ();if _bg !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0044\u0044\u0043\u003a\u0020\u0025\u0073",_bg );};if _dgg ,_cc :=_ega .(_e .EndElement );_cc &&_dgg .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 ISO3166 and its children
|
|
|
|
func (_gefa *ISO3166 )Validate ()error {return _gefa .ValidateWithPath ("\u0049S\u004f\u0033\u0031\u0036\u0036");};func (_efa *Point )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_gec ,_ggf :=d .Token ();if _ggf !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0050\u006f\u0069\u006et\u003a\u0020\u0025\u0073",_ggf );};if _fbb ,_eag :=_gec .(_e .EndElement );_eag &&_fbb .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 RFC3066 and its children
|
|
|
|
func (_aeec *RFC3066 )Validate ()error {return _aeec .ValidateWithPath ("\u0052F\u0043\u0033\u0030\u0036\u0036");};func (_cb *ElementOrRefinementContainer )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_fe :for {_fde ,_gdf :=d .Token ();if _gdf !=nil {return _gdf ;};switch _ea :=_fde .(type ){case _e .StartElement :switch _ea .Name {case _e .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"}:_bb :=NewElementsAndRefinementsGroupChoice ();if _af :=d .DecodeElement (&_bb .Any ,&_ea );_af !=nil {return _af ;};_cb .Choice =append (_cb .Choice ,_bb );default:_ed .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",_ea .Name );if _aff :=d .Skip ();_aff !=nil {return _aff ;};};case _e .EndElement :break _fe ;case _e .CharData :};};return nil ;};func (_acfg *TGN )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_aba ,_cbd :=d .Token ();if _cbd !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0054\u0047\u004e\u003a\u0020\u0025\u0073",_cbd );};if _dfgg ,_fcce :=_aba .(_e .EndElement );_fcce &&_dfgg .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 UDC and its children
|
|
|
|
func (_bgc *UDC )Validate ()error {return _bgc .ValidateWithPath ("\u0055\u0044\u0043")};func (_db *DCMIType )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0044\u0043\u004d\u0049\u0054\u0079\u0070\u0065";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the W3CDTF and its children
|
|
|
|
func (_abf *W3CDTF )Validate ()error {return _abf .ValidateWithPath ("\u0057\u0033\u0043\u0044\u0054\u0046");};func NewMESH ()*MESH {_eda :=&MESH {};return _eda };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the RFC1766 and its children, prefixing error messages with path
|
|
|
|
func (_acad *RFC1766 )ValidateWithPath (path string )error {return nil };func (_ddd *TGN )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0054\u0047\u004e";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func NewIMT ()*IMT {_fag :=&IMT {};return _fag };func (_ggga *UDC )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0055\u0044\u0043";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the Point and its children, prefixing error messages with path
|
|
|
|
func (_ebc *Point )ValidateWithPath (path string )error {return nil };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the ElementsAndRefinementsGroup and its children
|
|
|
|
func (_geg *ElementsAndRefinementsGroup )Validate ()error {return _geg .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 (_bea *ISO639_2 )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0049\u0053\u004f\u0036\u0033\u0039\u002d\u0032";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_fad *ElementsAndRefinementsGroupChoice )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _fad .Any !=nil {_fbd :=_e .StartElement {Name :_e .Name {Local :"\u0064\u0063\u003a\u0061\u006e\u0079"}};for _ ,_dd :=range _fad .Any {e .EncodeElement (_dd ,_fbd );};};return nil ;};func (_bgg *URI )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0055\u0052\u0049";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_bag *W3CDTF )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_bacg ,_ded :=d .Token ();if _ded !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u00573\u0043\u0044T\u0046\u003a\u0020\u0025\u0073",_ded );};if _cda ,_ecc :=_bacg .(_e .EndElement );_ecc &&_cda .Name ==start .Name {break ;};};return nil ;};func (_fee *W3CDTF )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0057\u0033\u0043\u0044\u0054\u0046";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func NewW3CDTF ()*W3CDTF {_dfd :=&W3CDTF {};return _dfd };func (_adf *RFC3066 )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_eab ,_ggg :=d .Token ();if _ggg !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0052\u0046\u0043\u0033\u0030\u0036\u0036\u003a\u0020\u0025\u0073",_ggg );};if _efe ,_dad :=_eab .(_e .EndElement );_dad &&_efe .Name ==start .Name {break ;};};return nil ;};func NewPeriod ()*Period {_add :=&Period {};return _add };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the RFC3066 and its children, prefixing error messages with path
|
|
|
|
func (_gdc *RFC3066 )ValidateWithPath (path string )error {return nil };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the UDC and its children, prefixing error messages with path
|
|
|
|
func (_ffb *UDC )ValidateWithPath (path string )error {return nil };type W3CDTF struct{};type ElementsAndRefinementsGroupChoice struct{Any []*_eg .Any ;};type DDC struct{};func (_gged *RFC1766 )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0052F\u0043\u0031\u0037\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};type IMT struct{};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the DCMIType and its children, prefixing error messages with path
|
|
|
|
func (_dgb *DCMIType )ValidateWithPath (path string )error {return nil };func NewElementsAndRefinementsGroupChoice ()*ElementsAndRefinementsGroupChoice {_gab :=&ElementsAndRefinementsGroupChoice {};return _gab ;};func NewTGN ()*TGN {_ab :=&TGN {};return _ab };type ElementOrRefinementContainer struct{Choice []*ElementsAndRefinementsGroupChoice ;};func NewElementsAndRefinementsGroup ()*ElementsAndRefinementsGroup {_fdb :=&ElementsAndRefinementsGroup {};return _fdb ;};func (_ffdd *MESH )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u004d\u0045\u0053\u0048";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_bce *URI )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_cacb ,_fgg :=d .Token ();if _fgg !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0055\u0052\u0049\u003a\u0020\u0025\u0073",_fgg );};if _aeb ,_ce :=_cacb .(_e .EndElement );_ce &&_aeb .Name ==start .Name {break ;};};return nil ;};func NewURI ()*URI {_dfa :=&URI {};return _dfa };
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// Validate validates the Period and its children
|
|
|
|
func (_gee *Period )Validate ()error {return _gee .ValidateWithPath ("\u0050\u0065\u0072\u0069\u006f\u0064");};func (_fg *LCC )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u004c\u0043\u0043";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the URI and its children, prefixing error messages with path
|
|
|
|
func (_gdb *URI )ValidateWithPath (path string )error {return nil };type UDC struct{};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the LCSH and its children, prefixing error messages with path
|
|
|
|
func (_egb *LCSH )ValidateWithPath (path string )error {return nil };type Period struct{};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the ElementOrRefinementContainer and its children, prefixing error messages with path
|
|
|
|
func (_ge *ElementOrRefinementContainer )ValidateWithPath (path string )error {for _feg ,_eaa :=range _ge .Choice {if _ffd :=_eaa .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_feg ));_ffd !=nil {return _ffd ;};};return nil ;};func NewISO639_2 ()*ISO639_2 {_ccc :=&ISO639_2 {};return _ccc };func (_fb *DCMIType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for {_ga ,_gf :=d .Token ();if _gf !=nil {return _f .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0044\u0043\u004dI\u0054\u0079\u0070\u0065: \u0025\u0073",_gf );};if _gc ,_dg :=_ga .(_e .EndElement );_dg &&_gc .Name ==start .Name {break ;};};return nil ;};type MESH struct{};func (_acf *ISO3166 )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Name .Local ="\u0049S\u004f\u0033\u0031\u0036\u0036";e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-06-16 07:10:52 +00:00
|
|
|
// ValidateWithPath validates the TGN and its children, prefixing error messages with path
|
|
|
|
func (_fge *TGN )ValidateWithPath (path string )error {return nil };
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-05-31 16:22:30 +00:00
|
|
|
// Validate validates the ElementOrRefinementContainer and its children
|
2021-06-16 07:10:52 +00:00
|
|
|
func (_bcgc *ElementOrRefinementContainer )Validate ()error {return _bcgc .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 init (){_ed .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 );_ed .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 );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0044\u0044\u0043",NewDDC );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u004c\u0043\u0043",NewLCC );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0044\u0043",NewUDC );_ed .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 );_ed .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 );_ed .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 );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0049\u004d\u0054",NewIMT );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0055\u0052\u0049",NewURI );_ed .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 );_ed .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 );_ed .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 );_ed .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 );_ed .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 );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0042\u006f\u0078",NewBox );_ed .RegisterConstructor ("\u0068t\u0074\u0070\u003a\u002f/\u0070\u0075\u0072\u006c\u002eo\u0072g\u002fd\u0063\u002f\u0074\u0065\u0072\u006d\u0073/","\u0054\u0047\u004e",NewTGN );_ed .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 );_ed .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\u006
|