3 // This file was automatically generated using XmlPlus xsd2cpp tool.
7 #include "libgno/GenoPro.h"
14 GenoPro::GenoPro(ElementCreateArgs args):
15 XMLSchema::XmlElement<anyType>(args),
20 , _sequence(new sequence(this) )
23 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
25 if(args.ownerDoc && args.ownerDoc->buildTree())
27 if(args.ownerDoc->createSample()) {
28 _fsm->fireSampleEvents();
31 _fsm->fireRequiredEvents();
36 void GenoPro::initFSM()
38 XsdFsmBasePtr fsmsAttrs[] = {
43 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
45 _fsm->replaceContentFsm(_sequence);
47 _fsmAttrs = _fsm->attributeFsm();
48 _fsmElems = _fsm->contentFsm();
52 /* element functions */
55 GenoPro::Software_ptr GenoPro::create_Software(FsmCbOptions& options)
57 static DOMStringPtr myName = new DOMString("Software");
58 static DOMStringPtr myNsUri = new DOMString("libgno");
60 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
61 GenoPro::Software_p node = XSD::createElementTmpl<Software, void*>(t);
69 GenoPro::Software_p GenoPro::element_Software()
71 FSM::warnNullNode(_Software, "Software", "{}Software", 0);
75 void GenoPro::mark_present_Software()
77 return get_sequence()->mark_present_Software();
80 #ifndef __GenoPro_Date_member_elems_fns
81 #define __GenoPro_Date_member_elems_fns
84 GenoPro::Date_ptr GenoPro::create_Date(FsmCbOptions& options)
86 static DOMStringPtr myName = new DOMString("Date");
87 static DOMStringPtr myNsUri = new DOMString("libgno");
89 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
90 GenoPro::Date_p node = XSD::createElementTmpl<Date, XMLSchema::Types::bt_string*>(t);
92 if(options.isSampleCreate && (node->stringValue() == "") ) {
93 node->stringValue(node->sampleValue());
102 GenoPro::Date_p GenoPro::element_Date()
104 FSM::warnNullNode(_Date, "Date", "{http://www.w3.org/2001/XMLSchema}Date", 0);
108 void GenoPro::set_Date(DOMString val)
110 get_sequence()->set_Date(val);
113 DOMString GenoPro::get_Date_string()
115 return get_sequence()->get_Date_string();
119 void GenoPro::mark_present_Date()
121 return get_sequence()->mark_present_Date();
124 #endif // __GenoPro_Date_member_elems_fns
127 GenoPro::Global_ptr GenoPro::create_Global(FsmCbOptions& options)
129 static DOMStringPtr myName = new DOMString("Global");
130 static DOMStringPtr myNsUri = new DOMString("libgno");
132 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
133 GenoPro::Global_p node = XSD::createElementTmpl<Global, void*>(t);
141 GenoPro::Global_p GenoPro::element_Global()
143 FSM::warnNullNode(_Global, "Global", "{}Global", 0);
147 void GenoPro::mark_present_Global()
149 return get_sequence()->mark_present_Global();
153 GenoPro::GenoMaps_ptr GenoPro::create_GenoMaps(FsmCbOptions& options)
155 static DOMStringPtr myName = new DOMString("GenoMaps");
156 static DOMStringPtr myNsUri = new DOMString("libgno");
158 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
159 GenoPro::GenoMaps_p node = XSD::createElementTmpl<GenoMaps, void*>(t);
167 GenoPro::GenoMaps_p GenoPro::element_GenoMaps()
169 FSM::warnNullNode(_GenoMaps, "GenoMaps", "{}GenoMaps", 0);
173 void GenoPro::mark_present_GenoMaps()
175 return get_sequence()->mark_present_GenoMaps();
179 GenoPro::Individuals_ptr GenoPro::create_Individuals(FsmCbOptions& options)
181 static DOMStringPtr myName = new DOMString("Individuals");
182 static DOMStringPtr myNsUri = new DOMString("libgno");
184 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
185 GenoPro::Individuals_p node = XSD::createElementTmpl<Individuals, void*>(t);
193 GenoPro::Individuals_p GenoPro::element_Individuals()
195 FSM::warnNullNode(_Individuals, "Individuals", "{}Individuals", 0);
199 void GenoPro::mark_present_Individuals()
201 return get_sequence()->mark_present_Individuals();
205 GenoPro::Families_ptr GenoPro::create_Families(FsmCbOptions& options)
207 static DOMStringPtr myName = new DOMString("Families");
208 static DOMStringPtr myNsUri = new DOMString("libgno");
210 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
211 GenoPro::Families_p node = XSD::createElementTmpl<Families, void*>(t);
219 GenoPro::Families_p GenoPro::element_Families()
221 FSM::warnNullNode(_Families, "Families", "{}Families", 0);
225 void GenoPro::mark_present_Families()
227 return get_sequence()->mark_present_Families();
231 GenoPro::Marriages_ptr GenoPro::create_Marriages(FsmCbOptions& options)
233 static DOMStringPtr myName = new DOMString("Marriages");
234 static DOMStringPtr myNsUri = new DOMString("libgno");
236 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
237 GenoPro::Marriages_p node = XSD::createElementTmpl<Marriages, void*>(t);
245 GenoPro::Marriages_p GenoPro::element_Marriages()
247 FSM::warnNullNode(_Marriages, "Marriages", "{}Marriages", 0);
251 void GenoPro::mark_present_Marriages()
253 return get_sequence()->mark_present_Marriages();
257 GenoPro::PedigreeLinks_ptr GenoPro::create_PedigreeLinks(FsmCbOptions& options)
259 static DOMStringPtr myName = new DOMString("PedigreeLinks");
260 static DOMStringPtr myNsUri = new DOMString("libgno");
262 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
263 GenoPro::PedigreeLinks_p node = XSD::createElementTmpl<PedigreeLinks, void*>(t);
265 _PedigreeLinks = node;
271 GenoPro::PedigreeLinks_p GenoPro::element_PedigreeLinks()
273 FSM::warnNullNode(_PedigreeLinks, "PedigreeLinks", "{}PedigreeLinks", 0);
274 return _PedigreeLinks;
277 void GenoPro::mark_present_PedigreeLinks()
279 return get_sequence()->mark_present_PedigreeLinks();
282 #ifndef __GenoPro_Pictures_member_elems_fns
283 #define __GenoPro_Pictures_member_elems_fns
286 GenoPro::Pictures_ptr GenoPro::create_Pictures(FsmCbOptions& options)
288 static DOMStringPtr myName = new DOMString("Pictures");
289 static DOMStringPtr myNsUri = new DOMString("libgno");
291 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
292 GenoPro::Pictures_p node = XSD::createElementTmpl<Pictures, void*>(t);
300 GenoPro::Pictures_p GenoPro::element_Pictures()
302 FSM::warnNullNode(_Pictures, "Pictures", "{}Pictures", 0);
306 void GenoPro::mark_present_Pictures()
308 return get_sequence()->mark_present_Pictures();
311 #endif // __GenoPro_Pictures_member_elems_fns
314 GenoPro::Places_ptr GenoPro::create_Places(FsmCbOptions& options)
316 static DOMStringPtr myName = new DOMString("Places");
317 static DOMStringPtr myNsUri = new DOMString("libgno");
319 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
320 GenoPro::Places_p node = XSD::createElementTmpl<Places, void*>(t);
328 GenoPro::Places_p GenoPro::element_Places()
330 FSM::warnNullNode(_Places, "Places", "{}Places", 0);
334 void GenoPro::mark_present_Places()
336 return get_sequence()->mark_present_Places();
340 GenoPro::Educations_ptr GenoPro::create_Educations(FsmCbOptions& options)
342 static DOMStringPtr myName = new DOMString("Educations");
343 static DOMStringPtr myNsUri = new DOMString("libgno");
345 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
346 GenoPro::Educations_p node = XSD::createElementTmpl<Educations, void*>(t);
354 GenoPro::Educations_p GenoPro::element_Educations()
356 FSM::warnNullNode(_Educations, "Educations", "{}Educations", 0);
360 void GenoPro::mark_present_Educations()
362 return get_sequence()->mark_present_Educations();
366 GenoPro::Occupations_ptr GenoPro::create_Occupations(FsmCbOptions& options)
368 static DOMStringPtr myName = new DOMString("Occupations");
369 static DOMStringPtr myNsUri = new DOMString("libgno");
371 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
372 GenoPro::Occupations_p node = XSD::createElementTmpl<Occupations, void*>(t);
380 GenoPro::Occupations_p GenoPro::element_Occupations()
382 FSM::warnNullNode(_Occupations, "Occupations", "{}Occupations", 0);
386 void GenoPro::mark_present_Occupations()
388 return get_sequence()->mark_present_Occupations();
392 GenoPro::Contacts_ptr GenoPro::create_Contacts(FsmCbOptions& options)
394 static DOMStringPtr myName = new DOMString("Contacts");
395 static DOMStringPtr myNsUri = new DOMString("libgno");
397 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
398 GenoPro::Contacts_p node = XSD::createElementTmpl<Contacts, void*>(t);
406 GenoPro::Contacts_p GenoPro::element_Contacts()
408 FSM::warnNullNode(_Contacts, "Contacts", "{}Contacts", 0);
412 void GenoPro::mark_present_Contacts()
414 return get_sequence()->mark_present_Contacts();
418 GenoPro::SourcesAndCitations_ptr GenoPro::create_SourcesAndCitations(FsmCbOptions& options)
420 static DOMStringPtr myName = new DOMString("SourcesAndCitations");
421 static DOMStringPtr myNsUri = new DOMString("libgno");
423 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
424 GenoPro::SourcesAndCitations_p node = XSD::createElementTmpl<SourcesAndCitations, void*>(t);
426 _SourcesAndCitations = node;
432 GenoPro::SourcesAndCitations_p GenoPro::element_SourcesAndCitations()
434 FSM::warnNullNode(_SourcesAndCitations, "SourcesAndCitations", "{}SourcesAndCitations", 0);
435 return _SourcesAndCitations;
438 void GenoPro::mark_present_SourcesAndCitations()
440 return get_sequence()->mark_present_SourcesAndCitations();
444 GenoPro::Twins_ptr GenoPro::create_Twins(FsmCbOptions& options)
446 static DOMStringPtr myName = new DOMString("Twins");
447 static DOMStringPtr myNsUri = new DOMString("libgno");
449 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
450 GenoPro::Twins_p node = XSD::createElementTmpl<Twins, void*>(t);
458 GenoPro::Twins_p GenoPro::element_Twins()
460 FSM::warnNullNode(_Twins, "Twins", "{}Twins", 0);
464 void GenoPro::mark_present_Twins()
466 return get_sequence()->mark_present_Twins();
470 GenoPro::Shapes_ptr GenoPro::create_Shapes(FsmCbOptions& options)
472 static DOMStringPtr myName = new DOMString("Shapes");
473 static DOMStringPtr myNsUri = new DOMString("libgno");
475 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
476 GenoPro::Shapes_p node = XSD::createElementTmpl<Shapes, void*>(t);
484 GenoPro::Shapes_p GenoPro::element_Shapes()
486 FSM::warnNullNode(_Shapes, "Shapes", "{}Shapes", 0);
490 void GenoPro::mark_present_Shapes()
492 return get_sequence()->mark_present_Shapes();
496 GenoPro::SocialRelationships_ptr GenoPro::create_SocialRelationships(FsmCbOptions& options)
498 static DOMStringPtr myName = new DOMString("SocialRelationships");
499 static DOMStringPtr myNsUri = new DOMString("libgno");
501 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
502 GenoPro::SocialRelationships_p node = XSD::createElementTmpl<SocialRelationships, void*>(t);
504 _SocialRelationships = node;
510 GenoPro::SocialRelationships_p GenoPro::element_SocialRelationships()
512 FSM::warnNullNode(_SocialRelationships, "SocialRelationships", "{}SocialRelationships", 0);
513 return _SocialRelationships;
516 void GenoPro::mark_present_SocialRelationships()
518 return get_sequence()->mark_present_SocialRelationships();
522 /* attribute functions */
525 GenoPro::sequence::sequence(GenoPro* that):
528 XsdFsmBasePtr fsmArray[] = {
529 new XsdFSM<Software_ptr>( Particle(new DOMString("libgno"), DOMString("Software"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Software_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Software)),
530 new XsdFSM<Date_ptr>( Particle(new DOMString("libgno"), DOMString("Date"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Date_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Date)),
531 new XsdFSM<Global_ptr>( Particle(new DOMString("libgno"), DOMString("Global"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Global_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Global)),
532 new XsdFSM<GenoMaps_ptr>( Particle(new DOMString("libgno"), DOMString("GenoMaps"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<GenoMaps_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_GenoMaps)),
533 new XsdFSM<Individuals_ptr>( Particle(new DOMString("libgno"), DOMString("Individuals"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Individuals_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Individuals)),
534 new XsdFSM<Families_ptr>( Particle(new DOMString("libgno"), DOMString("Families"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Families_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Families)),
535 new XsdFSM<Marriages_ptr>( Particle(new DOMString("libgno"), DOMString("Marriages"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Marriages_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Marriages)),
536 new XsdFSM<PedigreeLinks_ptr>( Particle(new DOMString("libgno"), DOMString("PedigreeLinks"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<PedigreeLinks_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_PedigreeLinks)),
537 new XsdFSM<Pictures_ptr>( Particle(new DOMString("libgno"), DOMString("Pictures"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Pictures_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Pictures)),
538 new XsdFSM<Places_ptr>( Particle(new DOMString("libgno"), DOMString("Places"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Places_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Places)),
539 new XsdFSM<Educations_ptr>( Particle(new DOMString("libgno"), DOMString("Educations"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Educations_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Educations)),
540 new XsdFSM<Occupations_ptr>( Particle(new DOMString("libgno"), DOMString("Occupations"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Occupations_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Occupations)),
541 new XsdFSM<Contacts_ptr>( Particle(new DOMString("libgno"), DOMString("Contacts"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Contacts_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Contacts)),
542 new XsdFSM<SourcesAndCitations_ptr>( Particle(new DOMString("libgno"), DOMString("SourcesAndCitations"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<SourcesAndCitations_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_SourcesAndCitations)),
543 new XsdFSM<Twins_ptr>( Particle(new DOMString("libgno"), DOMString("Twins"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Twins_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Twins)),
544 new XsdFSM<Shapes_ptr>( Particle(new DOMString("libgno"), DOMString("Shapes"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Shapes_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_Shapes)),
545 new XsdFSM<SocialRelationships_ptr>( Particle(new DOMString("libgno"), DOMString("SocialRelationships"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<SocialRelationships_ptr, GenoPro, FsmCbOptions>(_that, &GenoPro::create_SocialRelationships)),
550 XsdSequenceFsmOfFSMs::init(fsmArray);
555 GenoPro::Software_p GenoPro::sequence::element_Software()
557 GenoPro::Software_p node_p = NULL;
558 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
561 XsdFSM<Software_ptr> *unitFsm = dynamic_cast<XsdFSM<Software_ptr> *>(fsm_p);
562 if(unitFsm && unitFsm->nodeList().size()>0) {
563 assert(unitFsm->nodeList().size()==1);
564 node_p = unitFsm->nodeList().at(0);
568 FSM::warnNullNode(node_p, "Software", "{}Software", 0);
575 void GenoPro::sequence::mark_present_Software()
577 DOMStringPtr nsUriPtr = new DOMString("libgno");
578 XsdEvent event(nsUriPtr, NULL, DOMString("Software"), XsdEvent::ELEMENT_START, false);
579 this->processEventThrow(event);
584 GenoPro::Date_p GenoPro::sequence::element_Date()
586 GenoPro::Date_p node_p = NULL;
587 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
590 XsdFSM<Date_ptr> *unitFsm = dynamic_cast<XsdFSM<Date_ptr> *>(fsm_p);
591 if(unitFsm && unitFsm->nodeList().size()>0) {
592 assert(unitFsm->nodeList().size()==1);
593 node_p = unitFsm->nodeList().at(0);
597 FSM::warnNullNode(node_p, "Date", "{http://www.w3.org/2001/XMLSchema}Date", 0);
603 void GenoPro::sequence::set_Date(DOMString val)
608 element_Date()->stringValue(val);
611 DOMString GenoPro::sequence::get_Date_string()
613 return element_Date()->stringValue();
618 void GenoPro::sequence::mark_present_Date()
620 DOMStringPtr nsUriPtr = new DOMString("libgno");
621 XsdEvent event(nsUriPtr, NULL, DOMString("Date"), XsdEvent::ELEMENT_START, false);
622 this->processEventThrow(event);
627 GenoPro::Global_p GenoPro::sequence::element_Global()
629 GenoPro::Global_p node_p = NULL;
630 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
633 XsdFSM<Global_ptr> *unitFsm = dynamic_cast<XsdFSM<Global_ptr> *>(fsm_p);
634 if(unitFsm && unitFsm->nodeList().size()>0) {
635 assert(unitFsm->nodeList().size()==1);
636 node_p = unitFsm->nodeList().at(0);
640 FSM::warnNullNode(node_p, "Global", "{}Global", 0);
647 void GenoPro::sequence::mark_present_Global()
649 DOMStringPtr nsUriPtr = new DOMString("libgno");
650 XsdEvent event(nsUriPtr, NULL, DOMString("Global"), XsdEvent::ELEMENT_START, false);
651 this->processEventThrow(event);
656 GenoPro::GenoMaps_p GenoPro::sequence::element_GenoMaps()
658 GenoPro::GenoMaps_p node_p = NULL;
659 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
662 XsdFSM<GenoMaps_ptr> *unitFsm = dynamic_cast<XsdFSM<GenoMaps_ptr> *>(fsm_p);
663 if(unitFsm && unitFsm->nodeList().size()>0) {
664 assert(unitFsm->nodeList().size()==1);
665 node_p = unitFsm->nodeList().at(0);
669 FSM::warnNullNode(node_p, "GenoMaps", "{}GenoMaps", 0);
676 void GenoPro::sequence::mark_present_GenoMaps()
678 DOMStringPtr nsUriPtr = new DOMString("libgno");
679 XsdEvent event(nsUriPtr, NULL, DOMString("GenoMaps"), XsdEvent::ELEMENT_START, false);
680 this->processEventThrow(event);
685 GenoPro::Individuals_p GenoPro::sequence::element_Individuals()
687 GenoPro::Individuals_p node_p = NULL;
688 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
691 XsdFSM<Individuals_ptr> *unitFsm = dynamic_cast<XsdFSM<Individuals_ptr> *>(fsm_p);
692 if(unitFsm && unitFsm->nodeList().size()>0) {
693 assert(unitFsm->nodeList().size()==1);
694 node_p = unitFsm->nodeList().at(0);
698 FSM::warnNullNode(node_p, "Individuals", "{}Individuals", 0);
705 void GenoPro::sequence::mark_present_Individuals()
707 DOMStringPtr nsUriPtr = new DOMString("libgno");
708 XsdEvent event(nsUriPtr, NULL, DOMString("Individuals"), XsdEvent::ELEMENT_START, false);
709 this->processEventThrow(event);
714 GenoPro::Families_p GenoPro::sequence::element_Families()
716 GenoPro::Families_p node_p = NULL;
717 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
720 XsdFSM<Families_ptr> *unitFsm = dynamic_cast<XsdFSM<Families_ptr> *>(fsm_p);
721 if(unitFsm && unitFsm->nodeList().size()>0) {
722 assert(unitFsm->nodeList().size()==1);
723 node_p = unitFsm->nodeList().at(0);
727 FSM::warnNullNode(node_p, "Families", "{}Families", 0);
734 void GenoPro::sequence::mark_present_Families()
736 DOMStringPtr nsUriPtr = new DOMString("libgno");
737 XsdEvent event(nsUriPtr, NULL, DOMString("Families"), XsdEvent::ELEMENT_START, false);
738 this->processEventThrow(event);
743 GenoPro::Marriages_p GenoPro::sequence::element_Marriages()
745 GenoPro::Marriages_p node_p = NULL;
746 XsdFsmBase* fsm_p = this->allFSMs()[6].get();
749 XsdFSM<Marriages_ptr> *unitFsm = dynamic_cast<XsdFSM<Marriages_ptr> *>(fsm_p);
750 if(unitFsm && unitFsm->nodeList().size()>0) {
751 assert(unitFsm->nodeList().size()==1);
752 node_p = unitFsm->nodeList().at(0);
756 FSM::warnNullNode(node_p, "Marriages", "{}Marriages", 0);
763 void GenoPro::sequence::mark_present_Marriages()
765 DOMStringPtr nsUriPtr = new DOMString("libgno");
766 XsdEvent event(nsUriPtr, NULL, DOMString("Marriages"), XsdEvent::ELEMENT_START, false);
767 this->processEventThrow(event);
772 GenoPro::PedigreeLinks_p GenoPro::sequence::element_PedigreeLinks()
774 GenoPro::PedigreeLinks_p node_p = NULL;
775 XsdFsmBase* fsm_p = this->allFSMs()[7].get();
778 XsdFSM<PedigreeLinks_ptr> *unitFsm = dynamic_cast<XsdFSM<PedigreeLinks_ptr> *>(fsm_p);
779 if(unitFsm && unitFsm->nodeList().size()>0) {
780 assert(unitFsm->nodeList().size()==1);
781 node_p = unitFsm->nodeList().at(0);
785 FSM::warnNullNode(node_p, "PedigreeLinks", "{}PedigreeLinks", 0);
792 void GenoPro::sequence::mark_present_PedigreeLinks()
794 DOMStringPtr nsUriPtr = new DOMString("libgno");
795 XsdEvent event(nsUriPtr, NULL, DOMString("PedigreeLinks"), XsdEvent::ELEMENT_START, false);
796 this->processEventThrow(event);
801 GenoPro::Pictures_p GenoPro::sequence::element_Pictures()
803 GenoPro::Pictures_p node_p = NULL;
804 XsdFsmBase* fsm_p = this->allFSMs()[8].get();
807 XsdFSM<Pictures_ptr> *unitFsm = dynamic_cast<XsdFSM<Pictures_ptr> *>(fsm_p);
808 if(unitFsm && unitFsm->nodeList().size()>0) {
809 assert(unitFsm->nodeList().size()==1);
810 node_p = unitFsm->nodeList().at(0);
814 FSM::warnNullNode(node_p, "Pictures", "{}Pictures", 0);
821 void GenoPro::sequence::mark_present_Pictures()
823 DOMStringPtr nsUriPtr = new DOMString("libgno");
824 XsdEvent event(nsUriPtr, NULL, DOMString("Pictures"), XsdEvent::ELEMENT_START, false);
825 this->processEventThrow(event);
830 GenoPro::Places_p GenoPro::sequence::element_Places()
832 GenoPro::Places_p node_p = NULL;
833 XsdFsmBase* fsm_p = this->allFSMs()[9].get();
836 XsdFSM<Places_ptr> *unitFsm = dynamic_cast<XsdFSM<Places_ptr> *>(fsm_p);
837 if(unitFsm && unitFsm->nodeList().size()>0) {
838 assert(unitFsm->nodeList().size()==1);
839 node_p = unitFsm->nodeList().at(0);
843 FSM::warnNullNode(node_p, "Places", "{}Places", 0);
850 void GenoPro::sequence::mark_present_Places()
852 DOMStringPtr nsUriPtr = new DOMString("libgno");
853 XsdEvent event(nsUriPtr, NULL, DOMString("Places"), XsdEvent::ELEMENT_START, false);
854 this->processEventThrow(event);
859 GenoPro::Educations_p GenoPro::sequence::element_Educations()
861 GenoPro::Educations_p node_p = NULL;
862 XsdFsmBase* fsm_p = this->allFSMs()[10].get();
865 XsdFSM<Educations_ptr> *unitFsm = dynamic_cast<XsdFSM<Educations_ptr> *>(fsm_p);
866 if(unitFsm && unitFsm->nodeList().size()>0) {
867 assert(unitFsm->nodeList().size()==1);
868 node_p = unitFsm->nodeList().at(0);
872 FSM::warnNullNode(node_p, "Educations", "{}Educations", 0);
879 void GenoPro::sequence::mark_present_Educations()
881 DOMStringPtr nsUriPtr = new DOMString("libgno");
882 XsdEvent event(nsUriPtr, NULL, DOMString("Educations"), XsdEvent::ELEMENT_START, false);
883 this->processEventThrow(event);
888 GenoPro::Occupations_p GenoPro::sequence::element_Occupations()
890 GenoPro::Occupations_p node_p = NULL;
891 XsdFsmBase* fsm_p = this->allFSMs()[11].get();
894 XsdFSM<Occupations_ptr> *unitFsm = dynamic_cast<XsdFSM<Occupations_ptr> *>(fsm_p);
895 if(unitFsm && unitFsm->nodeList().size()>0) {
896 assert(unitFsm->nodeList().size()==1);
897 node_p = unitFsm->nodeList().at(0);
901 FSM::warnNullNode(node_p, "Occupations", "{}Occupations", 0);
908 void GenoPro::sequence::mark_present_Occupations()
910 DOMStringPtr nsUriPtr = new DOMString("libgno");
911 XsdEvent event(nsUriPtr, NULL, DOMString("Occupations"), XsdEvent::ELEMENT_START, false);
912 this->processEventThrow(event);
917 GenoPro::Contacts_p GenoPro::sequence::element_Contacts()
919 GenoPro::Contacts_p node_p = NULL;
920 XsdFsmBase* fsm_p = this->allFSMs()[12].get();
923 XsdFSM<Contacts_ptr> *unitFsm = dynamic_cast<XsdFSM<Contacts_ptr> *>(fsm_p);
924 if(unitFsm && unitFsm->nodeList().size()>0) {
925 assert(unitFsm->nodeList().size()==1);
926 node_p = unitFsm->nodeList().at(0);
930 FSM::warnNullNode(node_p, "Contacts", "{}Contacts", 0);
937 void GenoPro::sequence::mark_present_Contacts()
939 DOMStringPtr nsUriPtr = new DOMString("libgno");
940 XsdEvent event(nsUriPtr, NULL, DOMString("Contacts"), XsdEvent::ELEMENT_START, false);
941 this->processEventThrow(event);
946 GenoPro::SourcesAndCitations_p GenoPro::sequence::element_SourcesAndCitations()
948 GenoPro::SourcesAndCitations_p node_p = NULL;
949 XsdFsmBase* fsm_p = this->allFSMs()[13].get();
952 XsdFSM<SourcesAndCitations_ptr> *unitFsm = dynamic_cast<XsdFSM<SourcesAndCitations_ptr> *>(fsm_p);
953 if(unitFsm && unitFsm->nodeList().size()>0) {
954 assert(unitFsm->nodeList().size()==1);
955 node_p = unitFsm->nodeList().at(0);
959 FSM::warnNullNode(node_p, "SourcesAndCitations", "{}SourcesAndCitations", 0);
966 void GenoPro::sequence::mark_present_SourcesAndCitations()
968 DOMStringPtr nsUriPtr = new DOMString("libgno");
969 XsdEvent event(nsUriPtr, NULL, DOMString("SourcesAndCitations"), XsdEvent::ELEMENT_START, false);
970 this->processEventThrow(event);
975 GenoPro::Twins_p GenoPro::sequence::element_Twins()
977 GenoPro::Twins_p node_p = NULL;
978 XsdFsmBase* fsm_p = this->allFSMs()[14].get();
981 XsdFSM<Twins_ptr> *unitFsm = dynamic_cast<XsdFSM<Twins_ptr> *>(fsm_p);
982 if(unitFsm && unitFsm->nodeList().size()>0) {
983 assert(unitFsm->nodeList().size()==1);
984 node_p = unitFsm->nodeList().at(0);
988 FSM::warnNullNode(node_p, "Twins", "{}Twins", 0);
995 void GenoPro::sequence::mark_present_Twins()
997 DOMStringPtr nsUriPtr = new DOMString("libgno");
998 XsdEvent event(nsUriPtr, NULL, DOMString("Twins"), XsdEvent::ELEMENT_START, false);
999 this->processEventThrow(event);
1004 GenoPro::Shapes_p GenoPro::sequence::element_Shapes()
1006 GenoPro::Shapes_p node_p = NULL;
1007 XsdFsmBase* fsm_p = this->allFSMs()[15].get();
1010 XsdFSM<Shapes_ptr> *unitFsm = dynamic_cast<XsdFSM<Shapes_ptr> *>(fsm_p);
1011 if(unitFsm && unitFsm->nodeList().size()>0) {
1012 assert(unitFsm->nodeList().size()==1);
1013 node_p = unitFsm->nodeList().at(0);
1017 FSM::warnNullNode(node_p, "Shapes", "{}Shapes", 0);
1024 void GenoPro::sequence::mark_present_Shapes()
1026 DOMStringPtr nsUriPtr = new DOMString("libgno");
1027 XsdEvent event(nsUriPtr, NULL, DOMString("Shapes"), XsdEvent::ELEMENT_START, false);
1028 this->processEventThrow(event);
1033 GenoPro::SocialRelationships_p GenoPro::sequence::element_SocialRelationships()
1035 GenoPro::SocialRelationships_p node_p = NULL;
1036 XsdFsmBase* fsm_p = this->allFSMs()[16].get();
1039 XsdFSM<SocialRelationships_ptr> *unitFsm = dynamic_cast<XsdFSM<SocialRelationships_ptr> *>(fsm_p);
1040 if(unitFsm && unitFsm->nodeList().size()>0) {
1041 assert(unitFsm->nodeList().size()==1);
1042 node_p = unitFsm->nodeList().at(0);
1046 FSM::warnNullNode(node_p, "SocialRelationships", "{}SocialRelationships", 0);
1053 void GenoPro::sequence::mark_present_SocialRelationships()
1055 DOMStringPtr nsUriPtr = new DOMString("libgno");
1056 XsdEvent event(nsUriPtr, NULL, DOMString("SocialRelationships"), XsdEvent::ELEMENT_START, false);
1057 this->processEventThrow(event);
1064 GenoPro::Software::Software(ElementCreateArgs args):
1065 XMLSchema::XmlElement<anyType>(args),
1070 , _sequence(new sequence(this) )
1073 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
1075 if(args.ownerDoc && args.ownerDoc->buildTree())
1077 if(args.ownerDoc->createSample()) {
1078 _fsm->fireSampleEvents();
1081 _fsm->fireRequiredEvents();
1086 void GenoPro::Software::initFSM()
1088 XsdFsmBasePtr fsmsAttrs[] = {
1093 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
1095 _fsm->replaceContentFsm(_sequence);
1097 _fsmAttrs = _fsm->attributeFsm();
1098 _fsmElems = _fsm->contentFsm();
1102 /* element functions */
1105 GenoPro::Software::Name_ptr GenoPro::Software::create_Name(FsmCbOptions& options)
1107 static DOMStringPtr myName = new DOMString("Name");
1108 static DOMStringPtr myNsUri = new DOMString("libgno");
1110 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
1111 GenoPro::Software::Name_p node = XSD::createElementTmpl<Name, XMLSchema::Types::bt_string*>(t);
1113 if(options.isSampleCreate && (node->stringValue() == "") ) {
1114 node->stringValue(node->sampleValue());
1123 GenoPro::Software::Name_p GenoPro::Software::element_Name()
1125 FSM::warnNullNode(_Name, "Name", "{http://www.w3.org/2001/XMLSchema}Name", 0);
1129 void GenoPro::Software::set_Name(DOMString val)
1131 get_sequence()->set_Name(val);
1134 DOMString GenoPro::Software::get_Name_string()
1136 return get_sequence()->get_Name_string();
1140 void GenoPro::Software::mark_present_Name()
1142 return get_sequence()->mark_present_Name();
1146 GenoPro::Software::Version_ptr GenoPro::Software::create_Version(FsmCbOptions& options)
1148 static DOMStringPtr myName = new DOMString("Version");
1149 static DOMStringPtr myNsUri = new DOMString("libgno");
1151 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
1152 GenoPro::Software::Version_p node = XSD::createElementTmpl<Version, XMLSchema::Types::bt_normalizedString*>(t);
1154 if(options.isSampleCreate && (node->stringValue() == "") ) {
1155 node->stringValue(node->sampleValue());
1164 GenoPro::Software::Version_p GenoPro::Software::element_Version()
1166 FSM::warnNullNode(_Version, "Version", "{http://www.w3.org/2001/XMLSchema}Version", 0);
1170 void GenoPro::Software::set_Version(DOMString val)
1172 get_sequence()->set_Version(val);
1175 DOMString GenoPro::Software::get_Version_string()
1177 return get_sequence()->get_Version_string();
1181 void GenoPro::Software::mark_present_Version()
1183 return get_sequence()->mark_present_Version();
1187 GenoPro::Software::Address_ptr GenoPro::Software::create_Address(FsmCbOptions& options)
1189 static DOMStringPtr myName = new DOMString("Address");
1190 static DOMStringPtr myNsUri = new DOMString("libgno");
1192 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "anyURI");
1193 GenoPro::Software::Address_p node = XSD::createElementTmpl<Address, XMLSchema::Types::bt_anyURI*>(t);
1195 if(options.isSampleCreate && (node->stringValue() == "") ) {
1196 node->stringValue(node->sampleValue());
1205 GenoPro::Software::Address_p GenoPro::Software::element_Address()
1207 FSM::warnNullNode(_Address, "Address", "{http://www.w3.org/2001/XMLSchema}Address", 0);
1211 void GenoPro::Software::set_Address(DOMString val)
1213 get_sequence()->set_Address(val);
1216 DOMString GenoPro::Software::get_Address_string()
1218 return get_sequence()->get_Address_string();
1222 void GenoPro::Software::mark_present_Address()
1224 return get_sequence()->mark_present_Address();
1228 /* attribute functions */
1231 GenoPro::Software::sequence::sequence(Software* that):
1234 XsdFsmBasePtr fsmArray[] = {
1235 new XsdFSM<Name_ptr>( Particle(new DOMString("libgno"), DOMString("Name"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Name_ptr, Software, FsmCbOptions>(_that, &Software::create_Name)),
1236 new XsdFSM<Version_ptr>( Particle(new DOMString("libgno"), DOMString("Version"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Version_ptr, Software, FsmCbOptions>(_that, &Software::create_Version)),
1237 new XsdFSM<Address_ptr>( Particle(new DOMString("libgno"), DOMString("Address"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Address_ptr, Software, FsmCbOptions>(_that, &Software::create_Address)),
1242 XsdSequenceFsmOfFSMs::init(fsmArray);
1247 GenoPro::Software::Name_p GenoPro::Software::sequence::element_Name()
1249 GenoPro::Software::Name_p node_p = NULL;
1250 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
1253 XsdFSM<Name_ptr> *unitFsm = dynamic_cast<XsdFSM<Name_ptr> *>(fsm_p);
1254 if(unitFsm && unitFsm->nodeList().size()>0) {
1255 assert(unitFsm->nodeList().size()==1);
1256 node_p = unitFsm->nodeList().at(0);
1260 FSM::warnNullNode(node_p, "Name", "{http://www.w3.org/2001/XMLSchema}Name", 0);
1266 void GenoPro::Software::sequence::set_Name(DOMString val)
1269 mark_present_Name();
1271 element_Name()->stringValue(val);
1274 DOMString GenoPro::Software::sequence::get_Name_string()
1276 return element_Name()->stringValue();
1281 void GenoPro::Software::sequence::mark_present_Name()
1283 DOMStringPtr nsUriPtr = new DOMString("libgno");
1284 XsdEvent event(nsUriPtr, NULL, DOMString("Name"), XsdEvent::ELEMENT_START, false);
1285 this->processEventThrow(event);
1290 GenoPro::Software::Version_p GenoPro::Software::sequence::element_Version()
1292 GenoPro::Software::Version_p node_p = NULL;
1293 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
1296 XsdFSM<Version_ptr> *unitFsm = dynamic_cast<XsdFSM<Version_ptr> *>(fsm_p);
1297 if(unitFsm && unitFsm->nodeList().size()>0) {
1298 assert(unitFsm->nodeList().size()==1);
1299 node_p = unitFsm->nodeList().at(0);
1303 FSM::warnNullNode(node_p, "Version", "{http://www.w3.org/2001/XMLSchema}Version", 0);
1309 void GenoPro::Software::sequence::set_Version(DOMString val)
1312 mark_present_Version();
1314 element_Version()->stringValue(val);
1317 DOMString GenoPro::Software::sequence::get_Version_string()
1319 return element_Version()->stringValue();
1324 void GenoPro::Software::sequence::mark_present_Version()
1326 DOMStringPtr nsUriPtr = new DOMString("libgno");
1327 XsdEvent event(nsUriPtr, NULL, DOMString("Version"), XsdEvent::ELEMENT_START, false);
1328 this->processEventThrow(event);
1333 GenoPro::Software::Address_p GenoPro::Software::sequence::element_Address()
1335 GenoPro::Software::Address_p node_p = NULL;
1336 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
1339 XsdFSM<Address_ptr> *unitFsm = dynamic_cast<XsdFSM<Address_ptr> *>(fsm_p);
1340 if(unitFsm && unitFsm->nodeList().size()>0) {
1341 assert(unitFsm->nodeList().size()==1);
1342 node_p = unitFsm->nodeList().at(0);
1346 FSM::warnNullNode(node_p, "Address", "{http://www.w3.org/2001/XMLSchema}Address", 0);
1352 void GenoPro::Software::sequence::set_Address(DOMString val)
1355 mark_present_Address();
1357 element_Address()->stringValue(val);
1360 DOMString GenoPro::Software::sequence::get_Address_string()
1362 return element_Address()->stringValue();
1367 void GenoPro::Software::sequence::mark_present_Address()
1369 DOMStringPtr nsUriPtr = new DOMString("libgno");
1370 XsdEvent event(nsUriPtr, NULL, DOMString("Address"), XsdEvent::ELEMENT_START, false);
1371 this->processEventThrow(event);
1378 GenoPro::Global::Global(ElementCreateArgs args):
1379 XMLSchema::XmlElement<anyType>(args),
1384 , _sequence(new sequence(this) )
1387 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
1389 if(args.ownerDoc && args.ownerDoc->buildTree())
1391 if(args.ownerDoc->createSample()) {
1392 _fsm->fireSampleEvents();
1395 _fsm->fireRequiredEvents();
1400 void GenoPro::Global::initFSM()
1402 XsdFsmBasePtr fsmsAttrs[] = {
1407 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
1409 _fsm->replaceContentFsm(_sequence);
1411 _fsmAttrs = _fsm->attributeFsm();
1412 _fsmElems = _fsm->contentFsm();
1416 /* element functions */
1418 #ifndef __Global_Name_member_elems_fns
1419 #define __Global_Name_member_elems_fns
1422 GenoPro::Global::Name_ptr GenoPro::Global::create_Name(FsmCbOptions& options)
1424 static DOMStringPtr myName = new DOMString("Name");
1425 static DOMStringPtr myNsUri = new DOMString("libgno");
1427 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
1428 GenoPro::Global::Name_p node = XSD::createElementTmpl<Name, void*>(t);
1436 GenoPro::Global::Name_p GenoPro::Global::element_Name()
1438 FSM::warnNullNode(_Name, "Name", "{}Name", 0);
1442 void GenoPro::Global::mark_present_Name()
1444 return get_sequence()->mark_present_Name();
1447 #endif // __Global_Name_member_elems_fns
1450 GenoPro::Global::Font_ptr GenoPro::Global::create_Font(FsmCbOptions& options)
1452 static DOMStringPtr myName = new DOMString("Font");
1453 static DOMStringPtr myNsUri = new DOMString("libgno");
1455 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
1456 GenoPro::Global::Font_p node = XSD::createElementTmpl<Font, XMLSchema::Types::bt_string*>(t);
1458 if(options.isSampleCreate && (node->stringValue() == "") ) {
1459 node->stringValue(node->sampleValue());
1468 GenoPro::Global::Font_p GenoPro::Global::element_Font()
1470 FSM::warnNullNode(_Font, "Font", "{http://www.w3.org/2001/XMLSchema}Font", 0);
1474 void GenoPro::Global::set_Font(DOMString val)
1476 get_sequence()->set_Font(val);
1479 DOMString GenoPro::Global::get_Font_string()
1481 return get_sequence()->get_Font_string();
1485 void GenoPro::Global::mark_present_Font()
1487 return get_sequence()->mark_present_Font();
1490 #ifndef __Global_Display_member_elems_fns
1491 #define __Global_Display_member_elems_fns
1494 GenoPro::Global::Display_ptr GenoPro::Global::create_Display(FsmCbOptions& options)
1496 static DOMStringPtr myName = new DOMString("Display");
1497 static DOMStringPtr myNsUri = new DOMString("libgno");
1499 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
1500 GenoPro::Global::Display_p node = XSD::createElementTmpl<Display, void*>(t);
1508 GenoPro::Global::Display_p GenoPro::Global::element_Display()
1510 FSM::warnNullNode(_Display, "Display", "{}Display", 0);
1514 void GenoPro::Global::mark_present_Display()
1516 return get_sequence()->mark_present_Display();
1519 #endif // __Global_Display_member_elems_fns
1521 #ifndef __Global_Tags_member_elems_fns
1522 #define __Global_Tags_member_elems_fns
1525 GenoPro::Global::Tags_ptr GenoPro::Global::create_Tags(FsmCbOptions& options)
1527 static DOMStringPtr myName = new DOMString("Tags");
1528 static DOMStringPtr myNsUri = new DOMString("libgno");
1530 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
1531 GenoPro::Global::Tags_p node = XSD::createElementTmpl<Tags, void*>(t);
1533 _list_Tags.push_back(node);
1539 GenoPro::Global::Tags_p GenoPro::Global::element_Tags_at(unsigned int idx)
1541 if(idx > _list_Tags.size()-1) {
1542 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
1545 return _list_Tags.at(idx);
1548 List<GenoPro::Global::Tags_ptr> GenoPro::Global::elements_Tags()
1553 GenoPro::Global::Tags_p GenoPro::Global::add_node_Tags()
1555 return get_sequence()->add_node_Tags();
1558 List<GenoPro::Global::Tags_ptr> GenoPro::Global::set_count_Tags(unsigned int size)
1560 return get_sequence()->set_count_Tags(size);
1564 #endif // __Global_Tags_member_elems_fns
1567 GenoPro::Global::Document_ptr GenoPro::Global::create_Document(FsmCbOptions& options)
1569 static DOMStringPtr myName = new DOMString("Document");
1570 static DOMStringPtr myNsUri = new DOMString("libgno");
1572 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
1573 GenoPro::Global::Document_p node = XSD::createElementTmpl<Document, void*>(t);
1581 GenoPro::Global::Document_p GenoPro::Global::element_Document()
1583 FSM::warnNullNode(_Document, "Document", "{}Document", 0);
1587 void GenoPro::Global::mark_present_Document()
1589 return get_sequence()->mark_present_Document();
1593 GenoPro::Global::ActiveGenoMap_ptr GenoPro::Global::create_ActiveGenoMap(FsmCbOptions& options)
1595 static DOMStringPtr myName = new DOMString("ActiveGenoMap");
1596 static DOMStringPtr myNsUri = new DOMString("libgno");
1598 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
1599 GenoPro::Global::ActiveGenoMap_p node = XSD::createElementTmpl<ActiveGenoMap, XMLSchema::Types::bt_normalizedString*>(t);
1601 if(options.isSampleCreate && (node->stringValue() == "") ) {
1602 node->stringValue(node->sampleValue());
1605 _ActiveGenoMap = node;
1611 GenoPro::Global::ActiveGenoMap_p GenoPro::Global::element_ActiveGenoMap()
1613 FSM::warnNullNode(_ActiveGenoMap, "ActiveGenoMap", "{http://www.w3.org/2001/XMLSchema}ActiveGenoMap", 0);
1614 return _ActiveGenoMap;
1617 void GenoPro::Global::set_ActiveGenoMap(DOMString val)
1619 get_sequence()->set_ActiveGenoMap(val);
1622 DOMString GenoPro::Global::get_ActiveGenoMap_string()
1624 return get_sequence()->get_ActiveGenoMap_string();
1628 void GenoPro::Global::mark_present_ActiveGenoMap()
1630 return get_sequence()->mark_present_ActiveGenoMap();
1634 GenoPro::Global::Options_ptr GenoPro::Global::create_Options(FsmCbOptions& options)
1636 static DOMStringPtr myName = new DOMString("Options");
1637 static DOMStringPtr myNsUri = new DOMString("libgno");
1639 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
1640 GenoPro::Global::Options_p node = XSD::createElementTmpl<Options, void*>(t);
1642 if(options.isSampleCreate && (node->stringValue() == "") ) {
1643 node->stringValue(node->sampleValue());
1652 GenoPro::Global::Options_p GenoPro::Global::element_Options()
1654 FSM::warnNullNode(_Options, "Options", "{}Options", 0);
1658 void GenoPro::Global::mark_present_Options()
1660 return get_sequence()->mark_present_Options();
1664 /* attribute functions */
1667 GenoPro::Global::sequence::sequence(Global* that):
1670 XsdFsmBasePtr fsmArray[] = {
1671 new XsdFSM<Name_ptr>( Particle(new DOMString("libgno"), DOMString("Name"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Name_ptr, Global, FsmCbOptions>(_that, &Global::create_Name)),
1672 new XsdFSM<Font_ptr>( Particle(new DOMString("libgno"), DOMString("Font"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Font_ptr, Global, FsmCbOptions>(_that, &Global::create_Font)),
1673 new XsdFSM<Display_ptr>( Particle(new DOMString("libgno"), DOMString("Display"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Display_ptr, Global, FsmCbOptions>(_that, &Global::create_Display)),
1674 new XsdFSM<Tags_ptr>( Particle(new DOMString("libgno"), DOMString("Tags"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Tags_ptr, Global, FsmCbOptions>(_that, &Global::create_Tags)),
1675 new XsdFSM<Document_ptr>( Particle(new DOMString("libgno"), DOMString("Document"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Document_ptr, Global, FsmCbOptions>(_that, &Global::create_Document)),
1676 new XsdFSM<ActiveGenoMap_ptr>( Particle(new DOMString("libgno"), DOMString("ActiveGenoMap"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<ActiveGenoMap_ptr, Global, FsmCbOptions>(_that, &Global::create_ActiveGenoMap)),
1677 new XsdFSM<Options_ptr>( Particle(new DOMString("libgno"), DOMString("Options"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Options_ptr, Global, FsmCbOptions>(_that, &Global::create_Options)),
1682 XsdSequenceFsmOfFSMs::init(fsmArray);
1687 GenoPro::Global::Name_p GenoPro::Global::sequence::element_Name()
1689 GenoPro::Global::Name_p node_p = NULL;
1690 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
1693 XsdFSM<Name_ptr> *unitFsm = dynamic_cast<XsdFSM<Name_ptr> *>(fsm_p);
1694 if(unitFsm && unitFsm->nodeList().size()>0) {
1695 assert(unitFsm->nodeList().size()==1);
1696 node_p = unitFsm->nodeList().at(0);
1700 FSM::warnNullNode(node_p, "Name", "{}Name", 0);
1707 void GenoPro::Global::sequence::mark_present_Name()
1709 DOMStringPtr nsUriPtr = new DOMString("libgno");
1710 XsdEvent event(nsUriPtr, NULL, DOMString("Name"), XsdEvent::ELEMENT_START, false);
1711 this->processEventThrow(event);
1716 GenoPro::Global::Font_p GenoPro::Global::sequence::element_Font()
1718 GenoPro::Global::Font_p node_p = NULL;
1719 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
1722 XsdFSM<Font_ptr> *unitFsm = dynamic_cast<XsdFSM<Font_ptr> *>(fsm_p);
1723 if(unitFsm && unitFsm->nodeList().size()>0) {
1724 assert(unitFsm->nodeList().size()==1);
1725 node_p = unitFsm->nodeList().at(0);
1729 FSM::warnNullNode(node_p, "Font", "{http://www.w3.org/2001/XMLSchema}Font", 0);
1735 void GenoPro::Global::sequence::set_Font(DOMString val)
1738 mark_present_Font();
1740 element_Font()->stringValue(val);
1743 DOMString GenoPro::Global::sequence::get_Font_string()
1745 return element_Font()->stringValue();
1750 void GenoPro::Global::sequence::mark_present_Font()
1752 DOMStringPtr nsUriPtr = new DOMString("libgno");
1753 XsdEvent event(nsUriPtr, NULL, DOMString("Font"), XsdEvent::ELEMENT_START, false);
1754 this->processEventThrow(event);
1759 GenoPro::Global::Display_p GenoPro::Global::sequence::element_Display()
1761 GenoPro::Global::Display_p node_p = NULL;
1762 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
1765 XsdFSM<Display_ptr> *unitFsm = dynamic_cast<XsdFSM<Display_ptr> *>(fsm_p);
1766 if(unitFsm && unitFsm->nodeList().size()>0) {
1767 assert(unitFsm->nodeList().size()==1);
1768 node_p = unitFsm->nodeList().at(0);
1772 FSM::warnNullNode(node_p, "Display", "{}Display", 0);
1779 void GenoPro::Global::sequence::mark_present_Display()
1781 DOMStringPtr nsUriPtr = new DOMString("libgno");
1782 XsdEvent event(nsUriPtr, NULL, DOMString("Display"), XsdEvent::ELEMENT_START, false);
1783 this->processEventThrow(event);
1788 List<GenoPro::Global::Tags_ptr> GenoPro::Global::sequence::elements_Tags()
1791 List<Tags_ptr> nodeList;
1792 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
1795 XsdFSM<Tags_ptr> *unitFsm = dynamic_cast<XsdFSM<Tags_ptr> *>(fsm_p);
1797 //nodeList = unitFsm->nodeList().stl_list();
1798 nodeList = unitFsm->nodeList();
1806 GenoPro::Global::Tags_p GenoPro::Global::sequence::element_Tags_at(unsigned int idx)
1808 return elements_Tags().at(idx);
1812 GenoPro::Global::Tags_p GenoPro::Global::sequence::add_node_Tags()
1814 DOMStringPtr nsUriPtr = new DOMString("libgno");
1815 XsdEvent event(nsUriPtr, NULL, DOMString("Tags"), XsdEvent::ELEMENT_START, false);
1816 this->processEventThrow(event);
1817 return elements_Tags().back();
1820 List<GenoPro::Global::Tags_ptr> GenoPro::Global::sequence::set_count_Tags(unsigned int size)
1822 if( (size > -1) || (size < 1)) {
1824 oss << "set_count_Tags: size should be in range: [" << 1
1825 << "," << "unbounded" << "]";
1826 throw IndexOutOfBoundsException(oss.str());
1829 unsigned int prevSize = elements_Tags().size();
1830 if(size < prevSize) {
1831 //FIXME: allow later:
1832 throw XPlus::RuntimeException("resize lesser than current size not allowed");
1835 for(unsigned int j=prevSize; j<size; j++)
1837 // pretend docBuilding to avoid computation of adding after first loop
1838 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Tags"), XsdEvent::ELEMENT_START, false);
1839 this->processEventThrow(event);
1842 return elements_Tags();
1847 GenoPro::Global::Document_p GenoPro::Global::sequence::element_Document()
1849 GenoPro::Global::Document_p node_p = NULL;
1850 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
1853 XsdFSM<Document_ptr> *unitFsm = dynamic_cast<XsdFSM<Document_ptr> *>(fsm_p);
1854 if(unitFsm && unitFsm->nodeList().size()>0) {
1855 assert(unitFsm->nodeList().size()==1);
1856 node_p = unitFsm->nodeList().at(0);
1860 FSM::warnNullNode(node_p, "Document", "{}Document", 0);
1867 void GenoPro::Global::sequence::mark_present_Document()
1869 DOMStringPtr nsUriPtr = new DOMString("libgno");
1870 XsdEvent event(nsUriPtr, NULL, DOMString("Document"), XsdEvent::ELEMENT_START, false);
1871 this->processEventThrow(event);
1876 GenoPro::Global::ActiveGenoMap_p GenoPro::Global::sequence::element_ActiveGenoMap()
1878 GenoPro::Global::ActiveGenoMap_p node_p = NULL;
1879 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
1882 XsdFSM<ActiveGenoMap_ptr> *unitFsm = dynamic_cast<XsdFSM<ActiveGenoMap_ptr> *>(fsm_p);
1883 if(unitFsm && unitFsm->nodeList().size()>0) {
1884 assert(unitFsm->nodeList().size()==1);
1885 node_p = unitFsm->nodeList().at(0);
1889 FSM::warnNullNode(node_p, "ActiveGenoMap", "{http://www.w3.org/2001/XMLSchema}ActiveGenoMap", 0);
1895 void GenoPro::Global::sequence::set_ActiveGenoMap(DOMString val)
1898 mark_present_ActiveGenoMap();
1900 element_ActiveGenoMap()->stringValue(val);
1903 DOMString GenoPro::Global::sequence::get_ActiveGenoMap_string()
1905 return element_ActiveGenoMap()->stringValue();
1910 void GenoPro::Global::sequence::mark_present_ActiveGenoMap()
1912 DOMStringPtr nsUriPtr = new DOMString("libgno");
1913 XsdEvent event(nsUriPtr, NULL, DOMString("ActiveGenoMap"), XsdEvent::ELEMENT_START, false);
1914 this->processEventThrow(event);
1919 GenoPro::Global::Options_p GenoPro::Global::sequence::element_Options()
1921 GenoPro::Global::Options_p node_p = NULL;
1922 XsdFsmBase* fsm_p = this->allFSMs()[6].get();
1925 XsdFSM<Options_ptr> *unitFsm = dynamic_cast<XsdFSM<Options_ptr> *>(fsm_p);
1926 if(unitFsm && unitFsm->nodeList().size()>0) {
1927 assert(unitFsm->nodeList().size()==1);
1928 node_p = unitFsm->nodeList().at(0);
1932 FSM::warnNullNode(node_p, "Options", "{}Options", 0);
1939 void GenoPro::Global::sequence::mark_present_Options()
1941 DOMStringPtr nsUriPtr = new DOMString("libgno");
1942 XsdEvent event(nsUriPtr, NULL, DOMString("Options"), XsdEvent::ELEMENT_START, false);
1943 this->processEventThrow(event);
1950 GenoPro::Global::Name::Name(ElementCreateArgs args):
1951 XMLSchema::XmlElement<anyType>(args),
1956 , _sequence(new sequence(this) )
1959 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
1961 if(args.ownerDoc && args.ownerDoc->buildTree())
1963 if(args.ownerDoc->createSample()) {
1964 _fsm->fireSampleEvents();
1967 _fsm->fireRequiredEvents();
1972 void GenoPro::Global::Name::initFSM()
1974 XsdFsmBasePtr fsmsAttrs[] = {
1979 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
1981 _fsm->replaceContentFsm(_sequence);
1983 _fsmAttrs = _fsm->attributeFsm();
1984 _fsmElems = _fsm->contentFsm();
1988 /* element functions */
1991 GenoPro::Global::Name::Full_ptr GenoPro::Global::Name::create_Full(FsmCbOptions& options)
1993 static DOMStringPtr myName = new DOMString("Full");
1994 static DOMStringPtr myNsUri = new DOMString("libgno");
1996 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
1997 GenoPro::Global::Name::Full_p node = XSD::createElementTmpl<Full, void*>(t);
1999 if(options.isSampleCreate && (node->stringValue() == "") ) {
2000 node->stringValue(node->sampleValue());
2009 GenoPro::Global::Name::Full_p GenoPro::Global::Name::element_Full()
2011 FSM::warnNullNode(_Full, "Full", "{}Full", 0);
2015 void GenoPro::Global::Name::mark_present_Full()
2017 return get_sequence()->mark_present_Full();
2021 GenoPro::Global::Name::Display_ptr GenoPro::Global::Name::create_Display(FsmCbOptions& options)
2023 static DOMStringPtr myName = new DOMString("Display");
2024 static DOMStringPtr myNsUri = new DOMString("libgno");
2026 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
2027 GenoPro::Global::Name::Display_p node = XSD::createElementTmpl<Display, void*>(t);
2029 if(options.isSampleCreate && (node->stringValue() == "") ) {
2030 node->stringValue(node->sampleValue());
2039 GenoPro::Global::Name::Display_p GenoPro::Global::Name::element_Display()
2041 FSM::warnNullNode(_Display, "Display", "{}Display", 0);
2045 void GenoPro::Global::Name::mark_present_Display()
2047 return get_sequence()->mark_present_Display();
2051 /* attribute functions */
2054 GenoPro::Global::Name::sequence::sequence(Name* that):
2057 XsdFsmBasePtr fsmArray[] = {
2058 new XsdFSM<Full_ptr>( Particle(new DOMString("libgno"), DOMString("Full"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Full_ptr, Name, FsmCbOptions>(_that, &Name::create_Full)),
2059 new XsdFSM<Display_ptr>( Particle(new DOMString("libgno"), DOMString("Display"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Display_ptr, Name, FsmCbOptions>(_that, &Name::create_Display)),
2064 XsdSequenceFsmOfFSMs::init(fsmArray);
2069 GenoPro::Global::Name::Full_p GenoPro::Global::Name::sequence::element_Full()
2071 GenoPro::Global::Name::Full_p node_p = NULL;
2072 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
2075 XsdFSM<Full_ptr> *unitFsm = dynamic_cast<XsdFSM<Full_ptr> *>(fsm_p);
2076 if(unitFsm && unitFsm->nodeList().size()>0) {
2077 assert(unitFsm->nodeList().size()==1);
2078 node_p = unitFsm->nodeList().at(0);
2082 FSM::warnNullNode(node_p, "Full", "{}Full", 0);
2089 void GenoPro::Global::Name::sequence::mark_present_Full()
2091 DOMStringPtr nsUriPtr = new DOMString("libgno");
2092 XsdEvent event(nsUriPtr, NULL, DOMString("Full"), XsdEvent::ELEMENT_START, false);
2093 this->processEventThrow(event);
2098 GenoPro::Global::Name::Display_p GenoPro::Global::Name::sequence::element_Display()
2100 GenoPro::Global::Name::Display_p node_p = NULL;
2101 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
2104 XsdFSM<Display_ptr> *unitFsm = dynamic_cast<XsdFSM<Display_ptr> *>(fsm_p);
2105 if(unitFsm && unitFsm->nodeList().size()>0) {
2106 assert(unitFsm->nodeList().size()==1);
2107 node_p = unitFsm->nodeList().at(0);
2111 FSM::warnNullNode(node_p, "Display", "{}Display", 0);
2118 void GenoPro::Global::Name::sequence::mark_present_Display()
2120 DOMStringPtr nsUriPtr = new DOMString("libgno");
2121 XsdEvent event(nsUriPtr, NULL, DOMString("Display"), XsdEvent::ELEMENT_START, false);
2122 this->processEventThrow(event);
2128 GenoPro::Global::Name::Full::Full(ElementCreateArgs args):
2129 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
2139 if(args.ownerDoc && args.ownerDoc->buildTree())
2142 if(args.ownerDoc->createSample()) {
2143 _fsm->fireSampleEvents();
2146 _fsm->fireRequiredEvents();
2151 void GenoPro::Global::Name::Full::initFSM()
2153 XsdFsmBasePtr fsmsAttrs[] = {
2154 new XsdFSM<attr_Format_ptr>( Particle(NULL, DOMString("Format"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Format_ptr, Full, FsmCbOptions>(this, &Full::create_attr_Format)),
2159 _fsm->appendAttributeFsms(fsmsAttrs);
2160 _fsmAttrs = _fsm->attributeFsm();
2161 _fsmElems = _fsm->contentFsm();
2165 /* element functions */
2168 /* attribute functions */
2171 GenoPro::Global::Name::Full::attr_Format_ptr GenoPro::Global::Name::Full::create_attr_Format(FsmCbOptions& options)
2173 static DOMStringPtr myName = new DOMString("Format");
2174 static DOMStringPtr myNsUri = NULL;
2177 return _attr_Format;
2179 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
2180 GenoPro::Global::Name::Full::attr_Format_p node = XSD::createAttributeTmpl<attr_Format>(t);
2182 if(options.isSampleCreate && (node->stringValue() == "") ) {
2183 node->stringValue(node->sampleValue());
2186 _attr_Format = node;
2192 void GenoPro::Global::Name::Full::set_attr_Format(DOMString val)
2195 attribute_attr_Format()->stringValue(val);
2198 DOMString GenoPro::Global::Name::Full::get_attr_Format_string()
2201 return attribute_attr_Format()->stringValue();
2205 GenoPro::Global::Name::Full::attr_Format_p GenoPro::Global::Name::Full::attribute_attr_Format()
2207 FSM::warnNullNode(_attr_Format, "attr_Format", "{http://www.w3.org/2001/XMLSchema}Format", 1);
2208 return _attr_Format;
2213 GenoPro::Global::Name::Display::Display(ElementCreateArgs args):
2214 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
2224 if(args.ownerDoc && args.ownerDoc->buildTree())
2227 if(args.ownerDoc->createSample()) {
2228 _fsm->fireSampleEvents();
2231 _fsm->fireRequiredEvents();
2236 void GenoPro::Global::Name::Display::initFSM()
2238 XsdFsmBasePtr fsmsAttrs[] = {
2239 new XsdFSM<attr_Format_ptr>( Particle(NULL, DOMString("Format"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Format_ptr, Display, FsmCbOptions>(this, &Display::create_attr_Format)),
2240 new XsdFSM<attr_Lines_ptr>( Particle(NULL, DOMString("Lines"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Lines_ptr, Display, FsmCbOptions>(this, &Display::create_attr_Lines)),
2245 _fsm->appendAttributeFsms(fsmsAttrs);
2246 _fsmAttrs = _fsm->attributeFsm();
2247 _fsmElems = _fsm->contentFsm();
2251 /* element functions */
2254 /* attribute functions */
2257 GenoPro::Global::Name::Display::attr_Format_ptr GenoPro::Global::Name::Display::create_attr_Format(FsmCbOptions& options)
2259 static DOMStringPtr myName = new DOMString("Format");
2260 static DOMStringPtr myNsUri = NULL;
2263 return _attr_Format;
2265 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
2266 GenoPro::Global::Name::Display::attr_Format_p node = XSD::createAttributeTmpl<attr_Format>(t);
2268 if(options.isSampleCreate && (node->stringValue() == "") ) {
2269 node->stringValue(node->sampleValue());
2272 _attr_Format = node;
2278 void GenoPro::Global::Name::Display::set_attr_Format(DOMString val)
2281 attribute_attr_Format()->stringValue(val);
2284 DOMString GenoPro::Global::Name::Display::get_attr_Format_string()
2287 return attribute_attr_Format()->stringValue();
2291 GenoPro::Global::Name::Display::attr_Format_p GenoPro::Global::Name::Display::attribute_attr_Format()
2293 FSM::warnNullNode(_attr_Format, "attr_Format", "{http://www.w3.org/2001/XMLSchema}Format", 1);
2294 return _attr_Format;
2298 GenoPro::Global::Name::Display::attr_Lines_ptr GenoPro::Global::Name::Display::create_attr_Lines(FsmCbOptions& options)
2300 static DOMStringPtr myName = new DOMString("Lines");
2301 static DOMStringPtr myNsUri = NULL;
2306 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
2307 GenoPro::Global::Name::Display::attr_Lines_p node = XSD::createAttributeTmpl<attr_Lines>(t);
2309 if(options.isSampleCreate && (node->stringValue() == "") ) {
2310 node->stringValue(node->sampleValue());
2319 void GenoPro::Global::Name::Display::set_attr_Lines(DOMString val)
2322 attribute_attr_Lines()->stringValue(val);
2325 DOMString GenoPro::Global::Name::Display::get_attr_Lines_string()
2328 return attribute_attr_Lines()->stringValue();
2332 void GenoPro::Global::Name::Display::set_attr_Lines(int val)
2335 attribute_attr_Lines()->value(val);
2338 int GenoPro::Global::Name::Display::get_attr_Lines()
2341 return attribute_attr_Lines()->value();
2345 GenoPro::Global::Name::Display::attr_Lines_p GenoPro::Global::Name::Display::attribute_attr_Lines()
2347 FSM::warnNullNode(_attr_Lines, "attr_Lines", "{http://www.w3.org/2001/XMLSchema}Lines", 1);
2354 GenoPro::Global::Display::Display(ElementCreateArgs args):
2355 XMLSchema::XmlElement<anyType>(args),
2360 , _sequence(new sequence(this) )
2363 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
2365 if(args.ownerDoc && args.ownerDoc->buildTree())
2367 if(args.ownerDoc->createSample()) {
2368 _fsm->fireSampleEvents();
2371 _fsm->fireRequiredEvents();
2376 void GenoPro::Global::Display::initFSM()
2378 XsdFsmBasePtr fsmsAttrs[] = {
2383 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
2385 _fsm->replaceContentFsm(_sequence);
2387 _fsmAttrs = _fsm->attributeFsm();
2388 _fsmElems = _fsm->contentFsm();
2392 /* element functions */
2395 GenoPro::Global::Display::Tag_ptr GenoPro::Global::Display::create_Tag(FsmCbOptions& options)
2397 static DOMStringPtr myName = new DOMString("Tag");
2398 static DOMStringPtr myNsUri = new DOMString("libgno");
2400 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
2401 GenoPro::Global::Display::Tag_p node = XSD::createElementTmpl<Tag, XMLSchema::Types::bt_normalizedString*>(t);
2403 if(options.isSampleCreate && (node->stringValue() == "") ) {
2404 node->stringValue(node->sampleValue());
2413 GenoPro::Global::Display::Tag_p GenoPro::Global::Display::element_Tag()
2415 FSM::warnNullNode(_Tag, "Tag", "{http://www.w3.org/2001/XMLSchema}Tag", 0);
2419 void GenoPro::Global::Display::set_Tag(DOMString val)
2421 get_sequence()->set_Tag(val);
2424 DOMString GenoPro::Global::Display::get_Tag_string()
2426 return get_sequence()->get_Tag_string();
2430 void GenoPro::Global::Display::mark_present_Tag()
2432 return get_sequence()->mark_present_Tag();
2436 GenoPro::Global::Display::Colors_ptr GenoPro::Global::Display::create_Colors(FsmCbOptions& options)
2438 static DOMStringPtr myName = new DOMString("Colors");
2439 static DOMStringPtr myNsUri = new DOMString("libgno");
2441 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
2442 GenoPro::Global::Display::Colors_p node = XSD::createElementTmpl<Colors, void*>(t);
2450 GenoPro::Global::Display::Colors_p GenoPro::Global::Display::element_Colors()
2452 FSM::warnNullNode(_Colors, "Colors", "{}Colors", 0);
2456 void GenoPro::Global::Display::mark_present_Colors()
2458 return get_sequence()->mark_present_Colors();
2462 /* attribute functions */
2465 GenoPro::Global::Display::sequence::sequence(Display* that):
2468 XsdFsmBasePtr fsmArray[] = {
2469 new XsdFSM<Tag_ptr>( Particle(new DOMString("libgno"), DOMString("Tag"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Tag_ptr, Display, FsmCbOptions>(_that, &Display::create_Tag)),
2470 new XsdFSM<Colors_ptr>( Particle(new DOMString("libgno"), DOMString("Colors"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Colors_ptr, Display, FsmCbOptions>(_that, &Display::create_Colors)),
2475 XsdSequenceFsmOfFSMs::init(fsmArray);
2480 GenoPro::Global::Display::Tag_p GenoPro::Global::Display::sequence::element_Tag()
2482 GenoPro::Global::Display::Tag_p node_p = NULL;
2483 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
2486 XsdFSM<Tag_ptr> *unitFsm = dynamic_cast<XsdFSM<Tag_ptr> *>(fsm_p);
2487 if(unitFsm && unitFsm->nodeList().size()>0) {
2488 assert(unitFsm->nodeList().size()==1);
2489 node_p = unitFsm->nodeList().at(0);
2493 FSM::warnNullNode(node_p, "Tag", "{http://www.w3.org/2001/XMLSchema}Tag", 0);
2499 void GenoPro::Global::Display::sequence::set_Tag(DOMString val)
2504 element_Tag()->stringValue(val);
2507 DOMString GenoPro::Global::Display::sequence::get_Tag_string()
2509 return element_Tag()->stringValue();
2514 void GenoPro::Global::Display::sequence::mark_present_Tag()
2516 DOMStringPtr nsUriPtr = new DOMString("libgno");
2517 XsdEvent event(nsUriPtr, NULL, DOMString("Tag"), XsdEvent::ELEMENT_START, false);
2518 this->processEventThrow(event);
2523 GenoPro::Global::Display::Colors_p GenoPro::Global::Display::sequence::element_Colors()
2525 GenoPro::Global::Display::Colors_p node_p = NULL;
2526 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
2529 XsdFSM<Colors_ptr> *unitFsm = dynamic_cast<XsdFSM<Colors_ptr> *>(fsm_p);
2530 if(unitFsm && unitFsm->nodeList().size()>0) {
2531 assert(unitFsm->nodeList().size()==1);
2532 node_p = unitFsm->nodeList().at(0);
2536 FSM::warnNullNode(node_p, "Colors", "{}Colors", 0);
2543 void GenoPro::Global::Display::sequence::mark_present_Colors()
2545 DOMStringPtr nsUriPtr = new DOMString("libgno");
2546 XsdEvent event(nsUriPtr, NULL, DOMString("Colors"), XsdEvent::ELEMENT_START, false);
2547 this->processEventThrow(event);
2554 GenoPro::Global::Display::Colors::Colors(ElementCreateArgs args):
2555 XMLSchema::XmlElement<anyType>(args),
2560 , _sequence(new sequence(this) )
2563 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
2565 if(args.ownerDoc && args.ownerDoc->buildTree())
2567 if(args.ownerDoc->createSample()) {
2568 _fsm->fireSampleEvents();
2571 _fsm->fireRequiredEvents();
2576 void GenoPro::Global::Display::Colors::initFSM()
2578 XsdFsmBasePtr fsmsAttrs[] = {
2583 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
2585 _fsm->replaceContentFsm(_sequence);
2587 _fsmAttrs = _fsm->attributeFsm();
2588 _fsmElems = _fsm->contentFsm();
2592 /* element functions */
2595 GenoPro::Global::Display::Colors::Gender_ptr GenoPro::Global::Display::Colors::create_Gender(FsmCbOptions& options)
2597 static DOMStringPtr myName = new DOMString("Gender");
2598 static DOMStringPtr myNsUri = new DOMString("libgno");
2600 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
2601 GenoPro::Global::Display::Colors::Gender_p node = XSD::createElementTmpl<Gender, void*>(t);
2609 GenoPro::Global::Display::Colors::Gender_p GenoPro::Global::Display::Colors::element_Gender()
2611 FSM::warnNullNode(_Gender, "Gender", "{}Gender", 0);
2615 void GenoPro::Global::Display::Colors::mark_present_Gender()
2617 return get_sequence()->mark_present_Gender();
2621 GenoPro::Global::Display::Colors::Border_ptr GenoPro::Global::Display::Colors::create_Border(FsmCbOptions& options)
2623 static DOMStringPtr myName = new DOMString("Border");
2624 static DOMStringPtr myNsUri = new DOMString("libgno");
2626 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
2627 GenoPro::Global::Display::Colors::Border_p node = XSD::createElementTmpl<Border, void*>(t);
2635 GenoPro::Global::Display::Colors::Border_p GenoPro::Global::Display::Colors::element_Border()
2637 FSM::warnNullNode(_Border, "Border", "{}Border", 0);
2641 void GenoPro::Global::Display::Colors::mark_present_Border()
2643 return get_sequence()->mark_present_Border();
2647 GenoPro::Global::Display::Colors::Label_ptr GenoPro::Global::Display::Colors::create_Label(FsmCbOptions& options)
2649 static DOMStringPtr myName = new DOMString("Label");
2650 static DOMStringPtr myNsUri = new DOMString("libgno");
2652 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
2653 GenoPro::Global::Display::Colors::Label_p node = XSD::createElementTmpl<Label, void*>(t);
2661 GenoPro::Global::Display::Colors::Label_p GenoPro::Global::Display::Colors::element_Label()
2663 FSM::warnNullNode(_Label, "Label", "{}Label", 0);
2667 void GenoPro::Global::Display::Colors::mark_present_Label()
2669 return get_sequence()->mark_present_Label();
2673 /* attribute functions */
2676 GenoPro::Global::Display::Colors::sequence::sequence(Colors* that):
2679 XsdFsmBasePtr fsmArray[] = {
2680 new XsdFSM<Gender_ptr>( Particle(new DOMString("libgno"), DOMString("Gender"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Gender_ptr, Colors, FsmCbOptions>(_that, &Colors::create_Gender)),
2681 new XsdFSM<Border_ptr>( Particle(new DOMString("libgno"), DOMString("Border"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Border_ptr, Colors, FsmCbOptions>(_that, &Colors::create_Border)),
2682 new XsdFSM<Label_ptr>( Particle(new DOMString("libgno"), DOMString("Label"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Label_ptr, Colors, FsmCbOptions>(_that, &Colors::create_Label)),
2687 XsdSequenceFsmOfFSMs::init(fsmArray);
2692 GenoPro::Global::Display::Colors::Gender_p GenoPro::Global::Display::Colors::sequence::element_Gender()
2694 GenoPro::Global::Display::Colors::Gender_p node_p = NULL;
2695 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
2698 XsdFSM<Gender_ptr> *unitFsm = dynamic_cast<XsdFSM<Gender_ptr> *>(fsm_p);
2699 if(unitFsm && unitFsm->nodeList().size()>0) {
2700 assert(unitFsm->nodeList().size()==1);
2701 node_p = unitFsm->nodeList().at(0);
2705 FSM::warnNullNode(node_p, "Gender", "{}Gender", 0);
2712 void GenoPro::Global::Display::Colors::sequence::mark_present_Gender()
2714 DOMStringPtr nsUriPtr = new DOMString("libgno");
2715 XsdEvent event(nsUriPtr, NULL, DOMString("Gender"), XsdEvent::ELEMENT_START, false);
2716 this->processEventThrow(event);
2721 GenoPro::Global::Display::Colors::Border_p GenoPro::Global::Display::Colors::sequence::element_Border()
2723 GenoPro::Global::Display::Colors::Border_p node_p = NULL;
2724 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
2727 XsdFSM<Border_ptr> *unitFsm = dynamic_cast<XsdFSM<Border_ptr> *>(fsm_p);
2728 if(unitFsm && unitFsm->nodeList().size()>0) {
2729 assert(unitFsm->nodeList().size()==1);
2730 node_p = unitFsm->nodeList().at(0);
2734 FSM::warnNullNode(node_p, "Border", "{}Border", 0);
2741 void GenoPro::Global::Display::Colors::sequence::mark_present_Border()
2743 DOMStringPtr nsUriPtr = new DOMString("libgno");
2744 XsdEvent event(nsUriPtr, NULL, DOMString("Border"), XsdEvent::ELEMENT_START, false);
2745 this->processEventThrow(event);
2750 GenoPro::Global::Display::Colors::Label_p GenoPro::Global::Display::Colors::sequence::element_Label()
2752 GenoPro::Global::Display::Colors::Label_p node_p = NULL;
2753 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
2756 XsdFSM<Label_ptr> *unitFsm = dynamic_cast<XsdFSM<Label_ptr> *>(fsm_p);
2757 if(unitFsm && unitFsm->nodeList().size()>0) {
2758 assert(unitFsm->nodeList().size()==1);
2759 node_p = unitFsm->nodeList().at(0);
2763 FSM::warnNullNode(node_p, "Label", "{}Label", 0);
2770 void GenoPro::Global::Display::Colors::sequence::mark_present_Label()
2772 DOMStringPtr nsUriPtr = new DOMString("libgno");
2773 XsdEvent event(nsUriPtr, NULL, DOMString("Label"), XsdEvent::ELEMENT_START, false);
2774 this->processEventThrow(event);
2781 GenoPro::Global::Display::Colors::Gender::Gender(ElementCreateArgs args):
2782 XMLSchema::XmlElement<anyType>(args),
2787 , _sequence(new sequence(this) )
2790 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
2792 if(args.ownerDoc && args.ownerDoc->buildTree())
2794 if(args.ownerDoc->createSample()) {
2795 _fsm->fireSampleEvents();
2798 _fsm->fireRequiredEvents();
2803 void GenoPro::Global::Display::Colors::Gender::initFSM()
2805 XsdFsmBasePtr fsmsAttrs[] = {
2806 new XsdFSM<attr_Symbol_ptr>( Particle(NULL, DOMString("Symbol"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Symbol_ptr, Gender, FsmCbOptions>(this, &Gender::create_attr_Symbol)),
2807 new XsdFSM<attr_Text_ptr>( Particle(NULL, DOMString("Text"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Text_ptr, Gender, FsmCbOptions>(this, &Gender::create_attr_Text)),
2808 new XsdFSM<attr_Fill_ptr>( Particle(NULL, DOMString("Fill"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Fill_ptr, Gender, FsmCbOptions>(this, &Gender::create_attr_Fill)),
2813 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
2815 _fsm->replaceContentFsm(_sequence);
2817 _fsmAttrs = _fsm->attributeFsm();
2818 _fsmElems = _fsm->contentFsm();
2822 /* element functions */
2824 #ifndef __Gender_Fill_member_elems_fns
2825 #define __Gender_Fill_member_elems_fns
2828 GenoPro::Global::Display::Colors::Gender::Fill_ptr GenoPro::Global::Display::Colors::Gender::create_Fill(FsmCbOptions& options)
2830 static DOMStringPtr myName = new DOMString("Fill");
2831 static DOMStringPtr myNsUri = new DOMString("libgno");
2833 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
2834 GenoPro::Global::Display::Colors::Gender::Fill_p node = XSD::createElementTmpl<Fill, void*>(t);
2842 GenoPro::Global::Display::Colors::Gender::Fill_p GenoPro::Global::Display::Colors::Gender::element_Fill()
2844 FSM::warnNullNode(_Fill, "Fill", "{}Fill", 0);
2848 void GenoPro::Global::Display::Colors::Gender::mark_present_Fill()
2850 return get_sequence()->mark_present_Fill();
2853 #endif // __Gender_Fill_member_elems_fns
2855 #ifndef __Gender_attr_Fill_member_elems_fns
2856 #define __Gender_attr_Fill_member_elems_fns
2858 #endif // __Gender_attr_Fill_member_elems_fns
2861 /* attribute functions */
2864 GenoPro::Global::Display::Colors::Gender::attr_Symbol_ptr GenoPro::Global::Display::Colors::Gender::create_attr_Symbol(FsmCbOptions& options)
2866 static DOMStringPtr myName = new DOMString("Symbol");
2867 static DOMStringPtr myNsUri = NULL;
2870 return _attr_Symbol;
2872 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
2873 GenoPro::Global::Display::Colors::Gender::attr_Symbol_p node = XSD::createAttributeTmpl<attr_Symbol>(t);
2875 if(options.isSampleCreate && (node->stringValue() == "") ) {
2876 node->stringValue(node->sampleValue());
2879 _attr_Symbol = node;
2885 void GenoPro::Global::Display::Colors::Gender::set_attr_Symbol(DOMString val)
2888 attribute_attr_Symbol()->stringValue(val);
2891 DOMString GenoPro::Global::Display::Colors::Gender::get_attr_Symbol_string()
2894 return attribute_attr_Symbol()->stringValue();
2898 GenoPro::Global::Display::Colors::Gender::attr_Symbol_p GenoPro::Global::Display::Colors::Gender::attribute_attr_Symbol()
2900 FSM::warnNullNode(_attr_Symbol, "attr_Symbol", "{http://www.w3.org/2001/XMLSchema}Symbol", 1);
2901 return _attr_Symbol;
2905 GenoPro::Global::Display::Colors::Gender::attr_Text_ptr GenoPro::Global::Display::Colors::Gender::create_attr_Text(FsmCbOptions& options)
2907 static DOMStringPtr myName = new DOMString("Text");
2908 static DOMStringPtr myNsUri = NULL;
2913 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
2914 GenoPro::Global::Display::Colors::Gender::attr_Text_p node = XSD::createAttributeTmpl<attr_Text>(t);
2916 if(options.isSampleCreate && (node->stringValue() == "") ) {
2917 node->stringValue(node->sampleValue());
2926 void GenoPro::Global::Display::Colors::Gender::set_attr_Text(DOMString val)
2929 attribute_attr_Text()->stringValue(val);
2932 DOMString GenoPro::Global::Display::Colors::Gender::get_attr_Text_string()
2935 return attribute_attr_Text()->stringValue();
2939 GenoPro::Global::Display::Colors::Gender::attr_Text_p GenoPro::Global::Display::Colors::Gender::attribute_attr_Text()
2941 FSM::warnNullNode(_attr_Text, "attr_Text", "{http://www.w3.org/2001/XMLSchema}Text", 1);
2945 #ifndef __Gender_attr_Fill_member_attrs_fns
2946 #define __Gender_attr_Fill_member_attrs_fns
2949 GenoPro::Global::Display::Colors::Gender::attr_Fill_ptr GenoPro::Global::Display::Colors::Gender::create_attr_Fill(FsmCbOptions& options)
2951 static DOMStringPtr myName = new DOMString("Fill");
2952 static DOMStringPtr myNsUri = NULL;
2957 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
2958 GenoPro::Global::Display::Colors::Gender::attr_Fill_p node = XSD::createAttributeTmpl<attr_Fill>(t);
2960 if(options.isSampleCreate && (node->stringValue() == "") ) {
2961 node->stringValue(node->sampleValue());
2970 void GenoPro::Global::Display::Colors::Gender::set_attr_Fill(DOMString val)
2973 attribute_attr_Fill()->stringValue(val);
2976 DOMString GenoPro::Global::Display::Colors::Gender::get_attr_Fill_string()
2979 return attribute_attr_Fill()->stringValue();
2983 GenoPro::Global::Display::Colors::Gender::attr_Fill_p GenoPro::Global::Display::Colors::Gender::attribute_attr_Fill()
2985 FSM::warnNullNode(_attr_Fill, "attr_Fill", "{http://www.w3.org/2001/XMLSchema}Fill", 1);
2989 #endif // __Gender_attr_Fill_member_attrs_fns
2992 GenoPro::Global::Display::Colors::Gender::sequence::sequence(Gender* that):
2995 XsdFsmBasePtr fsmArray[] = {
2996 new XsdFSM<Fill_ptr>( Particle(new DOMString("libgno"), DOMString("Fill"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Fill_ptr, Gender, FsmCbOptions>(_that, &Gender::create_Fill)),
3001 XsdSequenceFsmOfFSMs::init(fsmArray);
3006 GenoPro::Global::Display::Colors::Gender::Fill_p GenoPro::Global::Display::Colors::Gender::sequence::element_Fill()
3008 GenoPro::Global::Display::Colors::Gender::Fill_p node_p = NULL;
3009 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
3012 XsdFSM<Fill_ptr> *unitFsm = dynamic_cast<XsdFSM<Fill_ptr> *>(fsm_p);
3013 if(unitFsm && unitFsm->nodeList().size()>0) {
3014 assert(unitFsm->nodeList().size()==1);
3015 node_p = unitFsm->nodeList().at(0);
3019 FSM::warnNullNode(node_p, "Fill", "{}Fill", 0);
3026 void GenoPro::Global::Display::Colors::Gender::sequence::mark_present_Fill()
3028 DOMStringPtr nsUriPtr = new DOMString("libgno");
3029 XsdEvent event(nsUriPtr, NULL, DOMString("Fill"), XsdEvent::ELEMENT_START, false);
3030 this->processEventThrow(event);
3037 GenoPro::Global::Display::Colors::Gender::Fill::Fill(ElementCreateArgs args):
3038 XMLSchema::XmlElement<anyType>(args),
3043 , _sequence(new sequence(this) )
3046 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
3048 if(args.ownerDoc && args.ownerDoc->buildTree())
3050 if(args.ownerDoc->createSample()) {
3051 _fsm->fireSampleEvents();
3054 _fsm->fireRequiredEvents();
3059 void GenoPro::Global::Display::Colors::Gender::Fill::initFSM()
3061 XsdFsmBasePtr fsmsAttrs[] = {
3066 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
3068 _fsm->replaceContentFsm(_sequence);
3070 _fsmAttrs = _fsm->attributeFsm();
3071 _fsmElems = _fsm->contentFsm();
3075 /* element functions */
3078 GenoPro::Global::Display::Colors::Gender::Fill::Top_ptr GenoPro::Global::Display::Colors::Gender::Fill::create_Top(FsmCbOptions& options)
3080 static DOMStringPtr myName = new DOMString("Top");
3081 static DOMStringPtr myNsUri = new DOMString("libgno");
3083 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
3084 GenoPro::Global::Display::Colors::Gender::Fill::Top_p node = XSD::createElementTmpl<Top, void*>(t);
3086 if(options.isSampleCreate && (node->stringValue() == "") ) {
3087 node->stringValue(node->sampleValue());
3096 GenoPro::Global::Display::Colors::Gender::Fill::Top_p GenoPro::Global::Display::Colors::Gender::Fill::element_Top()
3098 FSM::warnNullNode(_Top, "Top", "{}Top", 0);
3102 void GenoPro::Global::Display::Colors::Gender::Fill::mark_present_Top()
3104 return get_sequence()->mark_present_Top();
3108 GenoPro::Global::Display::Colors::Gender::Fill::Bottom_ptr GenoPro::Global::Display::Colors::Gender::Fill::create_Bottom(FsmCbOptions& options)
3110 static DOMStringPtr myName = new DOMString("Bottom");
3111 static DOMStringPtr myNsUri = new DOMString("libgno");
3113 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
3114 GenoPro::Global::Display::Colors::Gender::Fill::Bottom_p node = XSD::createElementTmpl<Bottom, void*>(t);
3116 if(options.isSampleCreate && (node->stringValue() == "") ) {
3117 node->stringValue(node->sampleValue());
3126 GenoPro::Global::Display::Colors::Gender::Fill::Bottom_p GenoPro::Global::Display::Colors::Gender::Fill::element_Bottom()
3128 FSM::warnNullNode(_Bottom, "Bottom", "{}Bottom", 0);
3132 void GenoPro::Global::Display::Colors::Gender::Fill::mark_present_Bottom()
3134 return get_sequence()->mark_present_Bottom();
3138 /* attribute functions */
3141 GenoPro::Global::Display::Colors::Gender::Fill::sequence::sequence(Fill* that):
3144 XsdFsmBasePtr fsmArray[] = {
3145 new XsdFSM<Top_ptr>( Particle(new DOMString("libgno"), DOMString("Top"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Top_ptr, Fill, FsmCbOptions>(_that, &Fill::create_Top)),
3146 new XsdFSM<Bottom_ptr>( Particle(new DOMString("libgno"), DOMString("Bottom"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Bottom_ptr, Fill, FsmCbOptions>(_that, &Fill::create_Bottom)),
3151 XsdSequenceFsmOfFSMs::init(fsmArray);
3156 GenoPro::Global::Display::Colors::Gender::Fill::Top_p GenoPro::Global::Display::Colors::Gender::Fill::sequence::element_Top()
3158 GenoPro::Global::Display::Colors::Gender::Fill::Top_p node_p = NULL;
3159 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
3162 XsdFSM<Top_ptr> *unitFsm = dynamic_cast<XsdFSM<Top_ptr> *>(fsm_p);
3163 if(unitFsm && unitFsm->nodeList().size()>0) {
3164 assert(unitFsm->nodeList().size()==1);
3165 node_p = unitFsm->nodeList().at(0);
3169 FSM::warnNullNode(node_p, "Top", "{}Top", 0);
3176 void GenoPro::Global::Display::Colors::Gender::Fill::sequence::mark_present_Top()
3178 DOMStringPtr nsUriPtr = new DOMString("libgno");
3179 XsdEvent event(nsUriPtr, NULL, DOMString("Top"), XsdEvent::ELEMENT_START, false);
3180 this->processEventThrow(event);
3185 GenoPro::Global::Display::Colors::Gender::Fill::Bottom_p GenoPro::Global::Display::Colors::Gender::Fill::sequence::element_Bottom()
3187 GenoPro::Global::Display::Colors::Gender::Fill::Bottom_p node_p = NULL;
3188 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
3191 XsdFSM<Bottom_ptr> *unitFsm = dynamic_cast<XsdFSM<Bottom_ptr> *>(fsm_p);
3192 if(unitFsm && unitFsm->nodeList().size()>0) {
3193 assert(unitFsm->nodeList().size()==1);
3194 node_p = unitFsm->nodeList().at(0);
3198 FSM::warnNullNode(node_p, "Bottom", "{}Bottom", 0);
3205 void GenoPro::Global::Display::Colors::Gender::Fill::sequence::mark_present_Bottom()
3207 DOMStringPtr nsUriPtr = new DOMString("libgno");
3208 XsdEvent event(nsUriPtr, NULL, DOMString("Bottom"), XsdEvent::ELEMENT_START, false);
3209 this->processEventThrow(event);
3215 GenoPro::Global::Display::Colors::Gender::Fill::Top::Top(ElementCreateArgs args):
3216 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
3226 if(args.ownerDoc && args.ownerDoc->buildTree())
3229 if(args.ownerDoc->createSample()) {
3230 _fsm->fireSampleEvents();
3233 _fsm->fireRequiredEvents();
3238 void GenoPro::Global::Display::Colors::Gender::Fill::Top::initFSM()
3240 XsdFsmBasePtr fsmsAttrs[] = {
3241 new XsdFSM<attr_Left_ptr>( Particle(NULL, DOMString("Left"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Left_ptr, Top, FsmCbOptions>(this, &Top::create_attr_Left)),
3242 new XsdFSM<attr_Right_ptr>( Particle(NULL, DOMString("Right"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Right_ptr, Top, FsmCbOptions>(this, &Top::create_attr_Right)),
3247 _fsm->appendAttributeFsms(fsmsAttrs);
3248 _fsmAttrs = _fsm->attributeFsm();
3249 _fsmElems = _fsm->contentFsm();
3253 /* element functions */
3256 /* attribute functions */
3259 GenoPro::Global::Display::Colors::Gender::Fill::Top::attr_Left_ptr GenoPro::Global::Display::Colors::Gender::Fill::Top::create_attr_Left(FsmCbOptions& options)
3261 static DOMStringPtr myName = new DOMString("Left");
3262 static DOMStringPtr myNsUri = NULL;
3267 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3268 GenoPro::Global::Display::Colors::Gender::Fill::Top::attr_Left_p node = XSD::createAttributeTmpl<attr_Left>(t);
3270 if(options.isSampleCreate && (node->stringValue() == "") ) {
3271 node->stringValue(node->sampleValue());
3280 void GenoPro::Global::Display::Colors::Gender::Fill::Top::set_attr_Left(DOMString val)
3283 attribute_attr_Left()->stringValue(val);
3286 DOMString GenoPro::Global::Display::Colors::Gender::Fill::Top::get_attr_Left_string()
3289 return attribute_attr_Left()->stringValue();
3293 GenoPro::Global::Display::Colors::Gender::Fill::Top::attr_Left_p GenoPro::Global::Display::Colors::Gender::Fill::Top::attribute_attr_Left()
3295 FSM::warnNullNode(_attr_Left, "attr_Left", "{http://www.w3.org/2001/XMLSchema}Left", 1);
3300 GenoPro::Global::Display::Colors::Gender::Fill::Top::attr_Right_ptr GenoPro::Global::Display::Colors::Gender::Fill::Top::create_attr_Right(FsmCbOptions& options)
3302 static DOMStringPtr myName = new DOMString("Right");
3303 static DOMStringPtr myNsUri = NULL;
3308 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3309 GenoPro::Global::Display::Colors::Gender::Fill::Top::attr_Right_p node = XSD::createAttributeTmpl<attr_Right>(t);
3311 if(options.isSampleCreate && (node->stringValue() == "") ) {
3312 node->stringValue(node->sampleValue());
3321 void GenoPro::Global::Display::Colors::Gender::Fill::Top::set_attr_Right(DOMString val)
3324 attribute_attr_Right()->stringValue(val);
3327 DOMString GenoPro::Global::Display::Colors::Gender::Fill::Top::get_attr_Right_string()
3330 return attribute_attr_Right()->stringValue();
3334 GenoPro::Global::Display::Colors::Gender::Fill::Top::attr_Right_p GenoPro::Global::Display::Colors::Gender::Fill::Top::attribute_attr_Right()
3336 FSM::warnNullNode(_attr_Right, "attr_Right", "{http://www.w3.org/2001/XMLSchema}Right", 1);
3342 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::Bottom(ElementCreateArgs args):
3343 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
3353 if(args.ownerDoc && args.ownerDoc->buildTree())
3356 if(args.ownerDoc->createSample()) {
3357 _fsm->fireSampleEvents();
3360 _fsm->fireRequiredEvents();
3365 void GenoPro::Global::Display::Colors::Gender::Fill::Bottom::initFSM()
3367 XsdFsmBasePtr fsmsAttrs[] = {
3368 new XsdFSM<attr_Left_ptr>( Particle(NULL, DOMString("Left"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Left_ptr, Bottom, FsmCbOptions>(this, &Bottom::create_attr_Left)),
3369 new XsdFSM<attr_Right_ptr>( Particle(NULL, DOMString("Right"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Right_ptr, Bottom, FsmCbOptions>(this, &Bottom::create_attr_Right)),
3374 _fsm->appendAttributeFsms(fsmsAttrs);
3375 _fsmAttrs = _fsm->attributeFsm();
3376 _fsmElems = _fsm->contentFsm();
3380 /* element functions */
3383 /* attribute functions */
3386 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attr_Left_ptr GenoPro::Global::Display::Colors::Gender::Fill::Bottom::create_attr_Left(FsmCbOptions& options)
3388 static DOMStringPtr myName = new DOMString("Left");
3389 static DOMStringPtr myNsUri = NULL;
3394 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3395 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attr_Left_p node = XSD::createAttributeTmpl<attr_Left>(t);
3397 if(options.isSampleCreate && (node->stringValue() == "") ) {
3398 node->stringValue(node->sampleValue());
3407 void GenoPro::Global::Display::Colors::Gender::Fill::Bottom::set_attr_Left(DOMString val)
3410 attribute_attr_Left()->stringValue(val);
3413 DOMString GenoPro::Global::Display::Colors::Gender::Fill::Bottom::get_attr_Left_string()
3416 return attribute_attr_Left()->stringValue();
3420 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attr_Left_p GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attribute_attr_Left()
3422 FSM::warnNullNode(_attr_Left, "attr_Left", "{http://www.w3.org/2001/XMLSchema}Left", 1);
3427 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attr_Right_ptr GenoPro::Global::Display::Colors::Gender::Fill::Bottom::create_attr_Right(FsmCbOptions& options)
3429 static DOMStringPtr myName = new DOMString("Right");
3430 static DOMStringPtr myNsUri = NULL;
3435 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3436 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attr_Right_p node = XSD::createAttributeTmpl<attr_Right>(t);
3438 if(options.isSampleCreate && (node->stringValue() == "") ) {
3439 node->stringValue(node->sampleValue());
3448 void GenoPro::Global::Display::Colors::Gender::Fill::Bottom::set_attr_Right(DOMString val)
3451 attribute_attr_Right()->stringValue(val);
3454 DOMString GenoPro::Global::Display::Colors::Gender::Fill::Bottom::get_attr_Right_string()
3457 return attribute_attr_Right()->stringValue();
3461 GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attr_Right_p GenoPro::Global::Display::Colors::Gender::Fill::Bottom::attribute_attr_Right()
3463 FSM::warnNullNode(_attr_Right, "attr_Right", "{http://www.w3.org/2001/XMLSchema}Right", 1);
3470 GenoPro::Global::Display::Colors::Border::Border(ElementCreateArgs args):
3471 XMLSchema::XmlElement<anyType>(args),
3476 , _sequence(new sequence(this) )
3479 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
3481 if(args.ownerDoc && args.ownerDoc->buildTree())
3483 if(args.ownerDoc->createSample()) {
3484 _fsm->fireSampleEvents();
3487 _fsm->fireRequiredEvents();
3492 void GenoPro::Global::Display::Colors::Border::initFSM()
3494 XsdFsmBasePtr fsmsAttrs[] = {
3495 new XsdFSM<attr_Outline_ptr>( Particle(NULL, DOMString("Outline"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Outline_ptr, Border, FsmCbOptions>(this, &Border::create_attr_Outline)),
3500 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
3502 _fsm->replaceContentFsm(_sequence);
3504 _fsmAttrs = _fsm->attributeFsm();
3505 _fsmElems = _fsm->contentFsm();
3509 /* element functions */
3512 GenoPro::Global::Display::Colors::Border::Fill_ptr GenoPro::Global::Display::Colors::Border::create_Fill(FsmCbOptions& options)
3514 static DOMStringPtr myName = new DOMString("Fill");
3515 static DOMStringPtr myNsUri = new DOMString("libgno");
3517 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
3518 GenoPro::Global::Display::Colors::Border::Fill_p node = XSD::createElementTmpl<Fill, XMLSchema::Types::bt_normalizedString*>(t);
3520 if(options.isSampleCreate && (node->stringValue() == "") ) {
3521 node->stringValue(node->sampleValue());
3530 GenoPro::Global::Display::Colors::Border::Fill_p GenoPro::Global::Display::Colors::Border::element_Fill()
3532 FSM::warnNullNode(_Fill, "Fill", "{http://www.w3.org/2001/XMLSchema}Fill", 0);
3536 void GenoPro::Global::Display::Colors::Border::set_Fill(DOMString val)
3538 get_sequence()->set_Fill(val);
3541 DOMString GenoPro::Global::Display::Colors::Border::get_Fill_string()
3543 return get_sequence()->get_Fill_string();
3547 void GenoPro::Global::Display::Colors::Border::mark_present_Fill()
3549 return get_sequence()->mark_present_Fill();
3553 /* attribute functions */
3556 GenoPro::Global::Display::Colors::Border::attr_Outline_ptr GenoPro::Global::Display::Colors::Border::create_attr_Outline(FsmCbOptions& options)
3558 static DOMStringPtr myName = new DOMString("Outline");
3559 static DOMStringPtr myNsUri = NULL;
3562 return _attr_Outline;
3564 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3565 GenoPro::Global::Display::Colors::Border::attr_Outline_p node = XSD::createAttributeTmpl<attr_Outline>(t);
3567 if(options.isSampleCreate && (node->stringValue() == "") ) {
3568 node->stringValue(node->sampleValue());
3571 _attr_Outline = node;
3577 void GenoPro::Global::Display::Colors::Border::set_attr_Outline(DOMString val)
3580 attribute_attr_Outline()->stringValue(val);
3583 DOMString GenoPro::Global::Display::Colors::Border::get_attr_Outline_string()
3586 return attribute_attr_Outline()->stringValue();
3590 GenoPro::Global::Display::Colors::Border::attr_Outline_p GenoPro::Global::Display::Colors::Border::attribute_attr_Outline()
3592 FSM::warnNullNode(_attr_Outline, "attr_Outline", "{http://www.w3.org/2001/XMLSchema}Outline", 1);
3593 return _attr_Outline;
3597 GenoPro::Global::Display::Colors::Border::sequence::sequence(Border* that):
3600 XsdFsmBasePtr fsmArray[] = {
3601 new XsdFSM<Fill_ptr>( Particle(new DOMString("libgno"), DOMString("Fill"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Fill_ptr, Border, FsmCbOptions>(_that, &Border::create_Fill)),
3606 XsdSequenceFsmOfFSMs::init(fsmArray);
3611 GenoPro::Global::Display::Colors::Border::Fill_p GenoPro::Global::Display::Colors::Border::sequence::element_Fill()
3613 GenoPro::Global::Display::Colors::Border::Fill_p node_p = NULL;
3614 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
3617 XsdFSM<Fill_ptr> *unitFsm = dynamic_cast<XsdFSM<Fill_ptr> *>(fsm_p);
3618 if(unitFsm && unitFsm->nodeList().size()>0) {
3619 assert(unitFsm->nodeList().size()==1);
3620 node_p = unitFsm->nodeList().at(0);
3624 FSM::warnNullNode(node_p, "Fill", "{http://www.w3.org/2001/XMLSchema}Fill", 0);
3630 void GenoPro::Global::Display::Colors::Border::sequence::set_Fill(DOMString val)
3633 mark_present_Fill();
3635 element_Fill()->stringValue(val);
3638 DOMString GenoPro::Global::Display::Colors::Border::sequence::get_Fill_string()
3640 return element_Fill()->stringValue();
3645 void GenoPro::Global::Display::Colors::Border::sequence::mark_present_Fill()
3647 DOMStringPtr nsUriPtr = new DOMString("libgno");
3648 XsdEvent event(nsUriPtr, NULL, DOMString("Fill"), XsdEvent::ELEMENT_START, false);
3649 this->processEventThrow(event);
3656 GenoPro::Global::Display::Colors::Label::Label(ElementCreateArgs args):
3657 XMLSchema::XmlElement<anyType>(args),
3662 , _sequence(new sequence(this) )
3665 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
3667 if(args.ownerDoc && args.ownerDoc->buildTree())
3669 if(args.ownerDoc->createSample()) {
3670 _fsm->fireSampleEvents();
3673 _fsm->fireRequiredEvents();
3678 void GenoPro::Global::Display::Colors::Label::initFSM()
3680 XsdFsmBasePtr fsmsAttrs[] = {
3681 new XsdFSM<attr_Top_ptr>( Particle(NULL, DOMString("Top"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Top_ptr, Label, FsmCbOptions>(this, &Label::create_attr_Top)),
3682 new XsdFSM<attr_Bottom_ptr>( Particle(NULL, DOMString("Bottom"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Bottom_ptr, Label, FsmCbOptions>(this, &Label::create_attr_Bottom)),
3687 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
3689 _fsm->replaceContentFsm(_sequence);
3691 _fsmAttrs = _fsm->attributeFsm();
3692 _fsmElems = _fsm->contentFsm();
3696 /* element functions */
3699 GenoPro::Global::Display::Colors::Label::Fill_ptr GenoPro::Global::Display::Colors::Label::create_Fill(FsmCbOptions& options)
3701 static DOMStringPtr myName = new DOMString("Fill");
3702 static DOMStringPtr myNsUri = new DOMString("libgno");
3704 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
3705 GenoPro::Global::Display::Colors::Label::Fill_p node = XSD::createElementTmpl<Fill, void*>(t);
3707 if(options.isSampleCreate && (node->stringValue() == "") ) {
3708 node->stringValue(node->sampleValue());
3717 GenoPro::Global::Display::Colors::Label::Fill_p GenoPro::Global::Display::Colors::Label::element_Fill()
3719 FSM::warnNullNode(_Fill, "Fill", "{}Fill", 0);
3723 void GenoPro::Global::Display::Colors::Label::mark_present_Fill()
3725 return get_sequence()->mark_present_Fill();
3728 #ifndef __Label_attr_Top_member_elems_fns
3729 #define __Label_attr_Top_member_elems_fns
3731 #endif // __Label_attr_Top_member_elems_fns
3733 #ifndef __Label_attr_Bottom_member_elems_fns
3734 #define __Label_attr_Bottom_member_elems_fns
3736 #endif // __Label_attr_Bottom_member_elems_fns
3739 /* attribute functions */
3741 #ifndef __Label_attr_Top_member_attrs_fns
3742 #define __Label_attr_Top_member_attrs_fns
3745 GenoPro::Global::Display::Colors::Label::attr_Top_ptr GenoPro::Global::Display::Colors::Label::create_attr_Top(FsmCbOptions& options)
3747 static DOMStringPtr myName = new DOMString("Top");
3748 static DOMStringPtr myNsUri = NULL;
3753 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3754 GenoPro::Global::Display::Colors::Label::attr_Top_p node = XSD::createAttributeTmpl<attr_Top>(t);
3756 if(options.isSampleCreate && (node->stringValue() == "") ) {
3757 node->stringValue(node->sampleValue());
3766 void GenoPro::Global::Display::Colors::Label::set_attr_Top(DOMString val)
3769 attribute_attr_Top()->stringValue(val);
3772 DOMString GenoPro::Global::Display::Colors::Label::get_attr_Top_string()
3775 return attribute_attr_Top()->stringValue();
3779 GenoPro::Global::Display::Colors::Label::attr_Top_p GenoPro::Global::Display::Colors::Label::attribute_attr_Top()
3781 FSM::warnNullNode(_attr_Top, "attr_Top", "{http://www.w3.org/2001/XMLSchema}Top", 1);
3785 #endif // __Label_attr_Top_member_attrs_fns
3787 #ifndef __Label_attr_Bottom_member_attrs_fns
3788 #define __Label_attr_Bottom_member_attrs_fns
3791 GenoPro::Global::Display::Colors::Label::attr_Bottom_ptr GenoPro::Global::Display::Colors::Label::create_attr_Bottom(FsmCbOptions& options)
3793 static DOMStringPtr myName = new DOMString("Bottom");
3794 static DOMStringPtr myNsUri = NULL;
3797 return _attr_Bottom;
3799 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3800 GenoPro::Global::Display::Colors::Label::attr_Bottom_p node = XSD::createAttributeTmpl<attr_Bottom>(t);
3802 if(options.isSampleCreate && (node->stringValue() == "") ) {
3803 node->stringValue(node->sampleValue());
3806 _attr_Bottom = node;
3812 void GenoPro::Global::Display::Colors::Label::set_attr_Bottom(DOMString val)
3815 attribute_attr_Bottom()->stringValue(val);
3818 DOMString GenoPro::Global::Display::Colors::Label::get_attr_Bottom_string()
3821 return attribute_attr_Bottom()->stringValue();
3825 GenoPro::Global::Display::Colors::Label::attr_Bottom_p GenoPro::Global::Display::Colors::Label::attribute_attr_Bottom()
3827 FSM::warnNullNode(_attr_Bottom, "attr_Bottom", "{http://www.w3.org/2001/XMLSchema}Bottom", 1);
3828 return _attr_Bottom;
3831 #endif // __Label_attr_Bottom_member_attrs_fns
3834 GenoPro::Global::Display::Colors::Label::sequence::sequence(Label* that):
3837 XsdFsmBasePtr fsmArray[] = {
3838 new XsdFSM<Fill_ptr>( Particle(new DOMString("libgno"), DOMString("Fill"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Fill_ptr, Label, FsmCbOptions>(_that, &Label::create_Fill)),
3843 XsdSequenceFsmOfFSMs::init(fsmArray);
3848 GenoPro::Global::Display::Colors::Label::Fill_p GenoPro::Global::Display::Colors::Label::sequence::element_Fill()
3850 GenoPro::Global::Display::Colors::Label::Fill_p node_p = NULL;
3851 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
3854 XsdFSM<Fill_ptr> *unitFsm = dynamic_cast<XsdFSM<Fill_ptr> *>(fsm_p);
3855 if(unitFsm && unitFsm->nodeList().size()>0) {
3856 assert(unitFsm->nodeList().size()==1);
3857 node_p = unitFsm->nodeList().at(0);
3861 FSM::warnNullNode(node_p, "Fill", "{}Fill", 0);
3868 void GenoPro::Global::Display::Colors::Label::sequence::mark_present_Fill()
3870 DOMStringPtr nsUriPtr = new DOMString("libgno");
3871 XsdEvent event(nsUriPtr, NULL, DOMString("Fill"), XsdEvent::ELEMENT_START, false);
3872 this->processEventThrow(event);
3878 GenoPro::Global::Display::Colors::Label::Fill::Fill(ElementCreateArgs args):
3879 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
3889 if(args.ownerDoc && args.ownerDoc->buildTree())
3892 if(args.ownerDoc->createSample()) {
3893 _fsm->fireSampleEvents();
3896 _fsm->fireRequiredEvents();
3901 void GenoPro::Global::Display::Colors::Label::Fill::initFSM()
3903 XsdFsmBasePtr fsmsAttrs[] = {
3904 new XsdFSM<attr_Top_ptr>( Particle(NULL, DOMString("Top"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Top_ptr, Fill, FsmCbOptions>(this, &Fill::create_attr_Top)),
3905 new XsdFSM<attr_Bottom_ptr>( Particle(NULL, DOMString("Bottom"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Bottom_ptr, Fill, FsmCbOptions>(this, &Fill::create_attr_Bottom)),
3910 _fsm->appendAttributeFsms(fsmsAttrs);
3911 _fsmAttrs = _fsm->attributeFsm();
3912 _fsmElems = _fsm->contentFsm();
3916 /* element functions */
3919 /* attribute functions */
3922 GenoPro::Global::Display::Colors::Label::Fill::attr_Top_ptr GenoPro::Global::Display::Colors::Label::Fill::create_attr_Top(FsmCbOptions& options)
3924 static DOMStringPtr myName = new DOMString("Top");
3925 static DOMStringPtr myNsUri = NULL;
3930 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3931 GenoPro::Global::Display::Colors::Label::Fill::attr_Top_p node = XSD::createAttributeTmpl<attr_Top>(t);
3933 if(options.isSampleCreate && (node->stringValue() == "") ) {
3934 node->stringValue(node->sampleValue());
3943 void GenoPro::Global::Display::Colors::Label::Fill::set_attr_Top(DOMString val)
3946 attribute_attr_Top()->stringValue(val);
3949 DOMString GenoPro::Global::Display::Colors::Label::Fill::get_attr_Top_string()
3952 return attribute_attr_Top()->stringValue();
3956 GenoPro::Global::Display::Colors::Label::Fill::attr_Top_p GenoPro::Global::Display::Colors::Label::Fill::attribute_attr_Top()
3958 FSM::warnNullNode(_attr_Top, "attr_Top", "{http://www.w3.org/2001/XMLSchema}Top", 1);
3963 GenoPro::Global::Display::Colors::Label::Fill::attr_Bottom_ptr GenoPro::Global::Display::Colors::Label::Fill::create_attr_Bottom(FsmCbOptions& options)
3965 static DOMStringPtr myName = new DOMString("Bottom");
3966 static DOMStringPtr myNsUri = NULL;
3969 return _attr_Bottom;
3971 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
3972 GenoPro::Global::Display::Colors::Label::Fill::attr_Bottom_p node = XSD::createAttributeTmpl<attr_Bottom>(t);
3974 if(options.isSampleCreate && (node->stringValue() == "") ) {
3975 node->stringValue(node->sampleValue());
3978 _attr_Bottom = node;
3984 void GenoPro::Global::Display::Colors::Label::Fill::set_attr_Bottom(DOMString val)
3987 attribute_attr_Bottom()->stringValue(val);
3990 DOMString GenoPro::Global::Display::Colors::Label::Fill::get_attr_Bottom_string()
3993 return attribute_attr_Bottom()->stringValue();
3997 GenoPro::Global::Display::Colors::Label::Fill::attr_Bottom_p GenoPro::Global::Display::Colors::Label::Fill::attribute_attr_Bottom()
3999 FSM::warnNullNode(_attr_Bottom, "attr_Bottom", "{http://www.w3.org/2001/XMLSchema}Bottom", 1);
4000 return _attr_Bottom;
4006 GenoPro::Global::Tags::Tags(ElementCreateArgs args):
4007 XMLSchema::XmlElement<anyType>(args),
4012 , _sequence(new sequence(this) )
4015 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
4017 if(args.ownerDoc && args.ownerDoc->buildTree())
4019 if(args.ownerDoc->createSample()) {
4020 _fsm->fireSampleEvents();
4023 _fsm->fireRequiredEvents();
4028 void GenoPro::Global::Tags::initFSM()
4030 XsdFsmBasePtr fsmsAttrs[] = {
4031 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Tags, FsmCbOptions>(this, &Tags::create_attr_ID)),
4036 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
4038 _fsm->replaceContentFsm(_sequence);
4040 _fsmAttrs = _fsm->attributeFsm();
4041 _fsmElems = _fsm->contentFsm();
4045 /* element functions */
4048 GenoPro::Global::Tags::TagData_ptr GenoPro::Global::Tags::create_TagData(FsmCbOptions& options)
4050 static DOMStringPtr myName = new DOMString("TagData");
4051 static DOMStringPtr myNsUri = new DOMString("libgno");
4053 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
4054 GenoPro::Global::Tags::TagData_p node = XSD::createElementTmpl<TagData, void*>(t);
4056 _list_TagData.push_back(node);
4062 GenoPro::Global::Tags::TagData_p GenoPro::Global::Tags::element_TagData_at(unsigned int idx)
4064 if(idx > _list_TagData.size()-1) {
4065 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
4068 return _list_TagData.at(idx);
4071 List<GenoPro::Global::Tags::TagData_ptr> GenoPro::Global::Tags::elements_TagData()
4073 return _list_TagData;
4076 GenoPro::Global::Tags::TagData_p GenoPro::Global::Tags::add_node_TagData()
4078 return get_sequence()->add_node_TagData();
4081 List<GenoPro::Global::Tags::TagData_ptr> GenoPro::Global::Tags::set_count_TagData(unsigned int size)
4083 return get_sequence()->set_count_TagData(size);
4088 GenoPro::Global::Tags::DialogLayout_ptr GenoPro::Global::Tags::create_DialogLayout(FsmCbOptions& options)
4090 static DOMStringPtr myName = new DOMString("DialogLayout");
4091 static DOMStringPtr myNsUri = new DOMString("libgno");
4093 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
4094 GenoPro::Global::Tags::DialogLayout_p node = XSD::createElementTmpl<DialogLayout, void*>(t);
4096 _DialogLayout = node;
4102 GenoPro::Global::Tags::DialogLayout_p GenoPro::Global::Tags::element_DialogLayout()
4104 FSM::warnNullNode(_DialogLayout, "DialogLayout", "{}DialogLayout", 0);
4105 return _DialogLayout;
4108 void GenoPro::Global::Tags::mark_present_DialogLayout()
4110 return get_sequence()->mark_present_DialogLayout();
4114 /* attribute functions */
4117 GenoPro::Global::Tags::attr_ID_ptr GenoPro::Global::Tags::create_attr_ID(FsmCbOptions& options)
4119 static DOMStringPtr myName = new DOMString("ID");
4120 static DOMStringPtr myNsUri = NULL;
4125 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
4126 GenoPro::Global::Tags::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
4128 if(options.isSampleCreate && (node->stringValue() == "") ) {
4129 node->stringValue(node->sampleValue());
4138 void GenoPro::Global::Tags::set_attr_ID(DOMString val)
4141 attribute_attr_ID()->stringValue(val);
4144 DOMString GenoPro::Global::Tags::get_attr_ID_string()
4147 return attribute_attr_ID()->stringValue();
4151 GenoPro::Global::Tags::attr_ID_p GenoPro::Global::Tags::attribute_attr_ID()
4153 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
4158 GenoPro::Global::Tags::sequence::sequence(Tags* that):
4161 XsdFsmBasePtr fsmArray[] = {
4162 new XsdFSM<TagData_ptr>( Particle(new DOMString("libgno"), DOMString("TagData"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<TagData_ptr, Tags, FsmCbOptions>(_that, &Tags::create_TagData)),
4163 new XsdFSM<DialogLayout_ptr>( Particle(new DOMString("libgno"), DOMString("DialogLayout"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DialogLayout_ptr, Tags, FsmCbOptions>(_that, &Tags::create_DialogLayout)),
4168 XsdSequenceFsmOfFSMs::init(fsmArray);
4173 List<GenoPro::Global::Tags::TagData_ptr> GenoPro::Global::Tags::sequence::elements_TagData()
4176 List<TagData_ptr> nodeList;
4177 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
4180 XsdFSM<TagData_ptr> *unitFsm = dynamic_cast<XsdFSM<TagData_ptr> *>(fsm_p);
4182 //nodeList = unitFsm->nodeList().stl_list();
4183 nodeList = unitFsm->nodeList();
4191 GenoPro::Global::Tags::TagData_p GenoPro::Global::Tags::sequence::element_TagData_at(unsigned int idx)
4193 return elements_TagData().at(idx);
4197 GenoPro::Global::Tags::TagData_p GenoPro::Global::Tags::sequence::add_node_TagData()
4199 DOMStringPtr nsUriPtr = new DOMString("libgno");
4200 XsdEvent event(nsUriPtr, NULL, DOMString("TagData"), XsdEvent::ELEMENT_START, false);
4201 this->processEventThrow(event);
4202 return elements_TagData().back();
4205 List<GenoPro::Global::Tags::TagData_ptr> GenoPro::Global::Tags::sequence::set_count_TagData(unsigned int size)
4207 if( (size > -1) || (size < 1)) {
4209 oss << "set_count_TagData: size should be in range: [" << 1
4210 << "," << "unbounded" << "]";
4211 throw IndexOutOfBoundsException(oss.str());
4214 unsigned int prevSize = elements_TagData().size();
4215 if(size < prevSize) {
4216 //FIXME: allow later:
4217 throw XPlus::RuntimeException("resize lesser than current size not allowed");
4220 for(unsigned int j=prevSize; j<size; j++)
4222 // pretend docBuilding to avoid computation of adding after first loop
4223 XsdEvent event(new DOMString("libgno"), NULL, DOMString("TagData"), XsdEvent::ELEMENT_START, false);
4224 this->processEventThrow(event);
4227 return elements_TagData();
4232 GenoPro::Global::Tags::DialogLayout_p GenoPro::Global::Tags::sequence::element_DialogLayout()
4234 GenoPro::Global::Tags::DialogLayout_p node_p = NULL;
4235 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
4238 XsdFSM<DialogLayout_ptr> *unitFsm = dynamic_cast<XsdFSM<DialogLayout_ptr> *>(fsm_p);
4239 if(unitFsm && unitFsm->nodeList().size()>0) {
4240 assert(unitFsm->nodeList().size()==1);
4241 node_p = unitFsm->nodeList().at(0);
4245 FSM::warnNullNode(node_p, "DialogLayout", "{}DialogLayout", 0);
4252 void GenoPro::Global::Tags::sequence::mark_present_DialogLayout()
4254 DOMStringPtr nsUriPtr = new DOMString("libgno");
4255 XsdEvent event(nsUriPtr, NULL, DOMString("DialogLayout"), XsdEvent::ELEMENT_START, false);
4256 this->processEventThrow(event);
4263 GenoPro::Global::Tags::TagData::TagData(ElementCreateArgs args):
4264 XMLSchema::XmlElement<anyType>(args),
4269 , _sequence(new sequence(this) )
4272 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
4274 if(args.ownerDoc && args.ownerDoc->buildTree())
4276 if(args.ownerDoc->createSample()) {
4277 _fsm->fireSampleEvents();
4280 _fsm->fireRequiredEvents();
4285 void GenoPro::Global::Tags::TagData::initFSM()
4287 XsdFsmBasePtr fsmsAttrs[] = {
4288 new XsdFSM<attr_Name_ptr>( Particle(NULL, DOMString("Name"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Name_ptr, TagData, FsmCbOptions>(this, &TagData::create_attr_Name)),
4293 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
4295 _fsm->replaceContentFsm(_sequence);
4297 _fsmAttrs = _fsm->attributeFsm();
4298 _fsmElems = _fsm->contentFsm();
4302 /* element functions */
4305 GenoPro::Global::Tags::TagData::DisplayName_ptr GenoPro::Global::Tags::TagData::create_DisplayName(FsmCbOptions& options)
4307 static DOMStringPtr myName = new DOMString("DisplayName");
4308 static DOMStringPtr myNsUri = new DOMString("libgno");
4310 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
4311 GenoPro::Global::Tags::TagData::DisplayName_p node = XSD::createElementTmpl<DisplayName, XMLSchema::Types::bt_normalizedString*>(t);
4313 if(options.isSampleCreate && (node->stringValue() == "") ) {
4314 node->stringValue(node->sampleValue());
4317 _DisplayName = node;
4323 GenoPro::Global::Tags::TagData::DisplayName_p GenoPro::Global::Tags::TagData::element_DisplayName()
4325 FSM::warnNullNode(_DisplayName, "DisplayName", "{http://www.w3.org/2001/XMLSchema}DisplayName", 0);
4326 return _DisplayName;
4329 void GenoPro::Global::Tags::TagData::set_DisplayName(DOMString val)
4331 get_sequence()->set_DisplayName(val);
4334 DOMString GenoPro::Global::Tags::TagData::get_DisplayName_string()
4336 return get_sequence()->get_DisplayName_string();
4340 void GenoPro::Global::Tags::TagData::mark_present_DisplayName()
4342 return get_sequence()->mark_present_DisplayName();
4346 /* attribute functions */
4349 GenoPro::Global::Tags::TagData::attr_Name_ptr GenoPro::Global::Tags::TagData::create_attr_Name(FsmCbOptions& options)
4351 static DOMStringPtr myName = new DOMString("Name");
4352 static DOMStringPtr myNsUri = NULL;
4357 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
4358 GenoPro::Global::Tags::TagData::attr_Name_p node = XSD::createAttributeTmpl<attr_Name>(t);
4360 if(options.isSampleCreate && (node->stringValue() == "") ) {
4361 node->stringValue(node->sampleValue());
4370 void GenoPro::Global::Tags::TagData::set_attr_Name(DOMString val)
4373 attribute_attr_Name()->stringValue(val);
4376 DOMString GenoPro::Global::Tags::TagData::get_attr_Name_string()
4379 return attribute_attr_Name()->stringValue();
4383 GenoPro::Global::Tags::TagData::attr_Name_p GenoPro::Global::Tags::TagData::attribute_attr_Name()
4385 FSM::warnNullNode(_attr_Name, "attr_Name", "{http://www.w3.org/2001/XMLSchema}Name", 1);
4390 GenoPro::Global::Tags::TagData::sequence::sequence(TagData* that):
4393 XsdFsmBasePtr fsmArray[] = {
4394 new XsdFSM<DisplayName_ptr>( Particle(new DOMString("libgno"), DOMString("DisplayName"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DisplayName_ptr, TagData, FsmCbOptions>(_that, &TagData::create_DisplayName)),
4399 XsdSequenceFsmOfFSMs::init(fsmArray);
4404 GenoPro::Global::Tags::TagData::DisplayName_p GenoPro::Global::Tags::TagData::sequence::element_DisplayName()
4406 GenoPro::Global::Tags::TagData::DisplayName_p node_p = NULL;
4407 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
4410 XsdFSM<DisplayName_ptr> *unitFsm = dynamic_cast<XsdFSM<DisplayName_ptr> *>(fsm_p);
4411 if(unitFsm && unitFsm->nodeList().size()>0) {
4412 assert(unitFsm->nodeList().size()==1);
4413 node_p = unitFsm->nodeList().at(0);
4417 FSM::warnNullNode(node_p, "DisplayName", "{http://www.w3.org/2001/XMLSchema}DisplayName", 0);
4423 void GenoPro::Global::Tags::TagData::sequence::set_DisplayName(DOMString val)
4426 mark_present_DisplayName();
4428 element_DisplayName()->stringValue(val);
4431 DOMString GenoPro::Global::Tags::TagData::sequence::get_DisplayName_string()
4433 return element_DisplayName()->stringValue();
4438 void GenoPro::Global::Tags::TagData::sequence::mark_present_DisplayName()
4440 DOMStringPtr nsUriPtr = new DOMString("libgno");
4441 XsdEvent event(nsUriPtr, NULL, DOMString("DisplayName"), XsdEvent::ELEMENT_START, false);
4442 this->processEventThrow(event);
4449 GenoPro::Global::Tags::DialogLayout::DialogLayout(ElementCreateArgs args):
4450 XMLSchema::XmlElement<anyType>(args),
4455 , _sequence(new sequence(this) )
4458 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
4460 if(args.ownerDoc && args.ownerDoc->buildTree())
4462 if(args.ownerDoc->createSample()) {
4463 _fsm->fireSampleEvents();
4466 _fsm->fireRequiredEvents();
4471 void GenoPro::Global::Tags::DialogLayout::initFSM()
4473 XsdFsmBasePtr fsmsAttrs[] = {
4474 new XsdFSM<attr_Name_ptr>( Particle(NULL, DOMString("Name"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Name_ptr, DialogLayout, FsmCbOptions>(this, &DialogLayout::create_attr_Name)),
4479 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
4481 _fsm->replaceContentFsm(_sequence);
4483 _fsmAttrs = _fsm->attributeFsm();
4484 _fsmElems = _fsm->contentFsm();
4488 /* element functions */
4491 GenoPro::Global::Tags::DialogLayout::Description_ptr GenoPro::Global::Tags::DialogLayout::create_Description(FsmCbOptions& options)
4493 static DOMStringPtr myName = new DOMString("Description");
4494 static DOMStringPtr myNsUri = new DOMString("libgno");
4496 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
4497 GenoPro::Global::Tags::DialogLayout::Description_p node = XSD::createElementTmpl<Description, XMLSchema::Types::bt_string*>(t);
4499 if(options.isSampleCreate && (node->stringValue() == "") ) {
4500 node->stringValue(node->sampleValue());
4503 _Description = node;
4509 GenoPro::Global::Tags::DialogLayout::Description_p GenoPro::Global::Tags::DialogLayout::element_Description()
4511 FSM::warnNullNode(_Description, "Description", "{http://www.w3.org/2001/XMLSchema}Description", 0);
4512 return _Description;
4515 void GenoPro::Global::Tags::DialogLayout::set_Description(DOMString val)
4517 get_sequence()->set_Description(val);
4520 DOMString GenoPro::Global::Tags::DialogLayout::get_Description_string()
4522 return get_sequence()->get_Description_string();
4526 void GenoPro::Global::Tags::DialogLayout::mark_present_Description()
4528 return get_sequence()->mark_present_Description();
4532 GenoPro::Global::Tags::DialogLayout::Tags_ptr GenoPro::Global::Tags::DialogLayout::create_Tags(FsmCbOptions& options)
4534 static DOMStringPtr myName = new DOMString("Tags");
4535 static DOMStringPtr myNsUri = new DOMString("libgno");
4537 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
4538 GenoPro::Global::Tags::DialogLayout::Tags_p node = XSD::createElementTmpl<Tags, XMLSchema::Types::bt_normalizedString*>(t);
4540 if(options.isSampleCreate && (node->stringValue() == "") ) {
4541 node->stringValue(node->sampleValue());
4550 GenoPro::Global::Tags::DialogLayout::Tags_p GenoPro::Global::Tags::DialogLayout::element_Tags()
4552 FSM::warnNullNode(_Tags, "Tags", "{http://www.w3.org/2001/XMLSchema}Tags", 0);
4556 void GenoPro::Global::Tags::DialogLayout::set_Tags(DOMString val)
4558 get_sequence()->set_Tags(val);
4561 DOMString GenoPro::Global::Tags::DialogLayout::get_Tags_string()
4563 return get_sequence()->get_Tags_string();
4567 void GenoPro::Global::Tags::DialogLayout::mark_present_Tags()
4569 return get_sequence()->mark_present_Tags();
4573 /* attribute functions */
4576 GenoPro::Global::Tags::DialogLayout::attr_Name_ptr GenoPro::Global::Tags::DialogLayout::create_attr_Name(FsmCbOptions& options)
4578 static DOMStringPtr myName = new DOMString("Name");
4579 static DOMStringPtr myNsUri = NULL;
4584 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
4585 GenoPro::Global::Tags::DialogLayout::attr_Name_p node = XSD::createAttributeTmpl<attr_Name>(t);
4587 if(options.isSampleCreate && (node->stringValue() == "") ) {
4588 node->stringValue(node->sampleValue());
4597 void GenoPro::Global::Tags::DialogLayout::set_attr_Name(DOMString val)
4600 attribute_attr_Name()->stringValue(val);
4603 DOMString GenoPro::Global::Tags::DialogLayout::get_attr_Name_string()
4606 return attribute_attr_Name()->stringValue();
4610 GenoPro::Global::Tags::DialogLayout::attr_Name_p GenoPro::Global::Tags::DialogLayout::attribute_attr_Name()
4612 FSM::warnNullNode(_attr_Name, "attr_Name", "{http://www.w3.org/2001/XMLSchema}Name", 1);
4617 GenoPro::Global::Tags::DialogLayout::sequence::sequence(DialogLayout* that):
4620 XsdFsmBasePtr fsmArray[] = {
4621 new XsdFSM<Description_ptr>( Particle(new DOMString("libgno"), DOMString("Description"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Description_ptr, DialogLayout, FsmCbOptions>(_that, &DialogLayout::create_Description)),
4622 new XsdFSM<Tags_ptr>( Particle(new DOMString("libgno"), DOMString("Tags"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Tags_ptr, DialogLayout, FsmCbOptions>(_that, &DialogLayout::create_Tags)),
4627 XsdSequenceFsmOfFSMs::init(fsmArray);
4632 GenoPro::Global::Tags::DialogLayout::Description_p GenoPro::Global::Tags::DialogLayout::sequence::element_Description()
4634 GenoPro::Global::Tags::DialogLayout::Description_p node_p = NULL;
4635 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
4638 XsdFSM<Description_ptr> *unitFsm = dynamic_cast<XsdFSM<Description_ptr> *>(fsm_p);
4639 if(unitFsm && unitFsm->nodeList().size()>0) {
4640 assert(unitFsm->nodeList().size()==1);
4641 node_p = unitFsm->nodeList().at(0);
4645 FSM::warnNullNode(node_p, "Description", "{http://www.w3.org/2001/XMLSchema}Description", 0);
4651 void GenoPro::Global::Tags::DialogLayout::sequence::set_Description(DOMString val)
4654 mark_present_Description();
4656 element_Description()->stringValue(val);
4659 DOMString GenoPro::Global::Tags::DialogLayout::sequence::get_Description_string()
4661 return element_Description()->stringValue();
4666 void GenoPro::Global::Tags::DialogLayout::sequence::mark_present_Description()
4668 DOMStringPtr nsUriPtr = new DOMString("libgno");
4669 XsdEvent event(nsUriPtr, NULL, DOMString("Description"), XsdEvent::ELEMENT_START, false);
4670 this->processEventThrow(event);
4675 GenoPro::Global::Tags::DialogLayout::Tags_p GenoPro::Global::Tags::DialogLayout::sequence::element_Tags()
4677 GenoPro::Global::Tags::DialogLayout::Tags_p node_p = NULL;
4678 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
4681 XsdFSM<Tags_ptr> *unitFsm = dynamic_cast<XsdFSM<Tags_ptr> *>(fsm_p);
4682 if(unitFsm && unitFsm->nodeList().size()>0) {
4683 assert(unitFsm->nodeList().size()==1);
4684 node_p = unitFsm->nodeList().at(0);
4688 FSM::warnNullNode(node_p, "Tags", "{http://www.w3.org/2001/XMLSchema}Tags", 0);
4694 void GenoPro::Global::Tags::DialogLayout::sequence::set_Tags(DOMString val)
4697 mark_present_Tags();
4699 element_Tags()->stringValue(val);
4702 DOMString GenoPro::Global::Tags::DialogLayout::sequence::get_Tags_string()
4704 return element_Tags()->stringValue();
4709 void GenoPro::Global::Tags::DialogLayout::sequence::mark_present_Tags()
4711 DOMStringPtr nsUriPtr = new DOMString("libgno");
4712 XsdEvent event(nsUriPtr, NULL, DOMString("Tags"), XsdEvent::ELEMENT_START, false);
4713 this->processEventThrow(event);
4720 GenoPro::Global::Document::Document(ElementCreateArgs args):
4721 XMLSchema::XmlElement<anyType>(args),
4726 , _sequence(new sequence(this) )
4729 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
4731 if(args.ownerDoc && args.ownerDoc->buildTree())
4733 if(args.ownerDoc->createSample()) {
4734 _fsm->fireSampleEvents();
4737 _fsm->fireRequiredEvents();
4742 void GenoPro::Global::Document::initFSM()
4744 XsdFsmBasePtr fsmsAttrs[] = {
4749 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
4751 _fsm->replaceContentFsm(_sequence);
4753 _fsmAttrs = _fsm->attributeFsm();
4754 _fsmElems = _fsm->contentFsm();
4758 /* element functions */
4761 GenoPro::Global::Document::Title_ptr GenoPro::Global::Document::create_Title(FsmCbOptions& options)
4763 static DOMStringPtr myName = new DOMString("Title");
4764 static DOMStringPtr myNsUri = new DOMString("libgno");
4766 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
4767 GenoPro::Global::Document::Title_p node = XSD::createElementTmpl<Title, XMLSchema::Types::bt_string*>(t);
4769 if(options.isSampleCreate && (node->stringValue() == "") ) {
4770 node->stringValue(node->sampleValue());
4779 GenoPro::Global::Document::Title_p GenoPro::Global::Document::element_Title()
4781 FSM::warnNullNode(_Title, "Title", "{http://www.w3.org/2001/XMLSchema}Title", 0);
4785 void GenoPro::Global::Document::set_Title(DOMString val)
4787 get_sequence()->set_Title(val);
4790 DOMString GenoPro::Global::Document::get_Title_string()
4792 return get_sequence()->get_Title_string();
4796 void GenoPro::Global::Document::mark_present_Title()
4798 return get_sequence()->mark_present_Title();
4802 GenoPro::Global::Document::Description_ptr GenoPro::Global::Document::create_Description(FsmCbOptions& options)
4804 static DOMStringPtr myName = new DOMString("Description");
4805 static DOMStringPtr myNsUri = new DOMString("libgno");
4807 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
4808 GenoPro::Global::Document::Description_p node = XSD::createElementTmpl<Description, XMLSchema::Types::bt_string*>(t);
4810 if(options.isSampleCreate && (node->stringValue() == "") ) {
4811 node->stringValue(node->sampleValue());
4814 _Description = node;
4820 GenoPro::Global::Document::Description_p GenoPro::Global::Document::element_Description()
4822 FSM::warnNullNode(_Description, "Description", "{http://www.w3.org/2001/XMLSchema}Description", 0);
4823 return _Description;
4826 void GenoPro::Global::Document::set_Description(DOMString val)
4828 get_sequence()->set_Description(val);
4831 DOMString GenoPro::Global::Document::get_Description_string()
4833 return get_sequence()->get_Description_string();
4837 void GenoPro::Global::Document::mark_present_Description()
4839 return get_sequence()->mark_present_Description();
4843 GenoPro::Global::Document::Comment_ptr GenoPro::Global::Document::create_Comment(FsmCbOptions& options)
4845 static DOMStringPtr myName = new DOMString("Comment");
4846 static DOMStringPtr myNsUri = new DOMString("libgno");
4848 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
4849 GenoPro::Global::Document::Comment_p node = XSD::createElementTmpl<Comment, XMLSchema::Types::bt_string*>(t);
4851 if(options.isSampleCreate && (node->stringValue() == "") ) {
4852 node->stringValue(node->sampleValue());
4861 GenoPro::Global::Document::Comment_p GenoPro::Global::Document::element_Comment()
4863 FSM::warnNullNode(_Comment, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
4867 void GenoPro::Global::Document::set_Comment(DOMString val)
4869 get_sequence()->set_Comment(val);
4872 DOMString GenoPro::Global::Document::get_Comment_string()
4874 return get_sequence()->get_Comment_string();
4878 void GenoPro::Global::Document::mark_present_Comment()
4880 return get_sequence()->mark_present_Comment();
4884 /* attribute functions */
4887 GenoPro::Global::Document::sequence::sequence(Document* that):
4890 XsdFsmBasePtr fsmArray[] = {
4891 new XsdFSM<Title_ptr>( Particle(new DOMString("libgno"), DOMString("Title"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Title_ptr, Document, FsmCbOptions>(_that, &Document::create_Title)),
4892 new XsdFSM<Description_ptr>( Particle(new DOMString("libgno"), DOMString("Description"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Description_ptr, Document, FsmCbOptions>(_that, &Document::create_Description)),
4893 new XsdFSM<Comment_ptr>( Particle(new DOMString("libgno"), DOMString("Comment"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Comment_ptr, Document, FsmCbOptions>(_that, &Document::create_Comment)),
4898 XsdSequenceFsmOfFSMs::init(fsmArray);
4903 GenoPro::Global::Document::Title_p GenoPro::Global::Document::sequence::element_Title()
4905 GenoPro::Global::Document::Title_p node_p = NULL;
4906 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
4909 XsdFSM<Title_ptr> *unitFsm = dynamic_cast<XsdFSM<Title_ptr> *>(fsm_p);
4910 if(unitFsm && unitFsm->nodeList().size()>0) {
4911 assert(unitFsm->nodeList().size()==1);
4912 node_p = unitFsm->nodeList().at(0);
4916 FSM::warnNullNode(node_p, "Title", "{http://www.w3.org/2001/XMLSchema}Title", 0);
4922 void GenoPro::Global::Document::sequence::set_Title(DOMString val)
4925 mark_present_Title();
4927 element_Title()->stringValue(val);
4930 DOMString GenoPro::Global::Document::sequence::get_Title_string()
4932 return element_Title()->stringValue();
4937 void GenoPro::Global::Document::sequence::mark_present_Title()
4939 DOMStringPtr nsUriPtr = new DOMString("libgno");
4940 XsdEvent event(nsUriPtr, NULL, DOMString("Title"), XsdEvent::ELEMENT_START, false);
4941 this->processEventThrow(event);
4946 GenoPro::Global::Document::Description_p GenoPro::Global::Document::sequence::element_Description()
4948 GenoPro::Global::Document::Description_p node_p = NULL;
4949 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
4952 XsdFSM<Description_ptr> *unitFsm = dynamic_cast<XsdFSM<Description_ptr> *>(fsm_p);
4953 if(unitFsm && unitFsm->nodeList().size()>0) {
4954 assert(unitFsm->nodeList().size()==1);
4955 node_p = unitFsm->nodeList().at(0);
4959 FSM::warnNullNode(node_p, "Description", "{http://www.w3.org/2001/XMLSchema}Description", 0);
4965 void GenoPro::Global::Document::sequence::set_Description(DOMString val)
4968 mark_present_Description();
4970 element_Description()->stringValue(val);
4973 DOMString GenoPro::Global::Document::sequence::get_Description_string()
4975 return element_Description()->stringValue();
4980 void GenoPro::Global::Document::sequence::mark_present_Description()
4982 DOMStringPtr nsUriPtr = new DOMString("libgno");
4983 XsdEvent event(nsUriPtr, NULL, DOMString("Description"), XsdEvent::ELEMENT_START, false);
4984 this->processEventThrow(event);
4989 GenoPro::Global::Document::Comment_p GenoPro::Global::Document::sequence::element_Comment()
4991 GenoPro::Global::Document::Comment_p node_p = NULL;
4992 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
4995 XsdFSM<Comment_ptr> *unitFsm = dynamic_cast<XsdFSM<Comment_ptr> *>(fsm_p);
4996 if(unitFsm && unitFsm->nodeList().size()>0) {
4997 assert(unitFsm->nodeList().size()==1);
4998 node_p = unitFsm->nodeList().at(0);
5002 FSM::warnNullNode(node_p, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
5008 void GenoPro::Global::Document::sequence::set_Comment(DOMString val)
5011 mark_present_Comment();
5013 element_Comment()->stringValue(val);
5016 DOMString GenoPro::Global::Document::sequence::get_Comment_string()
5018 return element_Comment()->stringValue();
5023 void GenoPro::Global::Document::sequence::mark_present_Comment()
5025 DOMStringPtr nsUriPtr = new DOMString("libgno");
5026 XsdEvent event(nsUriPtr, NULL, DOMString("Comment"), XsdEvent::ELEMENT_START, false);
5027 this->processEventThrow(event);
5033 GenoPro::Global::Options::Options(ElementCreateArgs args):
5034 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
5044 if(args.ownerDoc && args.ownerDoc->buildTree())
5047 if(args.ownerDoc->createSample()) {
5048 _fsm->fireSampleEvents();
5051 _fsm->fireRequiredEvents();
5056 void GenoPro::Global::Options::initFSM()
5058 XsdFsmBasePtr fsmsAttrs[] = {
5059 new XsdFSM<attr_HideEmotionalRelationships_ptr>( Particle(NULL, DOMString("HideEmotionalRelationships"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_HideEmotionalRelationships_ptr, Options, FsmCbOptions>(this, &Options::create_attr_HideEmotionalRelationships)),
5064 _fsm->appendAttributeFsms(fsmsAttrs);
5065 _fsmAttrs = _fsm->attributeFsm();
5066 _fsmElems = _fsm->contentFsm();
5070 /* element functions */
5073 /* attribute functions */
5076 GenoPro::Global::Options::attr_HideEmotionalRelationships_ptr GenoPro::Global::Options::create_attr_HideEmotionalRelationships(FsmCbOptions& options)
5078 static DOMStringPtr myName = new DOMString("HideEmotionalRelationships");
5079 static DOMStringPtr myNsUri = NULL;
5081 if(_attr_HideEmotionalRelationships) {
5082 return _attr_HideEmotionalRelationships;
5084 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
5085 GenoPro::Global::Options::attr_HideEmotionalRelationships_p node = XSD::createAttributeTmpl<attr_HideEmotionalRelationships>(t);
5087 if(options.isSampleCreate && (node->stringValue() == "") ) {
5088 node->stringValue(node->sampleValue());
5091 _attr_HideEmotionalRelationships = node;
5097 void GenoPro::Global::Options::set_attr_HideEmotionalRelationships(DOMString val)
5100 attribute_attr_HideEmotionalRelationships()->stringValue(val);
5103 DOMString GenoPro::Global::Options::get_attr_HideEmotionalRelationships_string()
5106 return attribute_attr_HideEmotionalRelationships()->stringValue();
5110 GenoPro::Global::Options::attr_HideEmotionalRelationships_p GenoPro::Global::Options::attribute_attr_HideEmotionalRelationships()
5112 FSM::warnNullNode(_attr_HideEmotionalRelationships, "attr_HideEmotionalRelationships", "{http://www.w3.org/2001/XMLSchema}HideEmotionalRelationships", 1);
5113 return _attr_HideEmotionalRelationships;
5119 GenoPro::GenoMaps::GenoMaps(ElementCreateArgs args):
5120 XMLSchema::XmlElement<anyType>(args),
5125 , _sequence(new sequence(this) )
5128 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
5130 if(args.ownerDoc && args.ownerDoc->buildTree())
5132 if(args.ownerDoc->createSample()) {
5133 _fsm->fireSampleEvents();
5136 _fsm->fireRequiredEvents();
5141 void GenoPro::GenoMaps::initFSM()
5143 XsdFsmBasePtr fsmsAttrs[] = {
5148 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
5150 _fsm->replaceContentFsm(_sequence);
5152 _fsmAttrs = _fsm->attributeFsm();
5153 _fsmElems = _fsm->contentFsm();
5157 /* element functions */
5160 GenoPro::GenoMaps::GenoMap_ptr GenoPro::GenoMaps::create_GenoMap(FsmCbOptions& options)
5162 static DOMStringPtr myName = new DOMString("GenoMap");
5163 static DOMStringPtr myNsUri = new DOMString("libgno");
5165 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
5166 GenoPro::GenoMaps::GenoMap_p node = XSD::createElementTmpl<GenoMap, void*>(t);
5168 _list_GenoMap.push_back(node);
5174 GenoPro::GenoMaps::GenoMap_p GenoPro::GenoMaps::element_GenoMap_at(unsigned int idx)
5176 if(idx > _list_GenoMap.size()-1) {
5177 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
5180 return _list_GenoMap.at(idx);
5183 List<GenoPro::GenoMaps::GenoMap_ptr> GenoPro::GenoMaps::elements_GenoMap()
5185 return _list_GenoMap;
5188 GenoPro::GenoMaps::GenoMap_p GenoPro::GenoMaps::add_node_GenoMap()
5190 return get_sequence()->add_node_GenoMap();
5193 List<GenoPro::GenoMaps::GenoMap_ptr> GenoPro::GenoMaps::set_count_GenoMap(unsigned int size)
5195 return get_sequence()->set_count_GenoMap(size);
5200 /* attribute functions */
5203 GenoPro::GenoMaps::sequence::sequence(GenoMaps* that):
5206 XsdFsmBasePtr fsmArray[] = {
5207 new XsdFSM<GenoMap_ptr>( Particle(new DOMString("libgno"), DOMString("GenoMap"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<GenoMap_ptr, GenoMaps, FsmCbOptions>(_that, &GenoMaps::create_GenoMap)),
5212 XsdSequenceFsmOfFSMs::init(fsmArray);
5217 List<GenoPro::GenoMaps::GenoMap_ptr> GenoPro::GenoMaps::sequence::elements_GenoMap()
5220 List<GenoMap_ptr> nodeList;
5221 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
5224 XsdFSM<GenoMap_ptr> *unitFsm = dynamic_cast<XsdFSM<GenoMap_ptr> *>(fsm_p);
5226 //nodeList = unitFsm->nodeList().stl_list();
5227 nodeList = unitFsm->nodeList();
5235 GenoPro::GenoMaps::GenoMap_p GenoPro::GenoMaps::sequence::element_GenoMap_at(unsigned int idx)
5237 return elements_GenoMap().at(idx);
5241 GenoPro::GenoMaps::GenoMap_p GenoPro::GenoMaps::sequence::add_node_GenoMap()
5243 DOMStringPtr nsUriPtr = new DOMString("libgno");
5244 XsdEvent event(nsUriPtr, NULL, DOMString("GenoMap"), XsdEvent::ELEMENT_START, false);
5245 this->processEventThrow(event);
5246 return elements_GenoMap().back();
5249 List<GenoPro::GenoMaps::GenoMap_ptr> GenoPro::GenoMaps::sequence::set_count_GenoMap(unsigned int size)
5251 if( (size > -1) || (size < 1)) {
5253 oss << "set_count_GenoMap: size should be in range: [" << 1
5254 << "," << "unbounded" << "]";
5255 throw IndexOutOfBoundsException(oss.str());
5258 unsigned int prevSize = elements_GenoMap().size();
5259 if(size < prevSize) {
5260 //FIXME: allow later:
5261 throw XPlus::RuntimeException("resize lesser than current size not allowed");
5264 for(unsigned int j=prevSize; j<size; j++)
5266 // pretend docBuilding to avoid computation of adding after first loop
5267 XsdEvent event(new DOMString("libgno"), NULL, DOMString("GenoMap"), XsdEvent::ELEMENT_START, false);
5268 this->processEventThrow(event);
5271 return elements_GenoMap();
5278 GenoPro::GenoMaps::GenoMap::GenoMap(ElementCreateArgs args):
5279 XMLSchema::XmlElement<anyType>(args),
5284 , _sequence(new sequence(this) )
5287 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
5289 if(args.ownerDoc && args.ownerDoc->buildTree())
5291 if(args.ownerDoc->createSample()) {
5292 _fsm->fireSampleEvents();
5295 _fsm->fireRequiredEvents();
5300 void GenoPro::GenoMaps::GenoMap::initFSM()
5302 XsdFsmBasePtr fsmsAttrs[] = {
5303 new XsdFSM<attr_Name_ptr>( Particle(NULL, DOMString("Name"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Name_ptr, GenoMap, FsmCbOptions>(this, &GenoMap::create_attr_Name)),
5304 new XsdFSM<attr_Zoom_ptr>( Particle(NULL, DOMString("Zoom"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Zoom_ptr, GenoMap, FsmCbOptions>(this, &GenoMap::create_attr_Zoom)),
5305 new XsdFSM<attr_Position_ptr>( Particle(NULL, DOMString("Position"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Position_ptr, GenoMap, FsmCbOptions>(this, &GenoMap::create_attr_Position)),
5306 new XsdFSM<attr_BoundaryRect_ptr>( Particle(NULL, DOMString("BoundaryRect"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_BoundaryRect_ptr, GenoMap, FsmCbOptions>(this, &GenoMap::create_attr_BoundaryRect)),
5311 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
5313 _fsm->replaceContentFsm(_sequence);
5315 _fsmAttrs = _fsm->attributeFsm();
5316 _fsmElems = _fsm->contentFsm();
5320 /* element functions */
5323 GenoPro::GenoMaps::GenoMap::Print_ptr GenoPro::GenoMaps::GenoMap::create_Print(FsmCbOptions& options)
5325 static DOMStringPtr myName = new DOMString("Print");
5326 static DOMStringPtr myNsUri = new DOMString("libgno");
5328 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
5329 GenoPro::GenoMaps::GenoMap::Print_p node = XSD::createElementTmpl<Print, void*>(t);
5331 if(options.isSampleCreate && (node->stringValue() == "") ) {
5332 node->stringValue(node->sampleValue());
5341 GenoPro::GenoMaps::GenoMap::Print_p GenoPro::GenoMaps::GenoMap::element_Print()
5343 FSM::warnNullNode(_Print, "Print", "{}Print", 0);
5347 void GenoPro::GenoMaps::GenoMap::mark_present_Print()
5349 return get_sequence()->mark_present_Print();
5353 /* attribute functions */
5356 GenoPro::GenoMaps::GenoMap::attr_Name_ptr GenoPro::GenoMaps::GenoMap::create_attr_Name(FsmCbOptions& options)
5358 static DOMStringPtr myName = new DOMString("Name");
5359 static DOMStringPtr myNsUri = NULL;
5364 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
5365 GenoPro::GenoMaps::GenoMap::attr_Name_p node = XSD::createAttributeTmpl<attr_Name>(t);
5367 if(options.isSampleCreate && (node->stringValue() == "") ) {
5368 node->stringValue(node->sampleValue());
5377 void GenoPro::GenoMaps::GenoMap::set_attr_Name(DOMString val)
5380 attribute_attr_Name()->stringValue(val);
5383 DOMString GenoPro::GenoMaps::GenoMap::get_attr_Name_string()
5386 return attribute_attr_Name()->stringValue();
5390 GenoPro::GenoMaps::GenoMap::attr_Name_p GenoPro::GenoMaps::GenoMap::attribute_attr_Name()
5392 FSM::warnNullNode(_attr_Name, "attr_Name", "{http://www.w3.org/2001/XMLSchema}Name", 1);
5397 GenoPro::GenoMaps::GenoMap::attr_Zoom_ptr GenoPro::GenoMaps::GenoMap::create_attr_Zoom(FsmCbOptions& options)
5399 static DOMStringPtr myName = new DOMString("Zoom");
5400 static DOMStringPtr myNsUri = NULL;
5405 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
5406 GenoPro::GenoMaps::GenoMap::attr_Zoom_p node = XSD::createAttributeTmpl<attr_Zoom>(t);
5408 if(options.isSampleCreate && (node->stringValue() == "") ) {
5409 node->stringValue(node->sampleValue());
5418 void GenoPro::GenoMaps::GenoMap::set_attr_Zoom(DOMString val)
5421 attribute_attr_Zoom()->stringValue(val);
5424 DOMString GenoPro::GenoMaps::GenoMap::get_attr_Zoom_string()
5427 return attribute_attr_Zoom()->stringValue();
5431 void GenoPro::GenoMaps::GenoMap::set_attr_Zoom(int val)
5434 attribute_attr_Zoom()->value(val);
5437 int GenoPro::GenoMaps::GenoMap::get_attr_Zoom()
5440 return attribute_attr_Zoom()->value();
5444 GenoPro::GenoMaps::GenoMap::attr_Zoom_p GenoPro::GenoMaps::GenoMap::attribute_attr_Zoom()
5446 FSM::warnNullNode(_attr_Zoom, "attr_Zoom", "{http://www.w3.org/2001/XMLSchema}Zoom", 1);
5451 GenoPro::GenoMaps::GenoMap::attr_Position_ptr GenoPro::GenoMaps::GenoMap::create_attr_Position(FsmCbOptions& options)
5453 static DOMStringPtr myName = new DOMString("Position");
5454 static DOMStringPtr myNsUri = NULL;
5456 if(_attr_Position) {
5457 return _attr_Position;
5459 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
5460 GenoPro::GenoMaps::GenoMap::attr_Position_p node = XSD::createAttributeTmpl<attr_Position>(t);
5462 if(options.isSampleCreate && (node->stringValue() == "") ) {
5463 node->stringValue(node->sampleValue());
5466 _attr_Position = node;
5472 void GenoPro::GenoMaps::GenoMap::set_attr_Position(DOMString val)
5475 attribute_attr_Position()->stringValue(val);
5478 DOMString GenoPro::GenoMaps::GenoMap::get_attr_Position_string()
5481 return attribute_attr_Position()->stringValue();
5485 GenoPro::GenoMaps::GenoMap::attr_Position_p GenoPro::GenoMaps::GenoMap::attribute_attr_Position()
5487 FSM::warnNullNode(_attr_Position, "attr_Position", "{http://www.w3.org/2001/XMLSchema}Position", 1);
5488 return _attr_Position;
5492 GenoPro::GenoMaps::GenoMap::attr_BoundaryRect_ptr GenoPro::GenoMaps::GenoMap::create_attr_BoundaryRect(FsmCbOptions& options)
5494 static DOMStringPtr myName = new DOMString("BoundaryRect");
5495 static DOMStringPtr myNsUri = NULL;
5497 if(_attr_BoundaryRect) {
5498 return _attr_BoundaryRect;
5500 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
5501 GenoPro::GenoMaps::GenoMap::attr_BoundaryRect_p node = XSD::createAttributeTmpl<attr_BoundaryRect>(t);
5503 if(options.isSampleCreate && (node->stringValue() == "") ) {
5504 node->stringValue(node->sampleValue());
5507 _attr_BoundaryRect = node;
5513 void GenoPro::GenoMaps::GenoMap::set_attr_BoundaryRect(DOMString val)
5516 attribute_attr_BoundaryRect()->stringValue(val);
5519 DOMString GenoPro::GenoMaps::GenoMap::get_attr_BoundaryRect_string()
5522 return attribute_attr_BoundaryRect()->stringValue();
5526 GenoPro::GenoMaps::GenoMap::attr_BoundaryRect_p GenoPro::GenoMaps::GenoMap::attribute_attr_BoundaryRect()
5528 FSM::warnNullNode(_attr_BoundaryRect, "attr_BoundaryRect", "{http://www.w3.org/2001/XMLSchema}BoundaryRect", 1);
5529 return _attr_BoundaryRect;
5533 GenoPro::GenoMaps::GenoMap::sequence::sequence(GenoMap* that):
5536 XsdFsmBasePtr fsmArray[] = {
5537 new XsdFSM<Print_ptr>( Particle(new DOMString("libgno"), DOMString("Print"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Print_ptr, GenoMap, FsmCbOptions>(_that, &GenoMap::create_Print)),
5542 XsdSequenceFsmOfFSMs::init(fsmArray);
5547 GenoPro::GenoMaps::GenoMap::Print_p GenoPro::GenoMaps::GenoMap::sequence::element_Print()
5549 GenoPro::GenoMaps::GenoMap::Print_p node_p = NULL;
5550 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
5553 XsdFSM<Print_ptr> *unitFsm = dynamic_cast<XsdFSM<Print_ptr> *>(fsm_p);
5554 if(unitFsm && unitFsm->nodeList().size()>0) {
5555 assert(unitFsm->nodeList().size()==1);
5556 node_p = unitFsm->nodeList().at(0);
5560 FSM::warnNullNode(node_p, "Print", "{}Print", 0);
5567 void GenoPro::GenoMaps::GenoMap::sequence::mark_present_Print()
5569 DOMStringPtr nsUriPtr = new DOMString("libgno");
5570 XsdEvent event(nsUriPtr, NULL, DOMString("Print"), XsdEvent::ELEMENT_START, false);
5571 this->processEventThrow(event);
5577 GenoPro::GenoMaps::GenoMap::Print::Print(ElementCreateArgs args):
5578 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
5588 if(args.ownerDoc && args.ownerDoc->buildTree())
5591 if(args.ownerDoc->createSample()) {
5592 _fsm->fireSampleEvents();
5595 _fsm->fireRequiredEvents();
5600 void GenoPro::GenoMaps::GenoMap::Print::initFSM()
5602 XsdFsmBasePtr fsmsAttrs[] = {
5603 new XsdFSM<attr_Landscape_ptr>( Particle(NULL, DOMString("Landscape"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Landscape_ptr, Print, FsmCbOptions>(this, &Print::create_attr_Landscape)),
5608 _fsm->appendAttributeFsms(fsmsAttrs);
5609 _fsmAttrs = _fsm->attributeFsm();
5610 _fsmElems = _fsm->contentFsm();
5614 /* element functions */
5617 /* attribute functions */
5620 GenoPro::GenoMaps::GenoMap::Print::attr_Landscape_ptr GenoPro::GenoMaps::GenoMap::Print::create_attr_Landscape(FsmCbOptions& options)
5622 static DOMStringPtr myName = new DOMString("Landscape");
5623 static DOMStringPtr myNsUri = NULL;
5625 if(_attr_Landscape) {
5626 return _attr_Landscape;
5628 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
5629 GenoPro::GenoMaps::GenoMap::Print::attr_Landscape_p node = XSD::createAttributeTmpl<attr_Landscape>(t);
5631 if(options.isSampleCreate && (node->stringValue() == "") ) {
5632 node->stringValue(node->sampleValue());
5635 _attr_Landscape = node;
5641 void GenoPro::GenoMaps::GenoMap::Print::set_attr_Landscape(DOMString val)
5644 attribute_attr_Landscape()->stringValue(val);
5647 DOMString GenoPro::GenoMaps::GenoMap::Print::get_attr_Landscape_string()
5650 return attribute_attr_Landscape()->stringValue();
5654 GenoPro::GenoMaps::GenoMap::Print::attr_Landscape_p GenoPro::GenoMaps::GenoMap::Print::attribute_attr_Landscape()
5656 FSM::warnNullNode(_attr_Landscape, "attr_Landscape", "{http://www.w3.org/2001/XMLSchema}Landscape", 1);
5657 return _attr_Landscape;
5663 GenoPro::Individuals::Individuals(ElementCreateArgs args):
5664 XMLSchema::XmlElement<anyType>(args),
5669 , _sequence(new sequence(this) )
5672 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
5674 if(args.ownerDoc && args.ownerDoc->buildTree())
5676 if(args.ownerDoc->createSample()) {
5677 _fsm->fireSampleEvents();
5680 _fsm->fireRequiredEvents();
5685 void GenoPro::Individuals::initFSM()
5687 XsdFsmBasePtr fsmsAttrs[] = {
5692 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
5694 _fsm->replaceContentFsm(_sequence);
5696 _fsmAttrs = _fsm->attributeFsm();
5697 _fsmElems = _fsm->contentFsm();
5701 /* element functions */
5704 GenoPro::Individuals::Individual_ptr GenoPro::Individuals::create_Individual(FsmCbOptions& options)
5706 static DOMStringPtr myName = new DOMString("Individual");
5707 static DOMStringPtr myNsUri = new DOMString("libgno");
5709 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
5710 GenoPro::Individuals::Individual_p node = XSD::createElementTmpl<Individual, void*>(t);
5712 _list_Individual.push_back(node);
5718 GenoPro::Individuals::Individual_p GenoPro::Individuals::element_Individual_at(unsigned int idx)
5720 if(idx > _list_Individual.size()-1) {
5721 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
5724 return _list_Individual.at(idx);
5727 List<GenoPro::Individuals::Individual_ptr> GenoPro::Individuals::elements_Individual()
5729 return _list_Individual;
5732 GenoPro::Individuals::Individual_p GenoPro::Individuals::add_node_Individual()
5734 return get_sequence()->add_node_Individual();
5737 List<GenoPro::Individuals::Individual_ptr> GenoPro::Individuals::set_count_Individual(unsigned int size)
5739 return get_sequence()->set_count_Individual(size);
5744 /* attribute functions */
5747 GenoPro::Individuals::sequence::sequence(Individuals* that):
5750 XsdFsmBasePtr fsmArray[] = {
5751 new XsdFSM<Individual_ptr>( Particle(new DOMString("libgno"), DOMString("Individual"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Individual_ptr, Individuals, FsmCbOptions>(_that, &Individuals::create_Individual)),
5756 XsdSequenceFsmOfFSMs::init(fsmArray);
5761 List<GenoPro::Individuals::Individual_ptr> GenoPro::Individuals::sequence::elements_Individual()
5764 List<Individual_ptr> nodeList;
5765 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
5768 XsdFSM<Individual_ptr> *unitFsm = dynamic_cast<XsdFSM<Individual_ptr> *>(fsm_p);
5770 //nodeList = unitFsm->nodeList().stl_list();
5771 nodeList = unitFsm->nodeList();
5779 GenoPro::Individuals::Individual_p GenoPro::Individuals::sequence::element_Individual_at(unsigned int idx)
5781 return elements_Individual().at(idx);
5785 GenoPro::Individuals::Individual_p GenoPro::Individuals::sequence::add_node_Individual()
5787 DOMStringPtr nsUriPtr = new DOMString("libgno");
5788 XsdEvent event(nsUriPtr, NULL, DOMString("Individual"), XsdEvent::ELEMENT_START, false);
5789 this->processEventThrow(event);
5790 return elements_Individual().back();
5793 List<GenoPro::Individuals::Individual_ptr> GenoPro::Individuals::sequence::set_count_Individual(unsigned int size)
5795 if( (size > -1) || (size < 1)) {
5797 oss << "set_count_Individual: size should be in range: [" << 1
5798 << "," << "unbounded" << "]";
5799 throw IndexOutOfBoundsException(oss.str());
5802 unsigned int prevSize = elements_Individual().size();
5803 if(size < prevSize) {
5804 //FIXME: allow later:
5805 throw XPlus::RuntimeException("resize lesser than current size not allowed");
5808 for(unsigned int j=prevSize; j<size; j++)
5810 // pretend docBuilding to avoid computation of adding after first loop
5811 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Individual"), XsdEvent::ELEMENT_START, false);
5812 this->processEventThrow(event);
5815 return elements_Individual();
5822 GenoPro::Individuals::Individual::Individual(ElementCreateArgs args):
5823 XMLSchema::XmlElement<anyType>(args),
5828 , _sequence(new sequence(this) )
5831 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
5833 if(args.ownerDoc && args.ownerDoc->buildTree())
5835 if(args.ownerDoc->createSample()) {
5836 _fsm->fireSampleEvents();
5839 _fsm->fireRequiredEvents();
5844 void GenoPro::Individuals::Individual::initFSM()
5846 XsdFsmBasePtr fsmsAttrs[] = {
5847 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Individual, FsmCbOptions>(this, &Individual::create_attr_ID)),
5852 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
5854 _fsm->replaceContentFsm(_sequence);
5856 _fsmAttrs = _fsm->attributeFsm();
5857 _fsmElems = _fsm->contentFsm();
5861 /* element functions */
5864 GenoPro::Individuals::Individual::Name_ptr GenoPro::Individuals::Individual::create_Name(FsmCbOptions& options)
5866 static DOMStringPtr myName = new DOMString("Name");
5867 static DOMStringPtr myNsUri = new DOMString("libgno");
5869 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
5870 GenoPro::Individuals::Individual::Name_p node = XSD::createElementTmpl<Name, void*>(t);
5878 GenoPro::Individuals::Individual::Name_p GenoPro::Individuals::Individual::element_Name()
5880 FSM::warnNullNode(_Name, "Name", "{}Name", 0);
5884 void GenoPro::Individuals::Individual::mark_present_Name()
5886 return get_sequence()->mark_present_Name();
5890 GenoPro::Individuals::Individual::Position_ptr GenoPro::Individuals::Individual::create_Position(FsmCbOptions& options)
5892 static DOMStringPtr myName = new DOMString("Position");
5893 static DOMStringPtr myNsUri = new DOMString("libgno");
5895 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
5896 GenoPro::Individuals::Individual::Position_p node = XSD::createElementTmpl<Position, void*>(t);
5898 if(options.isSampleCreate && (node->stringValue() == "") ) {
5899 node->stringValue(node->sampleValue());
5908 GenoPro::Individuals::Individual::Position_p GenoPro::Individuals::Individual::element_Position()
5910 FSM::warnNullNode(_Position, "Position", "{}Position", 0);
5914 void GenoPro::Individuals::Individual::mark_present_Position()
5916 return get_sequence()->mark_present_Position();
5920 GenoPro::Individuals::Individual::Gender_ptr GenoPro::Individuals::Individual::create_Gender(FsmCbOptions& options)
5922 static DOMStringPtr myName = new DOMString("Gender");
5923 static DOMStringPtr myNsUri = new DOMString("libgno");
5925 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
5926 GenoPro::Individuals::Individual::Gender_p node = XSD::createElementTmpl<Gender, XMLSchema::Types::bt_normalizedString*>(t);
5928 if(options.isSampleCreate && (node->stringValue() == "") ) {
5929 node->stringValue(node->sampleValue());
5938 GenoPro::Individuals::Individual::Gender_p GenoPro::Individuals::Individual::element_Gender()
5940 FSM::warnNullNode(_Gender, "Gender", "{http://www.w3.org/2001/XMLSchema}Gender", 0);
5944 void GenoPro::Individuals::Individual::set_Gender(DOMString val)
5946 get_sequence()->set_Gender(val);
5949 DOMString GenoPro::Individuals::Individual::get_Gender_string()
5951 return get_sequence()->get_Gender_string();
5955 void GenoPro::Individuals::Individual::mark_present_Gender()
5957 return get_sequence()->mark_present_Gender();
5961 GenoPro::Individuals::Individual::IsDead_ptr GenoPro::Individuals::Individual::create_IsDead(FsmCbOptions& options)
5963 static DOMStringPtr myName = new DOMString("IsDead");
5964 static DOMStringPtr myNsUri = new DOMString("libgno");
5966 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
5967 GenoPro::Individuals::Individual::IsDead_p node = XSD::createElementTmpl<IsDead, XMLSchema::Types::bt_normalizedString*>(t);
5969 if(options.isSampleCreate && (node->stringValue() == "") ) {
5970 node->stringValue(node->sampleValue());
5979 GenoPro::Individuals::Individual::IsDead_p GenoPro::Individuals::Individual::element_IsDead()
5981 FSM::warnNullNode(_IsDead, "IsDead", "{http://www.w3.org/2001/XMLSchema}IsDead", 0);
5985 void GenoPro::Individuals::Individual::set_IsDead(DOMString val)
5987 get_sequence()->set_IsDead(val);
5990 DOMString GenoPro::Individuals::Individual::get_IsDead_string()
5992 return get_sequence()->get_IsDead_string();
5996 void GenoPro::Individuals::Individual::mark_present_IsDead()
5998 return get_sequence()->mark_present_IsDead();
6002 GenoPro::Individuals::Individual::Death_ptr GenoPro::Individuals::Individual::create_Death(FsmCbOptions& options)
6004 static DOMStringPtr myName = new DOMString("Death");
6005 static DOMStringPtr myNsUri = new DOMString("libgno");
6007 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
6008 GenoPro::Individuals::Individual::Death_p node = XSD::createElementTmpl<Death, void*>(t);
6016 GenoPro::Individuals::Individual::Death_p GenoPro::Individuals::Individual::element_Death()
6018 FSM::warnNullNode(_Death, "Death", "{}Death", 0);
6022 void GenoPro::Individuals::Individual::mark_present_Death()
6024 return get_sequence()->mark_present_Death();
6028 GenoPro::Individuals::Individual::child_no_ptr GenoPro::Individuals::Individual::create_child_no(FsmCbOptions& options)
6030 static DOMStringPtr myName = new DOMString("child_no");
6031 static DOMStringPtr myNsUri = new DOMString("libgno");
6033 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "int");
6034 GenoPro::Individuals::Individual::child_no_p node = XSD::createElementTmpl<child_no, XMLSchema::Types::bt_int*>(t);
6036 if(options.isSampleCreate && (node->stringValue() == "") ) {
6037 node->stringValue(node->sampleValue());
6046 GenoPro::Individuals::Individual::child_no_p GenoPro::Individuals::Individual::element_child_no()
6048 FSM::warnNullNode(_child_no, "child_no", "{http://www.w3.org/2001/XMLSchema}child_no", 0);
6052 void GenoPro::Individuals::Individual::set_child_no(DOMString val)
6054 get_sequence()->set_child_no(val);
6057 DOMString GenoPro::Individuals::Individual::get_child_no_string()
6059 return get_sequence()->get_child_no_string();
6063 void GenoPro::Individuals::Individual::set_child_no(int val)
6065 get_sequence()->set_child_no(val);
6068 int GenoPro::Individuals::Individual::get_child_no()
6070 return get_sequence()->get_child_no();
6074 void GenoPro::Individuals::Individual::mark_present_child_no()
6076 return get_sequence()->mark_present_child_no();
6080 /* attribute functions */
6083 GenoPro::Individuals::Individual::attr_ID_ptr GenoPro::Individuals::Individual::create_attr_ID(FsmCbOptions& options)
6085 static DOMStringPtr myName = new DOMString("ID");
6086 static DOMStringPtr myNsUri = NULL;
6091 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
6092 GenoPro::Individuals::Individual::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
6094 if(options.isSampleCreate && (node->stringValue() == "") ) {
6095 node->stringValue(node->sampleValue());
6104 void GenoPro::Individuals::Individual::set_attr_ID(DOMString val)
6107 attribute_attr_ID()->stringValue(val);
6110 DOMString GenoPro::Individuals::Individual::get_attr_ID_string()
6113 return attribute_attr_ID()->stringValue();
6117 GenoPro::Individuals::Individual::attr_ID_p GenoPro::Individuals::Individual::attribute_attr_ID()
6119 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
6124 GenoPro::Individuals::Individual::sequence::sequence(Individual* that):
6127 XsdFsmBasePtr fsmArray[] = {
6128 new XsdFSM<Name_ptr>( Particle(new DOMString("libgno"), DOMString("Name"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Name_ptr, Individual, FsmCbOptions>(_that, &Individual::create_Name)),
6129 new XsdFSM<Position_ptr>( Particle(new DOMString("libgno"), DOMString("Position"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Position_ptr, Individual, FsmCbOptions>(_that, &Individual::create_Position)),
6130 new XsdFSM<Gender_ptr>( Particle(new DOMString("libgno"), DOMString("Gender"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Gender_ptr, Individual, FsmCbOptions>(_that, &Individual::create_Gender)),
6131 new XsdFSM<IsDead_ptr>( Particle(new DOMString("libgno"), DOMString("IsDead"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<IsDead_ptr, Individual, FsmCbOptions>(_that, &Individual::create_IsDead)),
6132 new XsdFSM<Death_ptr>( Particle(new DOMString("libgno"), DOMString("Death"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Death_ptr, Individual, FsmCbOptions>(_that, &Individual::create_Death)),
6133 new XsdFSM<child_no_ptr>( Particle(new DOMString("libgno"), DOMString("child_no"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<child_no_ptr, Individual, FsmCbOptions>(_that, &Individual::create_child_no)),
6138 XsdSequenceFsmOfFSMs::init(fsmArray);
6143 GenoPro::Individuals::Individual::Name_p GenoPro::Individuals::Individual::sequence::element_Name()
6145 GenoPro::Individuals::Individual::Name_p node_p = NULL;
6146 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
6149 XsdFSM<Name_ptr> *unitFsm = dynamic_cast<XsdFSM<Name_ptr> *>(fsm_p);
6150 if(unitFsm && unitFsm->nodeList().size()>0) {
6151 assert(unitFsm->nodeList().size()==1);
6152 node_p = unitFsm->nodeList().at(0);
6156 FSM::warnNullNode(node_p, "Name", "{}Name", 0);
6163 void GenoPro::Individuals::Individual::sequence::mark_present_Name()
6165 DOMStringPtr nsUriPtr = new DOMString("libgno");
6166 XsdEvent event(nsUriPtr, NULL, DOMString("Name"), XsdEvent::ELEMENT_START, false);
6167 this->processEventThrow(event);
6172 GenoPro::Individuals::Individual::Position_p GenoPro::Individuals::Individual::sequence::element_Position()
6174 GenoPro::Individuals::Individual::Position_p node_p = NULL;
6175 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
6178 XsdFSM<Position_ptr> *unitFsm = dynamic_cast<XsdFSM<Position_ptr> *>(fsm_p);
6179 if(unitFsm && unitFsm->nodeList().size()>0) {
6180 assert(unitFsm->nodeList().size()==1);
6181 node_p = unitFsm->nodeList().at(0);
6185 FSM::warnNullNode(node_p, "Position", "{}Position", 0);
6192 void GenoPro::Individuals::Individual::sequence::mark_present_Position()
6194 DOMStringPtr nsUriPtr = new DOMString("libgno");
6195 XsdEvent event(nsUriPtr, NULL, DOMString("Position"), XsdEvent::ELEMENT_START, false);
6196 this->processEventThrow(event);
6201 GenoPro::Individuals::Individual::Gender_p GenoPro::Individuals::Individual::sequence::element_Gender()
6203 GenoPro::Individuals::Individual::Gender_p node_p = NULL;
6204 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
6207 XsdFSM<Gender_ptr> *unitFsm = dynamic_cast<XsdFSM<Gender_ptr> *>(fsm_p);
6208 if(unitFsm && unitFsm->nodeList().size()>0) {
6209 assert(unitFsm->nodeList().size()==1);
6210 node_p = unitFsm->nodeList().at(0);
6214 FSM::warnNullNode(node_p, "Gender", "{http://www.w3.org/2001/XMLSchema}Gender", 0);
6220 void GenoPro::Individuals::Individual::sequence::set_Gender(DOMString val)
6223 mark_present_Gender();
6225 element_Gender()->stringValue(val);
6228 DOMString GenoPro::Individuals::Individual::sequence::get_Gender_string()
6230 return element_Gender()->stringValue();
6235 void GenoPro::Individuals::Individual::sequence::mark_present_Gender()
6237 DOMStringPtr nsUriPtr = new DOMString("libgno");
6238 XsdEvent event(nsUriPtr, NULL, DOMString("Gender"), XsdEvent::ELEMENT_START, false);
6239 this->processEventThrow(event);
6244 GenoPro::Individuals::Individual::IsDead_p GenoPro::Individuals::Individual::sequence::element_IsDead()
6246 GenoPro::Individuals::Individual::IsDead_p node_p = NULL;
6247 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
6250 XsdFSM<IsDead_ptr> *unitFsm = dynamic_cast<XsdFSM<IsDead_ptr> *>(fsm_p);
6251 if(unitFsm && unitFsm->nodeList().size()>0) {
6252 assert(unitFsm->nodeList().size()==1);
6253 node_p = unitFsm->nodeList().at(0);
6257 FSM::warnNullNode(node_p, "IsDead", "{http://www.w3.org/2001/XMLSchema}IsDead", 0);
6263 void GenoPro::Individuals::Individual::sequence::set_IsDead(DOMString val)
6266 mark_present_IsDead();
6268 element_IsDead()->stringValue(val);
6271 DOMString GenoPro::Individuals::Individual::sequence::get_IsDead_string()
6273 return element_IsDead()->stringValue();
6278 void GenoPro::Individuals::Individual::sequence::mark_present_IsDead()
6280 DOMStringPtr nsUriPtr = new DOMString("libgno");
6281 XsdEvent event(nsUriPtr, NULL, DOMString("IsDead"), XsdEvent::ELEMENT_START, false);
6282 this->processEventThrow(event);
6287 GenoPro::Individuals::Individual::Death_p GenoPro::Individuals::Individual::sequence::element_Death()
6289 GenoPro::Individuals::Individual::Death_p node_p = NULL;
6290 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
6293 XsdFSM<Death_ptr> *unitFsm = dynamic_cast<XsdFSM<Death_ptr> *>(fsm_p);
6294 if(unitFsm && unitFsm->nodeList().size()>0) {
6295 assert(unitFsm->nodeList().size()==1);
6296 node_p = unitFsm->nodeList().at(0);
6300 FSM::warnNullNode(node_p, "Death", "{}Death", 0);
6307 void GenoPro::Individuals::Individual::sequence::mark_present_Death()
6309 DOMStringPtr nsUriPtr = new DOMString("libgno");
6310 XsdEvent event(nsUriPtr, NULL, DOMString("Death"), XsdEvent::ELEMENT_START, false);
6311 this->processEventThrow(event);
6316 GenoPro::Individuals::Individual::child_no_p GenoPro::Individuals::Individual::sequence::element_child_no()
6318 GenoPro::Individuals::Individual::child_no_p node_p = NULL;
6319 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
6322 XsdFSM<child_no_ptr> *unitFsm = dynamic_cast<XsdFSM<child_no_ptr> *>(fsm_p);
6323 if(unitFsm && unitFsm->nodeList().size()>0) {
6324 assert(unitFsm->nodeList().size()==1);
6325 node_p = unitFsm->nodeList().at(0);
6329 FSM::warnNullNode(node_p, "child_no", "{http://www.w3.org/2001/XMLSchema}child_no", 0);
6335 void GenoPro::Individuals::Individual::sequence::set_child_no(DOMString val)
6338 mark_present_child_no();
6340 element_child_no()->stringValue(val);
6343 DOMString GenoPro::Individuals::Individual::sequence::get_child_no_string()
6345 return element_child_no()->stringValue();
6349 void GenoPro::Individuals::Individual::sequence::set_child_no(int val)
6352 mark_present_child_no();
6354 element_child_no()->value(val);
6357 int GenoPro::Individuals::Individual::sequence::get_child_no()
6359 return element_child_no()->value();
6364 void GenoPro::Individuals::Individual::sequence::mark_present_child_no()
6366 DOMStringPtr nsUriPtr = new DOMString("libgno");
6367 XsdEvent event(nsUriPtr, NULL, DOMString("child_no"), XsdEvent::ELEMENT_START, false);
6368 this->processEventThrow(event);
6375 GenoPro::Individuals::Individual::Name::Name(ElementCreateArgs args):
6376 XMLSchema::XmlElement<anyType>(args),
6381 , _sequence(new sequence(this) )
6384 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
6386 if(args.ownerDoc && args.ownerDoc->buildTree())
6388 if(args.ownerDoc->createSample()) {
6389 _fsm->fireSampleEvents();
6392 _fsm->fireRequiredEvents();
6397 void GenoPro::Individuals::Individual::Name::initFSM()
6399 XsdFsmBasePtr fsmsAttrs[] = {
6404 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
6406 _fsm->replaceContentFsm(_sequence);
6408 _fsmAttrs = _fsm->attributeFsm();
6409 _fsmElems = _fsm->contentFsm();
6413 /* element functions */
6416 GenoPro::Individuals::Individual::Name::Display_ptr GenoPro::Individuals::Individual::Name::create_Display(FsmCbOptions& options)
6418 static DOMStringPtr myName = new DOMString("Display");
6419 static DOMStringPtr myNsUri = new DOMString("libgno");
6421 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
6422 GenoPro::Individuals::Individual::Name::Display_p node = XSD::createElementTmpl<Display, void*>(t);
6424 if(options.isSampleCreate && (node->stringValue() == "") ) {
6425 node->stringValue(node->sampleValue());
6434 GenoPro::Individuals::Individual::Name::Display_p GenoPro::Individuals::Individual::Name::element_Display()
6436 FSM::warnNullNode(_Display, "Display", "{}Display", 0);
6440 void GenoPro::Individuals::Individual::Name::mark_present_Display()
6442 return get_sequence()->mark_present_Display();
6446 GenoPro::Individuals::Individual::Name::First_ptr GenoPro::Individuals::Individual::Name::create_First(FsmCbOptions& options)
6448 static DOMStringPtr myName = new DOMString("First");
6449 static DOMStringPtr myNsUri = new DOMString("libgno");
6451 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
6452 GenoPro::Individuals::Individual::Name::First_p node = XSD::createElementTmpl<First, XMLSchema::Types::bt_normalizedString*>(t);
6454 if(options.isSampleCreate && (node->stringValue() == "") ) {
6455 node->stringValue(node->sampleValue());
6464 GenoPro::Individuals::Individual::Name::First_p GenoPro::Individuals::Individual::Name::element_First()
6466 FSM::warnNullNode(_First, "First", "{http://www.w3.org/2001/XMLSchema}First", 0);
6470 void GenoPro::Individuals::Individual::Name::set_First(DOMString val)
6472 get_sequence()->set_First(val);
6475 DOMString GenoPro::Individuals::Individual::Name::get_First_string()
6477 return get_sequence()->get_First_string();
6481 void GenoPro::Individuals::Individual::Name::mark_present_First()
6483 return get_sequence()->mark_present_First();
6487 GenoPro::Individuals::Individual::Name::Last_ptr GenoPro::Individuals::Individual::Name::create_Last(FsmCbOptions& options)
6489 static DOMStringPtr myName = new DOMString("Last");
6490 static DOMStringPtr myNsUri = new DOMString("libgno");
6492 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
6493 GenoPro::Individuals::Individual::Name::Last_p node = XSD::createElementTmpl<Last, XMLSchema::Types::bt_normalizedString*>(t);
6495 if(options.isSampleCreate && (node->stringValue() == "") ) {
6496 node->stringValue(node->sampleValue());
6505 GenoPro::Individuals::Individual::Name::Last_p GenoPro::Individuals::Individual::Name::element_Last()
6507 FSM::warnNullNode(_Last, "Last", "{http://www.w3.org/2001/XMLSchema}Last", 0);
6511 void GenoPro::Individuals::Individual::Name::set_Last(DOMString val)
6513 get_sequence()->set_Last(val);
6516 DOMString GenoPro::Individuals::Individual::Name::get_Last_string()
6518 return get_sequence()->get_Last_string();
6522 void GenoPro::Individuals::Individual::Name::mark_present_Last()
6524 return get_sequence()->mark_present_Last();
6528 /* attribute functions */
6531 GenoPro::Individuals::Individual::Name::sequence::sequence(Name* that):
6534 XsdFsmBasePtr fsmArray[] = {
6535 new XsdFSM<Display_ptr>( Particle(new DOMString("libgno"), DOMString("Display"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Display_ptr, Name, FsmCbOptions>(_that, &Name::create_Display)),
6536 new XsdFSM<First_ptr>( Particle(new DOMString("libgno"), DOMString("First"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<First_ptr, Name, FsmCbOptions>(_that, &Name::create_First)),
6537 new XsdFSM<Last_ptr>( Particle(new DOMString("libgno"), DOMString("Last"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Last_ptr, Name, FsmCbOptions>(_that, &Name::create_Last)),
6542 XsdSequenceFsmOfFSMs::init(fsmArray);
6547 GenoPro::Individuals::Individual::Name::Display_p GenoPro::Individuals::Individual::Name::sequence::element_Display()
6549 GenoPro::Individuals::Individual::Name::Display_p node_p = NULL;
6550 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
6553 XsdFSM<Display_ptr> *unitFsm = dynamic_cast<XsdFSM<Display_ptr> *>(fsm_p);
6554 if(unitFsm && unitFsm->nodeList().size()>0) {
6555 assert(unitFsm->nodeList().size()==1);
6556 node_p = unitFsm->nodeList().at(0);
6560 FSM::warnNullNode(node_p, "Display", "{}Display", 0);
6567 void GenoPro::Individuals::Individual::Name::sequence::mark_present_Display()
6569 DOMStringPtr nsUriPtr = new DOMString("libgno");
6570 XsdEvent event(nsUriPtr, NULL, DOMString("Display"), XsdEvent::ELEMENT_START, false);
6571 this->processEventThrow(event);
6576 GenoPro::Individuals::Individual::Name::First_p GenoPro::Individuals::Individual::Name::sequence::element_First()
6578 GenoPro::Individuals::Individual::Name::First_p node_p = NULL;
6579 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
6582 XsdFSM<First_ptr> *unitFsm = dynamic_cast<XsdFSM<First_ptr> *>(fsm_p);
6583 if(unitFsm && unitFsm->nodeList().size()>0) {
6584 assert(unitFsm->nodeList().size()==1);
6585 node_p = unitFsm->nodeList().at(0);
6589 FSM::warnNullNode(node_p, "First", "{http://www.w3.org/2001/XMLSchema}First", 0);
6595 void GenoPro::Individuals::Individual::Name::sequence::set_First(DOMString val)
6598 mark_present_First();
6600 element_First()->stringValue(val);
6603 DOMString GenoPro::Individuals::Individual::Name::sequence::get_First_string()
6605 return element_First()->stringValue();
6610 void GenoPro::Individuals::Individual::Name::sequence::mark_present_First()
6612 DOMStringPtr nsUriPtr = new DOMString("libgno");
6613 XsdEvent event(nsUriPtr, NULL, DOMString("First"), XsdEvent::ELEMENT_START, false);
6614 this->processEventThrow(event);
6619 GenoPro::Individuals::Individual::Name::Last_p GenoPro::Individuals::Individual::Name::sequence::element_Last()
6621 GenoPro::Individuals::Individual::Name::Last_p node_p = NULL;
6622 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
6625 XsdFSM<Last_ptr> *unitFsm = dynamic_cast<XsdFSM<Last_ptr> *>(fsm_p);
6626 if(unitFsm && unitFsm->nodeList().size()>0) {
6627 assert(unitFsm->nodeList().size()==1);
6628 node_p = unitFsm->nodeList().at(0);
6632 FSM::warnNullNode(node_p, "Last", "{http://www.w3.org/2001/XMLSchema}Last", 0);
6638 void GenoPro::Individuals::Individual::Name::sequence::set_Last(DOMString val)
6641 mark_present_Last();
6643 element_Last()->stringValue(val);
6646 DOMString GenoPro::Individuals::Individual::Name::sequence::get_Last_string()
6648 return element_Last()->stringValue();
6653 void GenoPro::Individuals::Individual::Name::sequence::mark_present_Last()
6655 DOMStringPtr nsUriPtr = new DOMString("libgno");
6656 XsdEvent event(nsUriPtr, NULL, DOMString("Last"), XsdEvent::ELEMENT_START, false);
6657 this->processEventThrow(event);
6663 GenoPro::Individuals::Individual::Name::Display::Display(ElementCreateArgs args):
6664 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
6674 if(args.ownerDoc && args.ownerDoc->buildTree())
6677 if(args.ownerDoc->createSample()) {
6678 _fsm->fireSampleEvents();
6681 _fsm->fireRequiredEvents();
6686 void GenoPro::Individuals::Individual::Name::Display::initFSM()
6688 XsdFsmBasePtr fsmsAttrs[] = {
6689 new XsdFSM<attr_Lines_ptr>( Particle(NULL, DOMString("Lines"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Lines_ptr, Display, FsmCbOptions>(this, &Display::create_attr_Lines)),
6694 _fsm->appendAttributeFsms(fsmsAttrs);
6695 _fsmAttrs = _fsm->attributeFsm();
6696 _fsmElems = _fsm->contentFsm();
6700 /* element functions */
6703 /* attribute functions */
6706 GenoPro::Individuals::Individual::Name::Display::attr_Lines_ptr GenoPro::Individuals::Individual::Name::Display::create_attr_Lines(FsmCbOptions& options)
6708 static DOMStringPtr myName = new DOMString("Lines");
6709 static DOMStringPtr myNsUri = NULL;
6714 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
6715 GenoPro::Individuals::Individual::Name::Display::attr_Lines_p node = XSD::createAttributeTmpl<attr_Lines>(t);
6717 if(options.isSampleCreate && (node->stringValue() == "") ) {
6718 node->stringValue(node->sampleValue());
6727 void GenoPro::Individuals::Individual::Name::Display::set_attr_Lines(DOMString val)
6730 attribute_attr_Lines()->stringValue(val);
6733 DOMString GenoPro::Individuals::Individual::Name::Display::get_attr_Lines_string()
6736 return attribute_attr_Lines()->stringValue();
6740 void GenoPro::Individuals::Individual::Name::Display::set_attr_Lines(int val)
6743 attribute_attr_Lines()->value(val);
6746 int GenoPro::Individuals::Individual::Name::Display::get_attr_Lines()
6749 return attribute_attr_Lines()->value();
6753 GenoPro::Individuals::Individual::Name::Display::attr_Lines_p GenoPro::Individuals::Individual::Name::Display::attribute_attr_Lines()
6755 FSM::warnNullNode(_attr_Lines, "attr_Lines", "{http://www.w3.org/2001/XMLSchema}Lines", 1);
6761 GenoPro::Individuals::Individual::Position::Position(ElementCreateArgs args):
6762 XMLSchema::XmlElement<XMLSchema::Types::bt_normalizedString>(args),
6772 if(args.ownerDoc && args.ownerDoc->buildTree())
6775 if(args.ownerDoc->createSample()) {
6776 _fsm->fireSampleEvents();
6779 _fsm->fireRequiredEvents();
6784 void GenoPro::Individuals::Individual::Position::initFSM()
6786 XsdFsmBasePtr fsmsAttrs[] = {
6787 new XsdFSM<attr_BoundaryRect_ptr>( Particle(NULL, DOMString("BoundaryRect"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_BoundaryRect_ptr, Position, FsmCbOptions>(this, &Position::create_attr_BoundaryRect)),
6792 _fsm->appendAttributeFsms(fsmsAttrs);
6793 _fsmAttrs = _fsm->attributeFsm();
6794 _fsmElems = _fsm->contentFsm();
6798 /* element functions */
6801 /* attribute functions */
6804 GenoPro::Individuals::Individual::Position::attr_BoundaryRect_ptr GenoPro::Individuals::Individual::Position::create_attr_BoundaryRect(FsmCbOptions& options)
6806 static DOMStringPtr myName = new DOMString("BoundaryRect");
6807 static DOMStringPtr myNsUri = NULL;
6809 if(_attr_BoundaryRect) {
6810 return _attr_BoundaryRect;
6812 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
6813 GenoPro::Individuals::Individual::Position::attr_BoundaryRect_p node = XSD::createAttributeTmpl<attr_BoundaryRect>(t);
6815 if(options.isSampleCreate && (node->stringValue() == "") ) {
6816 node->stringValue(node->sampleValue());
6819 _attr_BoundaryRect = node;
6825 void GenoPro::Individuals::Individual::Position::set_attr_BoundaryRect(DOMString val)
6828 attribute_attr_BoundaryRect()->stringValue(val);
6831 DOMString GenoPro::Individuals::Individual::Position::get_attr_BoundaryRect_string()
6834 return attribute_attr_BoundaryRect()->stringValue();
6838 GenoPro::Individuals::Individual::Position::attr_BoundaryRect_p GenoPro::Individuals::Individual::Position::attribute_attr_BoundaryRect()
6840 FSM::warnNullNode(_attr_BoundaryRect, "attr_BoundaryRect", "{http://www.w3.org/2001/XMLSchema}BoundaryRect", 1);
6841 return _attr_BoundaryRect;
6847 GenoPro::Individuals::Individual::Death::Death(ElementCreateArgs args):
6848 XMLSchema::XmlElement<anyType>(args),
6853 , _sequence(new sequence(this) )
6856 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
6858 if(args.ownerDoc && args.ownerDoc->buildTree())
6860 if(args.ownerDoc->createSample()) {
6861 _fsm->fireSampleEvents();
6864 _fsm->fireRequiredEvents();
6869 void GenoPro::Individuals::Individual::Death::initFSM()
6871 XsdFsmBasePtr fsmsAttrs[] = {
6876 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
6878 _fsm->replaceContentFsm(_sequence);
6880 _fsmAttrs = _fsm->attributeFsm();
6881 _fsmElems = _fsm->contentFsm();
6885 /* element functions */
6888 GenoPro::Individuals::Individual::Death::Cause_ptr GenoPro::Individuals::Individual::Death::create_Cause(FsmCbOptions& options)
6890 static DOMStringPtr myName = new DOMString("Cause");
6891 static DOMStringPtr myNsUri = new DOMString("libgno");
6893 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
6894 GenoPro::Individuals::Individual::Death::Cause_p node = XSD::createElementTmpl<Cause, void*>(t);
6902 GenoPro::Individuals::Individual::Death::Cause_p GenoPro::Individuals::Individual::Death::element_Cause()
6904 FSM::warnNullNode(_Cause, "Cause", "{}Cause", 0);
6908 void GenoPro::Individuals::Individual::Death::mark_present_Cause()
6910 return get_sequence()->mark_present_Cause();
6914 GenoPro::Individuals::Individual::Death::Comment_ptr GenoPro::Individuals::Individual::Death::create_Comment(FsmCbOptions& options)
6916 static DOMStringPtr myName = new DOMString("Comment");
6917 static DOMStringPtr myNsUri = new DOMString("libgno");
6919 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
6920 GenoPro::Individuals::Individual::Death::Comment_p node = XSD::createElementTmpl<Comment, XMLSchema::Types::bt_string*>(t);
6922 if(options.isSampleCreate && (node->stringValue() == "") ) {
6923 node->stringValue(node->sampleValue());
6932 GenoPro::Individuals::Individual::Death::Comment_p GenoPro::Individuals::Individual::Death::element_Comment()
6934 FSM::warnNullNode(_Comment, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
6938 void GenoPro::Individuals::Individual::Death::set_Comment(DOMString val)
6940 get_sequence()->set_Comment(val);
6943 DOMString GenoPro::Individuals::Individual::Death::get_Comment_string()
6945 return get_sequence()->get_Comment_string();
6949 void GenoPro::Individuals::Individual::Death::mark_present_Comment()
6951 return get_sequence()->mark_present_Comment();
6955 /* attribute functions */
6958 GenoPro::Individuals::Individual::Death::sequence::sequence(Death* that):
6961 XsdFsmBasePtr fsmArray[] = {
6962 new XsdFSM<Cause_ptr>( Particle(new DOMString("libgno"), DOMString("Cause"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Cause_ptr, Death, FsmCbOptions>(_that, &Death::create_Cause)),
6963 new XsdFSM<Comment_ptr>( Particle(new DOMString("libgno"), DOMString("Comment"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Comment_ptr, Death, FsmCbOptions>(_that, &Death::create_Comment)),
6968 XsdSequenceFsmOfFSMs::init(fsmArray);
6973 GenoPro::Individuals::Individual::Death::Cause_p GenoPro::Individuals::Individual::Death::sequence::element_Cause()
6975 GenoPro::Individuals::Individual::Death::Cause_p node_p = NULL;
6976 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
6979 XsdFSM<Cause_ptr> *unitFsm = dynamic_cast<XsdFSM<Cause_ptr> *>(fsm_p);
6980 if(unitFsm && unitFsm->nodeList().size()>0) {
6981 assert(unitFsm->nodeList().size()==1);
6982 node_p = unitFsm->nodeList().at(0);
6986 FSM::warnNullNode(node_p, "Cause", "{}Cause", 0);
6993 void GenoPro::Individuals::Individual::Death::sequence::mark_present_Cause()
6995 DOMStringPtr nsUriPtr = new DOMString("libgno");
6996 XsdEvent event(nsUriPtr, NULL, DOMString("Cause"), XsdEvent::ELEMENT_START, false);
6997 this->processEventThrow(event);
7002 GenoPro::Individuals::Individual::Death::Comment_p GenoPro::Individuals::Individual::Death::sequence::element_Comment()
7004 GenoPro::Individuals::Individual::Death::Comment_p node_p = NULL;
7005 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
7008 XsdFSM<Comment_ptr> *unitFsm = dynamic_cast<XsdFSM<Comment_ptr> *>(fsm_p);
7009 if(unitFsm && unitFsm->nodeList().size()>0) {
7010 assert(unitFsm->nodeList().size()==1);
7011 node_p = unitFsm->nodeList().at(0);
7015 FSM::warnNullNode(node_p, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
7021 void GenoPro::Individuals::Individual::Death::sequence::set_Comment(DOMString val)
7024 mark_present_Comment();
7026 element_Comment()->stringValue(val);
7029 DOMString GenoPro::Individuals::Individual::Death::sequence::get_Comment_string()
7031 return element_Comment()->stringValue();
7036 void GenoPro::Individuals::Individual::Death::sequence::mark_present_Comment()
7038 DOMStringPtr nsUriPtr = new DOMString("libgno");
7039 XsdEvent event(nsUriPtr, NULL, DOMString("Comment"), XsdEvent::ELEMENT_START, false);
7040 this->processEventThrow(event);
7047 GenoPro::Individuals::Individual::Death::Cause::Cause(ElementCreateArgs args):
7048 XMLSchema::XmlElement<anyType>(args),
7053 , _sequence(new sequence(this) )
7056 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
7058 if(args.ownerDoc && args.ownerDoc->buildTree())
7060 if(args.ownerDoc->createSample()) {
7061 _fsm->fireSampleEvents();
7064 _fsm->fireRequiredEvents();
7069 void GenoPro::Individuals::Individual::Death::Cause::initFSM()
7071 XsdFsmBasePtr fsmsAttrs[] = {
7076 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
7078 _fsm->replaceContentFsm(_sequence);
7080 _fsmAttrs = _fsm->attributeFsm();
7081 _fsmElems = _fsm->contentFsm();
7085 /* element functions */
7088 GenoPro::Individuals::Individual::Death::Cause::Description_ptr GenoPro::Individuals::Individual::Death::Cause::create_Description(FsmCbOptions& options)
7090 static DOMStringPtr myName = new DOMString("Description");
7091 static DOMStringPtr myNsUri = new DOMString("libgno");
7093 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
7094 GenoPro::Individuals::Individual::Death::Cause::Description_p node = XSD::createElementTmpl<Description, XMLSchema::Types::bt_string*>(t);
7096 if(options.isSampleCreate && (node->stringValue() == "") ) {
7097 node->stringValue(node->sampleValue());
7100 _Description = node;
7106 GenoPro::Individuals::Individual::Death::Cause::Description_p GenoPro::Individuals::Individual::Death::Cause::element_Description()
7108 FSM::warnNullNode(_Description, "Description", "{http://www.w3.org/2001/XMLSchema}Description", 0);
7109 return _Description;
7112 void GenoPro::Individuals::Individual::Death::Cause::set_Description(DOMString val)
7114 get_sequence()->set_Description(val);
7117 DOMString GenoPro::Individuals::Individual::Death::Cause::get_Description_string()
7119 return get_sequence()->get_Description_string();
7123 void GenoPro::Individuals::Individual::Death::Cause::mark_present_Description()
7125 return get_sequence()->mark_present_Description();
7129 /* attribute functions */
7132 GenoPro::Individuals::Individual::Death::Cause::sequence::sequence(Cause* that):
7135 XsdFsmBasePtr fsmArray[] = {
7136 new XsdFSM<Description_ptr>( Particle(new DOMString("libgno"), DOMString("Description"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Description_ptr, Cause, FsmCbOptions>(_that, &Cause::create_Description)),
7141 XsdSequenceFsmOfFSMs::init(fsmArray);
7146 GenoPro::Individuals::Individual::Death::Cause::Description_p GenoPro::Individuals::Individual::Death::Cause::sequence::element_Description()
7148 GenoPro::Individuals::Individual::Death::Cause::Description_p node_p = NULL;
7149 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
7152 XsdFSM<Description_ptr> *unitFsm = dynamic_cast<XsdFSM<Description_ptr> *>(fsm_p);
7153 if(unitFsm && unitFsm->nodeList().size()>0) {
7154 assert(unitFsm->nodeList().size()==1);
7155 node_p = unitFsm->nodeList().at(0);
7159 FSM::warnNullNode(node_p, "Description", "{http://www.w3.org/2001/XMLSchema}Description", 0);
7165 void GenoPro::Individuals::Individual::Death::Cause::sequence::set_Description(DOMString val)
7168 mark_present_Description();
7170 element_Description()->stringValue(val);
7173 DOMString GenoPro::Individuals::Individual::Death::Cause::sequence::get_Description_string()
7175 return element_Description()->stringValue();
7180 void GenoPro::Individuals::Individual::Death::Cause::sequence::mark_present_Description()
7182 DOMStringPtr nsUriPtr = new DOMString("libgno");
7183 XsdEvent event(nsUriPtr, NULL, DOMString("Description"), XsdEvent::ELEMENT_START, false);
7184 this->processEventThrow(event);
7191 GenoPro::Families::Families(ElementCreateArgs args):
7192 XMLSchema::XmlElement<anyType>(args),
7197 , _sequence(new sequence(this) )
7200 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
7202 if(args.ownerDoc && args.ownerDoc->buildTree())
7204 if(args.ownerDoc->createSample()) {
7205 _fsm->fireSampleEvents();
7208 _fsm->fireRequiredEvents();
7213 void GenoPro::Families::initFSM()
7215 XsdFsmBasePtr fsmsAttrs[] = {
7220 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
7222 _fsm->replaceContentFsm(_sequence);
7224 _fsmAttrs = _fsm->attributeFsm();
7225 _fsmElems = _fsm->contentFsm();
7229 /* element functions */
7232 GenoPro::Families::Family_ptr GenoPro::Families::create_Family(FsmCbOptions& options)
7234 static DOMStringPtr myName = new DOMString("Family");
7235 static DOMStringPtr myNsUri = new DOMString("libgno");
7237 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
7238 GenoPro::Families::Family_p node = XSD::createElementTmpl<Family, void*>(t);
7240 _list_Family.push_back(node);
7246 GenoPro::Families::Family_p GenoPro::Families::element_Family_at(unsigned int idx)
7248 if(idx > _list_Family.size()-1) {
7249 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
7252 return _list_Family.at(idx);
7255 List<GenoPro::Families::Family_ptr> GenoPro::Families::elements_Family()
7257 return _list_Family;
7260 GenoPro::Families::Family_p GenoPro::Families::add_node_Family()
7262 return get_sequence()->add_node_Family();
7265 List<GenoPro::Families::Family_ptr> GenoPro::Families::set_count_Family(unsigned int size)
7267 return get_sequence()->set_count_Family(size);
7272 /* attribute functions */
7275 GenoPro::Families::sequence::sequence(Families* that):
7278 XsdFsmBasePtr fsmArray[] = {
7279 new XsdFSM<Family_ptr>( Particle(new DOMString("libgno"), DOMString("Family"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Family_ptr, Families, FsmCbOptions>(_that, &Families::create_Family)),
7284 XsdSequenceFsmOfFSMs::init(fsmArray);
7289 List<GenoPro::Families::Family_ptr> GenoPro::Families::sequence::elements_Family()
7292 List<Family_ptr> nodeList;
7293 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
7296 XsdFSM<Family_ptr> *unitFsm = dynamic_cast<XsdFSM<Family_ptr> *>(fsm_p);
7298 //nodeList = unitFsm->nodeList().stl_list();
7299 nodeList = unitFsm->nodeList();
7307 GenoPro::Families::Family_p GenoPro::Families::sequence::element_Family_at(unsigned int idx)
7309 return elements_Family().at(idx);
7313 GenoPro::Families::Family_p GenoPro::Families::sequence::add_node_Family()
7315 DOMStringPtr nsUriPtr = new DOMString("libgno");
7316 XsdEvent event(nsUriPtr, NULL, DOMString("Family"), XsdEvent::ELEMENT_START, false);
7317 this->processEventThrow(event);
7318 return elements_Family().back();
7321 List<GenoPro::Families::Family_ptr> GenoPro::Families::sequence::set_count_Family(unsigned int size)
7323 if( (size > -1) || (size < 1)) {
7325 oss << "set_count_Family: size should be in range: [" << 1
7326 << "," << "unbounded" << "]";
7327 throw IndexOutOfBoundsException(oss.str());
7330 unsigned int prevSize = elements_Family().size();
7331 if(size < prevSize) {
7332 //FIXME: allow later:
7333 throw XPlus::RuntimeException("resize lesser than current size not allowed");
7336 for(unsigned int j=prevSize; j<size; j++)
7338 // pretend docBuilding to avoid computation of adding after first loop
7339 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Family"), XsdEvent::ELEMENT_START, false);
7340 this->processEventThrow(event);
7343 return elements_Family();
7350 GenoPro::Families::Family::Family(ElementCreateArgs args):
7351 XMLSchema::XmlElement<anyType>(args),
7356 , _sequence(new sequence(this) )
7359 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
7361 if(args.ownerDoc && args.ownerDoc->buildTree())
7363 if(args.ownerDoc->createSample()) {
7364 _fsm->fireSampleEvents();
7367 _fsm->fireRequiredEvents();
7372 void GenoPro::Families::Family::initFSM()
7374 XsdFsmBasePtr fsmsAttrs[] = {
7375 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Family, FsmCbOptions>(this, &Family::create_attr_ID)),
7380 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
7382 _fsm->replaceContentFsm(_sequence);
7384 _fsmAttrs = _fsm->attributeFsm();
7385 _fsmElems = _fsm->contentFsm();
7389 /* element functions */
7392 GenoPro::Families::Family::Position_ptr GenoPro::Families::Family::create_Position(FsmCbOptions& options)
7394 static DOMStringPtr myName = new DOMString("Position");
7395 static DOMStringPtr myNsUri = new DOMString("libgno");
7397 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
7398 GenoPro::Families::Family::Position_p node = XSD::createElementTmpl<Position, void*>(t);
7406 GenoPro::Families::Family::Position_p GenoPro::Families::Family::element_Position()
7408 FSM::warnNullNode(_Position, "Position", "{}Position", 0);
7412 void GenoPro::Families::Family::mark_present_Position()
7414 return get_sequence()->mark_present_Position();
7418 GenoPro::Families::Family::Relation_ptr GenoPro::Families::Family::create_Relation(FsmCbOptions& options)
7420 static DOMStringPtr myName = new DOMString("Relation");
7421 static DOMStringPtr myNsUri = new DOMString("libgno");
7423 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
7424 GenoPro::Families::Family::Relation_p node = XSD::createElementTmpl<Relation, XMLSchema::Types::bt_normalizedString*>(t);
7426 if(options.isSampleCreate && (node->stringValue() == "") ) {
7427 node->stringValue(node->sampleValue());
7436 GenoPro::Families::Family::Relation_p GenoPro::Families::Family::element_Relation()
7438 FSM::warnNullNode(_Relation, "Relation", "{http://www.w3.org/2001/XMLSchema}Relation", 0);
7442 void GenoPro::Families::Family::set_Relation(DOMString val)
7444 get_sequence()->set_Relation(val);
7447 DOMString GenoPro::Families::Family::get_Relation_string()
7449 return get_sequence()->get_Relation_string();
7453 void GenoPro::Families::Family::mark_present_Relation()
7455 return get_sequence()->mark_present_Relation();
7459 /* attribute functions */
7462 GenoPro::Families::Family::attr_ID_ptr GenoPro::Families::Family::create_attr_ID(FsmCbOptions& options)
7464 static DOMStringPtr myName = new DOMString("ID");
7465 static DOMStringPtr myNsUri = NULL;
7470 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
7471 GenoPro::Families::Family::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
7473 if(options.isSampleCreate && (node->stringValue() == "") ) {
7474 node->stringValue(node->sampleValue());
7483 void GenoPro::Families::Family::set_attr_ID(DOMString val)
7486 attribute_attr_ID()->stringValue(val);
7489 DOMString GenoPro::Families::Family::get_attr_ID_string()
7492 return attribute_attr_ID()->stringValue();
7496 GenoPro::Families::Family::attr_ID_p GenoPro::Families::Family::attribute_attr_ID()
7498 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
7503 GenoPro::Families::Family::sequence::sequence(Family* that):
7506 XsdFsmBasePtr fsmArray[] = {
7507 new XsdFSM<Position_ptr>( Particle(new DOMString("libgno"), DOMString("Position"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Position_ptr, Family, FsmCbOptions>(_that, &Family::create_Position)),
7508 new XsdFSM<Relation_ptr>( Particle(new DOMString("libgno"), DOMString("Relation"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Relation_ptr, Family, FsmCbOptions>(_that, &Family::create_Relation)),
7513 XsdSequenceFsmOfFSMs::init(fsmArray);
7518 GenoPro::Families::Family::Position_p GenoPro::Families::Family::sequence::element_Position()
7520 GenoPro::Families::Family::Position_p node_p = NULL;
7521 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
7524 XsdFSM<Position_ptr> *unitFsm = dynamic_cast<XsdFSM<Position_ptr> *>(fsm_p);
7525 if(unitFsm && unitFsm->nodeList().size()>0) {
7526 assert(unitFsm->nodeList().size()==1);
7527 node_p = unitFsm->nodeList().at(0);
7531 FSM::warnNullNode(node_p, "Position", "{}Position", 0);
7538 void GenoPro::Families::Family::sequence::mark_present_Position()
7540 DOMStringPtr nsUriPtr = new DOMString("libgno");
7541 XsdEvent event(nsUriPtr, NULL, DOMString("Position"), XsdEvent::ELEMENT_START, false);
7542 this->processEventThrow(event);
7547 GenoPro::Families::Family::Relation_p GenoPro::Families::Family::sequence::element_Relation()
7549 GenoPro::Families::Family::Relation_p node_p = NULL;
7550 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
7553 XsdFSM<Relation_ptr> *unitFsm = dynamic_cast<XsdFSM<Relation_ptr> *>(fsm_p);
7554 if(unitFsm && unitFsm->nodeList().size()>0) {
7555 assert(unitFsm->nodeList().size()==1);
7556 node_p = unitFsm->nodeList().at(0);
7560 FSM::warnNullNode(node_p, "Relation", "{http://www.w3.org/2001/XMLSchema}Relation", 0);
7566 void GenoPro::Families::Family::sequence::set_Relation(DOMString val)
7569 mark_present_Relation();
7571 element_Relation()->stringValue(val);
7574 DOMString GenoPro::Families::Family::sequence::get_Relation_string()
7576 return element_Relation()->stringValue();
7581 void GenoPro::Families::Family::sequence::mark_present_Relation()
7583 DOMStringPtr nsUriPtr = new DOMString("libgno");
7584 XsdEvent event(nsUriPtr, NULL, DOMString("Relation"), XsdEvent::ELEMENT_START, false);
7585 this->processEventThrow(event);
7592 GenoPro::Families::Family::Position::Position(ElementCreateArgs args):
7593 XMLSchema::XmlElement<anyType>(args),
7598 , _sequence(new sequence(this) )
7601 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
7603 if(args.ownerDoc && args.ownerDoc->buildTree())
7605 if(args.ownerDoc->createSample()) {
7606 _fsm->fireSampleEvents();
7609 _fsm->fireRequiredEvents();
7614 void GenoPro::Families::Family::Position::initFSM()
7616 XsdFsmBasePtr fsmsAttrs[] = {
7621 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
7623 _fsm->replaceContentFsm(_sequence);
7625 _fsmAttrs = _fsm->attributeFsm();
7626 _fsmElems = _fsm->contentFsm();
7630 /* element functions */
7633 GenoPro::Families::Family::Position::Top_ptr GenoPro::Families::Family::Position::create_Top(FsmCbOptions& options)
7635 static DOMStringPtr myName = new DOMString("Top");
7636 static DOMStringPtr myNsUri = new DOMString("libgno");
7638 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
7639 GenoPro::Families::Family::Position::Top_p node = XSD::createElementTmpl<Top, void*>(t);
7647 GenoPro::Families::Family::Position::Top_p GenoPro::Families::Family::Position::element_Top()
7649 FSM::warnNullNode(_Top, "Top", "{}Top", 0);
7653 void GenoPro::Families::Family::Position::mark_present_Top()
7655 return get_sequence()->mark_present_Top();
7659 GenoPro::Families::Family::Position::Bottom_ptr GenoPro::Families::Family::Position::create_Bottom(FsmCbOptions& options)
7661 static DOMStringPtr myName = new DOMString("Bottom");
7662 static DOMStringPtr myNsUri = new DOMString("libgno");
7664 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
7665 GenoPro::Families::Family::Position::Bottom_p node = XSD::createElementTmpl<Bottom, void*>(t);
7673 GenoPro::Families::Family::Position::Bottom_p GenoPro::Families::Family::Position::element_Bottom()
7675 FSM::warnNullNode(_Bottom, "Bottom", "{}Bottom", 0);
7679 void GenoPro::Families::Family::Position::mark_present_Bottom()
7681 return get_sequence()->mark_present_Bottom();
7685 /* attribute functions */
7688 GenoPro::Families::Family::Position::sequence::sequence(Position* that):
7691 XsdFsmBasePtr fsmArray[] = {
7692 new XsdFSM<Top_ptr>( Particle(new DOMString("libgno"), DOMString("Top"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Top_ptr, Position, FsmCbOptions>(_that, &Position::create_Top)),
7693 new XsdFSM<Bottom_ptr>( Particle(new DOMString("libgno"), DOMString("Bottom"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Bottom_ptr, Position, FsmCbOptions>(_that, &Position::create_Bottom)),
7698 XsdSequenceFsmOfFSMs::init(fsmArray);
7703 GenoPro::Families::Family::Position::Top_p GenoPro::Families::Family::Position::sequence::element_Top()
7705 GenoPro::Families::Family::Position::Top_p node_p = NULL;
7706 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
7709 XsdFSM<Top_ptr> *unitFsm = dynamic_cast<XsdFSM<Top_ptr> *>(fsm_p);
7710 if(unitFsm && unitFsm->nodeList().size()>0) {
7711 assert(unitFsm->nodeList().size()==1);
7712 node_p = unitFsm->nodeList().at(0);
7716 FSM::warnNullNode(node_p, "Top", "{}Top", 0);
7723 void GenoPro::Families::Family::Position::sequence::mark_present_Top()
7725 DOMStringPtr nsUriPtr = new DOMString("libgno");
7726 XsdEvent event(nsUriPtr, NULL, DOMString("Top"), XsdEvent::ELEMENT_START, false);
7727 this->processEventThrow(event);
7732 GenoPro::Families::Family::Position::Bottom_p GenoPro::Families::Family::Position::sequence::element_Bottom()
7734 GenoPro::Families::Family::Position::Bottom_p node_p = NULL;
7735 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
7738 XsdFSM<Bottom_ptr> *unitFsm = dynamic_cast<XsdFSM<Bottom_ptr> *>(fsm_p);
7739 if(unitFsm && unitFsm->nodeList().size()>0) {
7740 assert(unitFsm->nodeList().size()==1);
7741 node_p = unitFsm->nodeList().at(0);
7745 FSM::warnNullNode(node_p, "Bottom", "{}Bottom", 0);
7752 void GenoPro::Families::Family::Position::sequence::mark_present_Bottom()
7754 DOMStringPtr nsUriPtr = new DOMString("libgno");
7755 XsdEvent event(nsUriPtr, NULL, DOMString("Bottom"), XsdEvent::ELEMENT_START, false);
7756 this->processEventThrow(event);
7763 GenoPro::Families::Family::Position::Top::Top(ElementCreateArgs args):
7764 XMLSchema::XmlElement<anyType>(args),
7769 , _sequence(new sequence(this) )
7772 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
7774 if(args.ownerDoc && args.ownerDoc->buildTree())
7776 if(args.ownerDoc->createSample()) {
7777 _fsm->fireSampleEvents();
7780 _fsm->fireRequiredEvents();
7785 void GenoPro::Families::Family::Position::Top::initFSM()
7787 XsdFsmBasePtr fsmsAttrs[] = {
7792 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
7794 _fsm->replaceContentFsm(_sequence);
7796 _fsmAttrs = _fsm->attributeFsm();
7797 _fsmElems = _fsm->contentFsm();
7801 /* element functions */
7804 GenoPro::Families::Family::Position::Top::Left_ptr GenoPro::Families::Family::Position::Top::create_Left(FsmCbOptions& options)
7806 static DOMStringPtr myName = new DOMString("Left");
7807 static DOMStringPtr myNsUri = new DOMString("libgno");
7809 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
7810 GenoPro::Families::Family::Position::Top::Left_p node = XSD::createElementTmpl<Left, XMLSchema::Types::bt_normalizedString*>(t);
7812 if(options.isSampleCreate && (node->stringValue() == "") ) {
7813 node->stringValue(node->sampleValue());
7822 GenoPro::Families::Family::Position::Top::Left_p GenoPro::Families::Family::Position::Top::element_Left()
7824 FSM::warnNullNode(_Left, "Left", "{http://www.w3.org/2001/XMLSchema}Left", 0);
7828 void GenoPro::Families::Family::Position::Top::set_Left(DOMString val)
7830 get_sequence()->set_Left(val);
7833 DOMString GenoPro::Families::Family::Position::Top::get_Left_string()
7835 return get_sequence()->get_Left_string();
7839 void GenoPro::Families::Family::Position::Top::mark_present_Left()
7841 return get_sequence()->mark_present_Left();
7845 GenoPro::Families::Family::Position::Top::Right_ptr GenoPro::Families::Family::Position::Top::create_Right(FsmCbOptions& options)
7847 static DOMStringPtr myName = new DOMString("Right");
7848 static DOMStringPtr myNsUri = new DOMString("libgno");
7850 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
7851 GenoPro::Families::Family::Position::Top::Right_p node = XSD::createElementTmpl<Right, XMLSchema::Types::bt_normalizedString*>(t);
7853 if(options.isSampleCreate && (node->stringValue() == "") ) {
7854 node->stringValue(node->sampleValue());
7863 GenoPro::Families::Family::Position::Top::Right_p GenoPro::Families::Family::Position::Top::element_Right()
7865 FSM::warnNullNode(_Right, "Right", "{http://www.w3.org/2001/XMLSchema}Right", 0);
7869 void GenoPro::Families::Family::Position::Top::set_Right(DOMString val)
7871 get_sequence()->set_Right(val);
7874 DOMString GenoPro::Families::Family::Position::Top::get_Right_string()
7876 return get_sequence()->get_Right_string();
7880 void GenoPro::Families::Family::Position::Top::mark_present_Right()
7882 return get_sequence()->mark_present_Right();
7886 /* attribute functions */
7889 GenoPro::Families::Family::Position::Top::sequence::sequence(Top* that):
7892 XsdFsmBasePtr fsmArray[] = {
7893 new XsdFSM<Left_ptr>( Particle(new DOMString("libgno"), DOMString("Left"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Left_ptr, Top, FsmCbOptions>(_that, &Top::create_Left)),
7894 new XsdFSM<Right_ptr>( Particle(new DOMString("libgno"), DOMString("Right"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Right_ptr, Top, FsmCbOptions>(_that, &Top::create_Right)),
7899 XsdSequenceFsmOfFSMs::init(fsmArray);
7904 GenoPro::Families::Family::Position::Top::Left_p GenoPro::Families::Family::Position::Top::sequence::element_Left()
7906 GenoPro::Families::Family::Position::Top::Left_p node_p = NULL;
7907 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
7910 XsdFSM<Left_ptr> *unitFsm = dynamic_cast<XsdFSM<Left_ptr> *>(fsm_p);
7911 if(unitFsm && unitFsm->nodeList().size()>0) {
7912 assert(unitFsm->nodeList().size()==1);
7913 node_p = unitFsm->nodeList().at(0);
7917 FSM::warnNullNode(node_p, "Left", "{http://www.w3.org/2001/XMLSchema}Left", 0);
7923 void GenoPro::Families::Family::Position::Top::sequence::set_Left(DOMString val)
7926 mark_present_Left();
7928 element_Left()->stringValue(val);
7931 DOMString GenoPro::Families::Family::Position::Top::sequence::get_Left_string()
7933 return element_Left()->stringValue();
7938 void GenoPro::Families::Family::Position::Top::sequence::mark_present_Left()
7940 DOMStringPtr nsUriPtr = new DOMString("libgno");
7941 XsdEvent event(nsUriPtr, NULL, DOMString("Left"), XsdEvent::ELEMENT_START, false);
7942 this->processEventThrow(event);
7947 GenoPro::Families::Family::Position::Top::Right_p GenoPro::Families::Family::Position::Top::sequence::element_Right()
7949 GenoPro::Families::Family::Position::Top::Right_p node_p = NULL;
7950 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
7953 XsdFSM<Right_ptr> *unitFsm = dynamic_cast<XsdFSM<Right_ptr> *>(fsm_p);
7954 if(unitFsm && unitFsm->nodeList().size()>0) {
7955 assert(unitFsm->nodeList().size()==1);
7956 node_p = unitFsm->nodeList().at(0);
7960 FSM::warnNullNode(node_p, "Right", "{http://www.w3.org/2001/XMLSchema}Right", 0);
7966 void GenoPro::Families::Family::Position::Top::sequence::set_Right(DOMString val)
7969 mark_present_Right();
7971 element_Right()->stringValue(val);
7974 DOMString GenoPro::Families::Family::Position::Top::sequence::get_Right_string()
7976 return element_Right()->stringValue();
7981 void GenoPro::Families::Family::Position::Top::sequence::mark_present_Right()
7983 DOMStringPtr nsUriPtr = new DOMString("libgno");
7984 XsdEvent event(nsUriPtr, NULL, DOMString("Right"), XsdEvent::ELEMENT_START, false);
7985 this->processEventThrow(event);
7992 GenoPro::Families::Family::Position::Bottom::Bottom(ElementCreateArgs args):
7993 XMLSchema::XmlElement<anyType>(args),
7998 , _sequence(new sequence(this) )
8001 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
8003 if(args.ownerDoc && args.ownerDoc->buildTree())
8005 if(args.ownerDoc->createSample()) {
8006 _fsm->fireSampleEvents();
8009 _fsm->fireRequiredEvents();
8014 void GenoPro::Families::Family::Position::Bottom::initFSM()
8016 XsdFsmBasePtr fsmsAttrs[] = {
8021 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
8023 _fsm->replaceContentFsm(_sequence);
8025 _fsmAttrs = _fsm->attributeFsm();
8026 _fsmElems = _fsm->contentFsm();
8030 /* element functions */
8033 GenoPro::Families::Family::Position::Bottom::Left_ptr GenoPro::Families::Family::Position::Bottom::create_Left(FsmCbOptions& options)
8035 static DOMStringPtr myName = new DOMString("Left");
8036 static DOMStringPtr myNsUri = new DOMString("libgno");
8038 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
8039 GenoPro::Families::Family::Position::Bottom::Left_p node = XSD::createElementTmpl<Left, XMLSchema::Types::bt_normalizedString*>(t);
8041 if(options.isSampleCreate && (node->stringValue() == "") ) {
8042 node->stringValue(node->sampleValue());
8051 GenoPro::Families::Family::Position::Bottom::Left_p GenoPro::Families::Family::Position::Bottom::element_Left()
8053 FSM::warnNullNode(_Left, "Left", "{http://www.w3.org/2001/XMLSchema}Left", 0);
8057 void GenoPro::Families::Family::Position::Bottom::set_Left(DOMString val)
8059 get_sequence()->set_Left(val);
8062 DOMString GenoPro::Families::Family::Position::Bottom::get_Left_string()
8064 return get_sequence()->get_Left_string();
8068 void GenoPro::Families::Family::Position::Bottom::mark_present_Left()
8070 return get_sequence()->mark_present_Left();
8074 GenoPro::Families::Family::Position::Bottom::Right_ptr GenoPro::Families::Family::Position::Bottom::create_Right(FsmCbOptions& options)
8076 static DOMStringPtr myName = new DOMString("Right");
8077 static DOMStringPtr myNsUri = new DOMString("libgno");
8079 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
8080 GenoPro::Families::Family::Position::Bottom::Right_p node = XSD::createElementTmpl<Right, XMLSchema::Types::bt_normalizedString*>(t);
8082 if(options.isSampleCreate && (node->stringValue() == "") ) {
8083 node->stringValue(node->sampleValue());
8092 GenoPro::Families::Family::Position::Bottom::Right_p GenoPro::Families::Family::Position::Bottom::element_Right()
8094 FSM::warnNullNode(_Right, "Right", "{http://www.w3.org/2001/XMLSchema}Right", 0);
8098 void GenoPro::Families::Family::Position::Bottom::set_Right(DOMString val)
8100 get_sequence()->set_Right(val);
8103 DOMString GenoPro::Families::Family::Position::Bottom::get_Right_string()
8105 return get_sequence()->get_Right_string();
8109 void GenoPro::Families::Family::Position::Bottom::mark_present_Right()
8111 return get_sequence()->mark_present_Right();
8115 /* attribute functions */
8118 GenoPro::Families::Family::Position::Bottom::sequence::sequence(Bottom* that):
8121 XsdFsmBasePtr fsmArray[] = {
8122 new XsdFSM<Left_ptr>( Particle(new DOMString("libgno"), DOMString("Left"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Left_ptr, Bottom, FsmCbOptions>(_that, &Bottom::create_Left)),
8123 new XsdFSM<Right_ptr>( Particle(new DOMString("libgno"), DOMString("Right"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Right_ptr, Bottom, FsmCbOptions>(_that, &Bottom::create_Right)),
8128 XsdSequenceFsmOfFSMs::init(fsmArray);
8133 GenoPro::Families::Family::Position::Bottom::Left_p GenoPro::Families::Family::Position::Bottom::sequence::element_Left()
8135 GenoPro::Families::Family::Position::Bottom::Left_p node_p = NULL;
8136 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
8139 XsdFSM<Left_ptr> *unitFsm = dynamic_cast<XsdFSM<Left_ptr> *>(fsm_p);
8140 if(unitFsm && unitFsm->nodeList().size()>0) {
8141 assert(unitFsm->nodeList().size()==1);
8142 node_p = unitFsm->nodeList().at(0);
8146 FSM::warnNullNode(node_p, "Left", "{http://www.w3.org/2001/XMLSchema}Left", 0);
8152 void GenoPro::Families::Family::Position::Bottom::sequence::set_Left(DOMString val)
8155 mark_present_Left();
8157 element_Left()->stringValue(val);
8160 DOMString GenoPro::Families::Family::Position::Bottom::sequence::get_Left_string()
8162 return element_Left()->stringValue();
8167 void GenoPro::Families::Family::Position::Bottom::sequence::mark_present_Left()
8169 DOMStringPtr nsUriPtr = new DOMString("libgno");
8170 XsdEvent event(nsUriPtr, NULL, DOMString("Left"), XsdEvent::ELEMENT_START, false);
8171 this->processEventThrow(event);
8176 GenoPro::Families::Family::Position::Bottom::Right_p GenoPro::Families::Family::Position::Bottom::sequence::element_Right()
8178 GenoPro::Families::Family::Position::Bottom::Right_p node_p = NULL;
8179 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
8182 XsdFSM<Right_ptr> *unitFsm = dynamic_cast<XsdFSM<Right_ptr> *>(fsm_p);
8183 if(unitFsm && unitFsm->nodeList().size()>0) {
8184 assert(unitFsm->nodeList().size()==1);
8185 node_p = unitFsm->nodeList().at(0);
8189 FSM::warnNullNode(node_p, "Right", "{http://www.w3.org/2001/XMLSchema}Right", 0);
8195 void GenoPro::Families::Family::Position::Bottom::sequence::set_Right(DOMString val)
8198 mark_present_Right();
8200 element_Right()->stringValue(val);
8203 DOMString GenoPro::Families::Family::Position::Bottom::sequence::get_Right_string()
8205 return element_Right()->stringValue();
8210 void GenoPro::Families::Family::Position::Bottom::sequence::mark_present_Right()
8212 DOMStringPtr nsUriPtr = new DOMString("libgno");
8213 XsdEvent event(nsUriPtr, NULL, DOMString("Right"), XsdEvent::ELEMENT_START, false);
8214 this->processEventThrow(event);
8221 GenoPro::Marriages::Marriages(ElementCreateArgs args):
8222 XMLSchema::XmlElement<anyType>(args),
8227 , _sequence(new sequence(this) )
8230 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
8232 if(args.ownerDoc && args.ownerDoc->buildTree())
8234 if(args.ownerDoc->createSample()) {
8235 _fsm->fireSampleEvents();
8238 _fsm->fireRequiredEvents();
8243 void GenoPro::Marriages::initFSM()
8245 XsdFsmBasePtr fsmsAttrs[] = {
8250 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
8252 _fsm->replaceContentFsm(_sequence);
8254 _fsmAttrs = _fsm->attributeFsm();
8255 _fsmElems = _fsm->contentFsm();
8259 /* element functions */
8262 GenoPro::Marriages::Marriage_ptr GenoPro::Marriages::create_Marriage(FsmCbOptions& options)
8264 static DOMStringPtr myName = new DOMString("Marriage");
8265 static DOMStringPtr myNsUri = new DOMString("libgno");
8267 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
8268 GenoPro::Marriages::Marriage_p node = XSD::createElementTmpl<Marriage, void*>(t);
8270 _list_Marriage.push_back(node);
8276 GenoPro::Marriages::Marriage_p GenoPro::Marriages::element_Marriage_at(unsigned int idx)
8278 if(idx > _list_Marriage.size()-1) {
8279 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
8282 return _list_Marriage.at(idx);
8285 List<GenoPro::Marriages::Marriage_ptr> GenoPro::Marriages::elements_Marriage()
8287 return _list_Marriage;
8290 GenoPro::Marriages::Marriage_p GenoPro::Marriages::add_node_Marriage()
8292 return get_sequence()->add_node_Marriage();
8295 List<GenoPro::Marriages::Marriage_ptr> GenoPro::Marriages::set_count_Marriage(unsigned int size)
8297 return get_sequence()->set_count_Marriage(size);
8302 /* attribute functions */
8305 GenoPro::Marriages::sequence::sequence(Marriages* that):
8308 XsdFsmBasePtr fsmArray[] = {
8309 new XsdFSM<Marriage_ptr>( Particle(new DOMString("libgno"), DOMString("Marriage"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Marriage_ptr, Marriages, FsmCbOptions>(_that, &Marriages::create_Marriage)),
8314 XsdSequenceFsmOfFSMs::init(fsmArray);
8319 List<GenoPro::Marriages::Marriage_ptr> GenoPro::Marriages::sequence::elements_Marriage()
8322 List<Marriage_ptr> nodeList;
8323 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
8326 XsdFSM<Marriage_ptr> *unitFsm = dynamic_cast<XsdFSM<Marriage_ptr> *>(fsm_p);
8328 //nodeList = unitFsm->nodeList().stl_list();
8329 nodeList = unitFsm->nodeList();
8337 GenoPro::Marriages::Marriage_p GenoPro::Marriages::sequence::element_Marriage_at(unsigned int idx)
8339 return elements_Marriage().at(idx);
8343 GenoPro::Marriages::Marriage_p GenoPro::Marriages::sequence::add_node_Marriage()
8345 DOMStringPtr nsUriPtr = new DOMString("libgno");
8346 XsdEvent event(nsUriPtr, NULL, DOMString("Marriage"), XsdEvent::ELEMENT_START, false);
8347 this->processEventThrow(event);
8348 return elements_Marriage().back();
8351 List<GenoPro::Marriages::Marriage_ptr> GenoPro::Marriages::sequence::set_count_Marriage(unsigned int size)
8353 if( (size > -1) || (size < 1)) {
8355 oss << "set_count_Marriage: size should be in range: [" << 1
8356 << "," << "unbounded" << "]";
8357 throw IndexOutOfBoundsException(oss.str());
8360 unsigned int prevSize = elements_Marriage().size();
8361 if(size < prevSize) {
8362 //FIXME: allow later:
8363 throw XPlus::RuntimeException("resize lesser than current size not allowed");
8366 for(unsigned int j=prevSize; j<size; j++)
8368 // pretend docBuilding to avoid computation of adding after first loop
8369 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Marriage"), XsdEvent::ELEMENT_START, false);
8370 this->processEventThrow(event);
8373 return elements_Marriage();
8380 GenoPro::Marriages::Marriage::Marriage(ElementCreateArgs args):
8381 XMLSchema::XmlElement<anyType>(args),
8386 , _sequence(new sequence(this) )
8389 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
8391 if(args.ownerDoc && args.ownerDoc->buildTree())
8393 if(args.ownerDoc->createSample()) {
8394 _fsm->fireSampleEvents();
8397 _fsm->fireRequiredEvents();
8402 void GenoPro::Marriages::Marriage::initFSM()
8404 XsdFsmBasePtr fsmsAttrs[] = {
8405 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Marriage, FsmCbOptions>(this, &Marriage::create_attr_ID)),
8410 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
8412 _fsm->replaceContentFsm(_sequence);
8414 _fsmAttrs = _fsm->attributeFsm();
8415 _fsmElems = _fsm->contentFsm();
8419 /* element functions */
8422 GenoPro::Marriages::Marriage::Type_ptr GenoPro::Marriages::Marriage::create_Type(FsmCbOptions& options)
8424 static DOMStringPtr myName = new DOMString("Type");
8425 static DOMStringPtr myNsUri = new DOMString("libgno");
8427 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
8428 GenoPro::Marriages::Marriage::Type_p node = XSD::createElementTmpl<Type, XMLSchema::Types::bt_normalizedString*>(t);
8430 if(options.isSampleCreate && (node->stringValue() == "") ) {
8431 node->stringValue(node->sampleValue());
8440 GenoPro::Marriages::Marriage::Type_p GenoPro::Marriages::Marriage::element_Type()
8442 FSM::warnNullNode(_Type, "Type", "{http://www.w3.org/2001/XMLSchema}Type", 0);
8446 void GenoPro::Marriages::Marriage::set_Type(DOMString val)
8448 get_sequence()->set_Type(val);
8451 DOMString GenoPro::Marriages::Marriage::get_Type_string()
8453 return get_sequence()->get_Type_string();
8457 void GenoPro::Marriages::Marriage::mark_present_Type()
8459 return get_sequence()->mark_present_Type();
8463 GenoPro::Marriages::Marriage::Date_ptr GenoPro::Marriages::Marriage::create_Date(FsmCbOptions& options)
8465 static DOMStringPtr myName = new DOMString("Date");
8466 static DOMStringPtr myNsUri = new DOMString("libgno");
8468 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
8469 GenoPro::Marriages::Marriage::Date_p node = XSD::createElementTmpl<Date, XMLSchema::Types::bt_string*>(t);
8471 if(options.isSampleCreate && (node->stringValue() == "") ) {
8472 node->stringValue(node->sampleValue());
8481 GenoPro::Marriages::Marriage::Date_p GenoPro::Marriages::Marriage::element_Date()
8483 FSM::warnNullNode(_Date, "Date", "{http://www.w3.org/2001/XMLSchema}Date", 0);
8487 void GenoPro::Marriages::Marriage::set_Date(DOMString val)
8489 get_sequence()->set_Date(val);
8492 DOMString GenoPro::Marriages::Marriage::get_Date_string()
8494 return get_sequence()->get_Date_string();
8498 void GenoPro::Marriages::Marriage::mark_present_Date()
8500 return get_sequence()->mark_present_Date();
8504 GenoPro::Marriages::Marriage::Place_ptr GenoPro::Marriages::Marriage::create_Place(FsmCbOptions& options)
8506 static DOMStringPtr myName = new DOMString("Place");
8507 static DOMStringPtr myNsUri = new DOMString("libgno");
8509 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
8510 GenoPro::Marriages::Marriage::Place_p node = XSD::createElementTmpl<Place, XMLSchema::Types::bt_normalizedString*>(t);
8512 if(options.isSampleCreate && (node->stringValue() == "") ) {
8513 node->stringValue(node->sampleValue());
8522 GenoPro::Marriages::Marriage::Place_p GenoPro::Marriages::Marriage::element_Place()
8524 FSM::warnNullNode(_Place, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
8528 void GenoPro::Marriages::Marriage::set_Place(DOMString val)
8530 get_sequence()->set_Place(val);
8533 DOMString GenoPro::Marriages::Marriage::get_Place_string()
8535 return get_sequence()->get_Place_string();
8539 void GenoPro::Marriages::Marriage::mark_present_Place()
8541 return get_sequence()->mark_present_Place();
8545 GenoPro::Marriages::Marriage::Witnesses_ptr GenoPro::Marriages::Marriage::create_Witnesses(FsmCbOptions& options)
8547 static DOMStringPtr myName = new DOMString("Witnesses");
8548 static DOMStringPtr myNsUri = new DOMString("libgno");
8550 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
8551 GenoPro::Marriages::Marriage::Witnesses_p node = XSD::createElementTmpl<Witnesses, XMLSchema::Types::bt_string*>(t);
8553 if(options.isSampleCreate && (node->stringValue() == "") ) {
8554 node->stringValue(node->sampleValue());
8563 GenoPro::Marriages::Marriage::Witnesses_p GenoPro::Marriages::Marriage::element_Witnesses()
8565 FSM::warnNullNode(_Witnesses, "Witnesses", "{http://www.w3.org/2001/XMLSchema}Witnesses", 0);
8569 void GenoPro::Marriages::Marriage::set_Witnesses(DOMString val)
8571 get_sequence()->set_Witnesses(val);
8574 DOMString GenoPro::Marriages::Marriage::get_Witnesses_string()
8576 return get_sequence()->get_Witnesses_string();
8580 void GenoPro::Marriages::Marriage::mark_present_Witnesses()
8582 return get_sequence()->mark_present_Witnesses();
8586 /* attribute functions */
8589 GenoPro::Marriages::Marriage::attr_ID_ptr GenoPro::Marriages::Marriage::create_attr_ID(FsmCbOptions& options)
8591 static DOMStringPtr myName = new DOMString("ID");
8592 static DOMStringPtr myNsUri = NULL;
8597 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
8598 GenoPro::Marriages::Marriage::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
8600 if(options.isSampleCreate && (node->stringValue() == "") ) {
8601 node->stringValue(node->sampleValue());
8610 void GenoPro::Marriages::Marriage::set_attr_ID(DOMString val)
8613 attribute_attr_ID()->stringValue(val);
8616 DOMString GenoPro::Marriages::Marriage::get_attr_ID_string()
8619 return attribute_attr_ID()->stringValue();
8623 GenoPro::Marriages::Marriage::attr_ID_p GenoPro::Marriages::Marriage::attribute_attr_ID()
8625 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
8630 GenoPro::Marriages::Marriage::sequence::sequence(Marriage* that):
8633 XsdFsmBasePtr fsmArray[] = {
8634 new XsdFSM<Type_ptr>( Particle(new DOMString("libgno"), DOMString("Type"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Type_ptr, Marriage, FsmCbOptions>(_that, &Marriage::create_Type)),
8635 new XsdFSM<Date_ptr>( Particle(new DOMString("libgno"), DOMString("Date"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Date_ptr, Marriage, FsmCbOptions>(_that, &Marriage::create_Date)),
8636 new XsdFSM<Place_ptr>( Particle(new DOMString("libgno"), DOMString("Place"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Place_ptr, Marriage, FsmCbOptions>(_that, &Marriage::create_Place)),
8637 new XsdFSM<Witnesses_ptr>( Particle(new DOMString("libgno"), DOMString("Witnesses"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Witnesses_ptr, Marriage, FsmCbOptions>(_that, &Marriage::create_Witnesses)),
8642 XsdSequenceFsmOfFSMs::init(fsmArray);
8647 GenoPro::Marriages::Marriage::Type_p GenoPro::Marriages::Marriage::sequence::element_Type()
8649 GenoPro::Marriages::Marriage::Type_p node_p = NULL;
8650 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
8653 XsdFSM<Type_ptr> *unitFsm = dynamic_cast<XsdFSM<Type_ptr> *>(fsm_p);
8654 if(unitFsm && unitFsm->nodeList().size()>0) {
8655 assert(unitFsm->nodeList().size()==1);
8656 node_p = unitFsm->nodeList().at(0);
8660 FSM::warnNullNode(node_p, "Type", "{http://www.w3.org/2001/XMLSchema}Type", 0);
8666 void GenoPro::Marriages::Marriage::sequence::set_Type(DOMString val)
8669 mark_present_Type();
8671 element_Type()->stringValue(val);
8674 DOMString GenoPro::Marriages::Marriage::sequence::get_Type_string()
8676 return element_Type()->stringValue();
8681 void GenoPro::Marriages::Marriage::sequence::mark_present_Type()
8683 DOMStringPtr nsUriPtr = new DOMString("libgno");
8684 XsdEvent event(nsUriPtr, NULL, DOMString("Type"), XsdEvent::ELEMENT_START, false);
8685 this->processEventThrow(event);
8690 GenoPro::Marriages::Marriage::Date_p GenoPro::Marriages::Marriage::sequence::element_Date()
8692 GenoPro::Marriages::Marriage::Date_p node_p = NULL;
8693 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
8696 XsdFSM<Date_ptr> *unitFsm = dynamic_cast<XsdFSM<Date_ptr> *>(fsm_p);
8697 if(unitFsm && unitFsm->nodeList().size()>0) {
8698 assert(unitFsm->nodeList().size()==1);
8699 node_p = unitFsm->nodeList().at(0);
8703 FSM::warnNullNode(node_p, "Date", "{http://www.w3.org/2001/XMLSchema}Date", 0);
8709 void GenoPro::Marriages::Marriage::sequence::set_Date(DOMString val)
8712 mark_present_Date();
8714 element_Date()->stringValue(val);
8717 DOMString GenoPro::Marriages::Marriage::sequence::get_Date_string()
8719 return element_Date()->stringValue();
8724 void GenoPro::Marriages::Marriage::sequence::mark_present_Date()
8726 DOMStringPtr nsUriPtr = new DOMString("libgno");
8727 XsdEvent event(nsUriPtr, NULL, DOMString("Date"), XsdEvent::ELEMENT_START, false);
8728 this->processEventThrow(event);
8733 GenoPro::Marriages::Marriage::Place_p GenoPro::Marriages::Marriage::sequence::element_Place()
8735 GenoPro::Marriages::Marriage::Place_p node_p = NULL;
8736 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
8739 XsdFSM<Place_ptr> *unitFsm = dynamic_cast<XsdFSM<Place_ptr> *>(fsm_p);
8740 if(unitFsm && unitFsm->nodeList().size()>0) {
8741 assert(unitFsm->nodeList().size()==1);
8742 node_p = unitFsm->nodeList().at(0);
8746 FSM::warnNullNode(node_p, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
8752 void GenoPro::Marriages::Marriage::sequence::set_Place(DOMString val)
8755 mark_present_Place();
8757 element_Place()->stringValue(val);
8760 DOMString GenoPro::Marriages::Marriage::sequence::get_Place_string()
8762 return element_Place()->stringValue();
8767 void GenoPro::Marriages::Marriage::sequence::mark_present_Place()
8769 DOMStringPtr nsUriPtr = new DOMString("libgno");
8770 XsdEvent event(nsUriPtr, NULL, DOMString("Place"), XsdEvent::ELEMENT_START, false);
8771 this->processEventThrow(event);
8776 GenoPro::Marriages::Marriage::Witnesses_p GenoPro::Marriages::Marriage::sequence::element_Witnesses()
8778 GenoPro::Marriages::Marriage::Witnesses_p node_p = NULL;
8779 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
8782 XsdFSM<Witnesses_ptr> *unitFsm = dynamic_cast<XsdFSM<Witnesses_ptr> *>(fsm_p);
8783 if(unitFsm && unitFsm->nodeList().size()>0) {
8784 assert(unitFsm->nodeList().size()==1);
8785 node_p = unitFsm->nodeList().at(0);
8789 FSM::warnNullNode(node_p, "Witnesses", "{http://www.w3.org/2001/XMLSchema}Witnesses", 0);
8795 void GenoPro::Marriages::Marriage::sequence::set_Witnesses(DOMString val)
8798 mark_present_Witnesses();
8800 element_Witnesses()->stringValue(val);
8803 DOMString GenoPro::Marriages::Marriage::sequence::get_Witnesses_string()
8805 return element_Witnesses()->stringValue();
8810 void GenoPro::Marriages::Marriage::sequence::mark_present_Witnesses()
8812 DOMStringPtr nsUriPtr = new DOMString("libgno");
8813 XsdEvent event(nsUriPtr, NULL, DOMString("Witnesses"), XsdEvent::ELEMENT_START, false);
8814 this->processEventThrow(event);
8821 GenoPro::PedigreeLinks::PedigreeLinks(ElementCreateArgs args):
8822 XMLSchema::XmlElement<anyType>(args),
8827 , _sequence(new sequence(this) )
8830 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
8832 if(args.ownerDoc && args.ownerDoc->buildTree())
8834 if(args.ownerDoc->createSample()) {
8835 _fsm->fireSampleEvents();
8838 _fsm->fireRequiredEvents();
8843 void GenoPro::PedigreeLinks::initFSM()
8845 XsdFsmBasePtr fsmsAttrs[] = {
8850 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
8852 _fsm->replaceContentFsm(_sequence);
8854 _fsmAttrs = _fsm->attributeFsm();
8855 _fsmElems = _fsm->contentFsm();
8859 /* element functions */
8861 #ifndef __PedigreeLinks_PedigreeLink_member_elems_fns
8862 #define __PedigreeLinks_PedigreeLink_member_elems_fns
8865 GenoPro::PedigreeLinks::PedigreeLink_ptr GenoPro::PedigreeLinks::create_PedigreeLink(FsmCbOptions& options)
8867 static DOMStringPtr myName = new DOMString("PedigreeLink");
8868 static DOMStringPtr myNsUri = new DOMString("libgno");
8870 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
8871 GenoPro::PedigreeLinks::PedigreeLink_p node = XSD::createElementTmpl<PedigreeLink, void*>(t);
8873 _list_PedigreeLink.push_back(node);
8879 GenoPro::PedigreeLinks::PedigreeLink_p GenoPro::PedigreeLinks::element_PedigreeLink_at(unsigned int idx)
8881 if(idx > _list_PedigreeLink.size()-1) {
8882 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
8885 return _list_PedigreeLink.at(idx);
8888 List<GenoPro::PedigreeLinks::PedigreeLink_ptr> GenoPro::PedigreeLinks::elements_PedigreeLink()
8890 return _list_PedigreeLink;
8893 GenoPro::PedigreeLinks::PedigreeLink_p GenoPro::PedigreeLinks::add_node_PedigreeLink()
8895 return get_sequence()->add_node_PedigreeLink();
8898 List<GenoPro::PedigreeLinks::PedigreeLink_ptr> GenoPro::PedigreeLinks::set_count_PedigreeLink(unsigned int size)
8900 return get_sequence()->set_count_PedigreeLink(size);
8904 #endif // __PedigreeLinks_PedigreeLink_member_elems_fns
8907 /* attribute functions */
8910 GenoPro::PedigreeLinks::sequence::sequence(PedigreeLinks* that):
8913 XsdFsmBasePtr fsmArray[] = {
8914 new XsdFSM<PedigreeLink_ptr>( Particle(new DOMString("libgno"), DOMString("PedigreeLink"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<PedigreeLink_ptr, PedigreeLinks, FsmCbOptions>(_that, &PedigreeLinks::create_PedigreeLink)),
8919 XsdSequenceFsmOfFSMs::init(fsmArray);
8924 List<GenoPro::PedigreeLinks::PedigreeLink_ptr> GenoPro::PedigreeLinks::sequence::elements_PedigreeLink()
8927 List<PedigreeLink_ptr> nodeList;
8928 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
8931 XsdFSM<PedigreeLink_ptr> *unitFsm = dynamic_cast<XsdFSM<PedigreeLink_ptr> *>(fsm_p);
8933 //nodeList = unitFsm->nodeList().stl_list();
8934 nodeList = unitFsm->nodeList();
8942 GenoPro::PedigreeLinks::PedigreeLink_p GenoPro::PedigreeLinks::sequence::element_PedigreeLink_at(unsigned int idx)
8944 return elements_PedigreeLink().at(idx);
8948 GenoPro::PedigreeLinks::PedigreeLink_p GenoPro::PedigreeLinks::sequence::add_node_PedigreeLink()
8950 DOMStringPtr nsUriPtr = new DOMString("libgno");
8951 XsdEvent event(nsUriPtr, NULL, DOMString("PedigreeLink"), XsdEvent::ELEMENT_START, false);
8952 this->processEventThrow(event);
8953 return elements_PedigreeLink().back();
8956 List<GenoPro::PedigreeLinks::PedigreeLink_ptr> GenoPro::PedigreeLinks::sequence::set_count_PedigreeLink(unsigned int size)
8958 if( (size > -1) || (size < 1)) {
8960 oss << "set_count_PedigreeLink: size should be in range: [" << 1
8961 << "," << "unbounded" << "]";
8962 throw IndexOutOfBoundsException(oss.str());
8965 unsigned int prevSize = elements_PedigreeLink().size();
8966 if(size < prevSize) {
8967 //FIXME: allow later:
8968 throw XPlus::RuntimeException("resize lesser than current size not allowed");
8971 for(unsigned int j=prevSize; j<size; j++)
8973 // pretend docBuilding to avoid computation of adding after first loop
8974 XsdEvent event(new DOMString("libgno"), NULL, DOMString("PedigreeLink"), XsdEvent::ELEMENT_START, false);
8975 this->processEventThrow(event);
8978 return elements_PedigreeLink();
8985 GenoPro::PedigreeLinks::PedigreeLink::PedigreeLink(ElementCreateArgs args):
8986 XMLSchema::XmlElement<anyType>(args),
8991 , _sequence(new sequence(this) )
8994 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
8996 if(args.ownerDoc && args.ownerDoc->buildTree())
8998 if(args.ownerDoc->createSample()) {
8999 _fsm->fireSampleEvents();
9002 _fsm->fireRequiredEvents();
9007 void GenoPro::PedigreeLinks::PedigreeLink::initFSM()
9009 XsdFsmBasePtr fsmsAttrs[] = {
9010 new XsdFSM<attr_PedigreeLink_ptr>( Particle(NULL, DOMString("PedigreeLink"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_PedigreeLink_ptr, PedigreeLink, FsmCbOptions>(this, &PedigreeLink::create_attr_PedigreeLink)),
9011 new XsdFSM<attr_Family_ptr>( Particle(NULL, DOMString("Family"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Family_ptr, PedigreeLink, FsmCbOptions>(this, &PedigreeLink::create_attr_Family)),
9012 new XsdFSM<attr_Individual_ptr>( Particle(NULL, DOMString("Individual"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Individual_ptr, PedigreeLink, FsmCbOptions>(this, &PedigreeLink::create_attr_Individual)),
9017 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
9019 _fsm->replaceContentFsm(_sequence);
9021 _fsmAttrs = _fsm->attributeFsm();
9022 _fsmElems = _fsm->contentFsm();
9026 /* element functions */
9029 GenoPro::PedigreeLinks::PedigreeLink::Position_ptr GenoPro::PedigreeLinks::PedigreeLink::create_Position(FsmCbOptions& options)
9031 static DOMStringPtr myName = new DOMString("Position");
9032 static DOMStringPtr myNsUri = new DOMString("libgno");
9034 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
9035 GenoPro::PedigreeLinks::PedigreeLink::Position_p node = XSD::createElementTmpl<Position, void*>(t);
9037 if(options.isSampleCreate && (node->stringValue() == "") ) {
9038 node->stringValue(node->sampleValue());
9047 GenoPro::PedigreeLinks::PedigreeLink::Position_p GenoPro::PedigreeLinks::PedigreeLink::element_Position()
9049 FSM::warnNullNode(_Position, "Position", "{}Position", 0);
9053 void GenoPro::PedigreeLinks::PedigreeLink::mark_present_Position()
9055 return get_sequence()->mark_present_Position();
9059 /* attribute functions */
9062 GenoPro::PedigreeLinks::PedigreeLink::attr_PedigreeLink_ptr GenoPro::PedigreeLinks::PedigreeLink::create_attr_PedigreeLink(FsmCbOptions& options)
9064 static DOMStringPtr myName = new DOMString("PedigreeLink");
9065 static DOMStringPtr myNsUri = NULL;
9067 if(_attr_PedigreeLink) {
9068 return _attr_PedigreeLink;
9070 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9071 GenoPro::PedigreeLinks::PedigreeLink::attr_PedigreeLink_p node = XSD::createAttributeTmpl<attr_PedigreeLink>(t);
9073 if(options.isSampleCreate && (node->stringValue() == "") ) {
9074 node->stringValue(node->sampleValue());
9077 _attr_PedigreeLink = node;
9083 void GenoPro::PedigreeLinks::PedigreeLink::set_attr_PedigreeLink(DOMString val)
9086 attribute_attr_PedigreeLink()->stringValue(val);
9089 DOMString GenoPro::PedigreeLinks::PedigreeLink::get_attr_PedigreeLink_string()
9092 return attribute_attr_PedigreeLink()->stringValue();
9096 GenoPro::PedigreeLinks::PedigreeLink::attr_PedigreeLink_p GenoPro::PedigreeLinks::PedigreeLink::attribute_attr_PedigreeLink()
9098 FSM::warnNullNode(_attr_PedigreeLink, "attr_PedigreeLink", "{http://www.w3.org/2001/XMLSchema}PedigreeLink", 1);
9099 return _attr_PedigreeLink;
9103 GenoPro::PedigreeLinks::PedigreeLink::attr_Family_ptr GenoPro::PedigreeLinks::PedigreeLink::create_attr_Family(FsmCbOptions& options)
9105 static DOMStringPtr myName = new DOMString("Family");
9106 static DOMStringPtr myNsUri = NULL;
9109 return _attr_Family;
9111 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9112 GenoPro::PedigreeLinks::PedigreeLink::attr_Family_p node = XSD::createAttributeTmpl<attr_Family>(t);
9114 if(options.isSampleCreate && (node->stringValue() == "") ) {
9115 node->stringValue(node->sampleValue());
9118 _attr_Family = node;
9124 void GenoPro::PedigreeLinks::PedigreeLink::set_attr_Family(DOMString val)
9127 attribute_attr_Family()->stringValue(val);
9130 DOMString GenoPro::PedigreeLinks::PedigreeLink::get_attr_Family_string()
9133 return attribute_attr_Family()->stringValue();
9137 GenoPro::PedigreeLinks::PedigreeLink::attr_Family_p GenoPro::PedigreeLinks::PedigreeLink::attribute_attr_Family()
9139 FSM::warnNullNode(_attr_Family, "attr_Family", "{http://www.w3.org/2001/XMLSchema}Family", 1);
9140 return _attr_Family;
9144 GenoPro::PedigreeLinks::PedigreeLink::attr_Individual_ptr GenoPro::PedigreeLinks::PedigreeLink::create_attr_Individual(FsmCbOptions& options)
9146 static DOMStringPtr myName = new DOMString("Individual");
9147 static DOMStringPtr myNsUri = NULL;
9149 if(_attr_Individual) {
9150 return _attr_Individual;
9152 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9153 GenoPro::PedigreeLinks::PedigreeLink::attr_Individual_p node = XSD::createAttributeTmpl<attr_Individual>(t);
9155 if(options.isSampleCreate && (node->stringValue() == "") ) {
9156 node->stringValue(node->sampleValue());
9159 _attr_Individual = node;
9165 void GenoPro::PedigreeLinks::PedigreeLink::set_attr_Individual(DOMString val)
9168 attribute_attr_Individual()->stringValue(val);
9171 DOMString GenoPro::PedigreeLinks::PedigreeLink::get_attr_Individual_string()
9174 return attribute_attr_Individual()->stringValue();
9178 GenoPro::PedigreeLinks::PedigreeLink::attr_Individual_p GenoPro::PedigreeLinks::PedigreeLink::attribute_attr_Individual()
9180 FSM::warnNullNode(_attr_Individual, "attr_Individual", "{http://www.w3.org/2001/XMLSchema}Individual", 1);
9181 return _attr_Individual;
9185 GenoPro::PedigreeLinks::PedigreeLink::sequence::sequence(PedigreeLink* that):
9188 XsdFsmBasePtr fsmArray[] = {
9189 new XsdFSM<Position_ptr>( Particle(new DOMString("libgno"), DOMString("Position"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Position_ptr, PedigreeLink, FsmCbOptions>(_that, &PedigreeLink::create_Position)),
9194 XsdSequenceFsmOfFSMs::init(fsmArray);
9199 GenoPro::PedigreeLinks::PedigreeLink::Position_p GenoPro::PedigreeLinks::PedigreeLink::sequence::element_Position()
9201 GenoPro::PedigreeLinks::PedigreeLink::Position_p node_p = NULL;
9202 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
9205 XsdFSM<Position_ptr> *unitFsm = dynamic_cast<XsdFSM<Position_ptr> *>(fsm_p);
9206 if(unitFsm && unitFsm->nodeList().size()>0) {
9207 assert(unitFsm->nodeList().size()==1);
9208 node_p = unitFsm->nodeList().at(0);
9212 FSM::warnNullNode(node_p, "Position", "{}Position", 0);
9219 void GenoPro::PedigreeLinks::PedigreeLink::sequence::mark_present_Position()
9221 DOMStringPtr nsUriPtr = new DOMString("libgno");
9222 XsdEvent event(nsUriPtr, NULL, DOMString("Position"), XsdEvent::ELEMENT_START, false);
9223 this->processEventThrow(event);
9229 GenoPro::PedigreeLinks::PedigreeLink::Position::Position(ElementCreateArgs args):
9230 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
9240 if(args.ownerDoc && args.ownerDoc->buildTree())
9243 if(args.ownerDoc->createSample()) {
9244 _fsm->fireSampleEvents();
9247 _fsm->fireRequiredEvents();
9252 void GenoPro::PedigreeLinks::PedigreeLink::Position::initFSM()
9254 XsdFsmBasePtr fsmsAttrs[] = {
9255 new XsdFSM<attr_z_ptr>( Particle(NULL, DOMString("z"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_z_ptr, Position, FsmCbOptions>(this, &Position::create_attr_z)),
9260 _fsm->appendAttributeFsms(fsmsAttrs);
9261 _fsmAttrs = _fsm->attributeFsm();
9262 _fsmElems = _fsm->contentFsm();
9266 /* element functions */
9269 /* attribute functions */
9272 GenoPro::PedigreeLinks::PedigreeLink::Position::attr_z_ptr GenoPro::PedigreeLinks::PedigreeLink::Position::create_attr_z(FsmCbOptions& options)
9274 static DOMStringPtr myName = new DOMString("z");
9275 static DOMStringPtr myNsUri = NULL;
9280 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9281 GenoPro::PedigreeLinks::PedigreeLink::Position::attr_z_p node = XSD::createAttributeTmpl<attr_z>(t);
9283 if(options.isSampleCreate && (node->stringValue() == "") ) {
9284 node->stringValue(node->sampleValue());
9293 void GenoPro::PedigreeLinks::PedigreeLink::Position::set_attr_z(DOMString val)
9296 attribute_attr_z()->stringValue(val);
9299 DOMString GenoPro::PedigreeLinks::PedigreeLink::Position::get_attr_z_string()
9302 return attribute_attr_z()->stringValue();
9306 void GenoPro::PedigreeLinks::PedigreeLink::Position::set_attr_z(int val)
9309 attribute_attr_z()->value(val);
9312 int GenoPro::PedigreeLinks::PedigreeLink::Position::get_attr_z()
9315 return attribute_attr_z()->value();
9319 GenoPro::PedigreeLinks::PedigreeLink::Position::attr_z_p GenoPro::PedigreeLinks::PedigreeLink::Position::attribute_attr_z()
9321 FSM::warnNullNode(_attr_z, "attr_z", "{http://www.w3.org/2001/XMLSchema}z", 1);
9328 GenoPro::Pictures::Pictures(ElementCreateArgs args):
9329 XMLSchema::XmlElement<anyType>(args),
9334 , _sequence(new sequence(this) )
9337 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
9339 if(args.ownerDoc && args.ownerDoc->buildTree())
9341 if(args.ownerDoc->createSample()) {
9342 _fsm->fireSampleEvents();
9345 _fsm->fireRequiredEvents();
9350 void GenoPro::Pictures::initFSM()
9352 XsdFsmBasePtr fsmsAttrs[] = {
9357 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
9359 _fsm->replaceContentFsm(_sequence);
9361 _fsmAttrs = _fsm->attributeFsm();
9362 _fsmElems = _fsm->contentFsm();
9366 /* element functions */
9369 GenoPro::Pictures::Picture_ptr GenoPro::Pictures::create_Picture(FsmCbOptions& options)
9371 static DOMStringPtr myName = new DOMString("Picture");
9372 static DOMStringPtr myNsUri = new DOMString("libgno");
9374 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
9375 GenoPro::Pictures::Picture_p node = XSD::createElementTmpl<Picture, void*>(t);
9377 _list_Picture.push_back(node);
9383 GenoPro::Pictures::Picture_p GenoPro::Pictures::element_Picture_at(unsigned int idx)
9385 if(idx > _list_Picture.size()-1) {
9386 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
9389 return _list_Picture.at(idx);
9392 List<GenoPro::Pictures::Picture_ptr> GenoPro::Pictures::elements_Picture()
9394 return _list_Picture;
9397 GenoPro::Pictures::Picture_p GenoPro::Pictures::add_node_Picture()
9399 return get_sequence()->add_node_Picture();
9402 List<GenoPro::Pictures::Picture_ptr> GenoPro::Pictures::set_count_Picture(unsigned int size)
9404 return get_sequence()->set_count_Picture(size);
9409 /* attribute functions */
9412 GenoPro::Pictures::sequence::sequence(Pictures* that):
9415 XsdFsmBasePtr fsmArray[] = {
9416 new XsdFSM<Picture_ptr>( Particle(new DOMString("libgno"), DOMString("Picture"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Picture_ptr, Pictures, FsmCbOptions>(_that, &Pictures::create_Picture)),
9421 XsdSequenceFsmOfFSMs::init(fsmArray);
9426 List<GenoPro::Pictures::Picture_ptr> GenoPro::Pictures::sequence::elements_Picture()
9429 List<Picture_ptr> nodeList;
9430 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
9433 XsdFSM<Picture_ptr> *unitFsm = dynamic_cast<XsdFSM<Picture_ptr> *>(fsm_p);
9435 //nodeList = unitFsm->nodeList().stl_list();
9436 nodeList = unitFsm->nodeList();
9444 GenoPro::Pictures::Picture_p GenoPro::Pictures::sequence::element_Picture_at(unsigned int idx)
9446 return elements_Picture().at(idx);
9450 GenoPro::Pictures::Picture_p GenoPro::Pictures::sequence::add_node_Picture()
9452 DOMStringPtr nsUriPtr = new DOMString("libgno");
9453 XsdEvent event(nsUriPtr, NULL, DOMString("Picture"), XsdEvent::ELEMENT_START, false);
9454 this->processEventThrow(event);
9455 return elements_Picture().back();
9458 List<GenoPro::Pictures::Picture_ptr> GenoPro::Pictures::sequence::set_count_Picture(unsigned int size)
9460 if( (size > -1) || (size < 1)) {
9462 oss << "set_count_Picture: size should be in range: [" << 1
9463 << "," << "unbounded" << "]";
9464 throw IndexOutOfBoundsException(oss.str());
9467 unsigned int prevSize = elements_Picture().size();
9468 if(size < prevSize) {
9469 //FIXME: allow later:
9470 throw XPlus::RuntimeException("resize lesser than current size not allowed");
9473 for(unsigned int j=prevSize; j<size; j++)
9475 // pretend docBuilding to avoid computation of adding after first loop
9476 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Picture"), XsdEvent::ELEMENT_START, false);
9477 this->processEventThrow(event);
9480 return elements_Picture();
9487 GenoPro::Pictures::Picture::Picture(ElementCreateArgs args):
9488 XMLSchema::XmlElement<anyType>(args),
9493 , _sequence(new sequence(this) )
9496 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
9498 if(args.ownerDoc && args.ownerDoc->buildTree())
9500 if(args.ownerDoc->createSample()) {
9501 _fsm->fireSampleEvents();
9504 _fsm->fireRequiredEvents();
9509 void GenoPro::Pictures::Picture::initFSM()
9511 XsdFsmBasePtr fsmsAttrs[] = {
9512 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Picture, FsmCbOptions>(this, &Picture::create_attr_ID)),
9517 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
9519 _fsm->replaceContentFsm(_sequence);
9521 _fsmAttrs = _fsm->attributeFsm();
9522 _fsmElems = _fsm->contentFsm();
9526 /* element functions */
9529 GenoPro::Pictures::Picture::Path_ptr GenoPro::Pictures::Picture::create_Path(FsmCbOptions& options)
9531 static DOMStringPtr myName = new DOMString("Path");
9532 static DOMStringPtr myNsUri = new DOMString("libgno");
9534 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
9535 GenoPro::Pictures::Picture::Path_p node = XSD::createElementTmpl<Path, void*>(t);
9537 if(options.isSampleCreate && (node->stringValue() == "") ) {
9538 node->stringValue(node->sampleValue());
9547 GenoPro::Pictures::Picture::Path_p GenoPro::Pictures::Picture::element_Path()
9549 FSM::warnNullNode(_Path, "Path", "{}Path", 0);
9553 void GenoPro::Pictures::Picture::mark_present_Path()
9555 return get_sequence()->mark_present_Path();
9559 GenoPro::Pictures::Picture::Name_ptr GenoPro::Pictures::Picture::create_Name(FsmCbOptions& options)
9561 static DOMStringPtr myName = new DOMString("Name");
9562 static DOMStringPtr myNsUri = new DOMString("libgno");
9564 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
9565 GenoPro::Pictures::Picture::Name_p node = XSD::createElementTmpl<Name, XMLSchema::Types::bt_string*>(t);
9567 if(options.isSampleCreate && (node->stringValue() == "") ) {
9568 node->stringValue(node->sampleValue());
9577 GenoPro::Pictures::Picture::Name_p GenoPro::Pictures::Picture::element_Name()
9579 FSM::warnNullNode(_Name, "Name", "{http://www.w3.org/2001/XMLSchema}Name", 0);
9583 void GenoPro::Pictures::Picture::set_Name(DOMString val)
9585 get_sequence()->set_Name(val);
9588 DOMString GenoPro::Pictures::Picture::get_Name_string()
9590 return get_sequence()->get_Name_string();
9594 void GenoPro::Pictures::Picture::mark_present_Name()
9596 return get_sequence()->mark_present_Name();
9600 GenoPro::Pictures::Picture::Cache_ptr GenoPro::Pictures::Picture::create_Cache(FsmCbOptions& options)
9602 static DOMStringPtr myName = new DOMString("Cache");
9603 static DOMStringPtr myNsUri = new DOMString("libgno");
9605 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
9606 GenoPro::Pictures::Picture::Cache_p node = XSD::createElementTmpl<Cache, void*>(t);
9608 if(options.isSampleCreate && (node->stringValue() == "") ) {
9609 node->stringValue(node->sampleValue());
9618 GenoPro::Pictures::Picture::Cache_p GenoPro::Pictures::Picture::element_Cache()
9620 FSM::warnNullNode(_Cache, "Cache", "{}Cache", 0);
9624 void GenoPro::Pictures::Picture::mark_present_Cache()
9626 return get_sequence()->mark_present_Cache();
9630 GenoPro::Pictures::Picture::Date_ptr GenoPro::Pictures::Picture::create_Date(FsmCbOptions& options)
9632 static DOMStringPtr myName = new DOMString("Date");
9633 static DOMStringPtr myNsUri = new DOMString("libgno");
9635 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "dateTime");
9636 GenoPro::Pictures::Picture::Date_p node = XSD::createElementTmpl<Date, XMLSchema::Types::bt_dateTime*>(t);
9638 if(options.isSampleCreate && (node->stringValue() == "") ) {
9639 node->stringValue(node->sampleValue());
9648 GenoPro::Pictures::Picture::Date_p GenoPro::Pictures::Picture::element_Date()
9650 FSM::warnNullNode(_Date, "Date", "{http://www.w3.org/2001/XMLSchema}Date", 0);
9654 void GenoPro::Pictures::Picture::set_Date(DOMString val)
9656 get_sequence()->set_Date(val);
9659 DOMString GenoPro::Pictures::Picture::get_Date_string()
9661 return get_sequence()->get_Date_string();
9665 void GenoPro::Pictures::Picture::set_Date(XPlus::DateTime val)
9667 get_sequence()->set_Date(val);
9670 XPlus::DateTime GenoPro::Pictures::Picture::get_Date()
9672 return get_sequence()->get_Date();
9676 void GenoPro::Pictures::Picture::mark_present_Date()
9678 return get_sequence()->mark_present_Date();
9682 /* attribute functions */
9685 GenoPro::Pictures::Picture::attr_ID_ptr GenoPro::Pictures::Picture::create_attr_ID(FsmCbOptions& options)
9687 static DOMStringPtr myName = new DOMString("ID");
9688 static DOMStringPtr myNsUri = NULL;
9693 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9694 GenoPro::Pictures::Picture::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
9696 if(options.isSampleCreate && (node->stringValue() == "") ) {
9697 node->stringValue(node->sampleValue());
9706 void GenoPro::Pictures::Picture::set_attr_ID(DOMString val)
9709 attribute_attr_ID()->stringValue(val);
9712 DOMString GenoPro::Pictures::Picture::get_attr_ID_string()
9715 return attribute_attr_ID()->stringValue();
9719 GenoPro::Pictures::Picture::attr_ID_p GenoPro::Pictures::Picture::attribute_attr_ID()
9721 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
9726 GenoPro::Pictures::Picture::sequence::sequence(Picture* that):
9729 XsdFsmBasePtr fsmArray[] = {
9730 new XsdFSM<Path_ptr>( Particle(new DOMString("libgno"), DOMString("Path"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Path_ptr, Picture, FsmCbOptions>(_that, &Picture::create_Path)),
9731 new XsdFSM<Name_ptr>( Particle(new DOMString("libgno"), DOMString("Name"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Name_ptr, Picture, FsmCbOptions>(_that, &Picture::create_Name)),
9732 new XsdFSM<Cache_ptr>( Particle(new DOMString("libgno"), DOMString("Cache"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Cache_ptr, Picture, FsmCbOptions>(_that, &Picture::create_Cache)),
9733 new XsdFSM<Date_ptr>( Particle(new DOMString("libgno"), DOMString("Date"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Date_ptr, Picture, FsmCbOptions>(_that, &Picture::create_Date)),
9738 XsdSequenceFsmOfFSMs::init(fsmArray);
9743 GenoPro::Pictures::Picture::Path_p GenoPro::Pictures::Picture::sequence::element_Path()
9745 GenoPro::Pictures::Picture::Path_p node_p = NULL;
9746 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
9749 XsdFSM<Path_ptr> *unitFsm = dynamic_cast<XsdFSM<Path_ptr> *>(fsm_p);
9750 if(unitFsm && unitFsm->nodeList().size()>0) {
9751 assert(unitFsm->nodeList().size()==1);
9752 node_p = unitFsm->nodeList().at(0);
9756 FSM::warnNullNode(node_p, "Path", "{}Path", 0);
9763 void GenoPro::Pictures::Picture::sequence::mark_present_Path()
9765 DOMStringPtr nsUriPtr = new DOMString("libgno");
9766 XsdEvent event(nsUriPtr, NULL, DOMString("Path"), XsdEvent::ELEMENT_START, false);
9767 this->processEventThrow(event);
9772 GenoPro::Pictures::Picture::Name_p GenoPro::Pictures::Picture::sequence::element_Name()
9774 GenoPro::Pictures::Picture::Name_p node_p = NULL;
9775 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
9778 XsdFSM<Name_ptr> *unitFsm = dynamic_cast<XsdFSM<Name_ptr> *>(fsm_p);
9779 if(unitFsm && unitFsm->nodeList().size()>0) {
9780 assert(unitFsm->nodeList().size()==1);
9781 node_p = unitFsm->nodeList().at(0);
9785 FSM::warnNullNode(node_p, "Name", "{http://www.w3.org/2001/XMLSchema}Name", 0);
9791 void GenoPro::Pictures::Picture::sequence::set_Name(DOMString val)
9794 mark_present_Name();
9796 element_Name()->stringValue(val);
9799 DOMString GenoPro::Pictures::Picture::sequence::get_Name_string()
9801 return element_Name()->stringValue();
9806 void GenoPro::Pictures::Picture::sequence::mark_present_Name()
9808 DOMStringPtr nsUriPtr = new DOMString("libgno");
9809 XsdEvent event(nsUriPtr, NULL, DOMString("Name"), XsdEvent::ELEMENT_START, false);
9810 this->processEventThrow(event);
9815 GenoPro::Pictures::Picture::Cache_p GenoPro::Pictures::Picture::sequence::element_Cache()
9817 GenoPro::Pictures::Picture::Cache_p node_p = NULL;
9818 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
9821 XsdFSM<Cache_ptr> *unitFsm = dynamic_cast<XsdFSM<Cache_ptr> *>(fsm_p);
9822 if(unitFsm && unitFsm->nodeList().size()>0) {
9823 assert(unitFsm->nodeList().size()==1);
9824 node_p = unitFsm->nodeList().at(0);
9828 FSM::warnNullNode(node_p, "Cache", "{}Cache", 0);
9835 void GenoPro::Pictures::Picture::sequence::mark_present_Cache()
9837 DOMStringPtr nsUriPtr = new DOMString("libgno");
9838 XsdEvent event(nsUriPtr, NULL, DOMString("Cache"), XsdEvent::ELEMENT_START, false);
9839 this->processEventThrow(event);
9844 GenoPro::Pictures::Picture::Date_p GenoPro::Pictures::Picture::sequence::element_Date()
9846 GenoPro::Pictures::Picture::Date_p node_p = NULL;
9847 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
9850 XsdFSM<Date_ptr> *unitFsm = dynamic_cast<XsdFSM<Date_ptr> *>(fsm_p);
9851 if(unitFsm && unitFsm->nodeList().size()>0) {
9852 assert(unitFsm->nodeList().size()==1);
9853 node_p = unitFsm->nodeList().at(0);
9857 FSM::warnNullNode(node_p, "Date", "{http://www.w3.org/2001/XMLSchema}Date", 0);
9863 void GenoPro::Pictures::Picture::sequence::set_Date(DOMString val)
9866 mark_present_Date();
9868 element_Date()->stringValue(val);
9871 DOMString GenoPro::Pictures::Picture::sequence::get_Date_string()
9873 return element_Date()->stringValue();
9877 void GenoPro::Pictures::Picture::sequence::set_Date(XPlus::DateTime val)
9880 mark_present_Date();
9882 element_Date()->value(val);
9885 XPlus::DateTime GenoPro::Pictures::Picture::sequence::get_Date()
9887 return element_Date()->value();
9892 void GenoPro::Pictures::Picture::sequence::mark_present_Date()
9894 DOMStringPtr nsUriPtr = new DOMString("libgno");
9895 XsdEvent event(nsUriPtr, NULL, DOMString("Date"), XsdEvent::ELEMENT_START, false);
9896 this->processEventThrow(event);
9902 GenoPro::Pictures::Picture::Path::Path(ElementCreateArgs args):
9903 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
9913 if(args.ownerDoc && args.ownerDoc->buildTree())
9916 if(args.ownerDoc->createSample()) {
9917 _fsm->fireSampleEvents();
9920 _fsm->fireRequiredEvents();
9925 void GenoPro::Pictures::Picture::Path::initFSM()
9927 XsdFsmBasePtr fsmsAttrs[] = {
9928 new XsdFSM<attr_Relative_ptr>( Particle(NULL, DOMString("Relative"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Relative_ptr, Path, FsmCbOptions>(this, &Path::create_attr_Relative)),
9929 new XsdFSM<attr_FileUnique_ptr>( Particle(NULL, DOMString("FileUnique"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_FileUnique_ptr, Path, FsmCbOptions>(this, &Path::create_attr_FileUnique)),
9930 new XsdFSM<attr_Report_ptr>( Particle(NULL, DOMString("Report"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Report_ptr, Path, FsmCbOptions>(this, &Path::create_attr_Report)),
9935 _fsm->appendAttributeFsms(fsmsAttrs);
9936 _fsmAttrs = _fsm->attributeFsm();
9937 _fsmElems = _fsm->contentFsm();
9941 /* element functions */
9944 /* attribute functions */
9947 GenoPro::Pictures::Picture::Path::attr_Relative_ptr GenoPro::Pictures::Picture::Path::create_attr_Relative(FsmCbOptions& options)
9949 static DOMStringPtr myName = new DOMString("Relative");
9950 static DOMStringPtr myNsUri = NULL;
9952 if(_attr_Relative) {
9953 return _attr_Relative;
9955 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9956 GenoPro::Pictures::Picture::Path::attr_Relative_p node = XSD::createAttributeTmpl<attr_Relative>(t);
9958 if(options.isSampleCreate && (node->stringValue() == "") ) {
9959 node->stringValue(node->sampleValue());
9962 _attr_Relative = node;
9968 void GenoPro::Pictures::Picture::Path::set_attr_Relative(DOMString val)
9971 attribute_attr_Relative()->stringValue(val);
9974 DOMString GenoPro::Pictures::Picture::Path::get_attr_Relative_string()
9977 return attribute_attr_Relative()->stringValue();
9981 GenoPro::Pictures::Picture::Path::attr_Relative_p GenoPro::Pictures::Picture::Path::attribute_attr_Relative()
9983 FSM::warnNullNode(_attr_Relative, "attr_Relative", "{http://www.w3.org/2001/XMLSchema}Relative", 1);
9984 return _attr_Relative;
9988 GenoPro::Pictures::Picture::Path::attr_FileUnique_ptr GenoPro::Pictures::Picture::Path::create_attr_FileUnique(FsmCbOptions& options)
9990 static DOMStringPtr myName = new DOMString("FileUnique");
9991 static DOMStringPtr myNsUri = NULL;
9993 if(_attr_FileUnique) {
9994 return _attr_FileUnique;
9996 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
9997 GenoPro::Pictures::Picture::Path::attr_FileUnique_p node = XSD::createAttributeTmpl<attr_FileUnique>(t);
9999 if(options.isSampleCreate && (node->stringValue() == "") ) {
10000 node->stringValue(node->sampleValue());
10003 _attr_FileUnique = node;
10009 void GenoPro::Pictures::Picture::Path::set_attr_FileUnique(DOMString val)
10012 attribute_attr_FileUnique()->stringValue(val);
10015 DOMString GenoPro::Pictures::Picture::Path::get_attr_FileUnique_string()
10018 return attribute_attr_FileUnique()->stringValue();
10022 GenoPro::Pictures::Picture::Path::attr_FileUnique_p GenoPro::Pictures::Picture::Path::attribute_attr_FileUnique()
10024 FSM::warnNullNode(_attr_FileUnique, "attr_FileUnique", "{http://www.w3.org/2001/XMLSchema}FileUnique", 1);
10025 return _attr_FileUnique;
10029 GenoPro::Pictures::Picture::Path::attr_Report_ptr GenoPro::Pictures::Picture::Path::create_attr_Report(FsmCbOptions& options)
10031 static DOMStringPtr myName = new DOMString("Report");
10032 static DOMStringPtr myNsUri = NULL;
10035 return _attr_Report;
10037 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10038 GenoPro::Pictures::Picture::Path::attr_Report_p node = XSD::createAttributeTmpl<attr_Report>(t);
10040 if(options.isSampleCreate && (node->stringValue() == "") ) {
10041 node->stringValue(node->sampleValue());
10044 _attr_Report = node;
10050 void GenoPro::Pictures::Picture::Path::set_attr_Report(DOMString val)
10053 attribute_attr_Report()->stringValue(val);
10056 DOMString GenoPro::Pictures::Picture::Path::get_attr_Report_string()
10059 return attribute_attr_Report()->stringValue();
10063 GenoPro::Pictures::Picture::Path::attr_Report_p GenoPro::Pictures::Picture::Path::attribute_attr_Report()
10065 FSM::warnNullNode(_attr_Report, "attr_Report", "{http://www.w3.org/2001/XMLSchema}Report", 1);
10066 return _attr_Report;
10071 GenoPro::Pictures::Picture::Cache::Cache(ElementCreateArgs args):
10072 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
10082 if(args.ownerDoc && args.ownerDoc->buildTree())
10085 if(args.ownerDoc->createSample()) {
10086 _fsm->fireSampleEvents();
10089 _fsm->fireRequiredEvents();
10094 void GenoPro::Pictures::Picture::Cache::initFSM()
10096 XsdFsmBasePtr fsmsAttrs[] = {
10097 new XsdFSM<attr_FileSize_ptr>( Particle(NULL, DOMString("FileSize"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_FileSize_ptr, Cache, FsmCbOptions>(this, &Cache::create_attr_FileSize)),
10098 new XsdFSM<attr_Dimension_ptr>( Particle(NULL, DOMString("Dimension"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Dimension_ptr, Cache, FsmCbOptions>(this, &Cache::create_attr_Dimension)),
10099 new XsdFSM<attr_Megapixels_ptr>( Particle(NULL, DOMString("Megapixels"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Megapixels_ptr, Cache, FsmCbOptions>(this, &Cache::create_attr_Megapixels)),
10100 new XsdFSM<attr_BPP_ptr>( Particle(NULL, DOMString("BPP"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_BPP_ptr, Cache, FsmCbOptions>(this, &Cache::create_attr_BPP)),
10101 new XsdFSM<attr_DPI_ptr>( Particle(NULL, DOMString("DPI"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_DPI_ptr, Cache, FsmCbOptions>(this, &Cache::create_attr_DPI)),
10106 _fsm->appendAttributeFsms(fsmsAttrs);
10107 _fsmAttrs = _fsm->attributeFsm();
10108 _fsmElems = _fsm->contentFsm();
10112 /* element functions */
10115 /* attribute functions */
10118 GenoPro::Pictures::Picture::Cache::attr_FileSize_ptr GenoPro::Pictures::Picture::Cache::create_attr_FileSize(FsmCbOptions& options)
10120 static DOMStringPtr myName = new DOMString("FileSize");
10121 static DOMStringPtr myNsUri = NULL;
10123 if(_attr_FileSize) {
10124 return _attr_FileSize;
10126 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10127 GenoPro::Pictures::Picture::Cache::attr_FileSize_p node = XSD::createAttributeTmpl<attr_FileSize>(t);
10129 if(options.isSampleCreate && (node->stringValue() == "") ) {
10130 node->stringValue(node->sampleValue());
10133 _attr_FileSize = node;
10139 void GenoPro::Pictures::Picture::Cache::set_attr_FileSize(DOMString val)
10142 attribute_attr_FileSize()->stringValue(val);
10145 DOMString GenoPro::Pictures::Picture::Cache::get_attr_FileSize_string()
10148 return attribute_attr_FileSize()->stringValue();
10152 void GenoPro::Pictures::Picture::Cache::set_attr_FileSize(int val)
10155 attribute_attr_FileSize()->value(val);
10158 int GenoPro::Pictures::Picture::Cache::get_attr_FileSize()
10161 return attribute_attr_FileSize()->value();
10165 GenoPro::Pictures::Picture::Cache::attr_FileSize_p GenoPro::Pictures::Picture::Cache::attribute_attr_FileSize()
10167 FSM::warnNullNode(_attr_FileSize, "attr_FileSize", "{http://www.w3.org/2001/XMLSchema}FileSize", 1);
10168 return _attr_FileSize;
10172 GenoPro::Pictures::Picture::Cache::attr_Dimension_ptr GenoPro::Pictures::Picture::Cache::create_attr_Dimension(FsmCbOptions& options)
10174 static DOMStringPtr myName = new DOMString("Dimension");
10175 static DOMStringPtr myNsUri = NULL;
10177 if(_attr_Dimension) {
10178 return _attr_Dimension;
10180 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10181 GenoPro::Pictures::Picture::Cache::attr_Dimension_p node = XSD::createAttributeTmpl<attr_Dimension>(t);
10183 if(options.isSampleCreate && (node->stringValue() == "") ) {
10184 node->stringValue(node->sampleValue());
10187 _attr_Dimension = node;
10193 void GenoPro::Pictures::Picture::Cache::set_attr_Dimension(DOMString val)
10196 attribute_attr_Dimension()->stringValue(val);
10199 DOMString GenoPro::Pictures::Picture::Cache::get_attr_Dimension_string()
10202 return attribute_attr_Dimension()->stringValue();
10206 GenoPro::Pictures::Picture::Cache::attr_Dimension_p GenoPro::Pictures::Picture::Cache::attribute_attr_Dimension()
10208 FSM::warnNullNode(_attr_Dimension, "attr_Dimension", "{http://www.w3.org/2001/XMLSchema}Dimension", 1);
10209 return _attr_Dimension;
10213 GenoPro::Pictures::Picture::Cache::attr_Megapixels_ptr GenoPro::Pictures::Picture::Cache::create_attr_Megapixels(FsmCbOptions& options)
10215 static DOMStringPtr myName = new DOMString("Megapixels");
10216 static DOMStringPtr myNsUri = NULL;
10218 if(_attr_Megapixels) {
10219 return _attr_Megapixels;
10221 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10222 GenoPro::Pictures::Picture::Cache::attr_Megapixels_p node = XSD::createAttributeTmpl<attr_Megapixels>(t);
10224 if(options.isSampleCreate && (node->stringValue() == "") ) {
10225 node->stringValue(node->sampleValue());
10228 _attr_Megapixels = node;
10234 void GenoPro::Pictures::Picture::Cache::set_attr_Megapixels(DOMString val)
10237 attribute_attr_Megapixels()->stringValue(val);
10240 DOMString GenoPro::Pictures::Picture::Cache::get_attr_Megapixels_string()
10243 return attribute_attr_Megapixels()->stringValue();
10247 void GenoPro::Pictures::Picture::Cache::set_attr_Megapixels(double val)
10250 attribute_attr_Megapixels()->value(val);
10253 double GenoPro::Pictures::Picture::Cache::get_attr_Megapixels()
10256 return attribute_attr_Megapixels()->value();
10260 GenoPro::Pictures::Picture::Cache::attr_Megapixels_p GenoPro::Pictures::Picture::Cache::attribute_attr_Megapixels()
10262 FSM::warnNullNode(_attr_Megapixels, "attr_Megapixels", "{http://www.w3.org/2001/XMLSchema}Megapixels", 1);
10263 return _attr_Megapixels;
10267 GenoPro::Pictures::Picture::Cache::attr_BPP_ptr GenoPro::Pictures::Picture::Cache::create_attr_BPP(FsmCbOptions& options)
10269 static DOMStringPtr myName = new DOMString("BPP");
10270 static DOMStringPtr myNsUri = NULL;
10275 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10276 GenoPro::Pictures::Picture::Cache::attr_BPP_p node = XSD::createAttributeTmpl<attr_BPP>(t);
10278 if(options.isSampleCreate && (node->stringValue() == "") ) {
10279 node->stringValue(node->sampleValue());
10288 void GenoPro::Pictures::Picture::Cache::set_attr_BPP(DOMString val)
10291 attribute_attr_BPP()->stringValue(val);
10294 DOMString GenoPro::Pictures::Picture::Cache::get_attr_BPP_string()
10297 return attribute_attr_BPP()->stringValue();
10301 void GenoPro::Pictures::Picture::Cache::set_attr_BPP(int val)
10304 attribute_attr_BPP()->value(val);
10307 int GenoPro::Pictures::Picture::Cache::get_attr_BPP()
10310 return attribute_attr_BPP()->value();
10314 GenoPro::Pictures::Picture::Cache::attr_BPP_p GenoPro::Pictures::Picture::Cache::attribute_attr_BPP()
10316 FSM::warnNullNode(_attr_BPP, "attr_BPP", "{http://www.w3.org/2001/XMLSchema}BPP", 1);
10321 GenoPro::Pictures::Picture::Cache::attr_DPI_ptr GenoPro::Pictures::Picture::Cache::create_attr_DPI(FsmCbOptions& options)
10323 static DOMStringPtr myName = new DOMString("DPI");
10324 static DOMStringPtr myNsUri = NULL;
10329 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10330 GenoPro::Pictures::Picture::Cache::attr_DPI_p node = XSD::createAttributeTmpl<attr_DPI>(t);
10332 if(options.isSampleCreate && (node->stringValue() == "") ) {
10333 node->stringValue(node->sampleValue());
10342 void GenoPro::Pictures::Picture::Cache::set_attr_DPI(DOMString val)
10345 attribute_attr_DPI()->stringValue(val);
10348 DOMString GenoPro::Pictures::Picture::Cache::get_attr_DPI_string()
10351 return attribute_attr_DPI()->stringValue();
10355 void GenoPro::Pictures::Picture::Cache::set_attr_DPI(int val)
10358 attribute_attr_DPI()->value(val);
10361 int GenoPro::Pictures::Picture::Cache::get_attr_DPI()
10364 return attribute_attr_DPI()->value();
10368 GenoPro::Pictures::Picture::Cache::attr_DPI_p GenoPro::Pictures::Picture::Cache::attribute_attr_DPI()
10370 FSM::warnNullNode(_attr_DPI, "attr_DPI", "{http://www.w3.org/2001/XMLSchema}DPI", 1);
10377 GenoPro::Places::Places(ElementCreateArgs args):
10378 XMLSchema::XmlElement<anyType>(args),
10383 , _sequence(new sequence(this) )
10386 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
10388 if(args.ownerDoc && args.ownerDoc->buildTree())
10390 if(args.ownerDoc->createSample()) {
10391 _fsm->fireSampleEvents();
10394 _fsm->fireRequiredEvents();
10399 void GenoPro::Places::initFSM()
10401 XsdFsmBasePtr fsmsAttrs[] = {
10406 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
10408 _fsm->replaceContentFsm(_sequence);
10410 _fsmAttrs = _fsm->attributeFsm();
10411 _fsmElems = _fsm->contentFsm();
10415 /* element functions */
10418 GenoPro::Places::Place_ptr GenoPro::Places::create_Place(FsmCbOptions& options)
10420 static DOMStringPtr myName = new DOMString("Place");
10421 static DOMStringPtr myNsUri = new DOMString("libgno");
10423 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
10424 GenoPro::Places::Place_p node = XSD::createElementTmpl<Place, void*>(t);
10426 _list_Place.push_back(node);
10432 GenoPro::Places::Place_p GenoPro::Places::element_Place_at(unsigned int idx)
10434 if(idx > _list_Place.size()-1) {
10435 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
10438 return _list_Place.at(idx);
10441 List<GenoPro::Places::Place_ptr> GenoPro::Places::elements_Place()
10443 return _list_Place;
10446 GenoPro::Places::Place_p GenoPro::Places::add_node_Place()
10448 return get_sequence()->add_node_Place();
10451 List<GenoPro::Places::Place_ptr> GenoPro::Places::set_count_Place(unsigned int size)
10453 return get_sequence()->set_count_Place(size);
10458 /* attribute functions */
10461 GenoPro::Places::sequence::sequence(Places* that):
10464 XsdFsmBasePtr fsmArray[] = {
10465 new XsdFSM<Place_ptr>( Particle(new DOMString("libgno"), DOMString("Place"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Place_ptr, Places, FsmCbOptions>(_that, &Places::create_Place)),
10470 XsdSequenceFsmOfFSMs::init(fsmArray);
10475 List<GenoPro::Places::Place_ptr> GenoPro::Places::sequence::elements_Place()
10478 List<Place_ptr> nodeList;
10479 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
10482 XsdFSM<Place_ptr> *unitFsm = dynamic_cast<XsdFSM<Place_ptr> *>(fsm_p);
10484 //nodeList = unitFsm->nodeList().stl_list();
10485 nodeList = unitFsm->nodeList();
10493 GenoPro::Places::Place_p GenoPro::Places::sequence::element_Place_at(unsigned int idx)
10495 return elements_Place().at(idx);
10499 GenoPro::Places::Place_p GenoPro::Places::sequence::add_node_Place()
10501 DOMStringPtr nsUriPtr = new DOMString("libgno");
10502 XsdEvent event(nsUriPtr, NULL, DOMString("Place"), XsdEvent::ELEMENT_START, false);
10503 this->processEventThrow(event);
10504 return elements_Place().back();
10507 List<GenoPro::Places::Place_ptr> GenoPro::Places::sequence::set_count_Place(unsigned int size)
10509 if( (size > -1) || (size < 1)) {
10511 oss << "set_count_Place: size should be in range: [" << 1
10512 << "," << "unbounded" << "]";
10513 throw IndexOutOfBoundsException(oss.str());
10516 unsigned int prevSize = elements_Place().size();
10517 if(size < prevSize) {
10518 //FIXME: allow later:
10519 throw XPlus::RuntimeException("resize lesser than current size not allowed");
10522 for(unsigned int j=prevSize; j<size; j++)
10524 // pretend docBuilding to avoid computation of adding after first loop
10525 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Place"), XsdEvent::ELEMENT_START, false);
10526 this->processEventThrow(event);
10529 return elements_Place();
10536 GenoPro::Places::Place::Place(ElementCreateArgs args):
10537 XMLSchema::XmlElement<anyType>(args),
10542 , _sequence(new sequence(this) )
10545 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
10547 if(args.ownerDoc && args.ownerDoc->buildTree())
10549 if(args.ownerDoc->createSample()) {
10550 _fsm->fireSampleEvents();
10553 _fsm->fireRequiredEvents();
10558 void GenoPro::Places::Place::initFSM()
10560 XsdFsmBasePtr fsmsAttrs[] = {
10561 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Place, FsmCbOptions>(this, &Place::create_attr_ID)),
10566 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
10568 _fsm->replaceContentFsm(_sequence);
10570 _fsmAttrs = _fsm->attributeFsm();
10571 _fsmElems = _fsm->contentFsm();
10575 /* element functions */
10578 GenoPro::Places::Place::Pictures_ptr GenoPro::Places::Place::create_Pictures(FsmCbOptions& options)
10580 static DOMStringPtr myName = new DOMString("Pictures");
10581 static DOMStringPtr myNsUri = new DOMString("libgno");
10583 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
10584 GenoPro::Places::Place::Pictures_p node = XSD::createElementTmpl<Pictures, void*>(t);
10586 if(options.isSampleCreate && (node->stringValue() == "") ) {
10587 node->stringValue(node->sampleValue());
10596 GenoPro::Places::Place::Pictures_p GenoPro::Places::Place::element_Pictures()
10598 FSM::warnNullNode(_Pictures, "Pictures", "{}Pictures", 0);
10602 void GenoPro::Places::Place::mark_present_Pictures()
10604 return get_sequence()->mark_present_Pictures();
10608 GenoPro::Places::Place::Parent_ptr GenoPro::Places::Place::create_Parent(FsmCbOptions& options)
10610 static DOMStringPtr myName = new DOMString("Parent");
10611 static DOMStringPtr myNsUri = new DOMString("libgno");
10613 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
10614 GenoPro::Places::Place::Parent_p node = XSD::createElementTmpl<Parent, XMLSchema::Types::bt_normalizedString*>(t);
10616 if(options.isSampleCreate && (node->stringValue() == "") ) {
10617 node->stringValue(node->sampleValue());
10626 GenoPro::Places::Place::Parent_p GenoPro::Places::Place::element_Parent()
10628 FSM::warnNullNode(_Parent, "Parent", "{http://www.w3.org/2001/XMLSchema}Parent", 0);
10632 void GenoPro::Places::Place::set_Parent(DOMString val)
10634 get_sequence()->set_Parent(val);
10637 DOMString GenoPro::Places::Place::get_Parent_string()
10639 return get_sequence()->get_Parent_string();
10643 void GenoPro::Places::Place::mark_present_Parent()
10645 return get_sequence()->mark_present_Parent();
10649 GenoPro::Places::Place::Category_ptr GenoPro::Places::Place::create_Category(FsmCbOptions& options)
10651 static DOMStringPtr myName = new DOMString("Category");
10652 static DOMStringPtr myNsUri = new DOMString("libgno");
10654 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
10655 GenoPro::Places::Place::Category_p node = XSD::createElementTmpl<Category, XMLSchema::Types::bt_normalizedString*>(t);
10657 if(options.isSampleCreate && (node->stringValue() == "") ) {
10658 node->stringValue(node->sampleValue());
10667 GenoPro::Places::Place::Category_p GenoPro::Places::Place::element_Category()
10669 FSM::warnNullNode(_Category, "Category", "{http://www.w3.org/2001/XMLSchema}Category", 0);
10673 void GenoPro::Places::Place::set_Category(DOMString val)
10675 get_sequence()->set_Category(val);
10678 DOMString GenoPro::Places::Place::get_Category_string()
10680 return get_sequence()->get_Category_string();
10684 void GenoPro::Places::Place::mark_present_Category()
10686 return get_sequence()->mark_present_Category();
10690 GenoPro::Places::Place::Name_ptr GenoPro::Places::Place::create_Name(FsmCbOptions& options)
10692 static DOMStringPtr myName = new DOMString("Name");
10693 static DOMStringPtr myNsUri = new DOMString("libgno");
10695 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
10696 GenoPro::Places::Place::Name_p node = XSD::createElementTmpl<Name, XMLSchema::Types::bt_string*>(t);
10698 if(options.isSampleCreate && (node->stringValue() == "") ) {
10699 node->stringValue(node->sampleValue());
10708 GenoPro::Places::Place::Name_p GenoPro::Places::Place::element_Name()
10710 FSM::warnNullNode(_Name, "Name", "{http://www.w3.org/2001/XMLSchema}Name", 0);
10714 void GenoPro::Places::Place::set_Name(DOMString val)
10716 get_sequence()->set_Name(val);
10719 DOMString GenoPro::Places::Place::get_Name_string()
10721 return get_sequence()->get_Name_string();
10725 void GenoPro::Places::Place::mark_present_Name()
10727 return get_sequence()->mark_present_Name();
10731 GenoPro::Places::Place::Street_ptr GenoPro::Places::Place::create_Street(FsmCbOptions& options)
10733 static DOMStringPtr myName = new DOMString("Street");
10734 static DOMStringPtr myNsUri = new DOMString("libgno");
10736 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
10737 GenoPro::Places::Place::Street_p node = XSD::createElementTmpl<Street, XMLSchema::Types::bt_string*>(t);
10739 if(options.isSampleCreate && (node->stringValue() == "") ) {
10740 node->stringValue(node->sampleValue());
10749 GenoPro::Places::Place::Street_p GenoPro::Places::Place::element_Street()
10751 FSM::warnNullNode(_Street, "Street", "{http://www.w3.org/2001/XMLSchema}Street", 0);
10755 void GenoPro::Places::Place::set_Street(DOMString val)
10757 get_sequence()->set_Street(val);
10760 DOMString GenoPro::Places::Place::get_Street_string()
10762 return get_sequence()->get_Street_string();
10766 void GenoPro::Places::Place::mark_present_Street()
10768 return get_sequence()->mark_present_Street();
10772 GenoPro::Places::Place::City_ptr GenoPro::Places::Place::create_City(FsmCbOptions& options)
10774 static DOMStringPtr myName = new DOMString("City");
10775 static DOMStringPtr myNsUri = new DOMString("libgno");
10777 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
10778 GenoPro::Places::Place::City_p node = XSD::createElementTmpl<City, XMLSchema::Types::bt_normalizedString*>(t);
10780 if(options.isSampleCreate && (node->stringValue() == "") ) {
10781 node->stringValue(node->sampleValue());
10790 GenoPro::Places::Place::City_p GenoPro::Places::Place::element_City()
10792 FSM::warnNullNode(_City, "City", "{http://www.w3.org/2001/XMLSchema}City", 0);
10796 void GenoPro::Places::Place::set_City(DOMString val)
10798 get_sequence()->set_City(val);
10801 DOMString GenoPro::Places::Place::get_City_string()
10803 return get_sequence()->get_City_string();
10807 void GenoPro::Places::Place::mark_present_City()
10809 return get_sequence()->mark_present_City();
10813 GenoPro::Places::Place::Zip_ptr GenoPro::Places::Place::create_Zip(FsmCbOptions& options)
10815 static DOMStringPtr myName = new DOMString("Zip");
10816 static DOMStringPtr myNsUri = new DOMString("libgno");
10818 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
10819 GenoPro::Places::Place::Zip_p node = XSD::createElementTmpl<Zip, XMLSchema::Types::bt_normalizedString*>(t);
10821 if(options.isSampleCreate && (node->stringValue() == "") ) {
10822 node->stringValue(node->sampleValue());
10831 GenoPro::Places::Place::Zip_p GenoPro::Places::Place::element_Zip()
10833 FSM::warnNullNode(_Zip, "Zip", "{http://www.w3.org/2001/XMLSchema}Zip", 0);
10837 void GenoPro::Places::Place::set_Zip(DOMString val)
10839 get_sequence()->set_Zip(val);
10842 DOMString GenoPro::Places::Place::get_Zip_string()
10844 return get_sequence()->get_Zip_string();
10848 void GenoPro::Places::Place::mark_present_Zip()
10850 return get_sequence()->mark_present_Zip();
10854 /* attribute functions */
10857 GenoPro::Places::Place::attr_ID_ptr GenoPro::Places::Place::create_attr_ID(FsmCbOptions& options)
10859 static DOMStringPtr myName = new DOMString("ID");
10860 static DOMStringPtr myNsUri = NULL;
10865 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
10866 GenoPro::Places::Place::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
10868 if(options.isSampleCreate && (node->stringValue() == "") ) {
10869 node->stringValue(node->sampleValue());
10878 void GenoPro::Places::Place::set_attr_ID(DOMString val)
10881 attribute_attr_ID()->stringValue(val);
10884 DOMString GenoPro::Places::Place::get_attr_ID_string()
10887 return attribute_attr_ID()->stringValue();
10891 GenoPro::Places::Place::attr_ID_p GenoPro::Places::Place::attribute_attr_ID()
10893 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
10898 GenoPro::Places::Place::sequence::sequence(Place* that):
10901 XsdFsmBasePtr fsmArray[] = {
10902 new XsdFSM<Pictures_ptr>( Particle(new DOMString("libgno"), DOMString("Pictures"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Pictures_ptr, Place, FsmCbOptions>(_that, &Place::create_Pictures)),
10903 new XsdFSM<Parent_ptr>( Particle(new DOMString("libgno"), DOMString("Parent"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Parent_ptr, Place, FsmCbOptions>(_that, &Place::create_Parent)),
10904 new XsdFSM<Category_ptr>( Particle(new DOMString("libgno"), DOMString("Category"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Category_ptr, Place, FsmCbOptions>(_that, &Place::create_Category)),
10905 new XsdFSM<Name_ptr>( Particle(new DOMString("libgno"), DOMString("Name"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Name_ptr, Place, FsmCbOptions>(_that, &Place::create_Name)),
10906 new XsdFSM<Street_ptr>( Particle(new DOMString("libgno"), DOMString("Street"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Street_ptr, Place, FsmCbOptions>(_that, &Place::create_Street)),
10907 new XsdFSM<City_ptr>( Particle(new DOMString("libgno"), DOMString("City"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<City_ptr, Place, FsmCbOptions>(_that, &Place::create_City)),
10908 new XsdFSM<Zip_ptr>( Particle(new DOMString("libgno"), DOMString("Zip"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Zip_ptr, Place, FsmCbOptions>(_that, &Place::create_Zip)),
10913 XsdSequenceFsmOfFSMs::init(fsmArray);
10918 GenoPro::Places::Place::Pictures_p GenoPro::Places::Place::sequence::element_Pictures()
10920 GenoPro::Places::Place::Pictures_p node_p = NULL;
10921 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
10924 XsdFSM<Pictures_ptr> *unitFsm = dynamic_cast<XsdFSM<Pictures_ptr> *>(fsm_p);
10925 if(unitFsm && unitFsm->nodeList().size()>0) {
10926 assert(unitFsm->nodeList().size()==1);
10927 node_p = unitFsm->nodeList().at(0);
10931 FSM::warnNullNode(node_p, "Pictures", "{}Pictures", 0);
10938 void GenoPro::Places::Place::sequence::mark_present_Pictures()
10940 DOMStringPtr nsUriPtr = new DOMString("libgno");
10941 XsdEvent event(nsUriPtr, NULL, DOMString("Pictures"), XsdEvent::ELEMENT_START, false);
10942 this->processEventThrow(event);
10947 GenoPro::Places::Place::Parent_p GenoPro::Places::Place::sequence::element_Parent()
10949 GenoPro::Places::Place::Parent_p node_p = NULL;
10950 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
10953 XsdFSM<Parent_ptr> *unitFsm = dynamic_cast<XsdFSM<Parent_ptr> *>(fsm_p);
10954 if(unitFsm && unitFsm->nodeList().size()>0) {
10955 assert(unitFsm->nodeList().size()==1);
10956 node_p = unitFsm->nodeList().at(0);
10960 FSM::warnNullNode(node_p, "Parent", "{http://www.w3.org/2001/XMLSchema}Parent", 0);
10966 void GenoPro::Places::Place::sequence::set_Parent(DOMString val)
10969 mark_present_Parent();
10971 element_Parent()->stringValue(val);
10974 DOMString GenoPro::Places::Place::sequence::get_Parent_string()
10976 return element_Parent()->stringValue();
10981 void GenoPro::Places::Place::sequence::mark_present_Parent()
10983 DOMStringPtr nsUriPtr = new DOMString("libgno");
10984 XsdEvent event(nsUriPtr, NULL, DOMString("Parent"), XsdEvent::ELEMENT_START, false);
10985 this->processEventThrow(event);
10990 GenoPro::Places::Place::Category_p GenoPro::Places::Place::sequence::element_Category()
10992 GenoPro::Places::Place::Category_p node_p = NULL;
10993 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
10996 XsdFSM<Category_ptr> *unitFsm = dynamic_cast<XsdFSM<Category_ptr> *>(fsm_p);
10997 if(unitFsm && unitFsm->nodeList().size()>0) {
10998 assert(unitFsm->nodeList().size()==1);
10999 node_p = unitFsm->nodeList().at(0);
11003 FSM::warnNullNode(node_p, "Category", "{http://www.w3.org/2001/XMLSchema}Category", 0);
11009 void GenoPro::Places::Place::sequence::set_Category(DOMString val)
11012 mark_present_Category();
11014 element_Category()->stringValue(val);
11017 DOMString GenoPro::Places::Place::sequence::get_Category_string()
11019 return element_Category()->stringValue();
11024 void GenoPro::Places::Place::sequence::mark_present_Category()
11026 DOMStringPtr nsUriPtr = new DOMString("libgno");
11027 XsdEvent event(nsUriPtr, NULL, DOMString("Category"), XsdEvent::ELEMENT_START, false);
11028 this->processEventThrow(event);
11033 GenoPro::Places::Place::Name_p GenoPro::Places::Place::sequence::element_Name()
11035 GenoPro::Places::Place::Name_p node_p = NULL;
11036 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
11039 XsdFSM<Name_ptr> *unitFsm = dynamic_cast<XsdFSM<Name_ptr> *>(fsm_p);
11040 if(unitFsm && unitFsm->nodeList().size()>0) {
11041 assert(unitFsm->nodeList().size()==1);
11042 node_p = unitFsm->nodeList().at(0);
11046 FSM::warnNullNode(node_p, "Name", "{http://www.w3.org/2001/XMLSchema}Name", 0);
11052 void GenoPro::Places::Place::sequence::set_Name(DOMString val)
11055 mark_present_Name();
11057 element_Name()->stringValue(val);
11060 DOMString GenoPro::Places::Place::sequence::get_Name_string()
11062 return element_Name()->stringValue();
11067 void GenoPro::Places::Place::sequence::mark_present_Name()
11069 DOMStringPtr nsUriPtr = new DOMString("libgno");
11070 XsdEvent event(nsUriPtr, NULL, DOMString("Name"), XsdEvent::ELEMENT_START, false);
11071 this->processEventThrow(event);
11076 GenoPro::Places::Place::Street_p GenoPro::Places::Place::sequence::element_Street()
11078 GenoPro::Places::Place::Street_p node_p = NULL;
11079 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
11082 XsdFSM<Street_ptr> *unitFsm = dynamic_cast<XsdFSM<Street_ptr> *>(fsm_p);
11083 if(unitFsm && unitFsm->nodeList().size()>0) {
11084 assert(unitFsm->nodeList().size()==1);
11085 node_p = unitFsm->nodeList().at(0);
11089 FSM::warnNullNode(node_p, "Street", "{http://www.w3.org/2001/XMLSchema}Street", 0);
11095 void GenoPro::Places::Place::sequence::set_Street(DOMString val)
11098 mark_present_Street();
11100 element_Street()->stringValue(val);
11103 DOMString GenoPro::Places::Place::sequence::get_Street_string()
11105 return element_Street()->stringValue();
11110 void GenoPro::Places::Place::sequence::mark_present_Street()
11112 DOMStringPtr nsUriPtr = new DOMString("libgno");
11113 XsdEvent event(nsUriPtr, NULL, DOMString("Street"), XsdEvent::ELEMENT_START, false);
11114 this->processEventThrow(event);
11119 GenoPro::Places::Place::City_p GenoPro::Places::Place::sequence::element_City()
11121 GenoPro::Places::Place::City_p node_p = NULL;
11122 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
11125 XsdFSM<City_ptr> *unitFsm = dynamic_cast<XsdFSM<City_ptr> *>(fsm_p);
11126 if(unitFsm && unitFsm->nodeList().size()>0) {
11127 assert(unitFsm->nodeList().size()==1);
11128 node_p = unitFsm->nodeList().at(0);
11132 FSM::warnNullNode(node_p, "City", "{http://www.w3.org/2001/XMLSchema}City", 0);
11138 void GenoPro::Places::Place::sequence::set_City(DOMString val)
11141 mark_present_City();
11143 element_City()->stringValue(val);
11146 DOMString GenoPro::Places::Place::sequence::get_City_string()
11148 return element_City()->stringValue();
11153 void GenoPro::Places::Place::sequence::mark_present_City()
11155 DOMStringPtr nsUriPtr = new DOMString("libgno");
11156 XsdEvent event(nsUriPtr, NULL, DOMString("City"), XsdEvent::ELEMENT_START, false);
11157 this->processEventThrow(event);
11162 GenoPro::Places::Place::Zip_p GenoPro::Places::Place::sequence::element_Zip()
11164 GenoPro::Places::Place::Zip_p node_p = NULL;
11165 XsdFsmBase* fsm_p = this->allFSMs()[6].get();
11168 XsdFSM<Zip_ptr> *unitFsm = dynamic_cast<XsdFSM<Zip_ptr> *>(fsm_p);
11169 if(unitFsm && unitFsm->nodeList().size()>0) {
11170 assert(unitFsm->nodeList().size()==1);
11171 node_p = unitFsm->nodeList().at(0);
11175 FSM::warnNullNode(node_p, "Zip", "{http://www.w3.org/2001/XMLSchema}Zip", 0);
11181 void GenoPro::Places::Place::sequence::set_Zip(DOMString val)
11184 mark_present_Zip();
11186 element_Zip()->stringValue(val);
11189 DOMString GenoPro::Places::Place::sequence::get_Zip_string()
11191 return element_Zip()->stringValue();
11196 void GenoPro::Places::Place::sequence::mark_present_Zip()
11198 DOMStringPtr nsUriPtr = new DOMString("libgno");
11199 XsdEvent event(nsUriPtr, NULL, DOMString("Zip"), XsdEvent::ELEMENT_START, false);
11200 this->processEventThrow(event);
11206 GenoPro::Places::Place::Pictures::Pictures(ElementCreateArgs args):
11207 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
11217 if(args.ownerDoc && args.ownerDoc->buildTree())
11220 if(args.ownerDoc->createSample()) {
11221 _fsm->fireSampleEvents();
11224 _fsm->fireRequiredEvents();
11229 void GenoPro::Places::Place::Pictures::initFSM()
11231 XsdFsmBasePtr fsmsAttrs[] = {
11232 new XsdFSM<attr_Primary_ptr>( Particle(NULL, DOMString("Primary"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Primary_ptr, Pictures, FsmCbOptions>(this, &Pictures::create_attr_Primary)),
11237 _fsm->appendAttributeFsms(fsmsAttrs);
11238 _fsmAttrs = _fsm->attributeFsm();
11239 _fsmElems = _fsm->contentFsm();
11243 /* element functions */
11246 /* attribute functions */
11249 GenoPro::Places::Place::Pictures::attr_Primary_ptr GenoPro::Places::Place::Pictures::create_attr_Primary(FsmCbOptions& options)
11251 static DOMStringPtr myName = new DOMString("Primary");
11252 static DOMStringPtr myNsUri = NULL;
11254 if(_attr_Primary) {
11255 return _attr_Primary;
11257 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
11258 GenoPro::Places::Place::Pictures::attr_Primary_p node = XSD::createAttributeTmpl<attr_Primary>(t);
11260 if(options.isSampleCreate && (node->stringValue() == "") ) {
11261 node->stringValue(node->sampleValue());
11264 _attr_Primary = node;
11270 void GenoPro::Places::Place::Pictures::set_attr_Primary(DOMString val)
11273 attribute_attr_Primary()->stringValue(val);
11276 DOMString GenoPro::Places::Place::Pictures::get_attr_Primary_string()
11279 return attribute_attr_Primary()->stringValue();
11283 GenoPro::Places::Place::Pictures::attr_Primary_p GenoPro::Places::Place::Pictures::attribute_attr_Primary()
11285 FSM::warnNullNode(_attr_Primary, "attr_Primary", "{http://www.w3.org/2001/XMLSchema}Primary", 1);
11286 return _attr_Primary;
11292 GenoPro::Educations::Educations(ElementCreateArgs args):
11293 XMLSchema::XmlElement<anyType>(args),
11298 , _sequence(new sequence(this) )
11301 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
11303 if(args.ownerDoc && args.ownerDoc->buildTree())
11305 if(args.ownerDoc->createSample()) {
11306 _fsm->fireSampleEvents();
11309 _fsm->fireRequiredEvents();
11314 void GenoPro::Educations::initFSM()
11316 XsdFsmBasePtr fsmsAttrs[] = {
11321 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
11323 _fsm->replaceContentFsm(_sequence);
11325 _fsmAttrs = _fsm->attributeFsm();
11326 _fsmElems = _fsm->contentFsm();
11330 /* element functions */
11333 GenoPro::Educations::Education_ptr GenoPro::Educations::create_Education(FsmCbOptions& options)
11335 static DOMStringPtr myName = new DOMString("Education");
11336 static DOMStringPtr myNsUri = new DOMString("libgno");
11338 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
11339 GenoPro::Educations::Education_p node = XSD::createElementTmpl<Education, void*>(t);
11341 _list_Education.push_back(node);
11347 GenoPro::Educations::Education_p GenoPro::Educations::element_Education_at(unsigned int idx)
11349 if(idx > _list_Education.size()-1) {
11350 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
11353 return _list_Education.at(idx);
11356 List<GenoPro::Educations::Education_ptr> GenoPro::Educations::elements_Education()
11358 return _list_Education;
11361 GenoPro::Educations::Education_p GenoPro::Educations::add_node_Education()
11363 return get_sequence()->add_node_Education();
11366 List<GenoPro::Educations::Education_ptr> GenoPro::Educations::set_count_Education(unsigned int size)
11368 return get_sequence()->set_count_Education(size);
11373 /* attribute functions */
11376 GenoPro::Educations::sequence::sequence(Educations* that):
11379 XsdFsmBasePtr fsmArray[] = {
11380 new XsdFSM<Education_ptr>( Particle(new DOMString("libgno"), DOMString("Education"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Education_ptr, Educations, FsmCbOptions>(_that, &Educations::create_Education)),
11385 XsdSequenceFsmOfFSMs::init(fsmArray);
11390 List<GenoPro::Educations::Education_ptr> GenoPro::Educations::sequence::elements_Education()
11393 List<Education_ptr> nodeList;
11394 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
11397 XsdFSM<Education_ptr> *unitFsm = dynamic_cast<XsdFSM<Education_ptr> *>(fsm_p);
11399 //nodeList = unitFsm->nodeList().stl_list();
11400 nodeList = unitFsm->nodeList();
11408 GenoPro::Educations::Education_p GenoPro::Educations::sequence::element_Education_at(unsigned int idx)
11410 return elements_Education().at(idx);
11414 GenoPro::Educations::Education_p GenoPro::Educations::sequence::add_node_Education()
11416 DOMStringPtr nsUriPtr = new DOMString("libgno");
11417 XsdEvent event(nsUriPtr, NULL, DOMString("Education"), XsdEvent::ELEMENT_START, false);
11418 this->processEventThrow(event);
11419 return elements_Education().back();
11422 List<GenoPro::Educations::Education_ptr> GenoPro::Educations::sequence::set_count_Education(unsigned int size)
11424 if( (size > -1) || (size < 1)) {
11426 oss << "set_count_Education: size should be in range: [" << 1
11427 << "," << "unbounded" << "]";
11428 throw IndexOutOfBoundsException(oss.str());
11431 unsigned int prevSize = elements_Education().size();
11432 if(size < prevSize) {
11433 //FIXME: allow later:
11434 throw XPlus::RuntimeException("resize lesser than current size not allowed");
11437 for(unsigned int j=prevSize; j<size; j++)
11439 // pretend docBuilding to avoid computation of adding after first loop
11440 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Education"), XsdEvent::ELEMENT_START, false);
11441 this->processEventThrow(event);
11444 return elements_Education();
11451 GenoPro::Educations::Education::Education(ElementCreateArgs args):
11452 XMLSchema::XmlElement<anyType>(args),
11457 , _sequence(new sequence(this) )
11460 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
11462 if(args.ownerDoc && args.ownerDoc->buildTree())
11464 if(args.ownerDoc->createSample()) {
11465 _fsm->fireSampleEvents();
11468 _fsm->fireRequiredEvents();
11473 void GenoPro::Educations::Education::initFSM()
11475 XsdFsmBasePtr fsmsAttrs[] = {
11476 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Education, FsmCbOptions>(this, &Education::create_attr_ID)),
11481 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
11483 _fsm->replaceContentFsm(_sequence);
11485 _fsmAttrs = _fsm->attributeFsm();
11486 _fsmElems = _fsm->contentFsm();
11490 /* element functions */
11493 GenoPro::Educations::Education::Institution_ptr GenoPro::Educations::Education::create_Institution(FsmCbOptions& options)
11495 static DOMStringPtr myName = new DOMString("Institution");
11496 static DOMStringPtr myNsUri = new DOMString("libgno");
11498 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
11499 GenoPro::Educations::Education::Institution_p node = XSD::createElementTmpl<Institution, XMLSchema::Types::bt_string*>(t);
11501 if(options.isSampleCreate && (node->stringValue() == "") ) {
11502 node->stringValue(node->sampleValue());
11505 _Institution = node;
11511 GenoPro::Educations::Education::Institution_p GenoPro::Educations::Education::element_Institution()
11513 FSM::warnNullNode(_Institution, "Institution", "{http://www.w3.org/2001/XMLSchema}Institution", 0);
11514 return _Institution;
11517 void GenoPro::Educations::Education::set_Institution(DOMString val)
11519 get_sequence()->set_Institution(val);
11522 DOMString GenoPro::Educations::Education::get_Institution_string()
11524 return get_sequence()->get_Institution_string();
11528 void GenoPro::Educations::Education::mark_present_Institution()
11530 return get_sequence()->mark_present_Institution();
11534 GenoPro::Educations::Education::Place_ptr GenoPro::Educations::Education::create_Place(FsmCbOptions& options)
11536 static DOMStringPtr myName = new DOMString("Place");
11537 static DOMStringPtr myNsUri = new DOMString("libgno");
11539 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
11540 GenoPro::Educations::Education::Place_p node = XSD::createElementTmpl<Place, XMLSchema::Types::bt_normalizedString*>(t);
11542 if(options.isSampleCreate && (node->stringValue() == "") ) {
11543 node->stringValue(node->sampleValue());
11552 GenoPro::Educations::Education::Place_p GenoPro::Educations::Education::element_Place()
11554 FSM::warnNullNode(_Place, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
11558 void GenoPro::Educations::Education::set_Place(DOMString val)
11560 get_sequence()->set_Place(val);
11563 DOMString GenoPro::Educations::Education::get_Place_string()
11565 return get_sequence()->get_Place_string();
11569 void GenoPro::Educations::Education::mark_present_Place()
11571 return get_sequence()->mark_present_Place();
11575 GenoPro::Educations::Education::Level_ptr GenoPro::Educations::Education::create_Level(FsmCbOptions& options)
11577 static DOMStringPtr myName = new DOMString("Level");
11578 static DOMStringPtr myNsUri = new DOMString("libgno");
11580 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
11581 GenoPro::Educations::Education::Level_p node = XSD::createElementTmpl<Level, void*>(t);
11589 GenoPro::Educations::Education::Level_p GenoPro::Educations::Education::element_Level()
11591 FSM::warnNullNode(_Level, "Level", "{}Level", 0);
11595 void GenoPro::Educations::Education::mark_present_Level()
11597 return get_sequence()->mark_present_Level();
11601 GenoPro::Educations::Education::Achievement_ptr GenoPro::Educations::Education::create_Achievement(FsmCbOptions& options)
11603 static DOMStringPtr myName = new DOMString("Achievement");
11604 static DOMStringPtr myNsUri = new DOMString("libgno");
11606 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
11607 GenoPro::Educations::Education::Achievement_p node = XSD::createElementTmpl<Achievement, XMLSchema::Types::bt_normalizedString*>(t);
11609 if(options.isSampleCreate && (node->stringValue() == "") ) {
11610 node->stringValue(node->sampleValue());
11613 _Achievement = node;
11619 GenoPro::Educations::Education::Achievement_p GenoPro::Educations::Education::element_Achievement()
11621 FSM::warnNullNode(_Achievement, "Achievement", "{http://www.w3.org/2001/XMLSchema}Achievement", 0);
11622 return _Achievement;
11625 void GenoPro::Educations::Education::set_Achievement(DOMString val)
11627 get_sequence()->set_Achievement(val);
11630 DOMString GenoPro::Educations::Education::get_Achievement_string()
11632 return get_sequence()->get_Achievement_string();
11636 void GenoPro::Educations::Education::mark_present_Achievement()
11638 return get_sequence()->mark_present_Achievement();
11642 GenoPro::Educations::Education::Termination_ptr GenoPro::Educations::Education::create_Termination(FsmCbOptions& options)
11644 static DOMStringPtr myName = new DOMString("Termination");
11645 static DOMStringPtr myNsUri = new DOMString("libgno");
11647 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
11648 GenoPro::Educations::Education::Termination_p node = XSD::createElementTmpl<Termination, XMLSchema::Types::bt_normalizedString*>(t);
11650 if(options.isSampleCreate && (node->stringValue() == "") ) {
11651 node->stringValue(node->sampleValue());
11654 _Termination = node;
11660 GenoPro::Educations::Education::Termination_p GenoPro::Educations::Education::element_Termination()
11662 FSM::warnNullNode(_Termination, "Termination", "{http://www.w3.org/2001/XMLSchema}Termination", 0);
11663 return _Termination;
11666 void GenoPro::Educations::Education::set_Termination(DOMString val)
11668 get_sequence()->set_Termination(val);
11671 DOMString GenoPro::Educations::Education::get_Termination_string()
11673 return get_sequence()->get_Termination_string();
11677 void GenoPro::Educations::Education::mark_present_Termination()
11679 return get_sequence()->mark_present_Termination();
11683 GenoPro::Educations::Education::DateStart_ptr GenoPro::Educations::Education::create_DateStart(FsmCbOptions& options)
11685 static DOMStringPtr myName = new DOMString("DateStart");
11686 static DOMStringPtr myNsUri = new DOMString("libgno");
11688 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
11689 GenoPro::Educations::Education::DateStart_p node = XSD::createElementTmpl<DateStart, XMLSchema::Types::bt_string*>(t);
11691 if(options.isSampleCreate && (node->stringValue() == "") ) {
11692 node->stringValue(node->sampleValue());
11701 GenoPro::Educations::Education::DateStart_p GenoPro::Educations::Education::element_DateStart()
11703 FSM::warnNullNode(_DateStart, "DateStart", "{http://www.w3.org/2001/XMLSchema}DateStart", 0);
11707 void GenoPro::Educations::Education::set_DateStart(DOMString val)
11709 get_sequence()->set_DateStart(val);
11712 DOMString GenoPro::Educations::Education::get_DateStart_string()
11714 return get_sequence()->get_DateStart_string();
11718 void GenoPro::Educations::Education::mark_present_DateStart()
11720 return get_sequence()->mark_present_DateStart();
11724 GenoPro::Educations::Education::DateEnd_ptr GenoPro::Educations::Education::create_DateEnd(FsmCbOptions& options)
11726 static DOMStringPtr myName = new DOMString("DateEnd");
11727 static DOMStringPtr myNsUri = new DOMString("libgno");
11729 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
11730 GenoPro::Educations::Education::DateEnd_p node = XSD::createElementTmpl<DateEnd, XMLSchema::Types::bt_string*>(t);
11732 if(options.isSampleCreate && (node->stringValue() == "") ) {
11733 node->stringValue(node->sampleValue());
11742 GenoPro::Educations::Education::DateEnd_p GenoPro::Educations::Education::element_DateEnd()
11744 FSM::warnNullNode(_DateEnd, "DateEnd", "{http://www.w3.org/2001/XMLSchema}DateEnd", 0);
11748 void GenoPro::Educations::Education::set_DateEnd(DOMString val)
11750 get_sequence()->set_DateEnd(val);
11753 DOMString GenoPro::Educations::Education::get_DateEnd_string()
11755 return get_sequence()->get_DateEnd_string();
11759 void GenoPro::Educations::Education::mark_present_DateEnd()
11761 return get_sequence()->mark_present_DateEnd();
11765 GenoPro::Educations::Education::StudyType_ptr GenoPro::Educations::Education::create_StudyType(FsmCbOptions& options)
11767 static DOMStringPtr myName = new DOMString("StudyType");
11768 static DOMStringPtr myNsUri = new DOMString("libgno");
11770 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
11771 GenoPro::Educations::Education::StudyType_p node = XSD::createElementTmpl<StudyType, XMLSchema::Types::bt_normalizedString*>(t);
11773 if(options.isSampleCreate && (node->stringValue() == "") ) {
11774 node->stringValue(node->sampleValue());
11783 GenoPro::Educations::Education::StudyType_p GenoPro::Educations::Education::element_StudyType()
11785 FSM::warnNullNode(_StudyType, "StudyType", "{http://www.w3.org/2001/XMLSchema}StudyType", 0);
11789 void GenoPro::Educations::Education::set_StudyType(DOMString val)
11791 get_sequence()->set_StudyType(val);
11794 DOMString GenoPro::Educations::Education::get_StudyType_string()
11796 return get_sequence()->get_StudyType_string();
11800 void GenoPro::Educations::Education::mark_present_StudyType()
11802 return get_sequence()->mark_present_StudyType();
11806 GenoPro::Educations::Education::Comment_ptr GenoPro::Educations::Education::create_Comment(FsmCbOptions& options)
11808 static DOMStringPtr myName = new DOMString("Comment");
11809 static DOMStringPtr myNsUri = new DOMString("libgno");
11811 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
11812 GenoPro::Educations::Education::Comment_p node = XSD::createElementTmpl<Comment, XMLSchema::Types::bt_string*>(t);
11814 if(options.isSampleCreate && (node->stringValue() == "") ) {
11815 node->stringValue(node->sampleValue());
11824 GenoPro::Educations::Education::Comment_p GenoPro::Educations::Education::element_Comment()
11826 FSM::warnNullNode(_Comment, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
11830 void GenoPro::Educations::Education::set_Comment(DOMString val)
11832 get_sequence()->set_Comment(val);
11835 DOMString GenoPro::Educations::Education::get_Comment_string()
11837 return get_sequence()->get_Comment_string();
11841 void GenoPro::Educations::Education::mark_present_Comment()
11843 return get_sequence()->mark_present_Comment();
11847 /* attribute functions */
11850 GenoPro::Educations::Education::attr_ID_ptr GenoPro::Educations::Education::create_attr_ID(FsmCbOptions& options)
11852 static DOMStringPtr myName = new DOMString("ID");
11853 static DOMStringPtr myNsUri = NULL;
11858 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
11859 GenoPro::Educations::Education::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
11861 if(options.isSampleCreate && (node->stringValue() == "") ) {
11862 node->stringValue(node->sampleValue());
11871 void GenoPro::Educations::Education::set_attr_ID(DOMString val)
11874 attribute_attr_ID()->stringValue(val);
11877 DOMString GenoPro::Educations::Education::get_attr_ID_string()
11880 return attribute_attr_ID()->stringValue();
11884 GenoPro::Educations::Education::attr_ID_p GenoPro::Educations::Education::attribute_attr_ID()
11886 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
11891 GenoPro::Educations::Education::sequence::sequence(Education* that):
11894 XsdFsmBasePtr fsmArray[] = {
11895 new XsdFSM<Institution_ptr>( Particle(new DOMString("libgno"), DOMString("Institution"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Institution_ptr, Education, FsmCbOptions>(_that, &Education::create_Institution)),
11896 new XsdFSM<Place_ptr>( Particle(new DOMString("libgno"), DOMString("Place"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Place_ptr, Education, FsmCbOptions>(_that, &Education::create_Place)),
11897 new XsdFSM<Level_ptr>( Particle(new DOMString("libgno"), DOMString("Level"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Level_ptr, Education, FsmCbOptions>(_that, &Education::create_Level)),
11898 new XsdFSM<Achievement_ptr>( Particle(new DOMString("libgno"), DOMString("Achievement"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Achievement_ptr, Education, FsmCbOptions>(_that, &Education::create_Achievement)),
11899 new XsdFSM<Termination_ptr>( Particle(new DOMString("libgno"), DOMString("Termination"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Termination_ptr, Education, FsmCbOptions>(_that, &Education::create_Termination)),
11900 new XsdFSM<DateStart_ptr>( Particle(new DOMString("libgno"), DOMString("DateStart"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DateStart_ptr, Education, FsmCbOptions>(_that, &Education::create_DateStart)),
11901 new XsdFSM<DateEnd_ptr>( Particle(new DOMString("libgno"), DOMString("DateEnd"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DateEnd_ptr, Education, FsmCbOptions>(_that, &Education::create_DateEnd)),
11902 new XsdFSM<StudyType_ptr>( Particle(new DOMString("libgno"), DOMString("StudyType"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<StudyType_ptr, Education, FsmCbOptions>(_that, &Education::create_StudyType)),
11903 new XsdFSM<Comment_ptr>( Particle(new DOMString("libgno"), DOMString("Comment"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Comment_ptr, Education, FsmCbOptions>(_that, &Education::create_Comment)),
11908 XsdSequenceFsmOfFSMs::init(fsmArray);
11913 GenoPro::Educations::Education::Institution_p GenoPro::Educations::Education::sequence::element_Institution()
11915 GenoPro::Educations::Education::Institution_p node_p = NULL;
11916 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
11919 XsdFSM<Institution_ptr> *unitFsm = dynamic_cast<XsdFSM<Institution_ptr> *>(fsm_p);
11920 if(unitFsm && unitFsm->nodeList().size()>0) {
11921 assert(unitFsm->nodeList().size()==1);
11922 node_p = unitFsm->nodeList().at(0);
11926 FSM::warnNullNode(node_p, "Institution", "{http://www.w3.org/2001/XMLSchema}Institution", 0);
11932 void GenoPro::Educations::Education::sequence::set_Institution(DOMString val)
11935 mark_present_Institution();
11937 element_Institution()->stringValue(val);
11940 DOMString GenoPro::Educations::Education::sequence::get_Institution_string()
11942 return element_Institution()->stringValue();
11947 void GenoPro::Educations::Education::sequence::mark_present_Institution()
11949 DOMStringPtr nsUriPtr = new DOMString("libgno");
11950 XsdEvent event(nsUriPtr, NULL, DOMString("Institution"), XsdEvent::ELEMENT_START, false);
11951 this->processEventThrow(event);
11956 GenoPro::Educations::Education::Place_p GenoPro::Educations::Education::sequence::element_Place()
11958 GenoPro::Educations::Education::Place_p node_p = NULL;
11959 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
11962 XsdFSM<Place_ptr> *unitFsm = dynamic_cast<XsdFSM<Place_ptr> *>(fsm_p);
11963 if(unitFsm && unitFsm->nodeList().size()>0) {
11964 assert(unitFsm->nodeList().size()==1);
11965 node_p = unitFsm->nodeList().at(0);
11969 FSM::warnNullNode(node_p, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
11975 void GenoPro::Educations::Education::sequence::set_Place(DOMString val)
11978 mark_present_Place();
11980 element_Place()->stringValue(val);
11983 DOMString GenoPro::Educations::Education::sequence::get_Place_string()
11985 return element_Place()->stringValue();
11990 void GenoPro::Educations::Education::sequence::mark_present_Place()
11992 DOMStringPtr nsUriPtr = new DOMString("libgno");
11993 XsdEvent event(nsUriPtr, NULL, DOMString("Place"), XsdEvent::ELEMENT_START, false);
11994 this->processEventThrow(event);
11999 GenoPro::Educations::Education::Level_p GenoPro::Educations::Education::sequence::element_Level()
12001 GenoPro::Educations::Education::Level_p node_p = NULL;
12002 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
12005 XsdFSM<Level_ptr> *unitFsm = dynamic_cast<XsdFSM<Level_ptr> *>(fsm_p);
12006 if(unitFsm && unitFsm->nodeList().size()>0) {
12007 assert(unitFsm->nodeList().size()==1);
12008 node_p = unitFsm->nodeList().at(0);
12012 FSM::warnNullNode(node_p, "Level", "{}Level", 0);
12019 void GenoPro::Educations::Education::sequence::mark_present_Level()
12021 DOMStringPtr nsUriPtr = new DOMString("libgno");
12022 XsdEvent event(nsUriPtr, NULL, DOMString("Level"), XsdEvent::ELEMENT_START, false);
12023 this->processEventThrow(event);
12028 GenoPro::Educations::Education::Achievement_p GenoPro::Educations::Education::sequence::element_Achievement()
12030 GenoPro::Educations::Education::Achievement_p node_p = NULL;
12031 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
12034 XsdFSM<Achievement_ptr> *unitFsm = dynamic_cast<XsdFSM<Achievement_ptr> *>(fsm_p);
12035 if(unitFsm && unitFsm->nodeList().size()>0) {
12036 assert(unitFsm->nodeList().size()==1);
12037 node_p = unitFsm->nodeList().at(0);
12041 FSM::warnNullNode(node_p, "Achievement", "{http://www.w3.org/2001/XMLSchema}Achievement", 0);
12047 void GenoPro::Educations::Education::sequence::set_Achievement(DOMString val)
12050 mark_present_Achievement();
12052 element_Achievement()->stringValue(val);
12055 DOMString GenoPro::Educations::Education::sequence::get_Achievement_string()
12057 return element_Achievement()->stringValue();
12062 void GenoPro::Educations::Education::sequence::mark_present_Achievement()
12064 DOMStringPtr nsUriPtr = new DOMString("libgno");
12065 XsdEvent event(nsUriPtr, NULL, DOMString("Achievement"), XsdEvent::ELEMENT_START, false);
12066 this->processEventThrow(event);
12071 GenoPro::Educations::Education::Termination_p GenoPro::Educations::Education::sequence::element_Termination()
12073 GenoPro::Educations::Education::Termination_p node_p = NULL;
12074 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
12077 XsdFSM<Termination_ptr> *unitFsm = dynamic_cast<XsdFSM<Termination_ptr> *>(fsm_p);
12078 if(unitFsm && unitFsm->nodeList().size()>0) {
12079 assert(unitFsm->nodeList().size()==1);
12080 node_p = unitFsm->nodeList().at(0);
12084 FSM::warnNullNode(node_p, "Termination", "{http://www.w3.org/2001/XMLSchema}Termination", 0);
12090 void GenoPro::Educations::Education::sequence::set_Termination(DOMString val)
12093 mark_present_Termination();
12095 element_Termination()->stringValue(val);
12098 DOMString GenoPro::Educations::Education::sequence::get_Termination_string()
12100 return element_Termination()->stringValue();
12105 void GenoPro::Educations::Education::sequence::mark_present_Termination()
12107 DOMStringPtr nsUriPtr = new DOMString("libgno");
12108 XsdEvent event(nsUriPtr, NULL, DOMString("Termination"), XsdEvent::ELEMENT_START, false);
12109 this->processEventThrow(event);
12114 GenoPro::Educations::Education::DateStart_p GenoPro::Educations::Education::sequence::element_DateStart()
12116 GenoPro::Educations::Education::DateStart_p node_p = NULL;
12117 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
12120 XsdFSM<DateStart_ptr> *unitFsm = dynamic_cast<XsdFSM<DateStart_ptr> *>(fsm_p);
12121 if(unitFsm && unitFsm->nodeList().size()>0) {
12122 assert(unitFsm->nodeList().size()==1);
12123 node_p = unitFsm->nodeList().at(0);
12127 FSM::warnNullNode(node_p, "DateStart", "{http://www.w3.org/2001/XMLSchema}DateStart", 0);
12133 void GenoPro::Educations::Education::sequence::set_DateStart(DOMString val)
12136 mark_present_DateStart();
12138 element_DateStart()->stringValue(val);
12141 DOMString GenoPro::Educations::Education::sequence::get_DateStart_string()
12143 return element_DateStart()->stringValue();
12148 void GenoPro::Educations::Education::sequence::mark_present_DateStart()
12150 DOMStringPtr nsUriPtr = new DOMString("libgno");
12151 XsdEvent event(nsUriPtr, NULL, DOMString("DateStart"), XsdEvent::ELEMENT_START, false);
12152 this->processEventThrow(event);
12157 GenoPro::Educations::Education::DateEnd_p GenoPro::Educations::Education::sequence::element_DateEnd()
12159 GenoPro::Educations::Education::DateEnd_p node_p = NULL;
12160 XsdFsmBase* fsm_p = this->allFSMs()[6].get();
12163 XsdFSM<DateEnd_ptr> *unitFsm = dynamic_cast<XsdFSM<DateEnd_ptr> *>(fsm_p);
12164 if(unitFsm && unitFsm->nodeList().size()>0) {
12165 assert(unitFsm->nodeList().size()==1);
12166 node_p = unitFsm->nodeList().at(0);
12170 FSM::warnNullNode(node_p, "DateEnd", "{http://www.w3.org/2001/XMLSchema}DateEnd", 0);
12176 void GenoPro::Educations::Education::sequence::set_DateEnd(DOMString val)
12179 mark_present_DateEnd();
12181 element_DateEnd()->stringValue(val);
12184 DOMString GenoPro::Educations::Education::sequence::get_DateEnd_string()
12186 return element_DateEnd()->stringValue();
12191 void GenoPro::Educations::Education::sequence::mark_present_DateEnd()
12193 DOMStringPtr nsUriPtr = new DOMString("libgno");
12194 XsdEvent event(nsUriPtr, NULL, DOMString("DateEnd"), XsdEvent::ELEMENT_START, false);
12195 this->processEventThrow(event);
12200 GenoPro::Educations::Education::StudyType_p GenoPro::Educations::Education::sequence::element_StudyType()
12202 GenoPro::Educations::Education::StudyType_p node_p = NULL;
12203 XsdFsmBase* fsm_p = this->allFSMs()[7].get();
12206 XsdFSM<StudyType_ptr> *unitFsm = dynamic_cast<XsdFSM<StudyType_ptr> *>(fsm_p);
12207 if(unitFsm && unitFsm->nodeList().size()>0) {
12208 assert(unitFsm->nodeList().size()==1);
12209 node_p = unitFsm->nodeList().at(0);
12213 FSM::warnNullNode(node_p, "StudyType", "{http://www.w3.org/2001/XMLSchema}StudyType", 0);
12219 void GenoPro::Educations::Education::sequence::set_StudyType(DOMString val)
12222 mark_present_StudyType();
12224 element_StudyType()->stringValue(val);
12227 DOMString GenoPro::Educations::Education::sequence::get_StudyType_string()
12229 return element_StudyType()->stringValue();
12234 void GenoPro::Educations::Education::sequence::mark_present_StudyType()
12236 DOMStringPtr nsUriPtr = new DOMString("libgno");
12237 XsdEvent event(nsUriPtr, NULL, DOMString("StudyType"), XsdEvent::ELEMENT_START, false);
12238 this->processEventThrow(event);
12243 GenoPro::Educations::Education::Comment_p GenoPro::Educations::Education::sequence::element_Comment()
12245 GenoPro::Educations::Education::Comment_p node_p = NULL;
12246 XsdFsmBase* fsm_p = this->allFSMs()[8].get();
12249 XsdFSM<Comment_ptr> *unitFsm = dynamic_cast<XsdFSM<Comment_ptr> *>(fsm_p);
12250 if(unitFsm && unitFsm->nodeList().size()>0) {
12251 assert(unitFsm->nodeList().size()==1);
12252 node_p = unitFsm->nodeList().at(0);
12256 FSM::warnNullNode(node_p, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
12262 void GenoPro::Educations::Education::sequence::set_Comment(DOMString val)
12265 mark_present_Comment();
12267 element_Comment()->stringValue(val);
12270 DOMString GenoPro::Educations::Education::sequence::get_Comment_string()
12272 return element_Comment()->stringValue();
12277 void GenoPro::Educations::Education::sequence::mark_present_Comment()
12279 DOMStringPtr nsUriPtr = new DOMString("libgno");
12280 XsdEvent event(nsUriPtr, NULL, DOMString("Comment"), XsdEvent::ELEMENT_START, false);
12281 this->processEventThrow(event);
12288 GenoPro::Educations::Education::Level::Level(ElementCreateArgs args):
12289 XMLSchema::XmlElement<anyType>(args),
12294 , _sequence(new sequence(this) )
12297 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
12299 if(args.ownerDoc && args.ownerDoc->buildTree())
12301 if(args.ownerDoc->createSample()) {
12302 _fsm->fireSampleEvents();
12305 _fsm->fireRequiredEvents();
12310 void GenoPro::Educations::Education::Level::initFSM()
12312 XsdFsmBasePtr fsmsAttrs[] = {
12317 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
12319 _fsm->replaceContentFsm(_sequence);
12321 _fsmAttrs = _fsm->attributeFsm();
12322 _fsmElems = _fsm->contentFsm();
12326 /* element functions */
12329 GenoPro::Educations::Education::Level::Years_ptr GenoPro::Educations::Education::Level::create_Years(FsmCbOptions& options)
12331 static DOMStringPtr myName = new DOMString("Years");
12332 static DOMStringPtr myNsUri = new DOMString("libgno");
12334 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "int");
12335 GenoPro::Educations::Education::Level::Years_p node = XSD::createElementTmpl<Years, XMLSchema::Types::bt_int*>(t);
12337 if(options.isSampleCreate && (node->stringValue() == "") ) {
12338 node->stringValue(node->sampleValue());
12347 GenoPro::Educations::Education::Level::Years_p GenoPro::Educations::Education::Level::element_Years()
12349 FSM::warnNullNode(_Years, "Years", "{http://www.w3.org/2001/XMLSchema}Years", 0);
12353 void GenoPro::Educations::Education::Level::set_Years(DOMString val)
12355 get_sequence()->set_Years(val);
12358 DOMString GenoPro::Educations::Education::Level::get_Years_string()
12360 return get_sequence()->get_Years_string();
12364 void GenoPro::Educations::Education::Level::set_Years(int val)
12366 get_sequence()->set_Years(val);
12369 int GenoPro::Educations::Education::Level::get_Years()
12371 return get_sequence()->get_Years();
12375 void GenoPro::Educations::Education::Level::mark_present_Years()
12377 return get_sequence()->mark_present_Years();
12381 /* attribute functions */
12384 GenoPro::Educations::Education::Level::sequence::sequence(Level* that):
12387 XsdFsmBasePtr fsmArray[] = {
12388 new XsdFSM<Years_ptr>( Particle(new DOMString("libgno"), DOMString("Years"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Years_ptr, Level, FsmCbOptions>(_that, &Level::create_Years)),
12393 XsdSequenceFsmOfFSMs::init(fsmArray);
12398 GenoPro::Educations::Education::Level::Years_p GenoPro::Educations::Education::Level::sequence::element_Years()
12400 GenoPro::Educations::Education::Level::Years_p node_p = NULL;
12401 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
12404 XsdFSM<Years_ptr> *unitFsm = dynamic_cast<XsdFSM<Years_ptr> *>(fsm_p);
12405 if(unitFsm && unitFsm->nodeList().size()>0) {
12406 assert(unitFsm->nodeList().size()==1);
12407 node_p = unitFsm->nodeList().at(0);
12411 FSM::warnNullNode(node_p, "Years", "{http://www.w3.org/2001/XMLSchema}Years", 0);
12417 void GenoPro::Educations::Education::Level::sequence::set_Years(DOMString val)
12420 mark_present_Years();
12422 element_Years()->stringValue(val);
12425 DOMString GenoPro::Educations::Education::Level::sequence::get_Years_string()
12427 return element_Years()->stringValue();
12431 void GenoPro::Educations::Education::Level::sequence::set_Years(int val)
12434 mark_present_Years();
12436 element_Years()->value(val);
12439 int GenoPro::Educations::Education::Level::sequence::get_Years()
12441 return element_Years()->value();
12446 void GenoPro::Educations::Education::Level::sequence::mark_present_Years()
12448 DOMStringPtr nsUriPtr = new DOMString("libgno");
12449 XsdEvent event(nsUriPtr, NULL, DOMString("Years"), XsdEvent::ELEMENT_START, false);
12450 this->processEventThrow(event);
12457 GenoPro::Occupations::Occupations(ElementCreateArgs args):
12458 XMLSchema::XmlElement<anyType>(args),
12463 , _sequence(new sequence(this) )
12466 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
12468 if(args.ownerDoc && args.ownerDoc->buildTree())
12470 if(args.ownerDoc->createSample()) {
12471 _fsm->fireSampleEvents();
12474 _fsm->fireRequiredEvents();
12479 void GenoPro::Occupations::initFSM()
12481 XsdFsmBasePtr fsmsAttrs[] = {
12486 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
12488 _fsm->replaceContentFsm(_sequence);
12490 _fsmAttrs = _fsm->attributeFsm();
12491 _fsmElems = _fsm->contentFsm();
12495 /* element functions */
12498 GenoPro::Occupations::Occupation_ptr GenoPro::Occupations::create_Occupation(FsmCbOptions& options)
12500 static DOMStringPtr myName = new DOMString("Occupation");
12501 static DOMStringPtr myNsUri = new DOMString("libgno");
12503 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
12504 GenoPro::Occupations::Occupation_p node = XSD::createElementTmpl<Occupation, void*>(t);
12506 _list_Occupation.push_back(node);
12512 GenoPro::Occupations::Occupation_p GenoPro::Occupations::element_Occupation_at(unsigned int idx)
12514 if(idx > _list_Occupation.size()-1) {
12515 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
12518 return _list_Occupation.at(idx);
12521 List<GenoPro::Occupations::Occupation_ptr> GenoPro::Occupations::elements_Occupation()
12523 return _list_Occupation;
12526 GenoPro::Occupations::Occupation_p GenoPro::Occupations::add_node_Occupation()
12528 return get_sequence()->add_node_Occupation();
12531 List<GenoPro::Occupations::Occupation_ptr> GenoPro::Occupations::set_count_Occupation(unsigned int size)
12533 return get_sequence()->set_count_Occupation(size);
12538 /* attribute functions */
12541 GenoPro::Occupations::sequence::sequence(Occupations* that):
12544 XsdFsmBasePtr fsmArray[] = {
12545 new XsdFSM<Occupation_ptr>( Particle(new DOMString("libgno"), DOMString("Occupation"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Occupation_ptr, Occupations, FsmCbOptions>(_that, &Occupations::create_Occupation)),
12550 XsdSequenceFsmOfFSMs::init(fsmArray);
12555 List<GenoPro::Occupations::Occupation_ptr> GenoPro::Occupations::sequence::elements_Occupation()
12558 List<Occupation_ptr> nodeList;
12559 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
12562 XsdFSM<Occupation_ptr> *unitFsm = dynamic_cast<XsdFSM<Occupation_ptr> *>(fsm_p);
12564 //nodeList = unitFsm->nodeList().stl_list();
12565 nodeList = unitFsm->nodeList();
12573 GenoPro::Occupations::Occupation_p GenoPro::Occupations::sequence::element_Occupation_at(unsigned int idx)
12575 return elements_Occupation().at(idx);
12579 GenoPro::Occupations::Occupation_p GenoPro::Occupations::sequence::add_node_Occupation()
12581 DOMStringPtr nsUriPtr = new DOMString("libgno");
12582 XsdEvent event(nsUriPtr, NULL, DOMString("Occupation"), XsdEvent::ELEMENT_START, false);
12583 this->processEventThrow(event);
12584 return elements_Occupation().back();
12587 List<GenoPro::Occupations::Occupation_ptr> GenoPro::Occupations::sequence::set_count_Occupation(unsigned int size)
12589 if( (size > -1) || (size < 1)) {
12591 oss << "set_count_Occupation: size should be in range: [" << 1
12592 << "," << "unbounded" << "]";
12593 throw IndexOutOfBoundsException(oss.str());
12596 unsigned int prevSize = elements_Occupation().size();
12597 if(size < prevSize) {
12598 //FIXME: allow later:
12599 throw XPlus::RuntimeException("resize lesser than current size not allowed");
12602 for(unsigned int j=prevSize; j<size; j++)
12604 // pretend docBuilding to avoid computation of adding after first loop
12605 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Occupation"), XsdEvent::ELEMENT_START, false);
12606 this->processEventThrow(event);
12609 return elements_Occupation();
12616 GenoPro::Occupations::Occupation::Occupation(ElementCreateArgs args):
12617 XMLSchema::XmlElement<anyType>(args),
12622 , _sequence(new sequence(this) )
12625 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
12627 if(args.ownerDoc && args.ownerDoc->buildTree())
12629 if(args.ownerDoc->createSample()) {
12630 _fsm->fireSampleEvents();
12633 _fsm->fireRequiredEvents();
12638 void GenoPro::Occupations::Occupation::initFSM()
12640 XsdFsmBasePtr fsmsAttrs[] = {
12641 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Occupation, FsmCbOptions>(this, &Occupation::create_attr_ID)),
12646 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
12648 _fsm->replaceContentFsm(_sequence);
12650 _fsmAttrs = _fsm->attributeFsm();
12651 _fsmElems = _fsm->contentFsm();
12655 /* element functions */
12658 GenoPro::Occupations::Occupation::Title_ptr GenoPro::Occupations::Occupation::create_Title(FsmCbOptions& options)
12660 static DOMStringPtr myName = new DOMString("Title");
12661 static DOMStringPtr myNsUri = new DOMString("libgno");
12663 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
12664 GenoPro::Occupations::Occupation::Title_p node = XSD::createElementTmpl<Title, XMLSchema::Types::bt_string*>(t);
12666 if(options.isSampleCreate && (node->stringValue() == "") ) {
12667 node->stringValue(node->sampleValue());
12676 GenoPro::Occupations::Occupation::Title_p GenoPro::Occupations::Occupation::element_Title()
12678 FSM::warnNullNode(_Title, "Title", "{http://www.w3.org/2001/XMLSchema}Title", 0);
12682 void GenoPro::Occupations::Occupation::set_Title(DOMString val)
12684 get_sequence()->set_Title(val);
12687 DOMString GenoPro::Occupations::Occupation::get_Title_string()
12689 return get_sequence()->get_Title_string();
12693 void GenoPro::Occupations::Occupation::mark_present_Title()
12695 return get_sequence()->mark_present_Title();
12699 GenoPro::Occupations::Occupation::Company_ptr GenoPro::Occupations::Occupation::create_Company(FsmCbOptions& options)
12701 static DOMStringPtr myName = new DOMString("Company");
12702 static DOMStringPtr myNsUri = new DOMString("libgno");
12704 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
12705 GenoPro::Occupations::Occupation::Company_p node = XSD::createElementTmpl<Company, XMLSchema::Types::bt_string*>(t);
12707 if(options.isSampleCreate && (node->stringValue() == "") ) {
12708 node->stringValue(node->sampleValue());
12717 GenoPro::Occupations::Occupation::Company_p GenoPro::Occupations::Occupation::element_Company()
12719 FSM::warnNullNode(_Company, "Company", "{http://www.w3.org/2001/XMLSchema}Company", 0);
12723 void GenoPro::Occupations::Occupation::set_Company(DOMString val)
12725 get_sequence()->set_Company(val);
12728 DOMString GenoPro::Occupations::Occupation::get_Company_string()
12730 return get_sequence()->get_Company_string();
12734 void GenoPro::Occupations::Occupation::mark_present_Company()
12736 return get_sequence()->mark_present_Company();
12740 GenoPro::Occupations::Occupation::Industry_ptr GenoPro::Occupations::Occupation::create_Industry(FsmCbOptions& options)
12742 static DOMStringPtr myName = new DOMString("Industry");
12743 static DOMStringPtr myNsUri = new DOMString("libgno");
12745 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
12746 GenoPro::Occupations::Occupation::Industry_p node = XSD::createElementTmpl<Industry, XMLSchema::Types::bt_normalizedString*>(t);
12748 if(options.isSampleCreate && (node->stringValue() == "") ) {
12749 node->stringValue(node->sampleValue());
12758 GenoPro::Occupations::Occupation::Industry_p GenoPro::Occupations::Occupation::element_Industry()
12760 FSM::warnNullNode(_Industry, "Industry", "{http://www.w3.org/2001/XMLSchema}Industry", 0);
12764 void GenoPro::Occupations::Occupation::set_Industry(DOMString val)
12766 get_sequence()->set_Industry(val);
12769 DOMString GenoPro::Occupations::Occupation::get_Industry_string()
12771 return get_sequence()->get_Industry_string();
12775 void GenoPro::Occupations::Occupation::mark_present_Industry()
12777 return get_sequence()->mark_present_Industry();
12781 GenoPro::Occupations::Occupation::Place_ptr GenoPro::Occupations::Occupation::create_Place(FsmCbOptions& options)
12783 static DOMStringPtr myName = new DOMString("Place");
12784 static DOMStringPtr myNsUri = new DOMString("libgno");
12786 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
12787 GenoPro::Occupations::Occupation::Place_p node = XSD::createElementTmpl<Place, XMLSchema::Types::bt_normalizedString*>(t);
12789 if(options.isSampleCreate && (node->stringValue() == "") ) {
12790 node->stringValue(node->sampleValue());
12799 GenoPro::Occupations::Occupation::Place_p GenoPro::Occupations::Occupation::element_Place()
12801 FSM::warnNullNode(_Place, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
12805 void GenoPro::Occupations::Occupation::set_Place(DOMString val)
12807 get_sequence()->set_Place(val);
12810 DOMString GenoPro::Occupations::Occupation::get_Place_string()
12812 return get_sequence()->get_Place_string();
12816 void GenoPro::Occupations::Occupation::mark_present_Place()
12818 return get_sequence()->mark_present_Place();
12822 GenoPro::Occupations::Occupation::Source_ptr GenoPro::Occupations::Occupation::create_Source(FsmCbOptions& options)
12824 static DOMStringPtr myName = new DOMString("Source");
12825 static DOMStringPtr myNsUri = new DOMString("libgno");
12827 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
12828 GenoPro::Occupations::Occupation::Source_p node = XSD::createElementTmpl<Source, XMLSchema::Types::bt_normalizedString*>(t);
12830 if(options.isSampleCreate && (node->stringValue() == "") ) {
12831 node->stringValue(node->sampleValue());
12840 GenoPro::Occupations::Occupation::Source_p GenoPro::Occupations::Occupation::element_Source()
12842 FSM::warnNullNode(_Source, "Source", "{http://www.w3.org/2001/XMLSchema}Source", 0);
12846 void GenoPro::Occupations::Occupation::set_Source(DOMString val)
12848 get_sequence()->set_Source(val);
12851 DOMString GenoPro::Occupations::Occupation::get_Source_string()
12853 return get_sequence()->get_Source_string();
12857 void GenoPro::Occupations::Occupation::mark_present_Source()
12859 return get_sequence()->mark_present_Source();
12863 GenoPro::Occupations::Occupation::DateStart_ptr GenoPro::Occupations::Occupation::create_DateStart(FsmCbOptions& options)
12865 static DOMStringPtr myName = new DOMString("DateStart");
12866 static DOMStringPtr myNsUri = new DOMString("libgno");
12868 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
12869 GenoPro::Occupations::Occupation::DateStart_p node = XSD::createElementTmpl<DateStart, XMLSchema::Types::bt_string*>(t);
12871 if(options.isSampleCreate && (node->stringValue() == "") ) {
12872 node->stringValue(node->sampleValue());
12881 GenoPro::Occupations::Occupation::DateStart_p GenoPro::Occupations::Occupation::element_DateStart()
12883 FSM::warnNullNode(_DateStart, "DateStart", "{http://www.w3.org/2001/XMLSchema}DateStart", 0);
12887 void GenoPro::Occupations::Occupation::set_DateStart(DOMString val)
12889 get_sequence()->set_DateStart(val);
12892 DOMString GenoPro::Occupations::Occupation::get_DateStart_string()
12894 return get_sequence()->get_DateStart_string();
12898 void GenoPro::Occupations::Occupation::mark_present_DateStart()
12900 return get_sequence()->mark_present_DateStart();
12904 GenoPro::Occupations::Occupation::DateEnd_ptr GenoPro::Occupations::Occupation::create_DateEnd(FsmCbOptions& options)
12906 static DOMStringPtr myName = new DOMString("DateEnd");
12907 static DOMStringPtr myNsUri = new DOMString("libgno");
12909 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
12910 GenoPro::Occupations::Occupation::DateEnd_p node = XSD::createElementTmpl<DateEnd, XMLSchema::Types::bt_string*>(t);
12912 if(options.isSampleCreate && (node->stringValue() == "") ) {
12913 node->stringValue(node->sampleValue());
12922 GenoPro::Occupations::Occupation::DateEnd_p GenoPro::Occupations::Occupation::element_DateEnd()
12924 FSM::warnNullNode(_DateEnd, "DateEnd", "{http://www.w3.org/2001/XMLSchema}DateEnd", 0);
12928 void GenoPro::Occupations::Occupation::set_DateEnd(DOMString val)
12930 get_sequence()->set_DateEnd(val);
12933 DOMString GenoPro::Occupations::Occupation::get_DateEnd_string()
12935 return get_sequence()->get_DateEnd_string();
12939 void GenoPro::Occupations::Occupation::mark_present_DateEnd()
12941 return get_sequence()->mark_present_DateEnd();
12945 GenoPro::Occupations::Occupation::WorkType_ptr GenoPro::Occupations::Occupation::create_WorkType(FsmCbOptions& options)
12947 static DOMStringPtr myName = new DOMString("WorkType");
12948 static DOMStringPtr myNsUri = new DOMString("libgno");
12950 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
12951 GenoPro::Occupations::Occupation::WorkType_p node = XSD::createElementTmpl<WorkType, XMLSchema::Types::bt_normalizedString*>(t);
12953 if(options.isSampleCreate && (node->stringValue() == "") ) {
12954 node->stringValue(node->sampleValue());
12963 GenoPro::Occupations::Occupation::WorkType_p GenoPro::Occupations::Occupation::element_WorkType()
12965 FSM::warnNullNode(_WorkType, "WorkType", "{http://www.w3.org/2001/XMLSchema}WorkType", 0);
12969 void GenoPro::Occupations::Occupation::set_WorkType(DOMString val)
12971 get_sequence()->set_WorkType(val);
12974 DOMString GenoPro::Occupations::Occupation::get_WorkType_string()
12976 return get_sequence()->get_WorkType_string();
12980 void GenoPro::Occupations::Occupation::mark_present_WorkType()
12982 return get_sequence()->mark_present_WorkType();
12986 /* attribute functions */
12989 GenoPro::Occupations::Occupation::attr_ID_ptr GenoPro::Occupations::Occupation::create_attr_ID(FsmCbOptions& options)
12991 static DOMStringPtr myName = new DOMString("ID");
12992 static DOMStringPtr myNsUri = NULL;
12997 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
12998 GenoPro::Occupations::Occupation::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
13000 if(options.isSampleCreate && (node->stringValue() == "") ) {
13001 node->stringValue(node->sampleValue());
13010 void GenoPro::Occupations::Occupation::set_attr_ID(DOMString val)
13013 attribute_attr_ID()->stringValue(val);
13016 DOMString GenoPro::Occupations::Occupation::get_attr_ID_string()
13019 return attribute_attr_ID()->stringValue();
13023 GenoPro::Occupations::Occupation::attr_ID_p GenoPro::Occupations::Occupation::attribute_attr_ID()
13025 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
13030 GenoPro::Occupations::Occupation::sequence::sequence(Occupation* that):
13033 XsdFsmBasePtr fsmArray[] = {
13034 new XsdFSM<Title_ptr>( Particle(new DOMString("libgno"), DOMString("Title"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Title_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_Title)),
13035 new XsdFSM<Company_ptr>( Particle(new DOMString("libgno"), DOMString("Company"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Company_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_Company)),
13036 new XsdFSM<Industry_ptr>( Particle(new DOMString("libgno"), DOMString("Industry"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Industry_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_Industry)),
13037 new XsdFSM<Place_ptr>( Particle(new DOMString("libgno"), DOMString("Place"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Place_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_Place)),
13038 new XsdFSM<Source_ptr>( Particle(new DOMString("libgno"), DOMString("Source"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Source_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_Source)),
13039 new XsdFSM<DateStart_ptr>( Particle(new DOMString("libgno"), DOMString("DateStart"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DateStart_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_DateStart)),
13040 new XsdFSM<DateEnd_ptr>( Particle(new DOMString("libgno"), DOMString("DateEnd"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DateEnd_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_DateEnd)),
13041 new XsdFSM<WorkType_ptr>( Particle(new DOMString("libgno"), DOMString("WorkType"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<WorkType_ptr, Occupation, FsmCbOptions>(_that, &Occupation::create_WorkType)),
13046 XsdSequenceFsmOfFSMs::init(fsmArray);
13051 GenoPro::Occupations::Occupation::Title_p GenoPro::Occupations::Occupation::sequence::element_Title()
13053 GenoPro::Occupations::Occupation::Title_p node_p = NULL;
13054 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
13057 XsdFSM<Title_ptr> *unitFsm = dynamic_cast<XsdFSM<Title_ptr> *>(fsm_p);
13058 if(unitFsm && unitFsm->nodeList().size()>0) {
13059 assert(unitFsm->nodeList().size()==1);
13060 node_p = unitFsm->nodeList().at(0);
13064 FSM::warnNullNode(node_p, "Title", "{http://www.w3.org/2001/XMLSchema}Title", 0);
13070 void GenoPro::Occupations::Occupation::sequence::set_Title(DOMString val)
13073 mark_present_Title();
13075 element_Title()->stringValue(val);
13078 DOMString GenoPro::Occupations::Occupation::sequence::get_Title_string()
13080 return element_Title()->stringValue();
13085 void GenoPro::Occupations::Occupation::sequence::mark_present_Title()
13087 DOMStringPtr nsUriPtr = new DOMString("libgno");
13088 XsdEvent event(nsUriPtr, NULL, DOMString("Title"), XsdEvent::ELEMENT_START, false);
13089 this->processEventThrow(event);
13094 GenoPro::Occupations::Occupation::Company_p GenoPro::Occupations::Occupation::sequence::element_Company()
13096 GenoPro::Occupations::Occupation::Company_p node_p = NULL;
13097 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
13100 XsdFSM<Company_ptr> *unitFsm = dynamic_cast<XsdFSM<Company_ptr> *>(fsm_p);
13101 if(unitFsm && unitFsm->nodeList().size()>0) {
13102 assert(unitFsm->nodeList().size()==1);
13103 node_p = unitFsm->nodeList().at(0);
13107 FSM::warnNullNode(node_p, "Company", "{http://www.w3.org/2001/XMLSchema}Company", 0);
13113 void GenoPro::Occupations::Occupation::sequence::set_Company(DOMString val)
13116 mark_present_Company();
13118 element_Company()->stringValue(val);
13121 DOMString GenoPro::Occupations::Occupation::sequence::get_Company_string()
13123 return element_Company()->stringValue();
13128 void GenoPro::Occupations::Occupation::sequence::mark_present_Company()
13130 DOMStringPtr nsUriPtr = new DOMString("libgno");
13131 XsdEvent event(nsUriPtr, NULL, DOMString("Company"), XsdEvent::ELEMENT_START, false);
13132 this->processEventThrow(event);
13137 GenoPro::Occupations::Occupation::Industry_p GenoPro::Occupations::Occupation::sequence::element_Industry()
13139 GenoPro::Occupations::Occupation::Industry_p node_p = NULL;
13140 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
13143 XsdFSM<Industry_ptr> *unitFsm = dynamic_cast<XsdFSM<Industry_ptr> *>(fsm_p);
13144 if(unitFsm && unitFsm->nodeList().size()>0) {
13145 assert(unitFsm->nodeList().size()==1);
13146 node_p = unitFsm->nodeList().at(0);
13150 FSM::warnNullNode(node_p, "Industry", "{http://www.w3.org/2001/XMLSchema}Industry", 0);
13156 void GenoPro::Occupations::Occupation::sequence::set_Industry(DOMString val)
13159 mark_present_Industry();
13161 element_Industry()->stringValue(val);
13164 DOMString GenoPro::Occupations::Occupation::sequence::get_Industry_string()
13166 return element_Industry()->stringValue();
13171 void GenoPro::Occupations::Occupation::sequence::mark_present_Industry()
13173 DOMStringPtr nsUriPtr = new DOMString("libgno");
13174 XsdEvent event(nsUriPtr, NULL, DOMString("Industry"), XsdEvent::ELEMENT_START, false);
13175 this->processEventThrow(event);
13180 GenoPro::Occupations::Occupation::Place_p GenoPro::Occupations::Occupation::sequence::element_Place()
13182 GenoPro::Occupations::Occupation::Place_p node_p = NULL;
13183 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
13186 XsdFSM<Place_ptr> *unitFsm = dynamic_cast<XsdFSM<Place_ptr> *>(fsm_p);
13187 if(unitFsm && unitFsm->nodeList().size()>0) {
13188 assert(unitFsm->nodeList().size()==1);
13189 node_p = unitFsm->nodeList().at(0);
13193 FSM::warnNullNode(node_p, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
13199 void GenoPro::Occupations::Occupation::sequence::set_Place(DOMString val)
13202 mark_present_Place();
13204 element_Place()->stringValue(val);
13207 DOMString GenoPro::Occupations::Occupation::sequence::get_Place_string()
13209 return element_Place()->stringValue();
13214 void GenoPro::Occupations::Occupation::sequence::mark_present_Place()
13216 DOMStringPtr nsUriPtr = new DOMString("libgno");
13217 XsdEvent event(nsUriPtr, NULL, DOMString("Place"), XsdEvent::ELEMENT_START, false);
13218 this->processEventThrow(event);
13223 GenoPro::Occupations::Occupation::Source_p GenoPro::Occupations::Occupation::sequence::element_Source()
13225 GenoPro::Occupations::Occupation::Source_p node_p = NULL;
13226 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
13229 XsdFSM<Source_ptr> *unitFsm = dynamic_cast<XsdFSM<Source_ptr> *>(fsm_p);
13230 if(unitFsm && unitFsm->nodeList().size()>0) {
13231 assert(unitFsm->nodeList().size()==1);
13232 node_p = unitFsm->nodeList().at(0);
13236 FSM::warnNullNode(node_p, "Source", "{http://www.w3.org/2001/XMLSchema}Source", 0);
13242 void GenoPro::Occupations::Occupation::sequence::set_Source(DOMString val)
13245 mark_present_Source();
13247 element_Source()->stringValue(val);
13250 DOMString GenoPro::Occupations::Occupation::sequence::get_Source_string()
13252 return element_Source()->stringValue();
13257 void GenoPro::Occupations::Occupation::sequence::mark_present_Source()
13259 DOMStringPtr nsUriPtr = new DOMString("libgno");
13260 XsdEvent event(nsUriPtr, NULL, DOMString("Source"), XsdEvent::ELEMENT_START, false);
13261 this->processEventThrow(event);
13266 GenoPro::Occupations::Occupation::DateStart_p GenoPro::Occupations::Occupation::sequence::element_DateStart()
13268 GenoPro::Occupations::Occupation::DateStart_p node_p = NULL;
13269 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
13272 XsdFSM<DateStart_ptr> *unitFsm = dynamic_cast<XsdFSM<DateStart_ptr> *>(fsm_p);
13273 if(unitFsm && unitFsm->nodeList().size()>0) {
13274 assert(unitFsm->nodeList().size()==1);
13275 node_p = unitFsm->nodeList().at(0);
13279 FSM::warnNullNode(node_p, "DateStart", "{http://www.w3.org/2001/XMLSchema}DateStart", 0);
13285 void GenoPro::Occupations::Occupation::sequence::set_DateStart(DOMString val)
13288 mark_present_DateStart();
13290 element_DateStart()->stringValue(val);
13293 DOMString GenoPro::Occupations::Occupation::sequence::get_DateStart_string()
13295 return element_DateStart()->stringValue();
13300 void GenoPro::Occupations::Occupation::sequence::mark_present_DateStart()
13302 DOMStringPtr nsUriPtr = new DOMString("libgno");
13303 XsdEvent event(nsUriPtr, NULL, DOMString("DateStart"), XsdEvent::ELEMENT_START, false);
13304 this->processEventThrow(event);
13309 GenoPro::Occupations::Occupation::DateEnd_p GenoPro::Occupations::Occupation::sequence::element_DateEnd()
13311 GenoPro::Occupations::Occupation::DateEnd_p node_p = NULL;
13312 XsdFsmBase* fsm_p = this->allFSMs()[6].get();
13315 XsdFSM<DateEnd_ptr> *unitFsm = dynamic_cast<XsdFSM<DateEnd_ptr> *>(fsm_p);
13316 if(unitFsm && unitFsm->nodeList().size()>0) {
13317 assert(unitFsm->nodeList().size()==1);
13318 node_p = unitFsm->nodeList().at(0);
13322 FSM::warnNullNode(node_p, "DateEnd", "{http://www.w3.org/2001/XMLSchema}DateEnd", 0);
13328 void GenoPro::Occupations::Occupation::sequence::set_DateEnd(DOMString val)
13331 mark_present_DateEnd();
13333 element_DateEnd()->stringValue(val);
13336 DOMString GenoPro::Occupations::Occupation::sequence::get_DateEnd_string()
13338 return element_DateEnd()->stringValue();
13343 void GenoPro::Occupations::Occupation::sequence::mark_present_DateEnd()
13345 DOMStringPtr nsUriPtr = new DOMString("libgno");
13346 XsdEvent event(nsUriPtr, NULL, DOMString("DateEnd"), XsdEvent::ELEMENT_START, false);
13347 this->processEventThrow(event);
13352 GenoPro::Occupations::Occupation::WorkType_p GenoPro::Occupations::Occupation::sequence::element_WorkType()
13354 GenoPro::Occupations::Occupation::WorkType_p node_p = NULL;
13355 XsdFsmBase* fsm_p = this->allFSMs()[7].get();
13358 XsdFSM<WorkType_ptr> *unitFsm = dynamic_cast<XsdFSM<WorkType_ptr> *>(fsm_p);
13359 if(unitFsm && unitFsm->nodeList().size()>0) {
13360 assert(unitFsm->nodeList().size()==1);
13361 node_p = unitFsm->nodeList().at(0);
13365 FSM::warnNullNode(node_p, "WorkType", "{http://www.w3.org/2001/XMLSchema}WorkType", 0);
13371 void GenoPro::Occupations::Occupation::sequence::set_WorkType(DOMString val)
13374 mark_present_WorkType();
13376 element_WorkType()->stringValue(val);
13379 DOMString GenoPro::Occupations::Occupation::sequence::get_WorkType_string()
13381 return element_WorkType()->stringValue();
13386 void GenoPro::Occupations::Occupation::sequence::mark_present_WorkType()
13388 DOMStringPtr nsUriPtr = new DOMString("libgno");
13389 XsdEvent event(nsUriPtr, NULL, DOMString("WorkType"), XsdEvent::ELEMENT_START, false);
13390 this->processEventThrow(event);
13397 GenoPro::Contacts::Contacts(ElementCreateArgs args):
13398 XMLSchema::XmlElement<anyType>(args),
13403 , _sequence(new sequence(this) )
13406 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
13408 if(args.ownerDoc && args.ownerDoc->buildTree())
13410 if(args.ownerDoc->createSample()) {
13411 _fsm->fireSampleEvents();
13414 _fsm->fireRequiredEvents();
13419 void GenoPro::Contacts::initFSM()
13421 XsdFsmBasePtr fsmsAttrs[] = {
13426 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
13428 _fsm->replaceContentFsm(_sequence);
13430 _fsmAttrs = _fsm->attributeFsm();
13431 _fsmElems = _fsm->contentFsm();
13435 /* element functions */
13438 GenoPro::Contacts::Contact_ptr GenoPro::Contacts::create_Contact(FsmCbOptions& options)
13440 static DOMStringPtr myName = new DOMString("Contact");
13441 static DOMStringPtr myNsUri = new DOMString("libgno");
13443 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
13444 GenoPro::Contacts::Contact_p node = XSD::createElementTmpl<Contact, void*>(t);
13446 _list_Contact.push_back(node);
13452 GenoPro::Contacts::Contact_p GenoPro::Contacts::element_Contact_at(unsigned int idx)
13454 if(idx > _list_Contact.size()-1) {
13455 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
13458 return _list_Contact.at(idx);
13461 List<GenoPro::Contacts::Contact_ptr> GenoPro::Contacts::elements_Contact()
13463 return _list_Contact;
13466 GenoPro::Contacts::Contact_p GenoPro::Contacts::add_node_Contact()
13468 return get_sequence()->add_node_Contact();
13471 List<GenoPro::Contacts::Contact_ptr> GenoPro::Contacts::set_count_Contact(unsigned int size)
13473 return get_sequence()->set_count_Contact(size);
13478 /* attribute functions */
13481 GenoPro::Contacts::sequence::sequence(Contacts* that):
13484 XsdFsmBasePtr fsmArray[] = {
13485 new XsdFSM<Contact_ptr>( Particle(new DOMString("libgno"), DOMString("Contact"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Contact_ptr, Contacts, FsmCbOptions>(_that, &Contacts::create_Contact)),
13490 XsdSequenceFsmOfFSMs::init(fsmArray);
13495 List<GenoPro::Contacts::Contact_ptr> GenoPro::Contacts::sequence::elements_Contact()
13498 List<Contact_ptr> nodeList;
13499 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
13502 XsdFSM<Contact_ptr> *unitFsm = dynamic_cast<XsdFSM<Contact_ptr> *>(fsm_p);
13504 //nodeList = unitFsm->nodeList().stl_list();
13505 nodeList = unitFsm->nodeList();
13513 GenoPro::Contacts::Contact_p GenoPro::Contacts::sequence::element_Contact_at(unsigned int idx)
13515 return elements_Contact().at(idx);
13519 GenoPro::Contacts::Contact_p GenoPro::Contacts::sequence::add_node_Contact()
13521 DOMStringPtr nsUriPtr = new DOMString("libgno");
13522 XsdEvent event(nsUriPtr, NULL, DOMString("Contact"), XsdEvent::ELEMENT_START, false);
13523 this->processEventThrow(event);
13524 return elements_Contact().back();
13527 List<GenoPro::Contacts::Contact_ptr> GenoPro::Contacts::sequence::set_count_Contact(unsigned int size)
13529 if( (size > -1) || (size < 1)) {
13531 oss << "set_count_Contact: size should be in range: [" << 1
13532 << "," << "unbounded" << "]";
13533 throw IndexOutOfBoundsException(oss.str());
13536 unsigned int prevSize = elements_Contact().size();
13537 if(size < prevSize) {
13538 //FIXME: allow later:
13539 throw XPlus::RuntimeException("resize lesser than current size not allowed");
13542 for(unsigned int j=prevSize; j<size; j++)
13544 // pretend docBuilding to avoid computation of adding after first loop
13545 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Contact"), XsdEvent::ELEMENT_START, false);
13546 this->processEventThrow(event);
13549 return elements_Contact();
13556 GenoPro::Contacts::Contact::Contact(ElementCreateArgs args):
13557 XMLSchema::XmlElement<anyType>(args),
13562 , _sequence(new sequence(this) )
13565 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
13567 if(args.ownerDoc && args.ownerDoc->buildTree())
13569 if(args.ownerDoc->createSample()) {
13570 _fsm->fireSampleEvents();
13573 _fsm->fireRequiredEvents();
13578 void GenoPro::Contacts::Contact::initFSM()
13580 XsdFsmBasePtr fsmsAttrs[] = {
13581 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Contact, FsmCbOptions>(this, &Contact::create_attr_ID)),
13586 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
13588 _fsm->replaceContentFsm(_sequence);
13590 _fsmAttrs = _fsm->attributeFsm();
13591 _fsmElems = _fsm->contentFsm();
13595 /* element functions */
13598 GenoPro::Contacts::Contact::Place_ptr GenoPro::Contacts::Contact::create_Place(FsmCbOptions& options)
13600 static DOMStringPtr myName = new DOMString("Place");
13601 static DOMStringPtr myNsUri = new DOMString("libgno");
13603 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
13604 GenoPro::Contacts::Contact::Place_p node = XSD::createElementTmpl<Place, XMLSchema::Types::bt_normalizedString*>(t);
13606 if(options.isSampleCreate && (node->stringValue() == "") ) {
13607 node->stringValue(node->sampleValue());
13616 GenoPro::Contacts::Contact::Place_p GenoPro::Contacts::Contact::element_Place()
13618 FSM::warnNullNode(_Place, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
13622 void GenoPro::Contacts::Contact::set_Place(DOMString val)
13624 get_sequence()->set_Place(val);
13627 DOMString GenoPro::Contacts::Contact::get_Place_string()
13629 return get_sequence()->get_Place_string();
13633 void GenoPro::Contacts::Contact::mark_present_Place()
13635 return get_sequence()->mark_present_Place();
13639 GenoPro::Contacts::Contact::Source_ptr GenoPro::Contacts::Contact::create_Source(FsmCbOptions& options)
13641 static DOMStringPtr myName = new DOMString("Source");
13642 static DOMStringPtr myNsUri = new DOMString("libgno");
13644 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
13645 GenoPro::Contacts::Contact::Source_p node = XSD::createElementTmpl<Source, XMLSchema::Types::bt_normalizedString*>(t);
13647 if(options.isSampleCreate && (node->stringValue() == "") ) {
13648 node->stringValue(node->sampleValue());
13657 GenoPro::Contacts::Contact::Source_p GenoPro::Contacts::Contact::element_Source()
13659 FSM::warnNullNode(_Source, "Source", "{http://www.w3.org/2001/XMLSchema}Source", 0);
13663 void GenoPro::Contacts::Contact::set_Source(DOMString val)
13665 get_sequence()->set_Source(val);
13668 DOMString GenoPro::Contacts::Contact::get_Source_string()
13670 return get_sequence()->get_Source_string();
13674 void GenoPro::Contacts::Contact::mark_present_Source()
13676 return get_sequence()->mark_present_Source();
13680 GenoPro::Contacts::Contact::Comment_ptr GenoPro::Contacts::Contact::create_Comment(FsmCbOptions& options)
13682 static DOMStringPtr myName = new DOMString("Comment");
13683 static DOMStringPtr myNsUri = new DOMString("libgno");
13685 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
13686 GenoPro::Contacts::Contact::Comment_p node = XSD::createElementTmpl<Comment, XMLSchema::Types::bt_string*>(t);
13688 if(options.isSampleCreate && (node->stringValue() == "") ) {
13689 node->stringValue(node->sampleValue());
13698 GenoPro::Contacts::Contact::Comment_p GenoPro::Contacts::Contact::element_Comment()
13700 FSM::warnNullNode(_Comment, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
13704 void GenoPro::Contacts::Contact::set_Comment(DOMString val)
13706 get_sequence()->set_Comment(val);
13709 DOMString GenoPro::Contacts::Contact::get_Comment_string()
13711 return get_sequence()->get_Comment_string();
13715 void GenoPro::Contacts::Contact::mark_present_Comment()
13717 return get_sequence()->mark_present_Comment();
13721 GenoPro::Contacts::Contact::Type_ptr GenoPro::Contacts::Contact::create_Type(FsmCbOptions& options)
13723 static DOMStringPtr myName = new DOMString("Type");
13724 static DOMStringPtr myNsUri = new DOMString("libgno");
13726 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
13727 GenoPro::Contacts::Contact::Type_p node = XSD::createElementTmpl<Type, XMLSchema::Types::bt_normalizedString*>(t);
13729 if(options.isSampleCreate && (node->stringValue() == "") ) {
13730 node->stringValue(node->sampleValue());
13739 GenoPro::Contacts::Contact::Type_p GenoPro::Contacts::Contact::element_Type()
13741 FSM::warnNullNode(_Type, "Type", "{http://www.w3.org/2001/XMLSchema}Type", 0);
13745 void GenoPro::Contacts::Contact::set_Type(DOMString val)
13747 get_sequence()->set_Type(val);
13750 DOMString GenoPro::Contacts::Contact::get_Type_string()
13752 return get_sequence()->get_Type_string();
13756 void GenoPro::Contacts::Contact::mark_present_Type()
13758 return get_sequence()->mark_present_Type();
13762 GenoPro::Contacts::Contact::DateStart_ptr GenoPro::Contacts::Contact::create_DateStart(FsmCbOptions& options)
13764 static DOMStringPtr myName = new DOMString("DateStart");
13765 static DOMStringPtr myNsUri = new DOMString("libgno");
13767 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
13768 GenoPro::Contacts::Contact::DateStart_p node = XSD::createElementTmpl<DateStart, XMLSchema::Types::bt_string*>(t);
13770 if(options.isSampleCreate && (node->stringValue() == "") ) {
13771 node->stringValue(node->sampleValue());
13780 GenoPro::Contacts::Contact::DateStart_p GenoPro::Contacts::Contact::element_DateStart()
13782 FSM::warnNullNode(_DateStart, "DateStart", "{http://www.w3.org/2001/XMLSchema}DateStart", 0);
13786 void GenoPro::Contacts::Contact::set_DateStart(DOMString val)
13788 get_sequence()->set_DateStart(val);
13791 DOMString GenoPro::Contacts::Contact::get_DateStart_string()
13793 return get_sequence()->get_DateStart_string();
13797 void GenoPro::Contacts::Contact::mark_present_DateStart()
13799 return get_sequence()->mark_present_DateStart();
13803 GenoPro::Contacts::Contact::DateEnd_ptr GenoPro::Contacts::Contact::create_DateEnd(FsmCbOptions& options)
13805 static DOMStringPtr myName = new DOMString("DateEnd");
13806 static DOMStringPtr myNsUri = new DOMString("libgno");
13808 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
13809 GenoPro::Contacts::Contact::DateEnd_p node = XSD::createElementTmpl<DateEnd, XMLSchema::Types::bt_string*>(t);
13811 if(options.isSampleCreate && (node->stringValue() == "") ) {
13812 node->stringValue(node->sampleValue());
13821 GenoPro::Contacts::Contact::DateEnd_p GenoPro::Contacts::Contact::element_DateEnd()
13823 FSM::warnNullNode(_DateEnd, "DateEnd", "{http://www.w3.org/2001/XMLSchema}DateEnd", 0);
13827 void GenoPro::Contacts::Contact::set_DateEnd(DOMString val)
13829 get_sequence()->set_DateEnd(val);
13832 DOMString GenoPro::Contacts::Contact::get_DateEnd_string()
13834 return get_sequence()->get_DateEnd_string();
13838 void GenoPro::Contacts::Contact::mark_present_DateEnd()
13840 return get_sequence()->mark_present_DateEnd();
13844 /* attribute functions */
13847 GenoPro::Contacts::Contact::attr_ID_ptr GenoPro::Contacts::Contact::create_attr_ID(FsmCbOptions& options)
13849 static DOMStringPtr myName = new DOMString("ID");
13850 static DOMStringPtr myNsUri = NULL;
13855 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
13856 GenoPro::Contacts::Contact::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
13858 if(options.isSampleCreate && (node->stringValue() == "") ) {
13859 node->stringValue(node->sampleValue());
13868 void GenoPro::Contacts::Contact::set_attr_ID(DOMString val)
13871 attribute_attr_ID()->stringValue(val);
13874 DOMString GenoPro::Contacts::Contact::get_attr_ID_string()
13877 return attribute_attr_ID()->stringValue();
13881 GenoPro::Contacts::Contact::attr_ID_p GenoPro::Contacts::Contact::attribute_attr_ID()
13883 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
13888 GenoPro::Contacts::Contact::sequence::sequence(Contact* that):
13891 XsdFsmBasePtr fsmArray[] = {
13892 new XsdFSM<Place_ptr>( Particle(new DOMString("libgno"), DOMString("Place"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Place_ptr, Contact, FsmCbOptions>(_that, &Contact::create_Place)),
13893 new XsdFSM<Source_ptr>( Particle(new DOMString("libgno"), DOMString("Source"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Source_ptr, Contact, FsmCbOptions>(_that, &Contact::create_Source)),
13894 new XsdFSM<Comment_ptr>( Particle(new DOMString("libgno"), DOMString("Comment"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Comment_ptr, Contact, FsmCbOptions>(_that, &Contact::create_Comment)),
13895 new XsdFSM<Type_ptr>( Particle(new DOMString("libgno"), DOMString("Type"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Type_ptr, Contact, FsmCbOptions>(_that, &Contact::create_Type)),
13896 new XsdFSM<DateStart_ptr>( Particle(new DOMString("libgno"), DOMString("DateStart"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DateStart_ptr, Contact, FsmCbOptions>(_that, &Contact::create_DateStart)),
13897 new XsdFSM<DateEnd_ptr>( Particle(new DOMString("libgno"), DOMString("DateEnd"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<DateEnd_ptr, Contact, FsmCbOptions>(_that, &Contact::create_DateEnd)),
13902 XsdSequenceFsmOfFSMs::init(fsmArray);
13907 GenoPro::Contacts::Contact::Place_p GenoPro::Contacts::Contact::sequence::element_Place()
13909 GenoPro::Contacts::Contact::Place_p node_p = NULL;
13910 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
13913 XsdFSM<Place_ptr> *unitFsm = dynamic_cast<XsdFSM<Place_ptr> *>(fsm_p);
13914 if(unitFsm && unitFsm->nodeList().size()>0) {
13915 assert(unitFsm->nodeList().size()==1);
13916 node_p = unitFsm->nodeList().at(0);
13920 FSM::warnNullNode(node_p, "Place", "{http://www.w3.org/2001/XMLSchema}Place", 0);
13926 void GenoPro::Contacts::Contact::sequence::set_Place(DOMString val)
13929 mark_present_Place();
13931 element_Place()->stringValue(val);
13934 DOMString GenoPro::Contacts::Contact::sequence::get_Place_string()
13936 return element_Place()->stringValue();
13941 void GenoPro::Contacts::Contact::sequence::mark_present_Place()
13943 DOMStringPtr nsUriPtr = new DOMString("libgno");
13944 XsdEvent event(nsUriPtr, NULL, DOMString("Place"), XsdEvent::ELEMENT_START, false);
13945 this->processEventThrow(event);
13950 GenoPro::Contacts::Contact::Source_p GenoPro::Contacts::Contact::sequence::element_Source()
13952 GenoPro::Contacts::Contact::Source_p node_p = NULL;
13953 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
13956 XsdFSM<Source_ptr> *unitFsm = dynamic_cast<XsdFSM<Source_ptr> *>(fsm_p);
13957 if(unitFsm && unitFsm->nodeList().size()>0) {
13958 assert(unitFsm->nodeList().size()==1);
13959 node_p = unitFsm->nodeList().at(0);
13963 FSM::warnNullNode(node_p, "Source", "{http://www.w3.org/2001/XMLSchema}Source", 0);
13969 void GenoPro::Contacts::Contact::sequence::set_Source(DOMString val)
13972 mark_present_Source();
13974 element_Source()->stringValue(val);
13977 DOMString GenoPro::Contacts::Contact::sequence::get_Source_string()
13979 return element_Source()->stringValue();
13984 void GenoPro::Contacts::Contact::sequence::mark_present_Source()
13986 DOMStringPtr nsUriPtr = new DOMString("libgno");
13987 XsdEvent event(nsUriPtr, NULL, DOMString("Source"), XsdEvent::ELEMENT_START, false);
13988 this->processEventThrow(event);
13993 GenoPro::Contacts::Contact::Comment_p GenoPro::Contacts::Contact::sequence::element_Comment()
13995 GenoPro::Contacts::Contact::Comment_p node_p = NULL;
13996 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
13999 XsdFSM<Comment_ptr> *unitFsm = dynamic_cast<XsdFSM<Comment_ptr> *>(fsm_p);
14000 if(unitFsm && unitFsm->nodeList().size()>0) {
14001 assert(unitFsm->nodeList().size()==1);
14002 node_p = unitFsm->nodeList().at(0);
14006 FSM::warnNullNode(node_p, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
14012 void GenoPro::Contacts::Contact::sequence::set_Comment(DOMString val)
14015 mark_present_Comment();
14017 element_Comment()->stringValue(val);
14020 DOMString GenoPro::Contacts::Contact::sequence::get_Comment_string()
14022 return element_Comment()->stringValue();
14027 void GenoPro::Contacts::Contact::sequence::mark_present_Comment()
14029 DOMStringPtr nsUriPtr = new DOMString("libgno");
14030 XsdEvent event(nsUriPtr, NULL, DOMString("Comment"), XsdEvent::ELEMENT_START, false);
14031 this->processEventThrow(event);
14036 GenoPro::Contacts::Contact::Type_p GenoPro::Contacts::Contact::sequence::element_Type()
14038 GenoPro::Contacts::Contact::Type_p node_p = NULL;
14039 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
14042 XsdFSM<Type_ptr> *unitFsm = dynamic_cast<XsdFSM<Type_ptr> *>(fsm_p);
14043 if(unitFsm && unitFsm->nodeList().size()>0) {
14044 assert(unitFsm->nodeList().size()==1);
14045 node_p = unitFsm->nodeList().at(0);
14049 FSM::warnNullNode(node_p, "Type", "{http://www.w3.org/2001/XMLSchema}Type", 0);
14055 void GenoPro::Contacts::Contact::sequence::set_Type(DOMString val)
14058 mark_present_Type();
14060 element_Type()->stringValue(val);
14063 DOMString GenoPro::Contacts::Contact::sequence::get_Type_string()
14065 return element_Type()->stringValue();
14070 void GenoPro::Contacts::Contact::sequence::mark_present_Type()
14072 DOMStringPtr nsUriPtr = new DOMString("libgno");
14073 XsdEvent event(nsUriPtr, NULL, DOMString("Type"), XsdEvent::ELEMENT_START, false);
14074 this->processEventThrow(event);
14079 GenoPro::Contacts::Contact::DateStart_p GenoPro::Contacts::Contact::sequence::element_DateStart()
14081 GenoPro::Contacts::Contact::DateStart_p node_p = NULL;
14082 XsdFsmBase* fsm_p = this->allFSMs()[4].get();
14085 XsdFSM<DateStart_ptr> *unitFsm = dynamic_cast<XsdFSM<DateStart_ptr> *>(fsm_p);
14086 if(unitFsm && unitFsm->nodeList().size()>0) {
14087 assert(unitFsm->nodeList().size()==1);
14088 node_p = unitFsm->nodeList().at(0);
14092 FSM::warnNullNode(node_p, "DateStart", "{http://www.w3.org/2001/XMLSchema}DateStart", 0);
14098 void GenoPro::Contacts::Contact::sequence::set_DateStart(DOMString val)
14101 mark_present_DateStart();
14103 element_DateStart()->stringValue(val);
14106 DOMString GenoPro::Contacts::Contact::sequence::get_DateStart_string()
14108 return element_DateStart()->stringValue();
14113 void GenoPro::Contacts::Contact::sequence::mark_present_DateStart()
14115 DOMStringPtr nsUriPtr = new DOMString("libgno");
14116 XsdEvent event(nsUriPtr, NULL, DOMString("DateStart"), XsdEvent::ELEMENT_START, false);
14117 this->processEventThrow(event);
14122 GenoPro::Contacts::Contact::DateEnd_p GenoPro::Contacts::Contact::sequence::element_DateEnd()
14124 GenoPro::Contacts::Contact::DateEnd_p node_p = NULL;
14125 XsdFsmBase* fsm_p = this->allFSMs()[5].get();
14128 XsdFSM<DateEnd_ptr> *unitFsm = dynamic_cast<XsdFSM<DateEnd_ptr> *>(fsm_p);
14129 if(unitFsm && unitFsm->nodeList().size()>0) {
14130 assert(unitFsm->nodeList().size()==1);
14131 node_p = unitFsm->nodeList().at(0);
14135 FSM::warnNullNode(node_p, "DateEnd", "{http://www.w3.org/2001/XMLSchema}DateEnd", 0);
14141 void GenoPro::Contacts::Contact::sequence::set_DateEnd(DOMString val)
14144 mark_present_DateEnd();
14146 element_DateEnd()->stringValue(val);
14149 DOMString GenoPro::Contacts::Contact::sequence::get_DateEnd_string()
14151 return element_DateEnd()->stringValue();
14156 void GenoPro::Contacts::Contact::sequence::mark_present_DateEnd()
14158 DOMStringPtr nsUriPtr = new DOMString("libgno");
14159 XsdEvent event(nsUriPtr, NULL, DOMString("DateEnd"), XsdEvent::ELEMENT_START, false);
14160 this->processEventThrow(event);
14167 GenoPro::SourcesAndCitations::SourcesAndCitations(ElementCreateArgs args):
14168 XMLSchema::XmlElement<anyType>(args),
14173 , _sequence(new sequence(this) )
14176 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
14178 if(args.ownerDoc && args.ownerDoc->buildTree())
14180 if(args.ownerDoc->createSample()) {
14181 _fsm->fireSampleEvents();
14184 _fsm->fireRequiredEvents();
14189 void GenoPro::SourcesAndCitations::initFSM()
14191 XsdFsmBasePtr fsmsAttrs[] = {
14196 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
14198 _fsm->replaceContentFsm(_sequence);
14200 _fsmAttrs = _fsm->attributeFsm();
14201 _fsmElems = _fsm->contentFsm();
14205 /* element functions */
14208 GenoPro::SourcesAndCitations::SourceCitation_ptr GenoPro::SourcesAndCitations::create_SourceCitation(FsmCbOptions& options)
14210 static DOMStringPtr myName = new DOMString("SourceCitation");
14211 static DOMStringPtr myNsUri = new DOMString("libgno");
14213 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
14214 GenoPro::SourcesAndCitations::SourceCitation_p node = XSD::createElementTmpl<SourceCitation, void*>(t);
14216 _list_SourceCitation.push_back(node);
14222 GenoPro::SourcesAndCitations::SourceCitation_p GenoPro::SourcesAndCitations::element_SourceCitation_at(unsigned int idx)
14224 if(idx > _list_SourceCitation.size()-1) {
14225 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
14228 return _list_SourceCitation.at(idx);
14231 List<GenoPro::SourcesAndCitations::SourceCitation_ptr> GenoPro::SourcesAndCitations::elements_SourceCitation()
14233 return _list_SourceCitation;
14236 GenoPro::SourcesAndCitations::SourceCitation_p GenoPro::SourcesAndCitations::add_node_SourceCitation()
14238 return get_sequence()->add_node_SourceCitation();
14241 List<GenoPro::SourcesAndCitations::SourceCitation_ptr> GenoPro::SourcesAndCitations::set_count_SourceCitation(unsigned int size)
14243 return get_sequence()->set_count_SourceCitation(size);
14248 /* attribute functions */
14251 GenoPro::SourcesAndCitations::sequence::sequence(SourcesAndCitations* that):
14254 XsdFsmBasePtr fsmArray[] = {
14255 new XsdFSM<SourceCitation_ptr>( Particle(new DOMString("libgno"), DOMString("SourceCitation"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<SourceCitation_ptr, SourcesAndCitations, FsmCbOptions>(_that, &SourcesAndCitations::create_SourceCitation)),
14260 XsdSequenceFsmOfFSMs::init(fsmArray);
14265 List<GenoPro::SourcesAndCitations::SourceCitation_ptr> GenoPro::SourcesAndCitations::sequence::elements_SourceCitation()
14268 List<SourceCitation_ptr> nodeList;
14269 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
14272 XsdFSM<SourceCitation_ptr> *unitFsm = dynamic_cast<XsdFSM<SourceCitation_ptr> *>(fsm_p);
14274 //nodeList = unitFsm->nodeList().stl_list();
14275 nodeList = unitFsm->nodeList();
14283 GenoPro::SourcesAndCitations::SourceCitation_p GenoPro::SourcesAndCitations::sequence::element_SourceCitation_at(unsigned int idx)
14285 return elements_SourceCitation().at(idx);
14289 GenoPro::SourcesAndCitations::SourceCitation_p GenoPro::SourcesAndCitations::sequence::add_node_SourceCitation()
14291 DOMStringPtr nsUriPtr = new DOMString("libgno");
14292 XsdEvent event(nsUriPtr, NULL, DOMString("SourceCitation"), XsdEvent::ELEMENT_START, false);
14293 this->processEventThrow(event);
14294 return elements_SourceCitation().back();
14297 List<GenoPro::SourcesAndCitations::SourceCitation_ptr> GenoPro::SourcesAndCitations::sequence::set_count_SourceCitation(unsigned int size)
14299 if( (size > -1) || (size < 1)) {
14301 oss << "set_count_SourceCitation: size should be in range: [" << 1
14302 << "," << "unbounded" << "]";
14303 throw IndexOutOfBoundsException(oss.str());
14306 unsigned int prevSize = elements_SourceCitation().size();
14307 if(size < prevSize) {
14308 //FIXME: allow later:
14309 throw XPlus::RuntimeException("resize lesser than current size not allowed");
14312 for(unsigned int j=prevSize; j<size; j++)
14314 // pretend docBuilding to avoid computation of adding after first loop
14315 XsdEvent event(new DOMString("libgno"), NULL, DOMString("SourceCitation"), XsdEvent::ELEMENT_START, false);
14316 this->processEventThrow(event);
14319 return elements_SourceCitation();
14326 GenoPro::SourcesAndCitations::SourceCitation::SourceCitation(ElementCreateArgs args):
14327 XMLSchema::XmlElement<anyType>(args),
14332 , _sequence(new sequence(this) )
14335 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
14337 if(args.ownerDoc && args.ownerDoc->buildTree())
14339 if(args.ownerDoc->createSample()) {
14340 _fsm->fireSampleEvents();
14343 _fsm->fireRequiredEvents();
14348 void GenoPro::SourcesAndCitations::SourceCitation::initFSM()
14350 XsdFsmBasePtr fsmsAttrs[] = {
14351 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, SourceCitation, FsmCbOptions>(this, &SourceCitation::create_attr_ID)),
14356 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
14358 _fsm->replaceContentFsm(_sequence);
14360 _fsmAttrs = _fsm->attributeFsm();
14361 _fsmElems = _fsm->contentFsm();
14365 /* element functions */
14368 GenoPro::SourcesAndCitations::SourceCitation::Title_ptr GenoPro::SourcesAndCitations::SourceCitation::create_Title(FsmCbOptions& options)
14370 static DOMStringPtr myName = new DOMString("Title");
14371 static DOMStringPtr myNsUri = new DOMString("libgno");
14373 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
14374 GenoPro::SourcesAndCitations::SourceCitation::Title_p node = XSD::createElementTmpl<Title, XMLSchema::Types::bt_string*>(t);
14376 if(options.isSampleCreate && (node->stringValue() == "") ) {
14377 node->stringValue(node->sampleValue());
14386 GenoPro::SourcesAndCitations::SourceCitation::Title_p GenoPro::SourcesAndCitations::SourceCitation::element_Title()
14388 FSM::warnNullNode(_Title, "Title", "{http://www.w3.org/2001/XMLSchema}Title", 0);
14392 void GenoPro::SourcesAndCitations::SourceCitation::set_Title(DOMString val)
14394 get_sequence()->set_Title(val);
14397 DOMString GenoPro::SourcesAndCitations::SourceCitation::get_Title_string()
14399 return get_sequence()->get_Title_string();
14403 void GenoPro::SourcesAndCitations::SourceCitation::mark_present_Title()
14405 return get_sequence()->mark_present_Title();
14409 GenoPro::SourcesAndCitations::SourceCitation::Subtitle_ptr GenoPro::SourcesAndCitations::SourceCitation::create_Subtitle(FsmCbOptions& options)
14411 static DOMStringPtr myName = new DOMString("Subtitle");
14412 static DOMStringPtr myNsUri = new DOMString("libgno");
14414 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
14415 GenoPro::SourcesAndCitations::SourceCitation::Subtitle_p node = XSD::createElementTmpl<Subtitle, XMLSchema::Types::bt_string*>(t);
14417 if(options.isSampleCreate && (node->stringValue() == "") ) {
14418 node->stringValue(node->sampleValue());
14427 GenoPro::SourcesAndCitations::SourceCitation::Subtitle_p GenoPro::SourcesAndCitations::SourceCitation::element_Subtitle()
14429 FSM::warnNullNode(_Subtitle, "Subtitle", "{http://www.w3.org/2001/XMLSchema}Subtitle", 0);
14433 void GenoPro::SourcesAndCitations::SourceCitation::set_Subtitle(DOMString val)
14435 get_sequence()->set_Subtitle(val);
14438 DOMString GenoPro::SourcesAndCitations::SourceCitation::get_Subtitle_string()
14440 return get_sequence()->get_Subtitle_string();
14444 void GenoPro::SourcesAndCitations::SourceCitation::mark_present_Subtitle()
14446 return get_sequence()->mark_present_Subtitle();
14450 GenoPro::SourcesAndCitations::SourceCitation::MediaType_ptr GenoPro::SourcesAndCitations::SourceCitation::create_MediaType(FsmCbOptions& options)
14452 static DOMStringPtr myName = new DOMString("MediaType");
14453 static DOMStringPtr myNsUri = new DOMString("libgno");
14455 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
14456 GenoPro::SourcesAndCitations::SourceCitation::MediaType_p node = XSD::createElementTmpl<MediaType, XMLSchema::Types::bt_normalizedString*>(t);
14458 if(options.isSampleCreate && (node->stringValue() == "") ) {
14459 node->stringValue(node->sampleValue());
14468 GenoPro::SourcesAndCitations::SourceCitation::MediaType_p GenoPro::SourcesAndCitations::SourceCitation::element_MediaType()
14470 FSM::warnNullNode(_MediaType, "MediaType", "{http://www.w3.org/2001/XMLSchema}MediaType", 0);
14474 void GenoPro::SourcesAndCitations::SourceCitation::set_MediaType(DOMString val)
14476 get_sequence()->set_MediaType(val);
14479 DOMString GenoPro::SourcesAndCitations::SourceCitation::get_MediaType_string()
14481 return get_sequence()->get_MediaType_string();
14485 void GenoPro::SourcesAndCitations::SourceCitation::mark_present_MediaType()
14487 return get_sequence()->mark_present_MediaType();
14491 GenoPro::SourcesAndCitations::SourceCitation::ConfidenceLevel_ptr GenoPro::SourcesAndCitations::SourceCitation::create_ConfidenceLevel(FsmCbOptions& options)
14493 static DOMStringPtr myName = new DOMString("ConfidenceLevel");
14494 static DOMStringPtr myNsUri = new DOMString("libgno");
14496 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
14497 GenoPro::SourcesAndCitations::SourceCitation::ConfidenceLevel_p node = XSD::createElementTmpl<ConfidenceLevel, XMLSchema::Types::bt_normalizedString*>(t);
14499 if(options.isSampleCreate && (node->stringValue() == "") ) {
14500 node->stringValue(node->sampleValue());
14503 _ConfidenceLevel = node;
14509 GenoPro::SourcesAndCitations::SourceCitation::ConfidenceLevel_p GenoPro::SourcesAndCitations::SourceCitation::element_ConfidenceLevel()
14511 FSM::warnNullNode(_ConfidenceLevel, "ConfidenceLevel", "{http://www.w3.org/2001/XMLSchema}ConfidenceLevel", 0);
14512 return _ConfidenceLevel;
14515 void GenoPro::SourcesAndCitations::SourceCitation::set_ConfidenceLevel(DOMString val)
14517 get_sequence()->set_ConfidenceLevel(val);
14520 DOMString GenoPro::SourcesAndCitations::SourceCitation::get_ConfidenceLevel_string()
14522 return get_sequence()->get_ConfidenceLevel_string();
14526 void GenoPro::SourcesAndCitations::SourceCitation::mark_present_ConfidenceLevel()
14528 return get_sequence()->mark_present_ConfidenceLevel();
14532 /* attribute functions */
14535 GenoPro::SourcesAndCitations::SourceCitation::attr_ID_ptr GenoPro::SourcesAndCitations::SourceCitation::create_attr_ID(FsmCbOptions& options)
14537 static DOMStringPtr myName = new DOMString("ID");
14538 static DOMStringPtr myNsUri = NULL;
14543 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
14544 GenoPro::SourcesAndCitations::SourceCitation::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
14546 if(options.isSampleCreate && (node->stringValue() == "") ) {
14547 node->stringValue(node->sampleValue());
14556 void GenoPro::SourcesAndCitations::SourceCitation::set_attr_ID(DOMString val)
14559 attribute_attr_ID()->stringValue(val);
14562 DOMString GenoPro::SourcesAndCitations::SourceCitation::get_attr_ID_string()
14565 return attribute_attr_ID()->stringValue();
14569 GenoPro::SourcesAndCitations::SourceCitation::attr_ID_p GenoPro::SourcesAndCitations::SourceCitation::attribute_attr_ID()
14571 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
14576 GenoPro::SourcesAndCitations::SourceCitation::sequence::sequence(SourceCitation* that):
14579 XsdFsmBasePtr fsmArray[] = {
14580 new XsdFSM<Title_ptr>( Particle(new DOMString("libgno"), DOMString("Title"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Title_ptr, SourceCitation, FsmCbOptions>(_that, &SourceCitation::create_Title)),
14581 new XsdFSM<Subtitle_ptr>( Particle(new DOMString("libgno"), DOMString("Subtitle"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Subtitle_ptr, SourceCitation, FsmCbOptions>(_that, &SourceCitation::create_Subtitle)),
14582 new XsdFSM<MediaType_ptr>( Particle(new DOMString("libgno"), DOMString("MediaType"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<MediaType_ptr, SourceCitation, FsmCbOptions>(_that, &SourceCitation::create_MediaType)),
14583 new XsdFSM<ConfidenceLevel_ptr>( Particle(new DOMString("libgno"), DOMString("ConfidenceLevel"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<ConfidenceLevel_ptr, SourceCitation, FsmCbOptions>(_that, &SourceCitation::create_ConfidenceLevel)),
14588 XsdSequenceFsmOfFSMs::init(fsmArray);
14593 GenoPro::SourcesAndCitations::SourceCitation::Title_p GenoPro::SourcesAndCitations::SourceCitation::sequence::element_Title()
14595 GenoPro::SourcesAndCitations::SourceCitation::Title_p node_p = NULL;
14596 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
14599 XsdFSM<Title_ptr> *unitFsm = dynamic_cast<XsdFSM<Title_ptr> *>(fsm_p);
14600 if(unitFsm && unitFsm->nodeList().size()>0) {
14601 assert(unitFsm->nodeList().size()==1);
14602 node_p = unitFsm->nodeList().at(0);
14606 FSM::warnNullNode(node_p, "Title", "{http://www.w3.org/2001/XMLSchema}Title", 0);
14612 void GenoPro::SourcesAndCitations::SourceCitation::sequence::set_Title(DOMString val)
14615 mark_present_Title();
14617 element_Title()->stringValue(val);
14620 DOMString GenoPro::SourcesAndCitations::SourceCitation::sequence::get_Title_string()
14622 return element_Title()->stringValue();
14627 void GenoPro::SourcesAndCitations::SourceCitation::sequence::mark_present_Title()
14629 DOMStringPtr nsUriPtr = new DOMString("libgno");
14630 XsdEvent event(nsUriPtr, NULL, DOMString("Title"), XsdEvent::ELEMENT_START, false);
14631 this->processEventThrow(event);
14636 GenoPro::SourcesAndCitations::SourceCitation::Subtitle_p GenoPro::SourcesAndCitations::SourceCitation::sequence::element_Subtitle()
14638 GenoPro::SourcesAndCitations::SourceCitation::Subtitle_p node_p = NULL;
14639 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
14642 XsdFSM<Subtitle_ptr> *unitFsm = dynamic_cast<XsdFSM<Subtitle_ptr> *>(fsm_p);
14643 if(unitFsm && unitFsm->nodeList().size()>0) {
14644 assert(unitFsm->nodeList().size()==1);
14645 node_p = unitFsm->nodeList().at(0);
14649 FSM::warnNullNode(node_p, "Subtitle", "{http://www.w3.org/2001/XMLSchema}Subtitle", 0);
14655 void GenoPro::SourcesAndCitations::SourceCitation::sequence::set_Subtitle(DOMString val)
14658 mark_present_Subtitle();
14660 element_Subtitle()->stringValue(val);
14663 DOMString GenoPro::SourcesAndCitations::SourceCitation::sequence::get_Subtitle_string()
14665 return element_Subtitle()->stringValue();
14670 void GenoPro::SourcesAndCitations::SourceCitation::sequence::mark_present_Subtitle()
14672 DOMStringPtr nsUriPtr = new DOMString("libgno");
14673 XsdEvent event(nsUriPtr, NULL, DOMString("Subtitle"), XsdEvent::ELEMENT_START, false);
14674 this->processEventThrow(event);
14679 GenoPro::SourcesAndCitations::SourceCitation::MediaType_p GenoPro::SourcesAndCitations::SourceCitation::sequence::element_MediaType()
14681 GenoPro::SourcesAndCitations::SourceCitation::MediaType_p node_p = NULL;
14682 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
14685 XsdFSM<MediaType_ptr> *unitFsm = dynamic_cast<XsdFSM<MediaType_ptr> *>(fsm_p);
14686 if(unitFsm && unitFsm->nodeList().size()>0) {
14687 assert(unitFsm->nodeList().size()==1);
14688 node_p = unitFsm->nodeList().at(0);
14692 FSM::warnNullNode(node_p, "MediaType", "{http://www.w3.org/2001/XMLSchema}MediaType", 0);
14698 void GenoPro::SourcesAndCitations::SourceCitation::sequence::set_MediaType(DOMString val)
14701 mark_present_MediaType();
14703 element_MediaType()->stringValue(val);
14706 DOMString GenoPro::SourcesAndCitations::SourceCitation::sequence::get_MediaType_string()
14708 return element_MediaType()->stringValue();
14713 void GenoPro::SourcesAndCitations::SourceCitation::sequence::mark_present_MediaType()
14715 DOMStringPtr nsUriPtr = new DOMString("libgno");
14716 XsdEvent event(nsUriPtr, NULL, DOMString("MediaType"), XsdEvent::ELEMENT_START, false);
14717 this->processEventThrow(event);
14722 GenoPro::SourcesAndCitations::SourceCitation::ConfidenceLevel_p GenoPro::SourcesAndCitations::SourceCitation::sequence::element_ConfidenceLevel()
14724 GenoPro::SourcesAndCitations::SourceCitation::ConfidenceLevel_p node_p = NULL;
14725 XsdFsmBase* fsm_p = this->allFSMs()[3].get();
14728 XsdFSM<ConfidenceLevel_ptr> *unitFsm = dynamic_cast<XsdFSM<ConfidenceLevel_ptr> *>(fsm_p);
14729 if(unitFsm && unitFsm->nodeList().size()>0) {
14730 assert(unitFsm->nodeList().size()==1);
14731 node_p = unitFsm->nodeList().at(0);
14735 FSM::warnNullNode(node_p, "ConfidenceLevel", "{http://www.w3.org/2001/XMLSchema}ConfidenceLevel", 0);
14741 void GenoPro::SourcesAndCitations::SourceCitation::sequence::set_ConfidenceLevel(DOMString val)
14744 mark_present_ConfidenceLevel();
14746 element_ConfidenceLevel()->stringValue(val);
14749 DOMString GenoPro::SourcesAndCitations::SourceCitation::sequence::get_ConfidenceLevel_string()
14751 return element_ConfidenceLevel()->stringValue();
14756 void GenoPro::SourcesAndCitations::SourceCitation::sequence::mark_present_ConfidenceLevel()
14758 DOMStringPtr nsUriPtr = new DOMString("libgno");
14759 XsdEvent event(nsUriPtr, NULL, DOMString("ConfidenceLevel"), XsdEvent::ELEMENT_START, false);
14760 this->processEventThrow(event);
14767 GenoPro::Twins::Twins(ElementCreateArgs args):
14768 XMLSchema::XmlElement<anyType>(args),
14773 , _sequence(new sequence(this) )
14776 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
14778 if(args.ownerDoc && args.ownerDoc->buildTree())
14780 if(args.ownerDoc->createSample()) {
14781 _fsm->fireSampleEvents();
14784 _fsm->fireRequiredEvents();
14789 void GenoPro::Twins::initFSM()
14791 XsdFsmBasePtr fsmsAttrs[] = {
14796 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
14798 _fsm->replaceContentFsm(_sequence);
14800 _fsmAttrs = _fsm->attributeFsm();
14801 _fsmElems = _fsm->contentFsm();
14805 /* element functions */
14808 GenoPro::Twins::Twin_ptr GenoPro::Twins::create_Twin(FsmCbOptions& options)
14810 static DOMStringPtr myName = new DOMString("Twin");
14811 static DOMStringPtr myNsUri = new DOMString("libgno");
14813 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
14814 GenoPro::Twins::Twin_p node = XSD::createElementTmpl<Twin, void*>(t);
14816 _list_Twin.push_back(node);
14822 GenoPro::Twins::Twin_p GenoPro::Twins::element_Twin_at(unsigned int idx)
14824 if(idx > _list_Twin.size()-1) {
14825 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
14828 return _list_Twin.at(idx);
14831 List<GenoPro::Twins::Twin_ptr> GenoPro::Twins::elements_Twin()
14836 GenoPro::Twins::Twin_p GenoPro::Twins::add_node_Twin()
14838 return get_sequence()->add_node_Twin();
14841 List<GenoPro::Twins::Twin_ptr> GenoPro::Twins::set_count_Twin(unsigned int size)
14843 return get_sequence()->set_count_Twin(size);
14848 /* attribute functions */
14851 GenoPro::Twins::sequence::sequence(Twins* that):
14854 XsdFsmBasePtr fsmArray[] = {
14855 new XsdFSM<Twin_ptr>( Particle(new DOMString("libgno"), DOMString("Twin"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Twin_ptr, Twins, FsmCbOptions>(_that, &Twins::create_Twin)),
14860 XsdSequenceFsmOfFSMs::init(fsmArray);
14865 List<GenoPro::Twins::Twin_ptr> GenoPro::Twins::sequence::elements_Twin()
14868 List<Twin_ptr> nodeList;
14869 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
14872 XsdFSM<Twin_ptr> *unitFsm = dynamic_cast<XsdFSM<Twin_ptr> *>(fsm_p);
14874 //nodeList = unitFsm->nodeList().stl_list();
14875 nodeList = unitFsm->nodeList();
14883 GenoPro::Twins::Twin_p GenoPro::Twins::sequence::element_Twin_at(unsigned int idx)
14885 return elements_Twin().at(idx);
14889 GenoPro::Twins::Twin_p GenoPro::Twins::sequence::add_node_Twin()
14891 DOMStringPtr nsUriPtr = new DOMString("libgno");
14892 XsdEvent event(nsUriPtr, NULL, DOMString("Twin"), XsdEvent::ELEMENT_START, false);
14893 this->processEventThrow(event);
14894 return elements_Twin().back();
14897 List<GenoPro::Twins::Twin_ptr> GenoPro::Twins::sequence::set_count_Twin(unsigned int size)
14899 if( (size > -1) || (size < 1)) {
14901 oss << "set_count_Twin: size should be in range: [" << 1
14902 << "," << "unbounded" << "]";
14903 throw IndexOutOfBoundsException(oss.str());
14906 unsigned int prevSize = elements_Twin().size();
14907 if(size < prevSize) {
14908 //FIXME: allow later:
14909 throw XPlus::RuntimeException("resize lesser than current size not allowed");
14912 for(unsigned int j=prevSize; j<size; j++)
14914 // pretend docBuilding to avoid computation of adding after first loop
14915 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Twin"), XsdEvent::ELEMENT_START, false);
14916 this->processEventThrow(event);
14919 return elements_Twin();
14926 GenoPro::Twins::Twin::Twin(ElementCreateArgs args):
14927 XMLSchema::XmlElement<anyType>(args),
14932 , _sequence(new sequence(this) )
14935 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
14937 if(args.ownerDoc && args.ownerDoc->buildTree())
14939 if(args.ownerDoc->createSample()) {
14940 _fsm->fireSampleEvents();
14943 _fsm->fireRequiredEvents();
14948 void GenoPro::Twins::Twin::initFSM()
14950 XsdFsmBasePtr fsmsAttrs[] = {
14951 new XsdFSM<attr_ID_ptr>( Particle(NULL, DOMString("ID"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_ID_ptr, Twin, FsmCbOptions>(this, &Twin::create_attr_ID)),
14952 new XsdFSM<attr_TwinLink_ptr>( Particle(NULL, DOMString("TwinLink"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_TwinLink_ptr, Twin, FsmCbOptions>(this, &Twin::create_attr_TwinLink)),
14953 new XsdFSM<attr_Family_ptr>( Particle(NULL, DOMString("Family"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Family_ptr, Twin, FsmCbOptions>(this, &Twin::create_attr_Family)),
14958 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
14960 _fsm->replaceContentFsm(_sequence);
14962 _fsmAttrs = _fsm->attributeFsm();
14963 _fsmElems = _fsm->contentFsm();
14967 /* element functions */
14970 GenoPro::Twins::Twin::Position_ptr GenoPro::Twins::Twin::create_Position(FsmCbOptions& options)
14972 static DOMStringPtr myName = new DOMString("Position");
14973 static DOMStringPtr myNsUri = new DOMString("libgno");
14975 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "int");
14976 GenoPro::Twins::Twin::Position_p node = XSD::createElementTmpl<Position, XMLSchema::Types::bt_int*>(t);
14978 if(options.isSampleCreate && (node->stringValue() == "") ) {
14979 node->stringValue(node->sampleValue());
14988 GenoPro::Twins::Twin::Position_p GenoPro::Twins::Twin::element_Position()
14990 FSM::warnNullNode(_Position, "Position", "{http://www.w3.org/2001/XMLSchema}Position", 0);
14994 void GenoPro::Twins::Twin::set_Position(DOMString val)
14996 get_sequence()->set_Position(val);
14999 DOMString GenoPro::Twins::Twin::get_Position_string()
15001 return get_sequence()->get_Position_string();
15005 void GenoPro::Twins::Twin::set_Position(int val)
15007 get_sequence()->set_Position(val);
15010 int GenoPro::Twins::Twin::get_Position()
15012 return get_sequence()->get_Position();
15016 void GenoPro::Twins::Twin::mark_present_Position()
15018 return get_sequence()->mark_present_Position();
15022 /* attribute functions */
15025 GenoPro::Twins::Twin::attr_ID_ptr GenoPro::Twins::Twin::create_attr_ID(FsmCbOptions& options)
15027 static DOMStringPtr myName = new DOMString("ID");
15028 static DOMStringPtr myNsUri = NULL;
15033 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
15034 GenoPro::Twins::Twin::attr_ID_p node = XSD::createAttributeTmpl<attr_ID>(t);
15036 if(options.isSampleCreate && (node->stringValue() == "") ) {
15037 node->stringValue(node->sampleValue());
15046 void GenoPro::Twins::Twin::set_attr_ID(DOMString val)
15049 attribute_attr_ID()->stringValue(val);
15052 DOMString GenoPro::Twins::Twin::get_attr_ID_string()
15055 return attribute_attr_ID()->stringValue();
15059 GenoPro::Twins::Twin::attr_ID_p GenoPro::Twins::Twin::attribute_attr_ID()
15061 FSM::warnNullNode(_attr_ID, "attr_ID", "{http://www.w3.org/2001/XMLSchema}ID", 1);
15066 GenoPro::Twins::Twin::attr_TwinLink_ptr GenoPro::Twins::Twin::create_attr_TwinLink(FsmCbOptions& options)
15068 static DOMStringPtr myName = new DOMString("TwinLink");
15069 static DOMStringPtr myNsUri = NULL;
15071 if(_attr_TwinLink) {
15072 return _attr_TwinLink;
15074 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
15075 GenoPro::Twins::Twin::attr_TwinLink_p node = XSD::createAttributeTmpl<attr_TwinLink>(t);
15077 if(options.isSampleCreate && (node->stringValue() == "") ) {
15078 node->stringValue(node->sampleValue());
15081 _attr_TwinLink = node;
15087 void GenoPro::Twins::Twin::set_attr_TwinLink(DOMString val)
15090 attribute_attr_TwinLink()->stringValue(val);
15093 DOMString GenoPro::Twins::Twin::get_attr_TwinLink_string()
15096 return attribute_attr_TwinLink()->stringValue();
15100 GenoPro::Twins::Twin::attr_TwinLink_p GenoPro::Twins::Twin::attribute_attr_TwinLink()
15102 FSM::warnNullNode(_attr_TwinLink, "attr_TwinLink", "{http://www.w3.org/2001/XMLSchema}TwinLink", 1);
15103 return _attr_TwinLink;
15107 GenoPro::Twins::Twin::attr_Family_ptr GenoPro::Twins::Twin::create_attr_Family(FsmCbOptions& options)
15109 static DOMStringPtr myName = new DOMString("Family");
15110 static DOMStringPtr myNsUri = NULL;
15113 return _attr_Family;
15115 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
15116 GenoPro::Twins::Twin::attr_Family_p node = XSD::createAttributeTmpl<attr_Family>(t);
15118 if(options.isSampleCreate && (node->stringValue() == "") ) {
15119 node->stringValue(node->sampleValue());
15122 _attr_Family = node;
15128 void GenoPro::Twins::Twin::set_attr_Family(DOMString val)
15131 attribute_attr_Family()->stringValue(val);
15134 DOMString GenoPro::Twins::Twin::get_attr_Family_string()
15137 return attribute_attr_Family()->stringValue();
15141 GenoPro::Twins::Twin::attr_Family_p GenoPro::Twins::Twin::attribute_attr_Family()
15143 FSM::warnNullNode(_attr_Family, "attr_Family", "{http://www.w3.org/2001/XMLSchema}Family", 1);
15144 return _attr_Family;
15148 GenoPro::Twins::Twin::sequence::sequence(Twin* that):
15151 XsdFsmBasePtr fsmArray[] = {
15152 new XsdFSM<Position_ptr>( Particle(new DOMString("libgno"), DOMString("Position"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Position_ptr, Twin, FsmCbOptions>(_that, &Twin::create_Position)),
15157 XsdSequenceFsmOfFSMs::init(fsmArray);
15162 GenoPro::Twins::Twin::Position_p GenoPro::Twins::Twin::sequence::element_Position()
15164 GenoPro::Twins::Twin::Position_p node_p = NULL;
15165 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
15168 XsdFSM<Position_ptr> *unitFsm = dynamic_cast<XsdFSM<Position_ptr> *>(fsm_p);
15169 if(unitFsm && unitFsm->nodeList().size()>0) {
15170 assert(unitFsm->nodeList().size()==1);
15171 node_p = unitFsm->nodeList().at(0);
15175 FSM::warnNullNode(node_p, "Position", "{http://www.w3.org/2001/XMLSchema}Position", 0);
15181 void GenoPro::Twins::Twin::sequence::set_Position(DOMString val)
15184 mark_present_Position();
15186 element_Position()->stringValue(val);
15189 DOMString GenoPro::Twins::Twin::sequence::get_Position_string()
15191 return element_Position()->stringValue();
15195 void GenoPro::Twins::Twin::sequence::set_Position(int val)
15198 mark_present_Position();
15200 element_Position()->value(val);
15203 int GenoPro::Twins::Twin::sequence::get_Position()
15205 return element_Position()->value();
15210 void GenoPro::Twins::Twin::sequence::mark_present_Position()
15212 DOMStringPtr nsUriPtr = new DOMString("libgno");
15213 XsdEvent event(nsUriPtr, NULL, DOMString("Position"), XsdEvent::ELEMENT_START, false);
15214 this->processEventThrow(event);
15221 GenoPro::Shapes::Shapes(ElementCreateArgs args):
15222 XMLSchema::XmlElement<anyType>(args),
15227 , _sequence(new sequence(this) )
15230 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
15232 if(args.ownerDoc && args.ownerDoc->buildTree())
15234 if(args.ownerDoc->createSample()) {
15235 _fsm->fireSampleEvents();
15238 _fsm->fireRequiredEvents();
15243 void GenoPro::Shapes::initFSM()
15245 XsdFsmBasePtr fsmsAttrs[] = {
15250 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
15252 _fsm->replaceContentFsm(_sequence);
15254 _fsmAttrs = _fsm->attributeFsm();
15255 _fsmElems = _fsm->contentFsm();
15259 /* element functions */
15262 GenoPro::Shapes::Shape_ptr GenoPro::Shapes::create_Shape(FsmCbOptions& options)
15264 static DOMStringPtr myName = new DOMString("Shape");
15265 static DOMStringPtr myNsUri = new DOMString("libgno");
15267 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
15268 GenoPro::Shapes::Shape_p node = XSD::createElementTmpl<Shape, void*>(t);
15270 _list_Shape.push_back(node);
15276 GenoPro::Shapes::Shape_p GenoPro::Shapes::element_Shape_at(unsigned int idx)
15278 if(idx > _list_Shape.size()-1) {
15279 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
15282 return _list_Shape.at(idx);
15285 List<GenoPro::Shapes::Shape_ptr> GenoPro::Shapes::elements_Shape()
15287 return _list_Shape;
15290 GenoPro::Shapes::Shape_p GenoPro::Shapes::add_node_Shape()
15292 return get_sequence()->add_node_Shape();
15295 List<GenoPro::Shapes::Shape_ptr> GenoPro::Shapes::set_count_Shape(unsigned int size)
15297 return get_sequence()->set_count_Shape(size);
15302 /* attribute functions */
15305 GenoPro::Shapes::sequence::sequence(Shapes* that):
15308 XsdFsmBasePtr fsmArray[] = {
15309 new XsdFSM<Shape_ptr>( Particle(new DOMString("libgno"), DOMString("Shape"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Shape_ptr, Shapes, FsmCbOptions>(_that, &Shapes::create_Shape)),
15314 XsdSequenceFsmOfFSMs::init(fsmArray);
15319 List<GenoPro::Shapes::Shape_ptr> GenoPro::Shapes::sequence::elements_Shape()
15322 List<Shape_ptr> nodeList;
15323 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
15326 XsdFSM<Shape_ptr> *unitFsm = dynamic_cast<XsdFSM<Shape_ptr> *>(fsm_p);
15328 //nodeList = unitFsm->nodeList().stl_list();
15329 nodeList = unitFsm->nodeList();
15337 GenoPro::Shapes::Shape_p GenoPro::Shapes::sequence::element_Shape_at(unsigned int idx)
15339 return elements_Shape().at(idx);
15343 GenoPro::Shapes::Shape_p GenoPro::Shapes::sequence::add_node_Shape()
15345 DOMStringPtr nsUriPtr = new DOMString("libgno");
15346 XsdEvent event(nsUriPtr, NULL, DOMString("Shape"), XsdEvent::ELEMENT_START, false);
15347 this->processEventThrow(event);
15348 return elements_Shape().back();
15351 List<GenoPro::Shapes::Shape_ptr> GenoPro::Shapes::sequence::set_count_Shape(unsigned int size)
15353 if( (size > -1) || (size < 1)) {
15355 oss << "set_count_Shape: size should be in range: [" << 1
15356 << "," << "unbounded" << "]";
15357 throw IndexOutOfBoundsException(oss.str());
15360 unsigned int prevSize = elements_Shape().size();
15361 if(size < prevSize) {
15362 //FIXME: allow later:
15363 throw XPlus::RuntimeException("resize lesser than current size not allowed");
15366 for(unsigned int j=prevSize; j<size; j++)
15368 // pretend docBuilding to avoid computation of adding after first loop
15369 XsdEvent event(new DOMString("libgno"), NULL, DOMString("Shape"), XsdEvent::ELEMENT_START, false);
15370 this->processEventThrow(event);
15373 return elements_Shape();
15380 GenoPro::Shapes::Shape::Shape(ElementCreateArgs args):
15381 XMLSchema::XmlElement<anyType>(args),
15386 , _sequence(new sequence(this) )
15389 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
15391 if(args.ownerDoc && args.ownerDoc->buildTree())
15393 if(args.ownerDoc->createSample()) {
15394 _fsm->fireSampleEvents();
15397 _fsm->fireRequiredEvents();
15402 void GenoPro::Shapes::Shape::initFSM()
15404 XsdFsmBasePtr fsmsAttrs[] = {
15409 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
15411 _fsm->replaceContentFsm(_sequence);
15413 _fsmAttrs = _fsm->attributeFsm();
15414 _fsmElems = _fsm->contentFsm();
15418 /* element functions */
15421 GenoPro::Shapes::Shape::Position_ptr GenoPro::Shapes::Shape::create_Position(FsmCbOptions& options)
15423 static DOMStringPtr myName = new DOMString("Position");
15424 static DOMStringPtr myNsUri = new DOMString("libgno");
15426 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
15427 GenoPro::Shapes::Shape::Position_p node = XSD::createElementTmpl<Position, void*>(t);
15435 GenoPro::Shapes::Shape::Position_p GenoPro::Shapes::Shape::element_Position()
15437 FSM::warnNullNode(_Position, "Position", "{}Position", 0);
15441 void GenoPro::Shapes::Shape::mark_present_Position()
15443 return get_sequence()->mark_present_Position();
15447 GenoPro::Shapes::Shape::Display_ptr GenoPro::Shapes::Shape::create_Display(FsmCbOptions& options)
15449 static DOMStringPtr myName = new DOMString("Display");
15450 static DOMStringPtr myNsUri = new DOMString("libgno");
15452 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
15453 GenoPro::Shapes::Shape::Display_p node = XSD::createElementTmpl<Display, void*>(t);
15461 GenoPro::Shapes::Shape::Display_p GenoPro::Shapes::Shape::element_Display()
15463 FSM::warnNullNode(_Display, "Display", "{}Display", 0);
15467 void GenoPro::Shapes::Shape::mark_present_Display()
15469 return get_sequence()->mark_present_Display();
15473 GenoPro::Shapes::Shape::Comment_ptr GenoPro::Shapes::Shape::create_Comment(FsmCbOptions& options)
15475 static DOMStringPtr myName = new DOMString("Comment");
15476 static DOMStringPtr myNsUri = new DOMString("libgno");
15478 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "string");
15479 GenoPro::Shapes::Shape::Comment_p node = XSD::createElementTmpl<Comment, XMLSchema::Types::bt_string*>(t);
15481 if(options.isSampleCreate && (node->stringValue() == "") ) {
15482 node->stringValue(node->sampleValue());
15491 GenoPro::Shapes::Shape::Comment_p GenoPro::Shapes::Shape::element_Comment()
15493 FSM::warnNullNode(_Comment, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
15497 void GenoPro::Shapes::Shape::set_Comment(DOMString val)
15499 get_sequence()->set_Comment(val);
15502 DOMString GenoPro::Shapes::Shape::get_Comment_string()
15504 return get_sequence()->get_Comment_string();
15508 void GenoPro::Shapes::Shape::mark_present_Comment()
15510 return get_sequence()->mark_present_Comment();
15514 /* attribute functions */
15517 GenoPro::Shapes::Shape::sequence::sequence(Shape* that):
15520 XsdFsmBasePtr fsmArray[] = {
15521 new XsdFSM<Position_ptr>( Particle(new DOMString("libgno"), DOMString("Position"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Position_ptr, Shape, FsmCbOptions>(_that, &Shape::create_Position)),
15522 new XsdFSM<Display_ptr>( Particle(new DOMString("libgno"), DOMString("Display"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Display_ptr, Shape, FsmCbOptions>(_that, &Shape::create_Display)),
15523 new XsdFSM<Comment_ptr>( Particle(new DOMString("libgno"), DOMString("Comment"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Comment_ptr, Shape, FsmCbOptions>(_that, &Shape::create_Comment)),
15528 XsdSequenceFsmOfFSMs::init(fsmArray);
15533 GenoPro::Shapes::Shape::Position_p GenoPro::Shapes::Shape::sequence::element_Position()
15535 GenoPro::Shapes::Shape::Position_p node_p = NULL;
15536 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
15539 XsdFSM<Position_ptr> *unitFsm = dynamic_cast<XsdFSM<Position_ptr> *>(fsm_p);
15540 if(unitFsm && unitFsm->nodeList().size()>0) {
15541 assert(unitFsm->nodeList().size()==1);
15542 node_p = unitFsm->nodeList().at(0);
15546 FSM::warnNullNode(node_p, "Position", "{}Position", 0);
15553 void GenoPro::Shapes::Shape::sequence::mark_present_Position()
15555 DOMStringPtr nsUriPtr = new DOMString("libgno");
15556 XsdEvent event(nsUriPtr, NULL, DOMString("Position"), XsdEvent::ELEMENT_START, false);
15557 this->processEventThrow(event);
15562 GenoPro::Shapes::Shape::Display_p GenoPro::Shapes::Shape::sequence::element_Display()
15564 GenoPro::Shapes::Shape::Display_p node_p = NULL;
15565 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
15568 XsdFSM<Display_ptr> *unitFsm = dynamic_cast<XsdFSM<Display_ptr> *>(fsm_p);
15569 if(unitFsm && unitFsm->nodeList().size()>0) {
15570 assert(unitFsm->nodeList().size()==1);
15571 node_p = unitFsm->nodeList().at(0);
15575 FSM::warnNullNode(node_p, "Display", "{}Display", 0);
15582 void GenoPro::Shapes::Shape::sequence::mark_present_Display()
15584 DOMStringPtr nsUriPtr = new DOMString("libgno");
15585 XsdEvent event(nsUriPtr, NULL, DOMString("Display"), XsdEvent::ELEMENT_START, false);
15586 this->processEventThrow(event);
15591 GenoPro::Shapes::Shape::Comment_p GenoPro::Shapes::Shape::sequence::element_Comment()
15593 GenoPro::Shapes::Shape::Comment_p node_p = NULL;
15594 XsdFsmBase* fsm_p = this->allFSMs()[2].get();
15597 XsdFSM<Comment_ptr> *unitFsm = dynamic_cast<XsdFSM<Comment_ptr> *>(fsm_p);
15598 if(unitFsm && unitFsm->nodeList().size()>0) {
15599 assert(unitFsm->nodeList().size()==1);
15600 node_p = unitFsm->nodeList().at(0);
15604 FSM::warnNullNode(node_p, "Comment", "{http://www.w3.org/2001/XMLSchema}Comment", 0);
15610 void GenoPro::Shapes::Shape::sequence::set_Comment(DOMString val)
15613 mark_present_Comment();
15615 element_Comment()->stringValue(val);
15618 DOMString GenoPro::Shapes::Shape::sequence::get_Comment_string()
15620 return element_Comment()->stringValue();
15625 void GenoPro::Shapes::Shape::sequence::mark_present_Comment()
15627 DOMStringPtr nsUriPtr = new DOMString("libgno");
15628 XsdEvent event(nsUriPtr, NULL, DOMString("Comment"), XsdEvent::ELEMENT_START, false);
15629 this->processEventThrow(event);
15636 GenoPro::Shapes::Shape::Position::Position(ElementCreateArgs args):
15637 XMLSchema::XmlElement<anyType>(args),
15642 , _sequence(new sequence(this) )
15645 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
15647 if(args.ownerDoc && args.ownerDoc->buildTree())
15649 if(args.ownerDoc->createSample()) {
15650 _fsm->fireSampleEvents();
15653 _fsm->fireRequiredEvents();
15658 void GenoPro::Shapes::Shape::Position::initFSM()
15660 XsdFsmBasePtr fsmsAttrs[] = {
15661 new XsdFSM<attr_Size_ptr>( Particle(NULL, DOMString("Size"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Size_ptr, Position, FsmCbOptions>(this, &Position::create_attr_Size)),
15662 new XsdFSM<attr_GenoMap_ptr>( Particle(NULL, DOMString("GenoMap"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_GenoMap_ptr, Position, FsmCbOptions>(this, &Position::create_attr_GenoMap)),
15667 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
15669 _fsm->replaceContentFsm(_sequence);
15671 _fsmAttrs = _fsm->attributeFsm();
15672 _fsmElems = _fsm->contentFsm();
15676 /* element functions */
15679 GenoPro::Shapes::Shape::Position::Points_ptr GenoPro::Shapes::Shape::Position::create_Points(FsmCbOptions& options)
15681 static DOMStringPtr myName = new DOMString("Points");
15682 static DOMStringPtr myNsUri = new DOMString("libgno");
15684 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false, "http://www.w3.org/2001/XMLSchema", "normalizedString");
15685 GenoPro::Shapes::Shape::Position::Points_p node = XSD::createElementTmpl<Points, XMLSchema::Types::bt_normalizedString*>(t);
15687 if(options.isSampleCreate && (node->stringValue() == "") ) {
15688 node->stringValue(node->sampleValue());
15697 GenoPro::Shapes::Shape::Position::Points_p GenoPro::Shapes::Shape::Position::element_Points()
15699 FSM::warnNullNode(_Points, "Points", "{http://www.w3.org/2001/XMLSchema}Points", 0);
15703 void GenoPro::Shapes::Shape::Position::set_Points(DOMString val)
15705 get_sequence()->set_Points(val);
15708 DOMString GenoPro::Shapes::Shape::Position::get_Points_string()
15710 return get_sequence()->get_Points_string();
15714 void GenoPro::Shapes::Shape::Position::mark_present_Points()
15716 return get_sequence()->mark_present_Points();
15720 /* attribute functions */
15723 GenoPro::Shapes::Shape::Position::attr_Size_ptr GenoPro::Shapes::Shape::Position::create_attr_Size(FsmCbOptions& options)
15725 static DOMStringPtr myName = new DOMString("Size");
15726 static DOMStringPtr myNsUri = NULL;
15731 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
15732 GenoPro::Shapes::Shape::Position::attr_Size_p node = XSD::createAttributeTmpl<attr_Size>(t);
15734 if(options.isSampleCreate && (node->stringValue() == "") ) {
15735 node->stringValue(node->sampleValue());
15744 void GenoPro::Shapes::Shape::Position::set_attr_Size(DOMString val)
15747 attribute_attr_Size()->stringValue(val);
15750 DOMString GenoPro::Shapes::Shape::Position::get_attr_Size_string()
15753 return attribute_attr_Size()->stringValue();
15757 GenoPro::Shapes::Shape::Position::attr_Size_p GenoPro::Shapes::Shape::Position::attribute_attr_Size()
15759 FSM::warnNullNode(_attr_Size, "attr_Size", "{http://www.w3.org/2001/XMLSchema}Size", 1);
15764 GenoPro::Shapes::Shape::Position::attr_GenoMap_ptr GenoPro::Shapes::Shape::Position::create_attr_GenoMap(FsmCbOptions& options)
15766 static DOMStringPtr myName = new DOMString("GenoMap");
15767 static DOMStringPtr myNsUri = NULL;
15769 if(_attr_GenoMap) {
15770 return _attr_GenoMap;
15772 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
15773 GenoPro::Shapes::Shape::Position::attr_GenoMap_p node = XSD::createAttributeTmpl<attr_GenoMap>(t);
15775 if(options.isSampleCreate && (node->stringValue() == "") ) {
15776 node->stringValue(node->sampleValue());
15779 _attr_GenoMap = node;
15785 void GenoPro::Shapes::Shape::Position::set_attr_GenoMap(DOMString val)
15788 attribute_attr_GenoMap()->stringValue(val);
15791 DOMString GenoPro::Shapes::Shape::Position::get_attr_GenoMap_string()
15794 return attribute_attr_GenoMap()->stringValue();
15798 GenoPro::Shapes::Shape::Position::attr_GenoMap_p GenoPro::Shapes::Shape::Position::attribute_attr_GenoMap()
15800 FSM::warnNullNode(_attr_GenoMap, "attr_GenoMap", "{http://www.w3.org/2001/XMLSchema}GenoMap", 1);
15801 return _attr_GenoMap;
15805 GenoPro::Shapes::Shape::Position::sequence::sequence(Position* that):
15808 XsdFsmBasePtr fsmArray[] = {
15809 new XsdFSM<Points_ptr>( Particle(new DOMString("libgno"), DOMString("Points"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Points_ptr, Position, FsmCbOptions>(_that, &Position::create_Points)),
15814 XsdSequenceFsmOfFSMs::init(fsmArray);
15819 GenoPro::Shapes::Shape::Position::Points_p GenoPro::Shapes::Shape::Position::sequence::element_Points()
15821 GenoPro::Shapes::Shape::Position::Points_p node_p = NULL;
15822 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
15825 XsdFSM<Points_ptr> *unitFsm = dynamic_cast<XsdFSM<Points_ptr> *>(fsm_p);
15826 if(unitFsm && unitFsm->nodeList().size()>0) {
15827 assert(unitFsm->nodeList().size()==1);
15828 node_p = unitFsm->nodeList().at(0);
15832 FSM::warnNullNode(node_p, "Points", "{http://www.w3.org/2001/XMLSchema}Points", 0);
15838 void GenoPro::Shapes::Shape::Position::sequence::set_Points(DOMString val)
15841 mark_present_Points();
15843 element_Points()->stringValue(val);
15846 DOMString GenoPro::Shapes::Shape::Position::sequence::get_Points_string()
15848 return element_Points()->stringValue();
15853 void GenoPro::Shapes::Shape::Position::sequence::mark_present_Points()
15855 DOMStringPtr nsUriPtr = new DOMString("libgno");
15856 XsdEvent event(nsUriPtr, NULL, DOMString("Points"), XsdEvent::ELEMENT_START, false);
15857 this->processEventThrow(event);
15864 GenoPro::Shapes::Shape::Display::Display(ElementCreateArgs args):
15865 XMLSchema::XmlElement<anyType>(args),
15870 , _sequence(new sequence(this) )
15873 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
15875 if(args.ownerDoc && args.ownerDoc->buildTree())
15877 if(args.ownerDoc->createSample()) {
15878 _fsm->fireSampleEvents();
15881 _fsm->fireRequiredEvents();
15886 void GenoPro::Shapes::Shape::Display::initFSM()
15888 XsdFsmBasePtr fsmsAttrs[] = {
15893 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
15895 _fsm->replaceContentFsm(_sequence);
15897 _fsmAttrs = _fsm->attributeFsm();
15898 _fsmElems = _fsm->contentFsm();
15902 /* element functions */
15905 GenoPro::Shapes::Shape::Display::Color_ptr GenoPro::Shapes::Shape::Display::create_Color(FsmCbOptions& options)
15907 static DOMStringPtr myName = new DOMString("Color");
15908 static DOMStringPtr myNsUri = new DOMString("libgno");
15910 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
15911 GenoPro::Shapes::Shape::Display::Color_p node = XSD::createElementTmpl<Color, void*>(t);
15913 if(options.isSampleCreate && (node->stringValue() == "") ) {
15914 node->stringValue(node->sampleValue());
15923 GenoPro::Shapes::Shape::Display::Color_p GenoPro::Shapes::Shape::Display::element_Color()
15925 FSM::warnNullNode(_Color, "Color", "{}Color", 0);
15929 void GenoPro::Shapes::Shape::Display::mark_present_Color()
15931 return get_sequence()->mark_present_Color();
15935 /* attribute functions */
15938 GenoPro::Shapes::Shape::Display::sequence::sequence(Display* that):
15941 XsdFsmBasePtr fsmArray[] = {
15942 new XsdFSM<Color_ptr>( Particle(new DOMString("libgno"), DOMString("Color"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Color_ptr, Display, FsmCbOptions>(_that, &Display::create_Color)),
15947 XsdSequenceFsmOfFSMs::init(fsmArray);
15952 GenoPro::Shapes::Shape::Display::Color_p GenoPro::Shapes::Shape::Display::sequence::element_Color()
15954 GenoPro::Shapes::Shape::Display::Color_p node_p = NULL;
15955 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
15958 XsdFSM<Color_ptr> *unitFsm = dynamic_cast<XsdFSM<Color_ptr> *>(fsm_p);
15959 if(unitFsm && unitFsm->nodeList().size()>0) {
15960 assert(unitFsm->nodeList().size()==1);
15961 node_p = unitFsm->nodeList().at(0);
15965 FSM::warnNullNode(node_p, "Color", "{}Color", 0);
15972 void GenoPro::Shapes::Shape::Display::sequence::mark_present_Color()
15974 DOMStringPtr nsUriPtr = new DOMString("libgno");
15975 XsdEvent event(nsUriPtr, NULL, DOMString("Color"), XsdEvent::ELEMENT_START, false);
15976 this->processEventThrow(event);
15982 GenoPro::Shapes::Shape::Display::Color::Color(ElementCreateArgs args):
15983 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
15993 if(args.ownerDoc && args.ownerDoc->buildTree())
15996 if(args.ownerDoc->createSample()) {
15997 _fsm->fireSampleEvents();
16000 _fsm->fireRequiredEvents();
16005 void GenoPro::Shapes::Shape::Display::Color::initFSM()
16007 XsdFsmBasePtr fsmsAttrs[] = {
16008 new XsdFSM<attr_Line_ptr>( Particle(NULL, DOMString("Line"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Line_ptr, Color, FsmCbOptions>(this, &Color::create_attr_Line)),
16009 new XsdFSM<attr_Fill_ptr>( Particle(NULL, DOMString("Fill"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Fill_ptr, Color, FsmCbOptions>(this, &Color::create_attr_Fill)),
16014 _fsm->appendAttributeFsms(fsmsAttrs);
16015 _fsmAttrs = _fsm->attributeFsm();
16016 _fsmElems = _fsm->contentFsm();
16020 /* element functions */
16023 /* attribute functions */
16026 GenoPro::Shapes::Shape::Display::Color::attr_Line_ptr GenoPro::Shapes::Shape::Display::Color::create_attr_Line(FsmCbOptions& options)
16028 static DOMStringPtr myName = new DOMString("Line");
16029 static DOMStringPtr myNsUri = NULL;
16034 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16035 GenoPro::Shapes::Shape::Display::Color::attr_Line_p node = XSD::createAttributeTmpl<attr_Line>(t);
16037 if(options.isSampleCreate && (node->stringValue() == "") ) {
16038 node->stringValue(node->sampleValue());
16047 void GenoPro::Shapes::Shape::Display::Color::set_attr_Line(DOMString val)
16050 attribute_attr_Line()->stringValue(val);
16053 DOMString GenoPro::Shapes::Shape::Display::Color::get_attr_Line_string()
16056 return attribute_attr_Line()->stringValue();
16060 GenoPro::Shapes::Shape::Display::Color::attr_Line_p GenoPro::Shapes::Shape::Display::Color::attribute_attr_Line()
16062 FSM::warnNullNode(_attr_Line, "attr_Line", "{http://www.w3.org/2001/XMLSchema}Line", 1);
16067 GenoPro::Shapes::Shape::Display::Color::attr_Fill_ptr GenoPro::Shapes::Shape::Display::Color::create_attr_Fill(FsmCbOptions& options)
16069 static DOMStringPtr myName = new DOMString("Fill");
16070 static DOMStringPtr myNsUri = NULL;
16075 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16076 GenoPro::Shapes::Shape::Display::Color::attr_Fill_p node = XSD::createAttributeTmpl<attr_Fill>(t);
16078 if(options.isSampleCreate && (node->stringValue() == "") ) {
16079 node->stringValue(node->sampleValue());
16088 void GenoPro::Shapes::Shape::Display::Color::set_attr_Fill(DOMString val)
16091 attribute_attr_Fill()->stringValue(val);
16094 DOMString GenoPro::Shapes::Shape::Display::Color::get_attr_Fill_string()
16097 return attribute_attr_Fill()->stringValue();
16101 GenoPro::Shapes::Shape::Display::Color::attr_Fill_p GenoPro::Shapes::Shape::Display::Color::attribute_attr_Fill()
16103 FSM::warnNullNode(_attr_Fill, "attr_Fill", "{http://www.w3.org/2001/XMLSchema}Fill", 1);
16110 GenoPro::SocialRelationships::SocialRelationships(ElementCreateArgs args):
16111 XMLSchema::XmlElement<anyType>(args),
16116 , _sequence(new sequence(this) )
16119 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
16121 if(args.ownerDoc && args.ownerDoc->buildTree())
16123 if(args.ownerDoc->createSample()) {
16124 _fsm->fireSampleEvents();
16127 _fsm->fireRequiredEvents();
16132 void GenoPro::SocialRelationships::initFSM()
16134 XsdFsmBasePtr fsmsAttrs[] = {
16139 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
16141 _fsm->replaceContentFsm(_sequence);
16143 _fsmAttrs = _fsm->attributeFsm();
16144 _fsmElems = _fsm->contentFsm();
16148 /* element functions */
16151 GenoPro::SocialRelationships::SocialRelationship_ptr GenoPro::SocialRelationships::create_SocialRelationship(FsmCbOptions& options)
16153 static DOMStringPtr myName = new DOMString("SocialRelationship");
16154 static DOMStringPtr myNsUri = new DOMString("libgno");
16156 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
16157 GenoPro::SocialRelationships::SocialRelationship_p node = XSD::createElementTmpl<SocialRelationship, void*>(t);
16159 _list_SocialRelationship.push_back(node);
16165 GenoPro::SocialRelationships::SocialRelationship_p GenoPro::SocialRelationships::element_SocialRelationship_at(unsigned int idx)
16167 if(idx > _list_SocialRelationship.size()-1) {
16168 throw IndexOutOfBoundsException("IndexOutOfBoundsException");
16171 return _list_SocialRelationship.at(idx);
16174 List<GenoPro::SocialRelationships::SocialRelationship_ptr> GenoPro::SocialRelationships::elements_SocialRelationship()
16176 return _list_SocialRelationship;
16179 GenoPro::SocialRelationships::SocialRelationship_p GenoPro::SocialRelationships::add_node_SocialRelationship()
16181 return get_sequence()->add_node_SocialRelationship();
16184 List<GenoPro::SocialRelationships::SocialRelationship_ptr> GenoPro::SocialRelationships::set_count_SocialRelationship(unsigned int size)
16186 return get_sequence()->set_count_SocialRelationship(size);
16191 /* attribute functions */
16194 GenoPro::SocialRelationships::sequence::sequence(SocialRelationships* that):
16197 XsdFsmBasePtr fsmArray[] = {
16198 new XsdFSM<SocialRelationship_ptr>( Particle(new DOMString("libgno"), DOMString("SocialRelationship"), 1, -1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<SocialRelationship_ptr, SocialRelationships, FsmCbOptions>(_that, &SocialRelationships::create_SocialRelationship)),
16203 XsdSequenceFsmOfFSMs::init(fsmArray);
16208 List<GenoPro::SocialRelationships::SocialRelationship_ptr> GenoPro::SocialRelationships::sequence::elements_SocialRelationship()
16211 List<SocialRelationship_ptr> nodeList;
16212 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
16215 XsdFSM<SocialRelationship_ptr> *unitFsm = dynamic_cast<XsdFSM<SocialRelationship_ptr> *>(fsm_p);
16217 //nodeList = unitFsm->nodeList().stl_list();
16218 nodeList = unitFsm->nodeList();
16226 GenoPro::SocialRelationships::SocialRelationship_p GenoPro::SocialRelationships::sequence::element_SocialRelationship_at(unsigned int idx)
16228 return elements_SocialRelationship().at(idx);
16232 GenoPro::SocialRelationships::SocialRelationship_p GenoPro::SocialRelationships::sequence::add_node_SocialRelationship()
16234 DOMStringPtr nsUriPtr = new DOMString("libgno");
16235 XsdEvent event(nsUriPtr, NULL, DOMString("SocialRelationship"), XsdEvent::ELEMENT_START, false);
16236 this->processEventThrow(event);
16237 return elements_SocialRelationship().back();
16240 List<GenoPro::SocialRelationships::SocialRelationship_ptr> GenoPro::SocialRelationships::sequence::set_count_SocialRelationship(unsigned int size)
16242 if( (size > -1) || (size < 1)) {
16244 oss << "set_count_SocialRelationship: size should be in range: [" << 1
16245 << "," << "unbounded" << "]";
16246 throw IndexOutOfBoundsException(oss.str());
16249 unsigned int prevSize = elements_SocialRelationship().size();
16250 if(size < prevSize) {
16251 //FIXME: allow later:
16252 throw XPlus::RuntimeException("resize lesser than current size not allowed");
16255 for(unsigned int j=prevSize; j<size; j++)
16257 // pretend docBuilding to avoid computation of adding after first loop
16258 XsdEvent event(new DOMString("libgno"), NULL, DOMString("SocialRelationship"), XsdEvent::ELEMENT_START, false);
16259 this->processEventThrow(event);
16262 return elements_SocialRelationship();
16269 GenoPro::SocialRelationships::SocialRelationship::SocialRelationship(ElementCreateArgs args):
16270 XMLSchema::XmlElement<anyType>(args),
16275 , _sequence(new sequence(this) )
16278 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
16280 if(args.ownerDoc && args.ownerDoc->buildTree())
16282 if(args.ownerDoc->createSample()) {
16283 _fsm->fireSampleEvents();
16286 _fsm->fireRequiredEvents();
16291 void GenoPro::SocialRelationships::SocialRelationship::initFSM()
16293 XsdFsmBasePtr fsmsAttrs[] = {
16294 new XsdFSM<attr_Connection_ptr>( Particle(NULL, DOMString("Connection"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Connection_ptr, SocialRelationship, FsmCbOptions>(this, &SocialRelationship::create_attr_Connection)),
16295 new XsdFSM<attr_Entity1_ptr>( Particle(NULL, DOMString("Entity1"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Entity1_ptr, SocialRelationship, FsmCbOptions>(this, &SocialRelationship::create_attr_Entity1)),
16296 new XsdFSM<attr_Entity2_ptr>( Particle(NULL, DOMString("Entity2"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Entity2_ptr, SocialRelationship, FsmCbOptions>(this, &SocialRelationship::create_attr_Entity2)),
16301 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
16303 _fsm->replaceContentFsm(_sequence);
16305 _fsmAttrs = _fsm->attributeFsm();
16306 _fsmElems = _fsm->contentFsm();
16310 /* element functions */
16313 GenoPro::SocialRelationships::SocialRelationship::Display_ptr GenoPro::SocialRelationships::SocialRelationship::create_Display(FsmCbOptions& options)
16315 static DOMStringPtr myName = new DOMString("Display");
16316 static DOMStringPtr myNsUri = new DOMString("libgno");
16318 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
16319 GenoPro::SocialRelationships::SocialRelationship::Display_p node = XSD::createElementTmpl<Display, void*>(t);
16327 GenoPro::SocialRelationships::SocialRelationship::Display_p GenoPro::SocialRelationships::SocialRelationship::element_Display()
16329 FSM::warnNullNode(_Display, "Display", "{}Display", 0);
16333 void GenoPro::SocialRelationships::SocialRelationship::mark_present_Display()
16335 return get_sequence()->mark_present_Display();
16339 /* attribute functions */
16342 GenoPro::SocialRelationships::SocialRelationship::attr_Connection_ptr GenoPro::SocialRelationships::SocialRelationship::create_attr_Connection(FsmCbOptions& options)
16344 static DOMStringPtr myName = new DOMString("Connection");
16345 static DOMStringPtr myNsUri = NULL;
16347 if(_attr_Connection) {
16348 return _attr_Connection;
16350 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16351 GenoPro::SocialRelationships::SocialRelationship::attr_Connection_p node = XSD::createAttributeTmpl<attr_Connection>(t);
16353 if(options.isSampleCreate && (node->stringValue() == "") ) {
16354 node->stringValue(node->sampleValue());
16357 _attr_Connection = node;
16363 void GenoPro::SocialRelationships::SocialRelationship::set_attr_Connection(DOMString val)
16366 attribute_attr_Connection()->stringValue(val);
16369 DOMString GenoPro::SocialRelationships::SocialRelationship::get_attr_Connection_string()
16372 return attribute_attr_Connection()->stringValue();
16376 GenoPro::SocialRelationships::SocialRelationship::attr_Connection_p GenoPro::SocialRelationships::SocialRelationship::attribute_attr_Connection()
16378 FSM::warnNullNode(_attr_Connection, "attr_Connection", "{http://www.w3.org/2001/XMLSchema}Connection", 1);
16379 return _attr_Connection;
16383 GenoPro::SocialRelationships::SocialRelationship::attr_Entity1_ptr GenoPro::SocialRelationships::SocialRelationship::create_attr_Entity1(FsmCbOptions& options)
16385 static DOMStringPtr myName = new DOMString("Entity1");
16386 static DOMStringPtr myNsUri = NULL;
16388 if(_attr_Entity1) {
16389 return _attr_Entity1;
16391 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16392 GenoPro::SocialRelationships::SocialRelationship::attr_Entity1_p node = XSD::createAttributeTmpl<attr_Entity1>(t);
16394 if(options.isSampleCreate && (node->stringValue() == "") ) {
16395 node->stringValue(node->sampleValue());
16398 _attr_Entity1 = node;
16404 void GenoPro::SocialRelationships::SocialRelationship::set_attr_Entity1(DOMString val)
16407 attribute_attr_Entity1()->stringValue(val);
16410 DOMString GenoPro::SocialRelationships::SocialRelationship::get_attr_Entity1_string()
16413 return attribute_attr_Entity1()->stringValue();
16417 GenoPro::SocialRelationships::SocialRelationship::attr_Entity1_p GenoPro::SocialRelationships::SocialRelationship::attribute_attr_Entity1()
16419 FSM::warnNullNode(_attr_Entity1, "attr_Entity1", "{http://www.w3.org/2001/XMLSchema}Entity1", 1);
16420 return _attr_Entity1;
16424 GenoPro::SocialRelationships::SocialRelationship::attr_Entity2_ptr GenoPro::SocialRelationships::SocialRelationship::create_attr_Entity2(FsmCbOptions& options)
16426 static DOMStringPtr myName = new DOMString("Entity2");
16427 static DOMStringPtr myNsUri = NULL;
16429 if(_attr_Entity2) {
16430 return _attr_Entity2;
16432 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16433 GenoPro::SocialRelationships::SocialRelationship::attr_Entity2_p node = XSD::createAttributeTmpl<attr_Entity2>(t);
16435 if(options.isSampleCreate && (node->stringValue() == "") ) {
16436 node->stringValue(node->sampleValue());
16439 _attr_Entity2 = node;
16445 void GenoPro::SocialRelationships::SocialRelationship::set_attr_Entity2(DOMString val)
16448 attribute_attr_Entity2()->stringValue(val);
16451 DOMString GenoPro::SocialRelationships::SocialRelationship::get_attr_Entity2_string()
16454 return attribute_attr_Entity2()->stringValue();
16458 GenoPro::SocialRelationships::SocialRelationship::attr_Entity2_p GenoPro::SocialRelationships::SocialRelationship::attribute_attr_Entity2()
16460 FSM::warnNullNode(_attr_Entity2, "attr_Entity2", "{http://www.w3.org/2001/XMLSchema}Entity2", 1);
16461 return _attr_Entity2;
16465 GenoPro::SocialRelationships::SocialRelationship::sequence::sequence(SocialRelationship* that):
16468 XsdFsmBasePtr fsmArray[] = {
16469 new XsdFSM<Display_ptr>( Particle(new DOMString("libgno"), DOMString("Display"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Display_ptr, SocialRelationship, FsmCbOptions>(_that, &SocialRelationship::create_Display)),
16474 XsdSequenceFsmOfFSMs::init(fsmArray);
16479 GenoPro::SocialRelationships::SocialRelationship::Display_p GenoPro::SocialRelationships::SocialRelationship::sequence::element_Display()
16481 GenoPro::SocialRelationships::SocialRelationship::Display_p node_p = NULL;
16482 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
16485 XsdFSM<Display_ptr> *unitFsm = dynamic_cast<XsdFSM<Display_ptr> *>(fsm_p);
16486 if(unitFsm && unitFsm->nodeList().size()>0) {
16487 assert(unitFsm->nodeList().size()==1);
16488 node_p = unitFsm->nodeList().at(0);
16492 FSM::warnNullNode(node_p, "Display", "{}Display", 0);
16499 void GenoPro::SocialRelationships::SocialRelationship::sequence::mark_present_Display()
16501 DOMStringPtr nsUriPtr = new DOMString("libgno");
16502 XsdEvent event(nsUriPtr, NULL, DOMString("Display"), XsdEvent::ELEMENT_START, false);
16503 this->processEventThrow(event);
16510 GenoPro::SocialRelationships::SocialRelationship::Display::Display(ElementCreateArgs args):
16511 XMLSchema::XmlElement<anyType>(args),
16516 , _sequence(new sequence(this) )
16519 this->contentTypeVariety(CONTENT_TYPE_VARIETY_MIXED);
16521 if(args.ownerDoc && args.ownerDoc->buildTree())
16523 if(args.ownerDoc->createSample()) {
16524 _fsm->fireSampleEvents();
16527 _fsm->fireRequiredEvents();
16532 void GenoPro::SocialRelationships::SocialRelationship::Display::initFSM()
16534 XsdFsmBasePtr fsmsAttrs[] = {
16539 _fsm->replaceOrAppendUniqueAttributeFsms(fsmsAttrs);
16541 _fsm->replaceContentFsm(_sequence);
16543 _fsmAttrs = _fsm->attributeFsm();
16544 _fsmElems = _fsm->contentFsm();
16548 /* element functions */
16551 GenoPro::SocialRelationships::SocialRelationship::Display::Color_ptr GenoPro::SocialRelationships::SocialRelationship::Display::create_Color(FsmCbOptions& options)
16553 static DOMStringPtr myName = new DOMString("Color");
16554 static DOMStringPtr myNsUri = new DOMString("libgno");
16556 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
16557 GenoPro::SocialRelationships::SocialRelationship::Display::Color_p node = XSD::createElementTmpl<Color, void*>(t);
16559 if(options.isSampleCreate && (node->stringValue() == "") ) {
16560 node->stringValue(node->sampleValue());
16569 GenoPro::SocialRelationships::SocialRelationship::Display::Color_p GenoPro::SocialRelationships::SocialRelationship::Display::element_Color()
16571 FSM::warnNullNode(_Color, "Color", "{}Color", 0);
16575 void GenoPro::SocialRelationships::SocialRelationship::Display::mark_present_Color()
16577 return get_sequence()->mark_present_Color();
16581 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow_ptr GenoPro::SocialRelationships::SocialRelationship::Display::create_Arrow(FsmCbOptions& options)
16583 static DOMStringPtr myName = new DOMString("Arrow");
16584 static DOMStringPtr myNsUri = new DOMString("libgno");
16586 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options, false, false, false);
16587 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow_p node = XSD::createElementTmpl<Arrow, void*>(t);
16589 if(options.isSampleCreate && (node->stringValue() == "") ) {
16590 node->stringValue(node->sampleValue());
16599 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow_p GenoPro::SocialRelationships::SocialRelationship::Display::element_Arrow()
16601 FSM::warnNullNode(_Arrow, "Arrow", "{}Arrow", 0);
16605 void GenoPro::SocialRelationships::SocialRelationship::Display::mark_present_Arrow()
16607 return get_sequence()->mark_present_Arrow();
16611 /* attribute functions */
16614 GenoPro::SocialRelationships::SocialRelationship::Display::sequence::sequence(Display* that):
16617 XsdFsmBasePtr fsmArray[] = {
16618 new XsdFSM<Color_ptr>( Particle(new DOMString("libgno"), DOMString("Color"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Color_ptr, Display, FsmCbOptions>(_that, &Display::create_Color)),
16619 new XsdFSM<Arrow_ptr>( Particle(new DOMString("libgno"), DOMString("Arrow"), 0, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<Arrow_ptr, Display, FsmCbOptions>(_that, &Display::create_Arrow)),
16624 XsdSequenceFsmOfFSMs::init(fsmArray);
16629 GenoPro::SocialRelationships::SocialRelationship::Display::Color_p GenoPro::SocialRelationships::SocialRelationship::Display::sequence::element_Color()
16631 GenoPro::SocialRelationships::SocialRelationship::Display::Color_p node_p = NULL;
16632 XsdFsmBase* fsm_p = this->allFSMs()[0].get();
16635 XsdFSM<Color_ptr> *unitFsm = dynamic_cast<XsdFSM<Color_ptr> *>(fsm_p);
16636 if(unitFsm && unitFsm->nodeList().size()>0) {
16637 assert(unitFsm->nodeList().size()==1);
16638 node_p = unitFsm->nodeList().at(0);
16642 FSM::warnNullNode(node_p, "Color", "{}Color", 0);
16649 void GenoPro::SocialRelationships::SocialRelationship::Display::sequence::mark_present_Color()
16651 DOMStringPtr nsUriPtr = new DOMString("libgno");
16652 XsdEvent event(nsUriPtr, NULL, DOMString("Color"), XsdEvent::ELEMENT_START, false);
16653 this->processEventThrow(event);
16658 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow_p GenoPro::SocialRelationships::SocialRelationship::Display::sequence::element_Arrow()
16660 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow_p node_p = NULL;
16661 XsdFsmBase* fsm_p = this->allFSMs()[1].get();
16664 XsdFSM<Arrow_ptr> *unitFsm = dynamic_cast<XsdFSM<Arrow_ptr> *>(fsm_p);
16665 if(unitFsm && unitFsm->nodeList().size()>0) {
16666 assert(unitFsm->nodeList().size()==1);
16667 node_p = unitFsm->nodeList().at(0);
16671 FSM::warnNullNode(node_p, "Arrow", "{}Arrow", 0);
16678 void GenoPro::SocialRelationships::SocialRelationship::Display::sequence::mark_present_Arrow()
16680 DOMStringPtr nsUriPtr = new DOMString("libgno");
16681 XsdEvent event(nsUriPtr, NULL, DOMString("Arrow"), XsdEvent::ELEMENT_START, false);
16682 this->processEventThrow(event);
16688 GenoPro::SocialRelationships::SocialRelationship::Display::Color::Color(ElementCreateArgs args):
16689 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
16699 if(args.ownerDoc && args.ownerDoc->buildTree())
16702 if(args.ownerDoc->createSample()) {
16703 _fsm->fireSampleEvents();
16706 _fsm->fireRequiredEvents();
16711 void GenoPro::SocialRelationships::SocialRelationship::Display::Color::initFSM()
16713 XsdFsmBasePtr fsmsAttrs[] = {
16714 new XsdFSM<attr_Line_ptr>( Particle(NULL, DOMString("Line"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_Line_ptr, Color, FsmCbOptions>(this, &Color::create_attr_Line)),
16719 _fsm->appendAttributeFsms(fsmsAttrs);
16720 _fsmAttrs = _fsm->attributeFsm();
16721 _fsmElems = _fsm->contentFsm();
16725 /* element functions */
16728 /* attribute functions */
16731 GenoPro::SocialRelationships::SocialRelationship::Display::Color::attr_Line_ptr GenoPro::SocialRelationships::SocialRelationship::Display::Color::create_attr_Line(FsmCbOptions& options)
16733 static DOMStringPtr myName = new DOMString("Line");
16734 static DOMStringPtr myNsUri = NULL;
16739 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16740 GenoPro::SocialRelationships::SocialRelationship::Display::Color::attr_Line_p node = XSD::createAttributeTmpl<attr_Line>(t);
16742 if(options.isSampleCreate && (node->stringValue() == "") ) {
16743 node->stringValue(node->sampleValue());
16752 void GenoPro::SocialRelationships::SocialRelationship::Display::Color::set_attr_Line(DOMString val)
16755 attribute_attr_Line()->stringValue(val);
16758 DOMString GenoPro::SocialRelationships::SocialRelationship::Display::Color::get_attr_Line_string()
16761 return attribute_attr_Line()->stringValue();
16765 GenoPro::SocialRelationships::SocialRelationship::Display::Color::attr_Line_p GenoPro::SocialRelationships::SocialRelationship::Display::Color::attribute_attr_Line()
16767 FSM::warnNullNode(_attr_Line, "attr_Line", "{http://www.w3.org/2001/XMLSchema}Line", 1);
16773 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::Arrow(ElementCreateArgs args):
16774 XMLSchema::XmlElement<XMLSchema::Types::bt_string>(args),
16784 if(args.ownerDoc && args.ownerDoc->buildTree())
16787 if(args.ownerDoc->createSample()) {
16788 _fsm->fireSampleEvents();
16791 _fsm->fireRequiredEvents();
16796 void GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::initFSM()
16798 XsdFsmBasePtr fsmsAttrs[] = {
16799 new XsdFSM<attr_End_ptr>( Particle(NULL, DOMString("End"), 1, 1), XsdEvent::ATTRIBUTE, new object_unary_mem_fun_t<attr_End_ptr, Arrow, FsmCbOptions>(this, &Arrow::create_attr_End)),
16804 _fsm->appendAttributeFsms(fsmsAttrs);
16805 _fsmAttrs = _fsm->attributeFsm();
16806 _fsmElems = _fsm->contentFsm();
16810 /* element functions */
16813 /* attribute functions */
16816 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::attr_End_ptr GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::create_attr_End(FsmCbOptions& options)
16818 static DOMStringPtr myName = new DOMString("End");
16819 static DOMStringPtr myNsUri = NULL;
16824 XSD::StructCreateAttrThroughFsm t( myName, myNsUri, NULL, this->ownerElement(), this->ownerDocument(), _fsm, options);
16825 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::attr_End_p node = XSD::createAttributeTmpl<attr_End>(t);
16827 if(options.isSampleCreate && (node->stringValue() == "") ) {
16828 node->stringValue(node->sampleValue());
16837 void GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::set_attr_End(DOMString val)
16840 attribute_attr_End()->stringValue(val);
16843 DOMString GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::get_attr_End_string()
16846 return attribute_attr_End()->stringValue();
16850 GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::attr_End_p GenoPro::SocialRelationships::SocialRelationship::Display::Arrow::attribute_attr_End()
16852 FSM::warnNullNode(_attr_End, "attr_End", "{http://www.w3.org/2001/XMLSchema}End", 1);
16856 } // end namespace libgno