EVS.pm untested

filter: Statementstmt 0.0% 0 / 2110 Branchbran 0.0% 0 / 498 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 332 Podpod 0.0% 0 / 237 totaltotal 0.0% 0 / 3177 CC 250 SCAR 39.8
CC
250
Cov
0%
fromWSXMLNode
506.0
toWebserviceXML
342.0
fromWSXMLNode
182.0
CRAP 53.3
1 # ------------------------------------------------------------------------------------------
2 package CaCORE::EVS::HashSet;
3
4 use 5.005;
5 #use strict;
6 use warnings;
7
8 require Exporter;
9
10 use XML::DOM;
11
12 ## begin import objects ##
13 use CaCORE::ApplicationService;
14 ## end import objects ##
15
16 $VERSION = '3.2';
17
18 @ISA = qw(CaCORE::DomainObjectI);
19
20 our %EXPORT_TAGS = ( 'all' => [ qw(
21
22 ) ] );
23
24 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
25
26 our @EXPORT = qw(
27 );
28
29 # create an instance of the HashSet object
30 # returns: a HashSet object
31 sub new {
32 my $class = shift;
33 my $self = {};
34 bless($self, $class);
35 #print "new HashSet\n";
36 return $self;
37 }
38
39 # Construct the specific section of the WSDL request corresponding
40 # to this HashSet intance
41 # returns: XML in string format
42 sub toWebserviceXML {
43 my $self = shift;
44 my $result = shift;
45 my $assigned_id = shift;
46 my $current_id = shift;
47 my $l = shift;
48 my %worklist = %$l;
49
50 # prefix portion of the xml
51 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":HashSet\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
52 my $tmpstr = "";
53 $current_id ++;
54
55 ## begin attribute to XML ##
56 ## end attribute to XML ##
57
58 ## begin association to XML ##
59 ## end association to XML ##
60
61 # add trailing close tags
62 $result .= "</multiRef>";
63
64 return ($result, $current_id, %worklist);
65 }
66
67 # parse a given webservice response xml, construct a list of HashSet objects
68 # param: xml doc
69 # returns: list of HashSet objects
70 sub fromWebserviceXML {
71 my $self = shift;
72 my $parser = new XML::DOM::Parser;
73 my $docnode = $parser->parse(shift);
74 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
75
76 return $self->fromWSXMLListNode($root);
77 }
78
79 # parse a given xml node, construct a list of HashSet objects
80 # param: xml node
81 # returns: a list of HashSet objects
82 sub fromWSXMLListNode {
83 my $self = shift;
84 my $listNode = shift;
85 my @obj_list = ();
86
87 # get all children for this node
88 for my $childrenNode ($listNode->getChildNodes) {
89 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
90 my $newobj = $self->fromWSXMLNode($childrenNode);
91 push @obj_list, $newobj;
92 }
93 }
94
95 return @obj_list;
96 }
97
98 # parse a given xml node, construct one HashSet object
99 # param: xml node
100 # returns: one HashSet object
101 sub fromWSXMLNode {
102 my $HashSetNode = $_[1];
103
104 ## begin ELEMENT_NODE children ##
105 ## end ELEMENT_NODE children ##
106
107 # get all children for this node
108 for my $childrenNode ($HashSetNode->getChildNodes) {
109 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
110 if( ! defined($childrenNode->getFirstChild) ){ next; };
111 my $textNode = $childrenNode->getFirstChild;
112 ## begin iterate ELEMENT_NODE ##
113 if (0) {
114 # do nothing, just a place holder for "if" component
115 }
116 ## end iterate ELEMENT_NODE ##
117 }
118 }
119 my $newobj = new CaCORE::EVS::HashSet;
120 ## begin set attr ##
121 ## end set attr ##
122
123 return $newobj;
124 }
125
126 ## begin getters and setters ##
127
128 ## end getters and setters ##
129
130 ## begin bean association methods ##
131
132 ## end bean association methods ##
133
134 1;
135 #end
136 # ------------------------------------------------------------------------------------------
137 package CaCORE::EVS::EdgeProperties;
138
139 use 5.005;
140 #use strict;
141 use warnings;
142
143 require Exporter;
144
145 use XML::DOM;
146
147 ## begin import objects ##
148 use CaCORE::ApplicationService;
149 ## end import objects ##
150
151
152 @ISA = qw(CaCORE::DomainObjectI);
153
154 our %EXPORT_TAGS = ( 'all' => [ qw(
155
156 ) ] );
157
158 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
159
160 our @EXPORT = qw(
161 );
162
163 # create an instance of the EdgeProperties object
164 # returns: a EdgeProperties object
165 sub new {
166 my $class = shift;
167 my $self = {};
168 bless($self, $class);
169 #print "new EdgeProperties\n";
170 return $self;
171 }
172
173 # Construct the specific section of the WSDL request corresponding
174 # to this EdgeProperties intance
175 # returns: XML in string format
176 sub toWebserviceXML {
177 my $self = shift;
178 my $result = shift;
179 my $assigned_id = shift;
180 my $current_id = shift;
181 my $l = shift;
182 my %worklist = %$l;
183
184 # prefix portion of the xml
185 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":EdgeProperties\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
186 my $tmpstr = "";
187 $current_id ++;
188
189 ## begin attribute to XML ##
190 # isA;
191 if( defined( $self->getIsA ) ) {
192 $tmpstr = "<isA xsi:type=\"xsd:boolean\">" . $self->getIsA . "</isA>";
193 } else {
194 $tmpstr = "<isA xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
195 }
196 $result .= $tmpstr;
197  
198 # name;
199 if( defined( $self->getName ) ) {
200 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
201 } else {
202 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
203 }
204 $result .= $tmpstr;
205  
206 # traverseDown;
207 if( defined( $self->getTraverseDown ) ) {
208 $tmpstr = "<traverseDown xsi:type=\"xsd:boolean\">" . $self->getTraverseDown . "</traverseDown>";
209 } else {
210 $tmpstr = "<traverseDown xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
211 }
212 $result .= $tmpstr;
213  
214 ## end attribute to XML ##
215
216 ## begin association to XML ##
217 # LinksCollection;
218 if( defined( $self->getLinksCollection ) ) {
219 my @assoclist = $self->getLinksCollection;
220 if( $#assoclist >= 0 ) {
221 $result .= "<linksCollection>";
222 foreach my $node ($self->getLinksCollection) {
223 $result .= "<linksCollection xsi:type=\"xsd:string\"> . $node . </linksCollection>";
224 }
225 $result .= "</linksCollection>";
226 }
227 }
228 ## end association to XML ##
229
230 # add trailing close tags
231 $result .= "</multiRef>";
232
233 return ($result, $current_id, %worklist);
234 }
235
236 # parse a given webservice response xml, construct a list of EdgeProperties objects
237 # param: xml doc
238 # returns: list of EdgeProperties objects
239 sub fromWebserviceXML {
240 my $self = shift;
241 my $parser = new XML::DOM::Parser;
242 my $docnode = $parser->parse(shift);
243 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
244
245 return $self->fromWSXMLListNode($root);
246 }
247
248 # parse a given xml node, construct a list of EdgeProperties objects
249 # param: xml node
250 # returns: a list of EdgeProperties objects
251 sub fromWSXMLListNode {
252 my $self = shift;
253 my $listNode = shift;
254 my @obj_list = ();
255
256 # get all children for this node
257 for my $childrenNode ($listNode->getChildNodes) {
258 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
259 my $newobj = $self->fromWSXMLNode($childrenNode);
260 push @obj_list, $newobj;
261 }
262 }
263
264 return @obj_list;
265 }
266
267 # parse a given xml node, construct one EdgeProperties object
268 # param: xml node
269 # returns: one EdgeProperties object
270 sub fromWSXMLNode {
271 my $EdgePropertiesNode = $_[1];
272
273 ## begin ELEMENT_NODE children ##
274 my $isA;
275 my $name;
276 my $traverseDown;
277 my @links = ();
278 ## end ELEMENT_NODE children ##
279
280 # get all children for this node
281 for my $childrenNode ($EdgePropertiesNode->getChildNodes) {
282 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
283 if( ! defined($childrenNode->getFirstChild) ){ next; };
284 my $textNode = $childrenNode->getFirstChild;
285 ## begin iterate ELEMENT_NODE ##
286 if (0) {
287 # do nothing, just a place holder for "if" component
288 }
289 elsif ($childrenNode->getNodeName eq "isA") {
290 $isA=$textNode->getNodeValue;
291 }
292 elsif ($childrenNode->getNodeName eq "name") {
293 $name=$textNode->getNodeValue;
294 }
295 elsif ($childrenNode->getNodeName eq "traverseDown") {
296 $traverseDown=$textNode->getNodeValue;
297 }
298 elsif ($childrenNode->getNodeName eq "links") {
299 for my $node ($childrenNode->getChildNodes) {
300 if( $node->getNodeName eq "empty" ){ next; };
301 if( ! defined($node->getFirstChild) ){ next; };
302 my $txnode = $node->getFirstChild;
303 push @links, $txnode->getNodeValue;
304 }
305 }
306 ## end iterate ELEMENT_NODE ##
307 }
308 }
309 my $newobj = new CaCORE::EVS::EdgeProperties;
310 ## begin set attr ##
311 $newobj->setIsA($isA);
312 $newobj->setName($name);
313 $newobj->setTraverseDown($traverseDown);
314 $newobj->setLinksCollection(@links);
315 ## end set attr ##
316
317 return $newobj;
318 }
319
320 ## begin getters and setters ##
321
322 sub getIsA {
323 my $self = shift;
324 return $self->{isA};
325 }
326  
327 sub setIsA {
328 my $self = shift;
329 $self->{isA} = shift;
330 }
331  
332 sub getName {
333 my $self = shift;
334 return $self->{name};
335 }
336  
337 sub setName {
338 my $self = shift;
339 $self->{name} = shift;
340 }
341  
342 sub getTraverseDown {
343 my $self = shift;
344 return $self->{traverseDown};
345 }
346  
347 sub setTraverseDown {
348 my $self = shift;
349 $self->{traverseDown} = shift;
350 }
351  
352 ## end getters and setters ##
353
354 ## begin bean association methods ##
355
356 sub getLinksCollection {
357 my $self = shift;
358 if( defined($self->{links}) ) {
359 return @{$self->{links}};
360 } else {
361 return ();
362 }
363 }
364  
365 sub setLinksCollection {
366 my ($self, @set) = @_;
367 push @{$self->{links}}, @set;
368 }
369  
370 ## end bean association methods ##
371
372 1;
373 #end
374 # ------------------------------------------------------------------------------------------
375 package CaCORE::EVS::TreeNode;
376
377 use 5.005;
378 #use strict;
379 use warnings;
380
381 require Exporter;
382
383 use XML::DOM;
384
385 ## begin import objects ##
386 use CaCORE::ApplicationService;
387 ## end import objects ##
388
389
390 @ISA = qw(CaCORE::DomainObjectI);
391
392 our %EXPORT_TAGS = ( 'all' => [ qw(
393
394 ) ] );
395
396 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
397
398 our @EXPORT = qw(
399 );
400
401 # create an instance of the TreeNode object
402 # returns: a TreeNode object
403 sub new {
404 my $class = shift;
405 my $self = {};
406 bless($self, $class);
407 #print "new TreeNode\n";
408 return $self;
409 }
410
411 # Construct the specific section of the WSDL request corresponding
412 # to this TreeNode intance
413 # returns: XML in string format
414 sub toWebserviceXML {
415 my $self = shift;
416 my $result = shift;
417 my $assigned_id = shift;
418 my $current_id = shift;
419 my $l = shift;
420 my %worklist = %$l;
421
422 # prefix portion of the xml
423 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":TreeNode\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
424 my $tmpstr = "";
425 $current_id ++;
426
427 ## begin attribute to XML ##
428 # isA;
429 if( defined( $self->getIsA ) ) {
430 $tmpstr = "<isA xsi:type=\"xsd:boolean\">" . $self->getIsA . "</isA>";
431 } else {
432 $tmpstr = "<isA xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
433 }
434 $result .= $tmpstr;
435  
436 # name;
437 if( defined( $self->getName ) ) {
438 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
439 } else {
440 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
441 }
442 $result .= $tmpstr;
443  
444 # traverseDown;
445 if( defined( $self->getTraverseDown ) ) {
446 $tmpstr = "<traverseDown xsi:type=\"xsd:boolean\">" . $self->getTraverseDown . "</traverseDown>";
447 } else {
448 $tmpstr = "<traverseDown xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
449 }
450 $result .= $tmpstr;
451  
452 ## end attribute to XML ##
453
454 ## begin association to XML ##
455 # LinksCollection;
456 if( defined( $self->getLinksCollection ) ) {
457 my @assoclist = $self->getLinksCollection;
458 if( $#assoclist >= 0 ) {
459 $result .= "<linksCollection>";
460 foreach my $node ($self->getLinksCollection) {
461 $result .= "<linksCollection xsi:type=\"xsd:string\"> . $node . </linksCollection>";
462 }
463 $result .= "</linksCollection>";
464 }
465 }
466 ## end association to XML ##
467
468 # add trailing close tags
469 $result .= "</multiRef>";
470
471 return ($result, $current_id, %worklist);
472 }
473
474 # parse a given webservice response xml, construct a list of TreeNode objects
475 # param: xml doc
476 # returns: list of TreeNode objects
477 sub fromWebserviceXML {
478 my $self = shift;
479 my $parser = new XML::DOM::Parser;
480 my $docnode = $parser->parse(shift);
481 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
482
483 return $self->fromWSXMLListNode($root);
484 }
485
486 # parse a given xml node, construct a list of TreeNode objects
487 # param: xml node
488 # returns: a list of TreeNode objects
489 sub fromWSXMLListNode {
490 my $self = shift;
491 my $listNode = shift;
492 my @obj_list = ();
493
494 # get all children for this node
495 for my $childrenNode ($listNode->getChildNodes) {
496 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
497 my $newobj = $self->fromWSXMLNode($childrenNode);
498 push @obj_list, $newobj;
499 }
500 }
501
502 return @obj_list;
503 }
504
505 # parse a given xml node, construct one TreeNode object
506 # param: xml node
507 # returns: one TreeNode object
508 sub fromWSXMLNode {
509 my $TreeNodeNode = $_[1];
510
511 ## begin ELEMENT_NODE children ##
512 my $isA;
513 my $name;
514 my $traverseDown;
515 my @links = ();
516 ## end ELEMENT_NODE children ##
517
518 # get all children for this node
519 for my $childrenNode ($TreeNodeNode->getChildNodes) {
520 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
521 if( ! defined($childrenNode->getFirstChild) ){ next; };
522 my $textNode = $childrenNode->getFirstChild;
523 ## begin iterate ELEMENT_NODE ##
524 if (0) {
525 # do nothing, just a place holder for "if" component
526 }
527 elsif ($childrenNode->getNodeName eq "isA") {
528 $isA=$textNode->getNodeValue;
529 }
530 elsif ($childrenNode->getNodeName eq "name") {
531 $name=$textNode->getNodeValue;
532 }
533 elsif ($childrenNode->getNodeName eq "traverseDown") {
534 $traverseDown=$textNode->getNodeValue;
535 }
536 elsif ($childrenNode->getNodeName eq "links") {
537 for my $node ($childrenNode->getChildNodes) {
538 if( $node->getNodeName eq "empty" ){ next; };
539 if( ! defined($node->getFirstChild) ){ next; };
540 my $txnode = $node->getFirstChild;
541 push @links, $txnode->getNodeValue;
542 }
543 }
544 ## end iterate ELEMENT_NODE ##
545 }
546 }
547 my $newobj = new CaCORE::EVS::TreeNode;
548 ## begin set attr ##
549 $newobj->setIsA($isA);
550 $newobj->setName($name);
551 $newobj->setTraverseDown($traverseDown);
552 $newobj->setLinksCollection(@links);
553 ## end set attr ##
554
555 return $newobj;
556 }
557
558 ## begin getters and setters ##
559
560 sub getIsA {
561 my $self = shift;
562 return $self->{isA};
563 }
564  
565 sub setIsA {
566 my $self = shift;
567 $self->{isA} = shift;
568 }
569  
570 sub getName {
571 my $self = shift;
572 return $self->{name};
573 }
574  
575 sub setName {
576 my $self = shift;
577 $self->{name} = shift;
578 }
579  
580 sub getTraverseDown {
581 my $self = shift;
582 return $self->{traverseDown};
583 }
584  
585 sub setTraverseDown {
586 my $self = shift;
587 $self->{traverseDown} = shift;
588 }
589  
590 ## end getters and setters ##
591
592 ## begin bean association methods ##
593
594 sub getLinksCollection {
595 my $self = shift;
596 if( defined($self->{links}) ) {
597 return @{$self->{links}};
598 } else {
599 return ();
600 }
601 }
602  
603 sub setLinksCollection {
604 my ($self, @set) = @_;
605 push @{$self->{links}}, @set;
606 }
607  
608 ## end bean association methods ##
609
610 1;
611 #end
612 # ------------------------------------------------------------------------------------------
613 package CaCORE::EVS::Vocabulary;
614
615 use 5.005;
616 #use strict;
617 use warnings;
618
619 require Exporter;
620
621 use XML::DOM;
622
623 ## begin import objects ##
624 use CaCORE::ApplicationService;
625 ## end import objects ##
626
627
628 @ISA = qw(CaCORE::DomainObjectI);
629
630 our %EXPORT_TAGS = ( 'all' => [ qw(
631
632 ) ] );
633
634 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
635
636 our @EXPORT = qw(
637 );
638
639 # create an instance of the Vocabulary object
640 # returns: a Vocabulary object
641 sub new {
642 my $class = shift;
643 my $self = {};
644 bless($self, $class);
645 #print "new Vocabulary\n";
646 return $self;
647 }
648
649 # Construct the specific section of the WSDL request corresponding
650 # to this Vocabulary intance
651 # returns: XML in string format
652 sub toWebserviceXML {
653 my $self = shift;
654 my $result = shift;
655 my $assigned_id = shift;
656 my $current_id = shift;
657 my $l = shift;
658 my %worklist = %$l;
659
660 # prefix portion of the xml
661 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Vocabulary\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
662 my $tmpstr = "";
663 $current_id ++;
664
665 ## begin attribute to XML ##
666 # description;
667 if( defined( $self->getDescription ) ) {
668 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
669 } else {
670 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
671 }
672 $result .= $tmpstr;
673  
674 # name;
675 if( defined( $self->getName ) ) {
676 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
677 } else {
678 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
679 }
680 $result .= $tmpstr;
681  
682 # namespaceId;
683 if( defined( $self->getNamespaceId ) ) {
684 $tmpstr = "<namespaceId xsi:type=\"xsd:int\">" . $self->getNamespaceId . "</namespaceId>";
685 } else {
686 $tmpstr = "<namespaceId xsi:type=\"xsd:int\" xsi:nil=\"true\" />";
687 }
688 $result .= $tmpstr;
689  
690 ## end attribute to XML ##
691
692 ## begin association to XML ##
693 # SecurityToken;
694 if( defined( $self->getSecurityToken ) ) {
695 $result .= "<securityToken href=\"\#id" . $current_id . "\"/>";
696 $worklist{$current_id} = $self->getSecurityToken;
697 $current_id ++;
698 }
699 # SiloCollection;
700 if( defined( $self->getSiloCollection ) ) {
701 my @assoclist = $self->getSiloCollection;
702 my $listsize = $#assoclist + 1;
703 $result .= "<siloCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
704 foreach my $node ($self->getSiloCollection) {
705 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
706 $worklist{$current_id} = $node;
707 $current_id ++;
708 }
709 $result .= "</siloCollection>";
710 }
711 ## end association to XML ##
712
713 # add trailing close tags
714 $result .= "</multiRef>";
715
716 return ($result, $current_id, %worklist);
717 }
718
719 # parse a given webservice response xml, construct a list of Vocabulary objects
720 # param: xml doc
721 # returns: list of Vocabulary objects
722 sub fromWebserviceXML {
723 my $self = shift;
724 my $parser = new XML::DOM::Parser;
725 my $docnode = $parser->parse(shift);
726 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
727
728 return $self->fromWSXMLListNode($root);
729 }
730
731 # parse a given xml node, construct a list of Vocabulary objects
732 # param: xml node
733 # returns: a list of Vocabulary objects
734 sub fromWSXMLListNode {
735 my $self = shift;
736 my $listNode = shift;
737 my @obj_list = ();
738
739 # get all children for this node
740 for my $childrenNode ($listNode->getChildNodes) {
741 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
742 my $newobj = $self->fromWSXMLNode($childrenNode);
743 push @obj_list, $newobj;
744 }
745 }
746
747 return @obj_list;
748 }
749
750 # parse a given xml node, construct one Vocabulary object
751 # param: xml node
752 # returns: one Vocabulary object
753 sub fromWSXMLNode {
754 my $VocabularyNode = $_[1];
755
756 ## begin ELEMENT_NODE children ##
757 my $description;
758 my $name;
759 my $namespaceId;
760 my $securityToken;
761 my @silo = ();
762 ## end ELEMENT_NODE children ##
763
764 # get all children for this node
765 for my $childrenNode ($VocabularyNode->getChildNodes) {
766 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
767 if( ! defined($childrenNode->getFirstChild) ){ next; };
768 my $textNode = $childrenNode->getFirstChild;
769 ## begin iterate ELEMENT_NODE ##
770 if (0) {
771 # do nothing, just a place holder for "if" component
772 }
773 elsif ($childrenNode->getNodeName eq "description") {
774 $description=$textNode->getNodeValue;
775 }
776 elsif ($childrenNode->getNodeName eq "name") {
777 $name=$textNode->getNodeValue;
778 }
779 elsif ($childrenNode->getNodeName eq "namespaceId") {
780 $namespaceId=$textNode->getNodeValue;
781 }
782 elsif ($childrenNode->getNodeName eq "securityToken") {
783 my $doi = new CaCORE::EVS::SecurityToken;
784 $securityToken=$doi->fromWSXMLNode($childrenNode);
785 }
786 elsif ($childrenNode->getNodeName eq "siloCollection") {
787 my $doi = new CaCORE::EVS::Silo;
788 @silo=$doi->fromWSXMLListNode($childrenNode);
789 }
790 ## end iterate ELEMENT_NODE ##
791 }
792 }
793 my $newobj = new CaCORE::EVS::Vocabulary;
794 ## begin set attr ##
795 $newobj->setDescription($description);
796 $newobj->setName($name);
797 $newobj->setNamespaceId($namespaceId);
798 $newobj->setSecurityToken($securityToken);
799 $newobj->setSiloCollection(@silo);
800 ## end set attr ##
801
802 return $newobj;
803 }
804
805 ## begin getters and setters ##
806
807 sub getDescription {
808 my $self = shift;
809 return $self->{description};
810 }
811  
812 sub setDescription {
813 my $self = shift;
814 $self->{description} = shift;
815 }
816  
817 sub getName {
818 my $self = shift;
819 return $self->{name};
820 }
821  
822 sub setName {
823 my $self = shift;
824 $self->{name} = shift;
825 }
826  
827 sub getNamespaceId {
828 my $self = shift;
829 return $self->{namespaceId};
830 }
831  
832 sub setNamespaceId {
833 my $self = shift;
834 $self->{namespaceId} = shift;
835 }
836  
837 ## end getters and setters ##
838
839 ## begin bean association methods ##
840
841 sub getSecurityToken {
842 my $self = shift;
843 return $self->{securityToken};
844 }
845  
846 sub setSecurityToken {
847 my $self = shift;
848 $self->{securityToken} = shift;
849 }
850  
851 sub getSiloCollection {
852 my $self = shift;
853 if( defined($self->{silo}) ) {
854 return @{$self->{silo}};
855 } else {
856 return ();
857 }
858 }
859  
860 sub setSiloCollection {
861 my ($self, @set) = @_;
862 push @{$self->{silo}}, @set;
863 }
864  
865 ## end bean association methods ##
866
867 1;
868 #end
869 # ------------------------------------------------------------------------------------------
870 package CaCORE::EVS::DescLogicConcept;
871
872 use 5.005;
873 #use strict;
874 use warnings;
875
876 require Exporter;
877
878 use XML::DOM;
879
880 ## begin import objects ##
881 use CaCORE::ApplicationService;
882 ## end import objects ##
883
884
885 @ISA = qw(CaCORE::DomainObjectI);
886
887 our %EXPORT_TAGS = ( 'all' => [ qw(
888
889 ) ] );
890
891 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
892
893 our @EXPORT = qw(
894 );
895
896 # create an instance of the DescLogicConcept object
897 # returns: a DescLogicConcept object
898 sub new {
899 my $class = shift;
900 my $self = {};
901 bless($self, $class);
902 #print "new DescLogicConcept\n";
903 return $self;
904 }
905
906 # Construct the specific section of the WSDL request corresponding
907 # to this DescLogicConcept intance
908 # returns: XML in string format
909 sub toWebserviceXML {
910 my $self = shift;
911 my $result = shift;
912 my $assigned_id = shift;
913 my $current_id = shift;
914 my $l = shift;
915 my %worklist = %$l;
916
917 # prefix portion of the xml
918 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":DescLogicConcept\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
919 my $tmpstr = "";
920 $current_id ++;
921
922 ## begin attribute to XML ##
923 # code;
924 if( defined( $self->getCode ) ) {
925 $tmpstr = "<code xsi:type=\"xsd:string\">" . $self->getCode . "</code>";
926 } else {
927 $tmpstr = "<code xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
928 }
929 $result .= $tmpstr;
930  
931 # hasChildren;
932 if( defined( $self->getHasChildren ) ) {
933 $tmpstr = "<hasChildren xsi:type=\"xsd:boolean\">" . $self->getHasChildren . "</hasChildren>";
934 } else {
935 $tmpstr = "<hasChildren xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
936 }
937 $result .= $tmpstr;
938  
939 # hasParents;
940 if( defined( $self->getHasParents ) ) {
941 $tmpstr = "<hasParents xsi:type=\"xsd:boolean\">" . $self->getHasParents . "</hasParents>";
942 } else {
943 $tmpstr = "<hasParents xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
944 }
945 $result .= $tmpstr;
946  
947 # isRetired;
948 if( defined( $self->getIsRetired ) ) {
949 $tmpstr = "<isRetired xsi:type=\"xsd:boolean\">" . $self->getIsRetired . "</isRetired>";
950 } else {
951 $tmpstr = "<isRetired xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
952 }
953 $result .= $tmpstr;
954  
955 # name;
956 if( defined( $self->getName ) ) {
957 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
958 } else {
959 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
960 }
961 $result .= $tmpstr;
962  
963 # namespaceId;
964 if( defined( $self->getNamespaceId ) ) {
965 $tmpstr = "<namespaceId xsi:type=\"xsd:int\">" . $self->getNamespaceId . "</namespaceId>";
966 } else {
967 $tmpstr = "<namespaceId xsi:type=\"xsd:int\" xsi:nil=\"true\" />";
968 }
969 $result .= $tmpstr;
970  
971 # vocabularyName;
972 if( defined( $self->getVocabularyName ) ) {
973 $tmpstr = "<vocabularyName xsi:type=\"xsd:string\">" . $self->getVocabularyName . "</vocabularyName>";
974 } else {
975 $tmpstr = "<vocabularyName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
976 }
977 $result .= $tmpstr;
978  
979 ## end attribute to XML ##
980
981 ## begin association to XML ##
982 # AssociationCollection;
983 if( defined( $self->getAssociationCollection ) ) {
984 my @assoclist = $self->getAssociationCollection;
985 my $listsize = $#assoclist + 1;
986 $result .= "<associationCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
987 foreach my $node ($self->getAssociationCollection) {
988 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
989 $worklist{$current_id} = $node;
990 $current_id ++;
991 }
992 $result .= "</associationCollection>";
993 }
994 # EdgeProperties;
995 if( defined( $self->getEdgeProperties ) ) {
996 $result .= "<edgeProperties href=\"\#id" . $current_id . "\"/>";
997 $worklist{$current_id} = $self->getEdgeProperties;
998 $current_id ++;
999 }
1000 # InverseAssociationCollection;
1001 if( defined( $self->getInverseAssociationCollection ) ) {
1002 my @assoclist = $self->getInverseAssociationCollection;
1003 my $listsize = $#assoclist + 1;
1004 $result .= "<inverseAssociationCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1005 foreach my $node ($self->getInverseAssociationCollection) {
1006 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1007 $worklist{$current_id} = $node;
1008 $current_id ++;
1009 }
1010 $result .= "</inverseAssociationCollection>";
1011 }
1012 # InverseRoleCollection;
1013 if( defined( $self->getInverseRoleCollection ) ) {
1014 my @assoclist = $self->getInverseRoleCollection;
1015 my $listsize = $#assoclist + 1;
1016 $result .= "<inverseRoleCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1017 foreach my $node ($self->getInverseRoleCollection) {
1018 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1019 $worklist{$current_id} = $node;
1020 $current_id ++;
1021 }
1022 $result .= "</inverseRoleCollection>";
1023 }
1024 # PropertyCollection;
1025 if( defined( $self->getPropertyCollection ) ) {
1026 my @assoclist = $self->getPropertyCollection;
1027 my $listsize = $#assoclist + 1;
1028 $result .= "<propertyCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1029 foreach my $node ($self->getPropertyCollection) {
1030 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1031 $worklist{$current_id} = $node;
1032 $current_id ++;
1033 }
1034 $result .= "</propertyCollection>";
1035 }
1036 # RoleCollection;
1037 if( defined( $self->getRoleCollection ) ) {
1038 my @assoclist = $self->getRoleCollection;
1039 my $listsize = $#assoclist + 1;
1040 $result .= "<roleCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1041 foreach my $node ($self->getRoleCollection) {
1042 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1043 $worklist{$current_id} = $node;
1044 $current_id ++;
1045 }
1046 $result .= "</roleCollection>";
1047 }
1048 # SemanticTypeVectorCollection;
1049 if( defined( $self->getSemanticTypeVectorCollection ) ) {
1050 my @assoclist = $self->getSemanticTypeVectorCollection;
1051 if( $#assoclist >= 0 ) {
1052 $result .= "<semanticTypeVectorCollection>";
1053 foreach my $node ($self->getSemanticTypeVectorCollection) {
1054 $result .= "<semanticTypeVectorCollection xsi:type=\"xsd:string\"> . $node . </semanticTypeVectorCollection>";
1055 }
1056 $result .= "</semanticTypeVectorCollection>";
1057 }
1058 }
1059 # TreeNode;
1060 if( defined( $self->getTreeNode ) ) {
1061 $result .= "<treeNode href=\"\#id" . $current_id . "\"/>";
1062 $worklist{$current_id} = $self->getTreeNode;
1063 $current_id ++;
1064 }
1065 # Vocabulary;
1066 if( defined( $self->getVocabulary ) ) {
1067 $result .= "<vocabulary href=\"\#id" . $current_id . "\"/>";
1068 $worklist{$current_id} = $self->getVocabulary;
1069 $current_id ++;
1070 }
1071 ## end association to XML ##
1072
1073 # add trailing close tags
1074 $result .= "</multiRef>";
1075
1076 return ($result, $current_id, %worklist);
1077 }
1078
1079 # parse a given webservice response xml, construct a list of DescLogicConcept objects
1080 # param: xml doc
1081 # returns: list of DescLogicConcept objects
1082 sub fromWebserviceXML {
1083 my $self = shift;
1084 my $parser = new XML::DOM::Parser;
1085 my $docnode = $parser->parse(shift);
1086 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
1087
1088 return $self->fromWSXMLListNode($root);
1089 }
1090
1091 # parse a given xml node, construct a list of DescLogicConcept objects
1092 # param: xml node
1093 # returns: a list of DescLogicConcept objects
1094 sub fromWSXMLListNode {
1095 my $self = shift;
1096 my $listNode = shift;
1097 my @obj_list = ();
1098
1099 # get all children for this node
1100 for my $childrenNode ($listNode->getChildNodes) {
1101 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1102 my $newobj = $self->fromWSXMLNode($childrenNode);
1103 push @obj_list, $newobj;
1104 }
1105 }
1106
1107 return @obj_list;
1108 }
1109
1110 # parse a given xml node, construct one DescLogicConcept object
1111 # param: xml node
1112 # returns: one DescLogicConcept object
1113 sub fromWSXMLNode {
1114 my $DescLogicConceptNode = $_[1];
1115
1116 ## begin ELEMENT_NODE children ##
1117 my $code;
1118 my $hasChildren;
1119 my $hasParents;
1120 my $isRetired;
1121 my $name;
1122 my $namespaceId;
1123 my $vocabularyName;
1124 my @association = ();
1125 my $edgeProperties;
1126 my @inverseAssociation = ();
1127 my @inverseRole = ();
1128 my @property = ();
1129 my @role = ();
1130 my @semanticTypeVector = ();
1131 my $treeNode;
1132 my $vocabulary;
1133 ## end ELEMENT_NODE children ##
1134
1135 # get all children for this node
1136 for my $childrenNode ($DescLogicConceptNode->getChildNodes) {
1137 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1138 if( ! defined($childrenNode->getFirstChild) ){ next; };
1139 my $textNode = $childrenNode->getFirstChild;
1140 ## begin iterate ELEMENT_NODE ##
1141 if (0) {
1142 # do nothing, just a place holder for "if" component
1143 }
1144 elsif ($childrenNode->getNodeName eq "code") {
1145 $code=$textNode->getNodeValue;
1146 }
1147 elsif ($childrenNode->getNodeName eq "hasChildren") {
1148 $hasChildren=$textNode->getNodeValue;
1149 }
1150 elsif ($childrenNode->getNodeName eq "hasParents") {
1151 $hasParents=$textNode->getNodeValue;
1152 }
1153 elsif ($childrenNode->getNodeName eq "isRetired") {
1154 $isRetired=$textNode->getNodeValue;
1155 }
1156 elsif ($childrenNode->getNodeName eq "name") {
1157 $name=$textNode->getNodeValue;
1158 }
1159 elsif ($childrenNode->getNodeName eq "namespaceId") {
1160 $namespaceId=$textNode->getNodeValue;
1161 }
1162 elsif ($childrenNode->getNodeName eq "vocabularyName") {
1163 $vocabularyName=$textNode->getNodeValue;
1164 }
1165 elsif ($childrenNode->getNodeName eq "associationCollection") {
1166 my $doi = new CaCORE::EVS::Association;
1167 @association=$doi->fromWSXMLListNode($childrenNode);
1168 }
1169 elsif ($childrenNode->getNodeName eq "edgeProperties") {
1170 my $doi = new CaCORE::EVS::EdgeProperties;
1171 $edgeProperties=$doi->fromWSXMLNode($childrenNode);
1172 }
1173 elsif ($childrenNode->getNodeName eq "inverseAssociationCollection") {
1174 my $doi = new CaCORE::EVS::Association;
1175 @inverseAssociation=$doi->fromWSXMLListNode($childrenNode);
1176 }
1177 elsif ($childrenNode->getNodeName eq "inverseRoleCollection") {
1178 my $doi = new CaCORE::EVS::Role;
1179 @inverseRole=$doi->fromWSXMLListNode($childrenNode);
1180 }
1181 elsif ($childrenNode->getNodeName eq "propertyCollection") {
1182 my $doi = new CaCORE::EVS::Property;
1183 @property=$doi->fromWSXMLListNode($childrenNode);
1184 }
1185 elsif ($childrenNode->getNodeName eq "roleCollection") {
1186 my $doi = new CaCORE::EVS::Role;
1187 @role=$doi->fromWSXMLListNode($childrenNode);
1188 }
1189 elsif ($childrenNode->getNodeName eq "semanticTypeVector") {
1190 for my $node ($childrenNode->getChildNodes) {
1191 if( $node->getNodeName eq "empty" ){ next; };
1192 if( ! defined($node->getFirstChild) ){ next; };
1193 my $txnode = $node->getFirstChild;
1194 push @semanticTypeVector, $txnode->getNodeValue;
1195 }
1196 }
1197 elsif ($childrenNode->getNodeName eq "treeNode") {
1198 my $doi = new CaCORE::EVS::TreeNode;
1199 $treeNode=$doi->fromWSXMLNode($childrenNode);
1200 }
1201 elsif ($childrenNode->getNodeName eq "vocabulary") {
1202 my $doi = new CaCORE::EVS::Vocabulary;
1203 $vocabulary=$doi->fromWSXMLNode($childrenNode);
1204 }
1205 ## end iterate ELEMENT_NODE ##
1206 }
1207 }
1208 my $newobj = new CaCORE::EVS::DescLogicConcept;
1209 ## begin set attr ##
1210 $newobj->setCode($code);
1211 $newobj->setHasChildren($hasChildren);
1212 $newobj->setHasParents($hasParents);
1213 $newobj->setIsRetired($isRetired);
1214 $newobj->setName($name);
1215 $newobj->setNamespaceId($namespaceId);
1216 $newobj->setVocabularyName($vocabularyName);
1217 $newobj->setAssociationCollection(@association);
1218 $newobj->setEdgeProperties($edgeProperties);
1219 $newobj->setInverseAssociationCollection(@inverseAssociation);
1220 $newobj->setInverseRoleCollection(@inverseRole);
1221 $newobj->setPropertyCollection(@property);
1222 $newobj->setRoleCollection(@role);
1223 $newobj->setSemanticTypeVectorCollection(@semanticTypeVector);
1224 $newobj->setTreeNode($treeNode);
1225 $newobj->setVocabulary($vocabulary);
1226 ## end set attr ##
1227
1228 return $newobj;
1229 }
1230
1231 ## begin getters and setters ##
1232
1233 sub getCode {
1234 my $self = shift;
1235 return $self->{code};
1236 }
1237  
1238 sub setCode {
1239 my $self = shift;
1240 $self->{code} = shift;
1241 }
1242  
1243 sub getHasChildren {
1244 my $self = shift;
1245 return $self->{hasChildren};
1246 }
1247  
1248 sub setHasChildren {
1249 my $self = shift;
1250 $self->{hasChildren} = shift;
1251 }
1252  
1253 sub getHasParents {
1254 my $self = shift;
1255 return $self->{hasParents};
1256 }
1257  
1258 sub setHasParents {
1259 my $self = shift;
1260 $self->{hasParents} = shift;
1261 }
1262  
1263 sub getIsRetired {
1264 my $self = shift;
1265 return $self->{isRetired};
1266 }
1267  
1268 sub setIsRetired {
1269 my $self = shift;
1270 $self->{isRetired} = shift;
1271 }
1272  
1273 sub getName {
1274 my $self = shift;
1275 return $self->{name};
1276 }
1277  
1278 sub setName {
1279 my $self = shift;
1280 $self->{name} = shift;
1281 }
1282  
1283 sub getNamespaceId {
1284 my $self = shift;
1285 return $self->{namespaceId};
1286 }
1287  
1288 sub setNamespaceId {
1289 my $self = shift;
1290 $self->{namespaceId} = shift;
1291 }
1292  
1293 sub getVocabularyName {
1294 my $self = shift;
1295 return $self->{vocabularyName};
1296 }
1297  
1298 sub setVocabularyName {
1299 my $self = shift;
1300 $self->{vocabularyName} = shift;
1301 }
1302  
1303 ## end getters and setters ##
1304
1305 ## begin bean association methods ##
1306
1307 sub getAssociationCollection {
1308 my $self = shift;
1309 if( defined($self->{association}) ) {
1310 return @{$self->{association}};
1311 } else {
1312 return ();
1313 }
1314 }
1315  
1316 sub setAssociationCollection {
1317 my ($self, @set) = @_;
1318 push @{$self->{association}}, @set;
1319 }
1320  
1321 sub getEdgeProperties {
1322 my $self = shift;
1323 return $self->{edgeProperties};
1324 }
1325  
1326 sub setEdgeProperties {
1327 my $self = shift;
1328 $self->{edgeProperties} = shift;
1329 }
1330  
1331 sub getInverseAssociationCollection {
1332 my $self = shift;
1333 if( defined($self->{inverseAssociation}) ) {
1334 return @{$self->{inverseAssociation}};
1335 } else {
1336 return ();
1337 }
1338 }
1339  
1340 sub setInverseAssociationCollection {
1341 my ($self, @set) = @_;
1342 push @{$self->{inverseAssociation}}, @set;
1343 }
1344  
1345 sub getInverseRoleCollection {
1346 my $self = shift;
1347 if( defined($self->{inverseRole}) ) {
1348 return @{$self->{inverseRole}};
1349 } else {
1350 return ();
1351 }
1352 }
1353  
1354 sub setInverseRoleCollection {
1355 my ($self, @set) = @_;
1356 push @{$self->{inverseRole}}, @set;
1357 }
1358  
1359 sub getPropertyCollection {
1360 my $self = shift;
1361 if( defined($self->{property}) ) {
1362 return @{$self->{property}};
1363 } else {
1364 return ();
1365 }
1366 }
1367  
1368 sub setPropertyCollection {
1369 my ($self, @set) = @_;
1370 push @{$self->{property}}, @set;
1371 }
1372  
1373 sub getRoleCollection {
1374 my $self = shift;
1375 if( defined($self->{role}) ) {
1376 return @{$self->{role}};
1377 } else {
1378 return ();
1379 }
1380 }
1381  
1382 sub setRoleCollection {
1383 my ($self, @set) = @_;
1384 push @{$self->{role}}, @set;
1385 }
1386  
1387 sub getSemanticTypeVectorCollection {
1388 my $self = shift;
1389 if( defined($self->{semanticTypeVector}) ) {
1390 return @{$self->{semanticTypeVector}};
1391 } else {
1392 return ();
1393 }
1394 }
1395  
1396 sub setSemanticTypeVectorCollection {
1397 my ($self, @set) = @_;
1398 push @{$self->{semanticTypeVector}}, @set;
1399 }
1400  
1401 sub getTreeNode {
1402 my $self = shift;
1403 return $self->{treeNode};
1404 }
1405  
1406 sub setTreeNode {
1407 my $self = shift;
1408 $self->{treeNode} = shift;
1409 }
1410  
1411 sub getVocabulary {
1412 my $self = shift;
1413 return $self->{vocabulary};
1414 }
1415  
1416 sub setVocabulary {
1417 my $self = shift;
1418 $self->{vocabulary} = shift;
1419 }
1420  
1421 ## end bean association methods ##
1422
1423 1;
1424 #end
1425 # ------------------------------------------------------------------------------------------
1426 package CaCORE::EVS::Silo;
1427
1428 use 5.005;
1429 #use strict;
1430 use warnings;
1431
1432 require Exporter;
1433
1434 use XML::DOM;
1435
1436 ## begin import objects ##
1437 use CaCORE::ApplicationService;
1438 ## end import objects ##
1439
1440
1441 @ISA = qw(CaCORE::DomainObjectI);
1442
1443 our %EXPORT_TAGS = ( 'all' => [ qw(
1444
1445 ) ] );
1446
1447 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
1448
1449 our @EXPORT = qw(
1450 );
1451
1452 # create an instance of the Silo object
1453 # returns: a Silo object
1454 sub new {
1455 my $class = shift;
1456 my $self = {};
1457 bless($self, $class);
1458 #print "new Silo\n";
1459 return $self;
1460 }
1461
1462 # Construct the specific section of the WSDL request corresponding
1463 # to this Silo intance
1464 # returns: XML in string format
1465 sub toWebserviceXML {
1466 my $self = shift;
1467 my $result = shift;
1468 my $assigned_id = shift;
1469 my $current_id = shift;
1470 my $l = shift;
1471 my %worklist = %$l;
1472
1473 # prefix portion of the xml
1474 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Silo\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
1475 my $tmpstr = "";
1476 $current_id ++;
1477
1478 ## begin attribute to XML ##
1479 # id;
1480 if( defined( $self->getId ) ) {
1481 $tmpstr = "<id xsi:type=\"xsd:int\">" . $self->getId . "</id>";
1482 } else {
1483 $tmpstr = "<id xsi:type=\"xsd:int\" xsi:nil=\"true\" />";
1484 }
1485 $result .= $tmpstr;
1486  
1487 # name;
1488 if( defined( $self->getName ) ) {
1489 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
1490 } else {
1491 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1492 }
1493 $result .= $tmpstr;
1494  
1495 ## end attribute to XML ##
1496
1497 ## begin association to XML ##
1498 ## end association to XML ##
1499
1500 # add trailing close tags
1501 $result .= "</multiRef>";
1502
1503 return ($result, $current_id, %worklist);
1504 }
1505
1506 # parse a given webservice response xml, construct a list of Silo objects
1507 # param: xml doc
1508 # returns: list of Silo objects
1509 sub fromWebserviceXML {
1510 my $self = shift;
1511 my $parser = new XML::DOM::Parser;
1512 my $docnode = $parser->parse(shift);
1513 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
1514
1515 return $self->fromWSXMLListNode($root);
1516 }
1517
1518 # parse a given xml node, construct a list of Silo objects
1519 # param: xml node
1520 # returns: a list of Silo objects
1521 sub fromWSXMLListNode {
1522 my $self = shift;
1523 my $listNode = shift;
1524 my @obj_list = ();
1525
1526 # get all children for this node
1527 for my $childrenNode ($listNode->getChildNodes) {
1528 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1529 my $newobj = $self->fromWSXMLNode($childrenNode);
1530 push @obj_list, $newobj;
1531 }
1532 }
1533
1534 return @obj_list;
1535 }
1536
1537 # parse a given xml node, construct one Silo object
1538 # param: xml node
1539 # returns: one Silo object
1540 sub fromWSXMLNode {
1541 my $SiloNode = $_[1];
1542
1543 ## begin ELEMENT_NODE children ##
1544 my $id;
1545 my $name;
1546 ## end ELEMENT_NODE children ##
1547
1548 # get all children for this node
1549 for my $childrenNode ($SiloNode->getChildNodes) {
1550 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1551 if( ! defined($childrenNode->getFirstChild) ){ next; };
1552 my $textNode = $childrenNode->getFirstChild;
1553 ## begin iterate ELEMENT_NODE ##
1554 if (0) {
1555 # do nothing, just a place holder for "if" component
1556 }
1557 elsif ($childrenNode->getNodeName eq "id") {
1558 $id=$textNode->getNodeValue;
1559 }
1560 elsif ($childrenNode->getNodeName eq "name") {
1561 $name=$textNode->getNodeValue;
1562 }
1563 ## end iterate ELEMENT_NODE ##
1564 }
1565 }
1566 my $newobj = new CaCORE::EVS::Silo;
1567 ## begin set attr ##
1568 $newobj->setId($id);
1569 $newobj->setName($name);
1570 ## end set attr ##
1571
1572 return $newobj;
1573 }
1574
1575 ## begin getters and setters ##
1576
1577 sub getId {
1578 my $self = shift;
1579 return $self->{id};
1580 }
1581  
1582 sub setId {
1583 my $self = shift;
1584 $self->{id} = shift;
1585 }
1586  
1587 sub getName {
1588 my $self = shift;
1589 return $self->{name};
1590 }
1591  
1592 sub setName {
1593 my $self = shift;
1594 $self->{name} = shift;
1595 }
1596  
1597 ## end getters and setters ##
1598
1599 ## begin bean association methods ##
1600
1601 ## end bean association methods ##
1602
1603 1;
1604 #end
1605 # ------------------------------------------------------------------------------------------
1606 package CaCORE::EVS::SemanticType;
1607
1608 use 5.005;
1609 #use strict;
1610 use warnings;
1611
1612 require Exporter;
1613
1614 use XML::DOM;
1615
1616 ## begin import objects ##
1617 use CaCORE::ApplicationService;
1618 ## end import objects ##
1619
1620
1621 @ISA = qw(CaCORE::DomainObjectI);
1622
1623 our %EXPORT_TAGS = ( 'all' => [ qw(
1624
1625 ) ] );
1626
1627 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
1628
1629 our @EXPORT = qw(
1630 );
1631
1632 # create an instance of the SemanticType object
1633 # returns: a SemanticType object
1634 sub new {
1635 my $class = shift;
1636 my $self = {};
1637 bless($self, $class);
1638 #print "new SemanticType\n";
1639 return $self;
1640 }
1641
1642 # Construct the specific section of the WSDL request corresponding
1643 # to this SemanticType intance
1644 # returns: XML in string format
1645 sub toWebserviceXML {
1646 my $self = shift;
1647 my $result = shift;
1648 my $assigned_id = shift;
1649 my $current_id = shift;
1650 my $l = shift;
1651 my %worklist = %$l;
1652
1653 # prefix portion of the xml
1654 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":SemanticType\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
1655 my $tmpstr = "";
1656 $current_id ++;
1657
1658 ## begin attribute to XML ##
1659 # id;
1660 if( defined( $self->getId ) ) {
1661 $tmpstr = "<id xsi:type=\"xsd:string\">" . $self->getId . "</id>";
1662 } else {
1663 $tmpstr = "<id xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1664 }
1665 $result .= $tmpstr;
1666  
1667 # name;
1668 if( defined( $self->getName ) ) {
1669 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
1670 } else {
1671 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1672 }
1673 $result .= $tmpstr;
1674  
1675 ## end attribute to XML ##
1676
1677 ## begin association to XML ##
1678 ## end association to XML ##
1679
1680 # add trailing close tags
1681 $result .= "</multiRef>";
1682
1683 return ($result, $current_id, %worklist);
1684 }
1685
1686 # parse a given webservice response xml, construct a list of SemanticType objects
1687 # param: xml doc
1688 # returns: list of SemanticType objects
1689 sub fromWebserviceXML {
1690 my $self = shift;
1691 my $parser = new XML::DOM::Parser;
1692 my $docnode = $parser->parse(shift);
1693 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
1694
1695 return $self->fromWSXMLListNode($root);
1696 }
1697
1698 # parse a given xml node, construct a list of SemanticType objects
1699 # param: xml node
1700 # returns: a list of SemanticType objects
1701 sub fromWSXMLListNode {
1702 my $self = shift;
1703 my $listNode = shift;
1704 my @obj_list = ();
1705
1706 # get all children for this node
1707 for my $childrenNode ($listNode->getChildNodes) {
1708 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1709 my $newobj = $self->fromWSXMLNode($childrenNode);
1710 push @obj_list, $newobj;
1711 }
1712 }
1713
1714 return @obj_list;
1715 }
1716
1717 # parse a given xml node, construct one SemanticType object
1718 # param: xml node
1719 # returns: one SemanticType object
1720 sub fromWSXMLNode {
1721 my $SemanticTypeNode = $_[1];
1722
1723 ## begin ELEMENT_NODE children ##
1724 my $id;
1725 my $name;
1726 ## end ELEMENT_NODE children ##
1727
1728 # get all children for this node
1729 for my $childrenNode ($SemanticTypeNode->getChildNodes) {
1730 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1731 if( ! defined($childrenNode->getFirstChild) ){ next; };
1732 my $textNode = $childrenNode->getFirstChild;
1733 ## begin iterate ELEMENT_NODE ##
1734 if (0) {
1735 # do nothing, just a place holder for "if" component
1736 }
1737 elsif ($childrenNode->getNodeName eq "id") {
1738 $id=$textNode->getNodeValue;
1739 }
1740 elsif ($childrenNode->getNodeName eq "name") {
1741 $name=$textNode->getNodeValue;
1742 }
1743 ## end iterate ELEMENT_NODE ##
1744 }
1745 }
1746 my $newobj = new CaCORE::EVS::SemanticType;
1747 ## begin set attr ##
1748 $newobj->setId($id);
1749 $newobj->setName($name);
1750 ## end set attr ##
1751
1752 return $newobj;
1753 }
1754
1755 ## begin getters and setters ##
1756
1757 sub getId {
1758 my $self = shift;
1759 return $self->{id};
1760 }
1761  
1762 sub setId {
1763 my $self = shift;
1764 $self->{id} = shift;
1765 }
1766  
1767 sub getName {
1768 my $self = shift;
1769 return $self->{name};
1770 }
1771  
1772 sub setName {
1773 my $self = shift;
1774 $self->{name} = shift;
1775 }
1776  
1777 ## end getters and setters ##
1778
1779 ## begin bean association methods ##
1780
1781 ## end bean association methods ##
1782
1783 1;
1784 #end
1785 # ------------------------------------------------------------------------------------------
1786 package CaCORE::EVS::MetaThesaurusConcept;
1787
1788 use 5.005;
1789 #use strict;
1790 use warnings;
1791
1792 require Exporter;
1793
1794 use XML::DOM;
1795
1796 ## begin import objects ##
1797 use CaCORE::ApplicationService;
1798 ## end import objects ##
1799
1800
1801 @ISA = qw(CaCORE::DomainObjectI);
1802
1803 our %EXPORT_TAGS = ( 'all' => [ qw(
1804
1805 ) ] );
1806
1807 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
1808
1809 our @EXPORT = qw(
1810 );
1811
1812 # create an instance of the MetaThesaurusConcept object
1813 # returns: a MetaThesaurusConcept object
1814 sub new {
1815 my $class = shift;
1816 my $self = {};
1817 bless($self, $class);
1818 #print "new MetaThesaurusConcept\n";
1819 return $self;
1820 }
1821
1822 # Construct the specific section of the WSDL request corresponding
1823 # to this MetaThesaurusConcept intance
1824 # returns: XML in string format
1825 sub toWebserviceXML {
1826 my $self = shift;
1827 my $result = shift;
1828 my $assigned_id = shift;
1829 my $current_id = shift;
1830 my $l = shift;
1831 my %worklist = %$l;
1832
1833 # prefix portion of the xml
1834 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":MetaThesaurusConcept\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
1835 my $tmpstr = "";
1836 $current_id ++;
1837
1838 ## begin attribute to XML ##
1839 # cui;
1840 if( defined( $self->getCui ) ) {
1841 $tmpstr = "<cui xsi:type=\"xsd:string\">" . $self->getCui . "</cui>";
1842 } else {
1843 $tmpstr = "<cui xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1844 }
1845 $result .= $tmpstr;
1846  
1847 # name;
1848 if( defined( $self->getName ) ) {
1849 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
1850 } else {
1851 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1852 }
1853 $result .= $tmpstr;
1854  
1855 ## end attribute to XML ##
1856
1857 ## begin association to XML ##
1858 # AtomCollection;
1859 if( defined( $self->getAtomCollection ) ) {
1860 my @assoclist = $self->getAtomCollection;
1861 my $listsize = $#assoclist + 1;
1862 $result .= "<atomCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1863 foreach my $node ($self->getAtomCollection) {
1864 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1865 $worklist{$current_id} = $node;
1866 $current_id ++;
1867 }
1868 $result .= "</atomCollection>";
1869 }
1870 # DefinitionCollection;
1871 if( defined( $self->getDefinitionCollection ) ) {
1872 my @assoclist = $self->getDefinitionCollection;
1873 my $listsize = $#assoclist + 1;
1874 $result .= "<definitionCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1875 foreach my $node ($self->getDefinitionCollection) {
1876 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1877 $worklist{$current_id} = $node;
1878 $current_id ++;
1879 }
1880 $result .= "</definitionCollection>";
1881 }
1882 # SemanticTypeCollection;
1883 if( defined( $self->getSemanticTypeCollection ) ) {
1884 my @assoclist = $self->getSemanticTypeCollection;
1885 my $listsize = $#assoclist + 1;
1886 $result .= "<semanticTypeCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1887 foreach my $node ($self->getSemanticTypeCollection) {
1888 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1889 $worklist{$current_id} = $node;
1890 $current_id ++;
1891 }
1892 $result .= "</semanticTypeCollection>";
1893 }
1894 # SourceCollection;
1895 if( defined( $self->getSourceCollection ) ) {
1896 my @assoclist = $self->getSourceCollection;
1897 my $listsize = $#assoclist + 1;
1898 $result .= "<sourceCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
1899 foreach my $node ($self->getSourceCollection) {
1900 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
1901 $worklist{$current_id} = $node;
1902 $current_id ++;
1903 }
1904 $result .= "</sourceCollection>";
1905 }
1906 # SynonymCollection;
1907 if( defined( $self->getSynonymCollection ) ) {
1908 my @assoclist = $self->getSynonymCollection;
1909 if( $#assoclist >= 0 ) {
1910 $result .= "<synonymCollection>";
1911 foreach my $node ($self->getSynonymCollection) {
1912 $result .= "<synonymCollection xsi:type=\"xsd:string\"> . $node . </synonymCollection>";
1913 }
1914 $result .= "</synonymCollection>";
1915 }
1916 }
1917 ## end association to XML ##
1918
1919 # add trailing close tags
1920 $result .= "</multiRef>";
1921
1922 return ($result, $current_id, %worklist);
1923 }
1924
1925 # parse a given webservice response xml, construct a list of MetaThesaurusConcept objects
1926 # param: xml doc
1927 # returns: list of MetaThesaurusConcept objects
1928 sub fromWebserviceXML {
1929 my $self = shift;
1930 my $parser = new XML::DOM::Parser;
1931 my $docnode = $parser->parse(shift);
1932 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
1933
1934 return $self->fromWSXMLListNode($root);
1935 }
1936
1937 # parse a given xml node, construct a list of MetaThesaurusConcept objects
1938 # param: xml node
1939 # returns: a list of MetaThesaurusConcept objects
1940 sub fromWSXMLListNode {
1941 my $self = shift;
1942 my $listNode = shift;
1943 my @obj_list = ();
1944
1945 # get all children for this node
1946 for my $childrenNode ($listNode->getChildNodes) {
1947 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1948 my $newobj = $self->fromWSXMLNode($childrenNode);
1949 push @obj_list, $newobj;
1950 }
1951 }
1952
1953 return @obj_list;
1954 }
1955
1956 # parse a given xml node, construct one MetaThesaurusConcept object
1957 # param: xml node
1958 # returns: one MetaThesaurusConcept object
1959 sub fromWSXMLNode {
1960 my $MetaThesaurusConceptNode = $_[1];
1961
1962 ## begin ELEMENT_NODE children ##
1963 my $cui;
1964 my $name;
1965 my @atom = ();
1966 my @definition = ();
1967 my @semanticType = ();
1968 my @source = ();
1969 my @synonym = ();
1970 ## end ELEMENT_NODE children ##
1971
1972 # get all children for this node
1973 for my $childrenNode ($MetaThesaurusConceptNode->getChildNodes) {
1974 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1975 if( ! defined($childrenNode->getFirstChild) ){ next; };
1976 my $textNode = $childrenNode->getFirstChild;
1977 ## begin iterate ELEMENT_NODE ##
1978 if (0) {
1979 # do nothing, just a place holder for "if" component
1980 }
1981 elsif ($childrenNode->getNodeName eq "cui") {
1982 $cui=$textNode->getNodeValue;
1983 }
1984 elsif ($childrenNode->getNodeName eq "name") {
1985 $name=$textNode->getNodeValue;
1986 }
1987 elsif ($childrenNode->getNodeName eq "atomCollection") {
1988 my $doi = new CaCORE::EVS::Atom;
1989 @atom=$doi->fromWSXMLListNode($childrenNode);
1990 }
1991 elsif ($childrenNode->getNodeName eq "definitionCollection") {
1992 my $doi = new CaCORE::EVS::Definition;
1993 @definition=$doi->fromWSXMLListNode($childrenNode);
1994 }
1995 elsif ($childrenNode->getNodeName eq "semanticTypeCollection") {
1996 my $doi = new CaCORE::EVS::SemanticType;
1997 @semanticType=$doi->fromWSXMLListNode($childrenNode);
1998 }
1999 elsif ($childrenNode->getNodeName eq "sourceCollection") {
2000 my $doi = new CaCORE::EVS::Source;
2001 @source=$doi->fromWSXMLListNode($childrenNode);
2002 }
2003 elsif ($childrenNode->getNodeName eq "synonymCollection") {
2004 for my $node ($childrenNode->getChildNodes) {
2005 if( $node->getNodeName eq "empty" ){ next; };
2006 if( ! defined($node->getFirstChild) ){ next; };
2007 my $txnode = $node->getFirstChild;
2008 push @synonym, $txnode->getNodeValue;
2009 }
2010 }
2011 ## end iterate ELEMENT_NODE ##
2012 }
2013 }
2014 my $newobj = new CaCORE::EVS::MetaThesaurusConcept;
2015 ## begin set attr ##
2016 $newobj->setCui($cui);
2017 $newobj->setName($name);
2018 $newobj->setAtomCollection(@atom);
2019 $newobj->setDefinitionCollection(@definition);
2020 $newobj->setSemanticTypeCollection(@semanticType);
2021 $newobj->setSourceCollection(@source);
2022 $newobj->setSynonymCollection(@synonym);
2023 ## end set attr ##
2024
2025 return $newobj;
2026 }
2027
2028 ## begin getters and setters ##
2029
2030 sub getCui {
2031 my $self = shift;
2032 return $self->{cui};
2033 }
2034  
2035 sub setCui {
2036 my $self = shift;
2037 $self->{cui} = shift;
2038 }
2039  
2040 sub getName {
2041 my $self = shift;
2042 return $self->{name};
2043 }
2044  
2045 sub setName {
2046 my $self = shift;
2047 $self->{name} = shift;
2048 }
2049  
2050 ## end getters and setters ##
2051
2052 ## begin bean association methods ##
2053
2054 sub getAtomCollection {
2055 my $self = shift;
2056 if( defined($self->{atom}) ) {
2057 return @{$self->{atom}};
2058 } else {
2059 return ();
2060 }
2061 }
2062  
2063 sub setAtomCollection {
2064 my ($self, @set) = @_;
2065 push @{$self->{atom}}, @set;
2066 }
2067  
2068 sub getDefinitionCollection {
2069 my $self = shift;
2070 if( defined($self->{definition}) ) {
2071 return @{$self->{definition}};
2072 } else {
2073 return ();
2074 }
2075 }
2076  
2077 sub setDefinitionCollection {
2078 my ($self, @set) = @_;
2079 push @{$self->{definition}}, @set;
2080 }
2081  
2082 sub getSemanticTypeCollection {
2083 my $self = shift;
2084 if( defined($self->{semanticType}) ) {
2085 return @{$self->{semanticType}};
2086 } else {
2087 return ();
2088 }
2089 }
2090  
2091 sub setSemanticTypeCollection {
2092 my ($self, @set) = @_;
2093 push @{$self->{semanticType}}, @set;
2094 }
2095  
2096 sub getSourceCollection {
2097 my $self = shift;
2098 if( defined($self->{source}) ) {
2099 return @{$self->{source}};
2100 } else {
2101 return ();
2102 }
2103 }
2104  
2105 sub setSourceCollection {
2106 my ($self, @set) = @_;
2107 push @{$self->{source}}, @set;
2108 }
2109  
2110 sub getSynonymCollection {
2111 my $self = shift;
2112 if( defined($self->{synonym}) ) {
2113 return @{$self->{synonym}};
2114 } else {
2115 return ();
2116 }
2117 }
2118  
2119 sub setSynonymCollection {
2120 my ($self, @set) = @_;
2121 push @{$self->{synonym}}, @set;
2122 }
2123  
2124 ## end bean association methods ##
2125
2126 1;
2127 #end
2128 # ------------------------------------------------------------------------------------------
2129 package CaCORE::EVS::AttributeSetDescriptor;
2130
2131 use 5.005;
2132 #use strict;
2133 use warnings;
2134
2135 require Exporter;
2136
2137 use XML::DOM;
2138
2139 ## begin import objects ##
2140 use CaCORE::ApplicationService;
2141 ## end import objects ##
2142
2143
2144 @ISA = qw(CaCORE::DomainObjectI);
2145
2146 our %EXPORT_TAGS = ( 'all' => [ qw(
2147
2148 ) ] );
2149
2150 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2151
2152 our @EXPORT = qw(
2153 );
2154
2155 # create an instance of the AttributeSetDescriptor object
2156 # returns: a AttributeSetDescriptor object
2157 sub new {
2158 my $class = shift;
2159 my $self = {};
2160 bless($self, $class);
2161 #print "new AttributeSetDescriptor\n";
2162 return $self;
2163 }
2164
2165 # Construct the specific section of the WSDL request corresponding
2166 # to this AttributeSetDescriptor intance
2167 # returns: XML in string format
2168 sub toWebserviceXML {
2169 my $self = shift;
2170 my $result = shift;
2171 my $assigned_id = shift;
2172 my $current_id = shift;
2173 my $l = shift;
2174 my %worklist = %$l;
2175
2176 # prefix portion of the xml
2177 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":AttributeSetDescriptor\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
2178 my $tmpstr = "";
2179 $current_id ++;
2180
2181 ## begin attribute to XML ##
2182 # name;
2183 if( defined( $self->getName ) ) {
2184 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
2185 } else {
2186 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2187 }
2188 $result .= $tmpstr;
2189  
2190 ## end attribute to XML ##
2191
2192 ## begin association to XML ##
2193 # PropertyCollection;
2194 if( defined( $self->getPropertyCollection ) ) {
2195 my @assoclist = $self->getPropertyCollection;
2196 my $listsize = $#assoclist + 1;
2197 $result .= "<propertyCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
2198 foreach my $node ($self->getPropertyCollection) {
2199 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
2200 $worklist{$current_id} = $node;
2201 $current_id ++;
2202 }
2203 $result .= "</propertyCollection>";
2204 }
2205 # RoleCollection;
2206 if( defined( $self->getRoleCollection ) ) {
2207 my @assoclist = $self->getRoleCollection;
2208 my $listsize = $#assoclist + 1;
2209 $result .= "<roleCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
2210 foreach my $node ($self->getRoleCollection) {
2211 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
2212 $worklist{$current_id} = $node;
2213 $current_id ++;
2214 }
2215 $result .= "</roleCollection>";
2216 }
2217 ## end association to XML ##
2218
2219 # add trailing close tags
2220 $result .= "</multiRef>";
2221
2222 return ($result, $current_id, %worklist);
2223 }
2224
2225 # parse a given webservice response xml, construct a list of AttributeSetDescriptor objects
2226 # param: xml doc
2227 # returns: list of AttributeSetDescriptor objects
2228 sub fromWebserviceXML {
2229 my $self = shift;
2230 my $parser = new XML::DOM::Parser;
2231 my $docnode = $parser->parse(shift);
2232 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2233
2234 return $self->fromWSXMLListNode($root);
2235 }
2236
2237 # parse a given xml node, construct a list of AttributeSetDescriptor objects
2238 # param: xml node
2239 # returns: a list of AttributeSetDescriptor objects
2240 sub fromWSXMLListNode {
2241 my $self = shift;
2242 my $listNode = shift;
2243 my @obj_list = ();
2244
2245 # get all children for this node
2246 for my $childrenNode ($listNode->getChildNodes) {
2247 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2248 my $newobj = $self->fromWSXMLNode($childrenNode);
2249 push @obj_list, $newobj;
2250 }
2251 }
2252
2253 return @obj_list;
2254 }
2255
2256 # parse a given xml node, construct one AttributeSetDescriptor object
2257 # param: xml node
2258 # returns: one AttributeSetDescriptor object
2259 sub fromWSXMLNode {
2260 my $AttributeSetDescriptorNode = $_[1];
2261
2262 ## begin ELEMENT_NODE children ##
2263 my $name;
2264 my @property = ();
2265 my @role = ();
2266 ## end ELEMENT_NODE children ##
2267
2268 # get all children for this node
2269 for my $childrenNode ($AttributeSetDescriptorNode->getChildNodes) {
2270 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2271 if( ! defined($childrenNode->getFirstChild) ){ next; };
2272 my $textNode = $childrenNode->getFirstChild;
2273 ## begin iterate ELEMENT_NODE ##
2274 if (0) {
2275 # do nothing, just a place holder for "if" component
2276 }
2277 elsif ($childrenNode->getNodeName eq "name") {
2278 $name=$textNode->getNodeValue;
2279 }
2280 elsif ($childrenNode->getNodeName eq "propertyCollection") {
2281 my $doi = new CaCORE::EVS::Property;
2282 @property=$doi->fromWSXMLListNode($childrenNode);
2283 }
2284 elsif ($childrenNode->getNodeName eq "roleCollection") {
2285 my $doi = new CaCORE::EVS::Role;
2286 @role=$doi->fromWSXMLListNode($childrenNode);
2287 }
2288 ## end iterate ELEMENT_NODE ##
2289 }
2290 }
2291 my $newobj = new CaCORE::EVS::AttributeSetDescriptor;
2292 ## begin set attr ##
2293 $newobj->setName($name);
2294 $newobj->setPropertyCollection(@property);
2295 $newobj->setRoleCollection(@role);
2296 ## end set attr ##
2297
2298 return $newobj;
2299 }
2300
2301 ## begin getters and setters ##
2302
2303 sub getName {
2304 my $self = shift;
2305 return $self->{name};
2306 }
2307  
2308 sub setName {
2309 my $self = shift;
2310 $self->{name} = shift;
2311 }
2312  
2313 ## end getters and setters ##
2314
2315 ## begin bean association methods ##
2316
2317 sub getPropertyCollection {
2318 my $self = shift;
2319 if( defined($self->{property}) ) {
2320 return @{$self->{property}};
2321 } else {
2322 return ();
2323 }
2324 }
2325  
2326 sub setPropertyCollection {
2327 my ($self, @set) = @_;
2328 push @{$self->{property}}, @set;
2329 }
2330  
2331 sub getRoleCollection {
2332 my $self = shift;
2333 if( defined($self->{role}) ) {
2334 return @{$self->{role}};
2335 } else {
2336 return ();
2337 }
2338 }
2339  
2340 sub setRoleCollection {
2341 my ($self, @set) = @_;
2342 push @{$self->{role}}, @set;
2343 }
2344  
2345 ## end bean association methods ##
2346
2347 1;
2348 #end
2349 # ------------------------------------------------------------------------------------------
2350 package CaCORE::EVS::Source;
2351
2352 use 5.005;
2353 #use strict;
2354 use warnings;
2355
2356 require Exporter;
2357
2358 use XML::DOM;
2359
2360 ## begin import objects ##
2361 use CaCORE::ApplicationService;
2362 ## end import objects ##
2363
2364
2365 @ISA = qw(CaCORE::DomainObjectI);
2366
2367 our %EXPORT_TAGS = ( 'all' => [ qw(
2368
2369 ) ] );
2370
2371 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2372
2373 our @EXPORT = qw(
2374 );
2375
2376 # create an instance of the Source object
2377 # returns: a Source object
2378 sub new {
2379 my $class = shift;
2380 my $self = {};
2381 bless($self, $class);
2382 #print "new Source\n";
2383 return $self;
2384 }
2385
2386 # Construct the specific section of the WSDL request corresponding
2387 # to this Source intance
2388 # returns: XML in string format
2389 sub toWebserviceXML {
2390 my $self = shift;
2391 my $result = shift;
2392 my $assigned_id = shift;
2393 my $current_id = shift;
2394 my $l = shift;
2395 my %worklist = %$l;
2396
2397 # prefix portion of the xml
2398 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Source\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
2399 my $tmpstr = "";
2400 $current_id ++;
2401
2402 ## begin attribute to XML ##
2403 # abbreviation;
2404 if( defined( $self->getAbbreviation ) ) {
2405 $tmpstr = "<abbreviation xsi:type=\"xsd:string\">" . $self->getAbbreviation . "</abbreviation>";
2406 } else {
2407 $tmpstr = "<abbreviation xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2408 }
2409 $result .= $tmpstr;
2410  
2411 # code;
2412 if( defined( $self->getCode ) ) {
2413 $tmpstr = "<code xsi:type=\"xsd:string\">" . $self->getCode . "</code>";
2414 } else {
2415 $tmpstr = "<code xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2416 }
2417 $result .= $tmpstr;
2418  
2419 # description;
2420 if( defined( $self->getDescription ) ) {
2421 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
2422 } else {
2423 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2424 }
2425 $result .= $tmpstr;
2426  
2427 ## end attribute to XML ##
2428
2429 ## begin association to XML ##
2430 ## end association to XML ##
2431
2432 # add trailing close tags
2433 $result .= "</multiRef>";
2434
2435 return ($result, $current_id, %worklist);
2436 }
2437
2438 # parse a given webservice response xml, construct a list of Source objects
2439 # param: xml doc
2440 # returns: list of Source objects
2441 sub fromWebserviceXML {
2442 my $self = shift;
2443 my $parser = new XML::DOM::Parser;
2444 my $docnode = $parser->parse(shift);
2445 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2446
2447 return $self->fromWSXMLListNode($root);
2448 }
2449
2450 # parse a given xml node, construct a list of Source objects
2451 # param: xml node
2452 # returns: a list of Source objects
2453 sub fromWSXMLListNode {
2454 my $self = shift;
2455 my $listNode = shift;
2456 my @obj_list = ();
2457
2458 # get all children for this node
2459 for my $childrenNode ($listNode->getChildNodes) {
2460 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2461 my $newobj = $self->fromWSXMLNode($childrenNode);
2462 push @obj_list, $newobj;
2463 }
2464 }
2465
2466 return @obj_list;
2467 }
2468
2469 # parse a given xml node, construct one Source object
2470 # param: xml node
2471 # returns: one Source object
2472 sub fromWSXMLNode {
2473 my $SourceNode = $_[1];
2474
2475 ## begin ELEMENT_NODE children ##
2476 my $abbreviation;
2477 my $code;
2478 my $description;
2479 ## end ELEMENT_NODE children ##
2480
2481 # get all children for this node
2482 for my $childrenNode ($SourceNode->getChildNodes) {
2483 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2484 if( ! defined($childrenNode->getFirstChild) ){ next; };
2485 my $textNode = $childrenNode->getFirstChild;
2486 ## begin iterate ELEMENT_NODE ##
2487 if (0) {
2488 # do nothing, just a place holder for "if" component
2489 }
2490 elsif ($childrenNode->getNodeName eq "abbreviation") {
2491 $abbreviation=$textNode->getNodeValue;
2492 }
2493 elsif ($childrenNode->getNodeName eq "code") {
2494 $code=$textNode->getNodeValue;
2495 }
2496 elsif ($childrenNode->getNodeName eq "description") {
2497 $description=$textNode->getNodeValue;
2498 }
2499 ## end iterate ELEMENT_NODE ##
2500 }
2501 }
2502 my $newobj = new CaCORE::EVS::Source;
2503 ## begin set attr ##
2504 $newobj->setAbbreviation($abbreviation);
2505 $newobj->setCode($code);
2506 $newobj->setDescription($description);
2507 ## end set attr ##
2508
2509 return $newobj;
2510 }
2511
2512 ## begin getters and setters ##
2513
2514 sub getAbbreviation {
2515 my $self = shift;
2516 return $self->{abbreviation};
2517 }
2518  
2519 sub setAbbreviation {
2520 my $self = shift;
2521 $self->{abbreviation} = shift;
2522 }
2523  
2524 sub getCode {
2525 my $self = shift;
2526 return $self->{code};
2527 }
2528  
2529 sub setCode {
2530 my $self = shift;
2531 $self->{code} = shift;
2532 }
2533  
2534 sub getDescription {
2535 my $self = shift;
2536 return $self->{description};
2537 }
2538  
2539 sub setDescription {
2540 my $self = shift;
2541 $self->{description} = shift;
2542 }
2543  
2544 ## end getters and setters ##
2545
2546 ## begin bean association methods ##
2547
2548 ## end bean association methods ##
2549
2550 1;
2551 #end
2552 # ------------------------------------------------------------------------------------------
2553 package CaCORE::EVS::Definition;
2554
2555 use 5.005;
2556 #use strict;
2557 use warnings;
2558
2559 require Exporter;
2560
2561 use XML::DOM;
2562
2563 ## begin import objects ##
2564 use CaCORE::ApplicationService;
2565 ## end import objects ##
2566
2567
2568 @ISA = qw(CaCORE::DomainObjectI);
2569
2570 our %EXPORT_TAGS = ( 'all' => [ qw(
2571
2572 ) ] );
2573
2574 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2575
2576 our @EXPORT = qw(
2577 );
2578
2579 # create an instance of the Definition object
2580 # returns: a Definition object
2581 sub new {
2582 my $class = shift;
2583 my $self = {};
2584 bless($self, $class);
2585 #print "new Definition\n";
2586 return $self;
2587 }
2588
2589 # Construct the specific section of the WSDL request corresponding
2590 # to this Definition intance
2591 # returns: XML in string format
2592 sub toWebserviceXML {
2593 my $self = shift;
2594 my $result = shift;
2595 my $assigned_id = shift;
2596 my $current_id = shift;
2597 my $l = shift;
2598 my %worklist = %$l;
2599
2600 # prefix portion of the xml
2601 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Definition\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
2602 my $tmpstr = "";
2603 $current_id ++;
2604
2605 ## begin attribute to XML ##
2606 # definition;
2607 if( defined( $self->getDefinition ) ) {
2608 $tmpstr = "<definition xsi:type=\"xsd:string\">" . $self->getDefinition . "</definition>";
2609 } else {
2610 $tmpstr = "<definition xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2611 }
2612 $result .= $tmpstr;
2613  
2614 ## end attribute to XML ##
2615
2616 ## begin association to XML ##
2617 # Source;
2618 if( defined( $self->getSource ) ) {
2619 $result .= "<source href=\"\#id" . $current_id . "\"/>";
2620 $worklist{$current_id} = $self->getSource;
2621 $current_id ++;
2622 }
2623 ## end association to XML ##
2624
2625 # add trailing close tags
2626 $result .= "</multiRef>";
2627
2628 return ($result, $current_id, %worklist);
2629 }
2630
2631 # parse a given webservice response xml, construct a list of Definition objects
2632 # param: xml doc
2633 # returns: list of Definition objects
2634 sub fromWebserviceXML {
2635 my $self = shift;
2636 my $parser = new XML::DOM::Parser;
2637 my $docnode = $parser->parse(shift);
2638 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2639
2640 return $self->fromWSXMLListNode($root);
2641 }
2642
2643 # parse a given xml node, construct a list of Definition objects
2644 # param: xml node
2645 # returns: a list of Definition objects
2646 sub fromWSXMLListNode {
2647 my $self = shift;
2648 my $listNode = shift;
2649 my @obj_list = ();
2650
2651 # get all children for this node
2652 for my $childrenNode ($listNode->getChildNodes) {
2653 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2654 my $newobj = $self->fromWSXMLNode($childrenNode);
2655 push @obj_list, $newobj;
2656 }
2657 }
2658
2659 return @obj_list;
2660 }
2661
2662 # parse a given xml node, construct one Definition object
2663 # param: xml node
2664 # returns: one Definition object
2665 sub fromWSXMLNode {
2666 my $DefinitionNode = $_[1];
2667
2668 ## begin ELEMENT_NODE children ##
2669 my $definition;
2670 my $source;
2671 ## end ELEMENT_NODE children ##
2672
2673 # get all children for this node
2674 for my $childrenNode ($DefinitionNode->getChildNodes) {
2675 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2676 if( ! defined($childrenNode->getFirstChild) ){ next; };
2677 my $textNode = $childrenNode->getFirstChild;
2678 ## begin iterate ELEMENT_NODE ##
2679 if (0) {
2680 # do nothing, just a place holder for "if" component
2681 }
2682 elsif ($childrenNode->getNodeName eq "definition") {
2683 $definition=$textNode->getNodeValue;
2684 }
2685 elsif ($childrenNode->getNodeName eq "source") {
2686 my $doi = new CaCORE::EVS::Source;
2687 $source=$doi->fromWSXMLNode($childrenNode);
2688 }
2689 ## end iterate ELEMENT_NODE ##
2690 }
2691 }
2692 my $newobj = new CaCORE::EVS::Definition;
2693 ## begin set attr ##
2694 $newobj->setDefinition($definition);
2695 $newobj->setSource($source);
2696 ## end set attr ##
2697
2698 return $newobj;
2699 }
2700
2701 ## begin getters and setters ##
2702
2703 sub getDefinition {
2704 my $self = shift;
2705 return $self->{definition};
2706 }
2707  
2708 sub setDefinition {
2709 my $self = shift;
2710 $self->{definition} = shift;
2711 }
2712  
2713 ## end getters and setters ##
2714
2715 ## begin bean association methods ##
2716
2717 sub getSource {
2718 my $self = shift;
2719 return $self->{source};
2720 }
2721  
2722 sub setSource {
2723 my $self = shift;
2724 $self->{source} = shift;
2725 }
2726  
2727 ## end bean association methods ##
2728
2729 1;
2730 #end
2731 # ------------------------------------------------------------------------------------------
2732 package CaCORE::EVS::Property;
2733
2734 use 5.005;
2735 #use strict;
2736 use warnings;
2737
2738 require Exporter;
2739
2740 use XML::DOM;
2741
2742 ## begin import objects ##
2743 use CaCORE::ApplicationService;
2744 ## end import objects ##
2745
2746
2747 @ISA = qw(CaCORE::DomainObjectI);
2748
2749 our %EXPORT_TAGS = ( 'all' => [ qw(
2750
2751 ) ] );
2752
2753 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2754
2755 our @EXPORT = qw(
2756 );
2757
2758 # create an instance of the Property object
2759 # returns: a Property object
2760 sub new {
2761 my $class = shift;
2762 my $self = {};
2763 bless($self, $class);
2764 #print "new Property\n";
2765 return $self;
2766 }
2767
2768 # Construct the specific section of the WSDL request corresponding
2769 # to this Property intance
2770 # returns: XML in string format
2771 sub toWebserviceXML {
2772 my $self = shift;
2773 my $result = shift;
2774 my $assigned_id = shift;
2775 my $current_id = shift;
2776 my $l = shift;
2777 my %worklist = %$l;
2778
2779 # prefix portion of the xml
2780 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Property\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
2781 my $tmpstr = "";
2782 $current_id ++;
2783
2784 ## begin attribute to XML ##
2785 # name;
2786 if( defined( $self->getName ) ) {
2787 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
2788 } else {
2789 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2790 }
2791 $result .= $tmpstr;
2792  
2793 # value;
2794 if( defined( $self->getValue ) ) {
2795 $tmpstr = "<value xsi:type=\"xsd:string\">" . $self->getValue . "</value>";
2796 } else {
2797 $tmpstr = "<value xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2798 }
2799 $result .= $tmpstr;
2800  
2801 ## end attribute to XML ##
2802
2803 ## begin association to XML ##
2804 # QualifierCollection;
2805 if( defined( $self->getQualifierCollection ) ) {
2806 my @assoclist = $self->getQualifierCollection;
2807 my $listsize = $#assoclist + 1;
2808 $result .= "<qualifierCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
2809 foreach my $node ($self->getQualifierCollection) {
2810 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
2811 $worklist{$current_id} = $node;
2812 $current_id ++;
2813 }
2814 $result .= "</qualifierCollection>";
2815 }
2816 ## end association to XML ##
2817
2818 # add trailing close tags
2819 $result .= "</multiRef>";
2820
2821 return ($result, $current_id, %worklist);
2822 }
2823
2824 # parse a given webservice response xml, construct a list of Property objects
2825 # param: xml doc
2826 # returns: list of Property objects
2827 sub fromWebserviceXML {
2828 my $self = shift;
2829 my $parser = new XML::DOM::Parser;
2830 my $docnode = $parser->parse(shift);
2831 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2832
2833 return $self->fromWSXMLListNode($root);
2834 }
2835
2836 # parse a given xml node, construct a list of Property objects
2837 # param: xml node
2838 # returns: a list of Property objects
2839 sub fromWSXMLListNode {
2840 my $self = shift;
2841 my $listNode = shift;
2842 my @obj_list = ();
2843
2844 # get all children for this node
2845 for my $childrenNode ($listNode->getChildNodes) {
2846 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2847 my $newobj = $self->fromWSXMLNode($childrenNode);
2848 push @obj_list, $newobj;
2849 }
2850 }
2851
2852 return @obj_list;
2853 }
2854
2855 # parse a given xml node, construct one Property object
2856 # param: xml node
2857 # returns: one Property object
2858 sub fromWSXMLNode {
2859 my $PropertyNode = $_[1];
2860
2861 ## begin ELEMENT_NODE children ##
2862 my $name;
2863 my $value;
2864 my @qualifier = ();
2865 ## end ELEMENT_NODE children ##
2866
2867 # get all children for this node
2868 for my $childrenNode ($PropertyNode->getChildNodes) {
2869 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2870 if( ! defined($childrenNode->getFirstChild) ){ next; };
2871 my $textNode = $childrenNode->getFirstChild;
2872 ## begin iterate ELEMENT_NODE ##
2873 if (0) {
2874 # do nothing, just a place holder for "if" component
2875 }
2876 elsif ($childrenNode->getNodeName eq "name") {
2877 $name=$textNode->getNodeValue;
2878 }
2879 elsif ($childrenNode->getNodeName eq "value") {
2880 $value=$textNode->getNodeValue;
2881 }
2882 elsif ($childrenNode->getNodeName eq "qualifierCollection") {
2883 my $doi = new CaCORE::EVS::Qualifier;
2884 @qualifier=$doi->fromWSXMLListNode($childrenNode);
2885 }
2886 ## end iterate ELEMENT_NODE ##
2887 }
2888 }
2889 my $newobj = new CaCORE::EVS::Property;
2890 ## begin set attr ##
2891 $newobj->setName($name);
2892 $newobj->setValue($value);
2893 $newobj->setQualifierCollection(@qualifier);
2894 ## end set attr ##
2895
2896 return $newobj;
2897 }
2898
2899 ## begin getters and setters ##
2900
2901 sub getName {
2902 my $self = shift;
2903 return $self->{name};
2904 }
2905  
2906 sub setName {
2907 my $self = shift;
2908 $self->{name} = shift;
2909 }
2910  
2911 sub getValue {
2912 my $self = shift;
2913 return $self->{value};
2914 }
2915  
2916 sub setValue {
2917 my $self = shift;
2918 $self->{value} = shift;
2919 }
2920  
2921 ## end getters and setters ##
2922
2923 ## begin bean association methods ##
2924
2925 sub getQualifierCollection {
2926 my $self = shift;
2927 if( defined($self->{qualifier}) ) {
2928 return @{$self->{qualifier}};
2929 } else {
2930 return ();
2931 }
2932 }
2933  
2934 sub setQualifierCollection {
2935 my ($self, @set) = @_;
2936 push @{$self->{qualifier}}, @set;
2937 }
2938  
2939 ## end bean association methods ##
2940
2941 1;
2942 #end
2943 # ------------------------------------------------------------------------------------------
2944 package CaCORE::EVS::History;
2945
2946 use 5.005;
2947 #use strict;
2948 use warnings;
2949
2950 require Exporter;
2951
2952 use XML::DOM;
2953
2954 ## begin import objects ##
2955 use CaCORE::ApplicationService;
2956 ## end import objects ##
2957
2958
2959 @ISA = qw(CaCORE::DomainObjectI);
2960
2961 our %EXPORT_TAGS = ( 'all' => [ qw(
2962
2963 ) ] );
2964
2965 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2966
2967 our @EXPORT = qw(
2968 );
2969
2970 # create an instance of the History object
2971 # returns: a History object
2972 sub new {
2973 my $class = shift;
2974 my $self = {};
2975 bless($self, $class);
2976 #print "new History\n";
2977 return $self;
2978 }
2979
2980 # Construct the specific section of the WSDL request corresponding
2981 # to this History intance
2982 # returns: XML in string format
2983 sub toWebserviceXML {
2984 my $self = shift;
2985 my $result = shift;
2986 my $assigned_id = shift;
2987 my $current_id = shift;
2988 my $l = shift;
2989 my %worklist = %$l;
2990
2991 # prefix portion of the xml
2992 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":History\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
2993 my $tmpstr = "";
2994 $current_id ++;
2995
2996 ## begin attribute to XML ##
2997 # editAction;
2998 if( defined( $self->getEditAction ) ) {
2999 $tmpstr = "<editAction xsi:type=\"xsd:string\">" . $self->getEditAction . "</editAction>";
3000 } else {
3001 $tmpstr = "<editAction xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3002 }
3003 $result .= $tmpstr;
3004  
3005 # editActionDate;
3006 if( defined( $self->getEditActionDate ) ) {
3007 $tmpstr = "<editActionDate xsi:type=\"xsd:dateTime\">" . $self->getEditActionDate . "</editActionDate>";
3008 } else {
3009 $tmpstr = "<editActionDate xsi:type=\"xsd:dateTime\" xsi:nil=\"true\" />";
3010 }
3011 $result .= $tmpstr;
3012  
3013 # namespaceId;
3014 if( defined( $self->getNamespaceId ) ) {
3015 $tmpstr = "<namespaceId xsi:type=\"xsd:int\">" . $self->getNamespaceId . "</namespaceId>";
3016 } else {
3017 $tmpstr = "<namespaceId xsi:type=\"xsd:int\" xsi:nil=\"true\" />";
3018 }
3019 $result .= $tmpstr;
3020  
3021 # referenceCode;
3022 if( defined( $self->getReferenceCode ) ) {
3023 $tmpstr = "<referenceCode xsi:type=\"xsd:string\">" . $self->getReferenceCode . "</referenceCode>";
3024 } else {
3025 $tmpstr = "<referenceCode xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3026 }
3027 $result .= $tmpstr;
3028  
3029 ## end attribute to XML ##
3030
3031 ## begin association to XML ##
3032 ## end association to XML ##
3033
3034 # add trailing close tags
3035 $result .= "</multiRef>";
3036
3037 return ($result, $current_id, %worklist);
3038 }
3039
3040 # parse a given webservice response xml, construct a list of History objects
3041 # param: xml doc
3042 # returns: list of History objects
3043 sub fromWebserviceXML {
3044 my $self = shift;
3045 my $parser = new XML::DOM::Parser;
3046 my $docnode = $parser->parse(shift);
3047 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3048
3049 return $self->fromWSXMLListNode($root);
3050 }
3051
3052 # parse a given xml node, construct a list of History objects
3053 # param: xml node
3054 # returns: a list of History objects
3055 sub fromWSXMLListNode {
3056 my $self = shift;
3057 my $listNode = shift;
3058 my @obj_list = ();
3059
3060 # get all children for this node
3061 for my $childrenNode ($listNode->getChildNodes) {
3062 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3063 my $newobj = $self->fromWSXMLNode($childrenNode);
3064 push @obj_list, $newobj;
3065 }
3066 }
3067
3068 return @obj_list;
3069 }
3070
3071 # parse a given xml node, construct one History object
3072 # param: xml node
3073 # returns: one History object
3074 sub fromWSXMLNode {
3075 my $HistoryNode = $_[1];
3076
3077 ## begin ELEMENT_NODE children ##
3078 my $editAction;
3079 my $editActionDate;
3080 my $namespaceId;
3081 my $referenceCode;
3082 ## end ELEMENT_NODE children ##
3083
3084 # get all children for this node
3085 for my $childrenNode ($HistoryNode->getChildNodes) {
3086 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3087 if( ! defined($childrenNode->getFirstChild) ){ next; };
3088 my $textNode = $childrenNode->getFirstChild;
3089 ## begin iterate ELEMENT_NODE ##
3090 if (0) {
3091 # do nothing, just a place holder for "if" component
3092 }
3093 elsif ($childrenNode->getNodeName eq "editAction") {
3094 $editAction=$textNode->getNodeValue;
3095 }
3096 elsif ($childrenNode->getNodeName eq "editActionDate") {
3097 $editActionDate=$textNode->getNodeValue;
3098 }
3099 elsif ($childrenNode->getNodeName eq "namespaceId") {
3100 $namespaceId=$textNode->getNodeValue;
3101 }
3102 elsif ($childrenNode->getNodeName eq "referenceCode") {
3103 $referenceCode=$textNode->getNodeValue;
3104 }
3105 ## end iterate ELEMENT_NODE ##
3106 }
3107 }
3108 my $newobj = new CaCORE::EVS::History;
3109 ## begin set attr ##
3110 $newobj->setEditAction($editAction);
3111 $newobj->setEditActionDate($editActionDate);
3112 $newobj->setNamespaceId($namespaceId);
3113 $newobj->setReferenceCode($referenceCode);
3114 ## end set attr ##
3115
3116 return $newobj;
3117 }
3118
3119 ## begin getters and setters ##
3120
3121 sub getEditAction {
3122 my $self = shift;
3123 return $self->{editAction};
3124 }
3125  
3126 sub setEditAction {
3127 my $self = shift;
3128 $self->{editAction} = shift;
3129 }
3130  
3131 sub getEditActionDate {
3132 my $self = shift;
3133 return $self->{editActionDate};
3134 }
3135  
3136 sub setEditActionDate {
3137 my $self = shift;
3138 $self->{editActionDate} = shift;
3139 }
3140  
3141 sub getNamespaceId {
3142 my $self = shift;
3143 return $self->{namespaceId};
3144 }
3145  
3146 sub setNamespaceId {
3147 my $self = shift;
3148 $self->{namespaceId} = shift;
3149 }
3150  
3151 sub getReferenceCode {
3152 my $self = shift;
3153 return $self->{referenceCode};
3154 }
3155  
3156 sub setReferenceCode {
3157 my $self = shift;
3158 $self->{referenceCode} = shift;
3159 }
3160  
3161 ## end getters and setters ##
3162
3163 ## begin bean association methods ##
3164
3165 ## end bean association methods ##
3166
3167 1;
3168 #end
3169 # ------------------------------------------------------------------------------------------
3170 package CaCORE::EVS::HistoryRecord;
3171
3172 use 5.005;
3173 #use strict;
3174 use warnings;
3175
3176 require Exporter;
3177
3178 use XML::DOM;
3179
3180 ## begin import objects ##
3181 use CaCORE::ApplicationService;
3182 ## end import objects ##
3183
3184
3185 @ISA = qw(CaCORE::DomainObjectI);
3186
3187 our %EXPORT_TAGS = ( 'all' => [ qw(
3188
3189 ) ] );
3190
3191 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3192
3193 our @EXPORT = qw(
3194 );
3195
3196 # create an instance of the HistoryRecord object
3197 # returns: a HistoryRecord object
3198 sub new {
3199 my $class = shift;
3200 my $self = {};
3201 bless($self, $class);
3202 #print "new HistoryRecord\n";
3203 return $self;
3204 }
3205
3206 # Construct the specific section of the WSDL request corresponding
3207 # to this HistoryRecord intance
3208 # returns: XML in string format
3209 sub toWebserviceXML {
3210 my $self = shift;
3211 my $result = shift;
3212 my $assigned_id = shift;
3213 my $current_id = shift;
3214 my $l = shift;
3215 my %worklist = %$l;
3216
3217 # prefix portion of the xml
3218 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":HistoryRecord\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
3219 my $tmpstr = "";
3220 $current_id ++;
3221
3222 ## begin attribute to XML ##
3223 # descLogicConceptCode;
3224 if( defined( $self->getDescLogicConceptCode ) ) {
3225 $tmpstr = "<descLogicConceptCode xsi:type=\"xsd:string\">" . $self->getDescLogicConceptCode . "</descLogicConceptCode>";
3226 } else {
3227 $tmpstr = "<descLogicConceptCode xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3228 }
3229 $result .= $tmpstr;
3230  
3231 ## end attribute to XML ##
3232
3233 ## begin association to XML ##
3234 # HistoryCollection;
3235 if( defined( $self->getHistoryCollection ) ) {
3236 my @assoclist = $self->getHistoryCollection;
3237 my $listsize = $#assoclist + 1;
3238 $result .= "<historyCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
3239 foreach my $node ($self->getHistoryCollection) {
3240 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
3241 $worklist{$current_id} = $node;
3242 $current_id ++;
3243 }
3244 $result .= "</historyCollection>";
3245 }
3246 ## end association to XML ##
3247
3248 # add trailing close tags
3249 $result .= "</multiRef>";
3250
3251 return ($result, $current_id, %worklist);
3252 }
3253
3254 # parse a given webservice response xml, construct a list of HistoryRecord objects
3255 # param: xml doc
3256 # returns: list of HistoryRecord objects
3257 sub fromWebserviceXML {
3258 my $self = shift;
3259 my $parser = new XML::DOM::Parser;
3260 my $docnode = $parser->parse(shift);
3261 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3262
3263 return $self->fromWSXMLListNode($root);
3264 }
3265
3266 # parse a given xml node, construct a list of HistoryRecord objects
3267 # param: xml node
3268 # returns: a list of HistoryRecord objects
3269 sub fromWSXMLListNode {
3270 my $self = shift;
3271 my $listNode = shift;
3272 my @obj_list = ();
3273
3274 # get all children for this node
3275 for my $childrenNode ($listNode->getChildNodes) {
3276 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3277 my $newobj = $self->fromWSXMLNode($childrenNode);
3278 push @obj_list, $newobj;
3279 }
3280 }
3281
3282 return @obj_list;
3283 }
3284
3285 # parse a given xml node, construct one HistoryRecord object
3286 # param: xml node
3287 # returns: one HistoryRecord object
3288 sub fromWSXMLNode {
3289 my $HistoryRecordNode = $_[1];
3290
3291 ## begin ELEMENT_NODE children ##
3292 my $descLogicConceptCode;
3293 my @history = ();
3294 ## end ELEMENT_NODE children ##
3295
3296 # get all children for this node
3297 for my $childrenNode ($HistoryRecordNode->getChildNodes) {
3298 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3299 if( ! defined($childrenNode->getFirstChild) ){ next; };
3300 my $textNode = $childrenNode->getFirstChild;
3301 ## begin iterate ELEMENT_NODE ##
3302 if (0) {
3303 # do nothing, just a place holder for "if" component
3304 }
3305 elsif ($childrenNode->getNodeName eq "descLogicConceptCode") {
3306 $descLogicConceptCode=$textNode->getNodeValue;
3307 }
3308 elsif ($childrenNode->getNodeName eq "historyCollection") {
3309 my $doi = new CaCORE::EVS::History;
3310 @history=$doi->fromWSXMLListNode($childrenNode);
3311 }
3312 ## end iterate ELEMENT_NODE ##
3313 }
3314 }
3315 my $newobj = new CaCORE::EVS::HistoryRecord;
3316 ## begin set attr ##
3317 $newobj->setDescLogicConceptCode($descLogicConceptCode);
3318 $newobj->setHistoryCollection(@history);
3319 ## end set attr ##
3320
3321 return $newobj;
3322 }
3323
3324 ## begin getters and setters ##
3325
3326 sub getDescLogicConceptCode {
3327 my $self = shift;
3328 return $self->{descLogicConceptCode};
3329 }
3330  
3331 sub setDescLogicConceptCode {
3332 my $self = shift;
3333 $self->{descLogicConceptCode} = shift;
3334 }
3335  
3336 ## end getters and setters ##
3337
3338 ## begin bean association methods ##
3339
3340 sub getHistoryCollection {
3341 my $self = shift;
3342 if( defined($self->{history}) ) {
3343 return @{$self->{history}};
3344 } else {
3345 return ();
3346 }
3347 }
3348  
3349 sub setHistoryCollection {
3350 my ($self, @set) = @_;
3351 push @{$self->{history}}, @set;
3352 }
3353  
3354 ## end bean association methods ##
3355
3356 1;
3357 #end
3358 # ------------------------------------------------------------------------------------------
3359 package CaCORE::EVS::Association;
3360
3361 use 5.005;
3362 #use strict;
3363 use warnings;
3364
3365 require Exporter;
3366
3367 use XML::DOM;
3368
3369 ## begin import objects ##
3370 use CaCORE::ApplicationService;
3371 ## end import objects ##
3372
3373
3374 @ISA = qw(CaCORE::DomainObjectI);
3375
3376 our %EXPORT_TAGS = ( 'all' => [ qw(
3377
3378 ) ] );
3379
3380 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3381
3382 our @EXPORT = qw(
3383 );
3384
3385 # create an instance of the Association object
3386 # returns: a Association object
3387 sub new {
3388 my $class = shift;
3389 my $self = {};
3390 bless($self, $class);
3391 #print "new Association\n";
3392 return $self;
3393 }
3394
3395 # Construct the specific section of the WSDL request corresponding
3396 # to this Association intance
3397 # returns: XML in string format
3398 sub toWebserviceXML {
3399 my $self = shift;
3400 my $result = shift;
3401 my $assigned_id = shift;
3402 my $current_id = shift;
3403 my $l = shift;
3404 my %worklist = %$l;
3405
3406 # prefix portion of the xml
3407 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Association\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
3408 my $tmpstr = "";
3409 $current_id ++;
3410
3411 ## begin attribute to XML ##
3412 # name;
3413 if( defined( $self->getName ) ) {
3414 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
3415 } else {
3416 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3417 }
3418 $result .= $tmpstr;
3419  
3420 # value;
3421 if( defined( $self->getValue ) ) {
3422 $tmpstr = "<value xsi:type=\"xsd:string\">" . $self->getValue . "</value>";
3423 } else {
3424 $tmpstr = "<value xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3425 }
3426 $result .= $tmpstr;
3427  
3428 ## end attribute to XML ##
3429
3430 ## begin association to XML ##
3431 # QualifierCollection;
3432 if( defined( $self->getQualifierCollection ) ) {
3433 my @assoclist = $self->getQualifierCollection;
3434 my $listsize = $#assoclist + 1;
3435 $result .= "<qualifierCollection soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" soapenc:arrayType=\"xsd:anyType[" . $listsize . "]\" xsi:type=\"soapenc:Array\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">";
3436 foreach my $node ($self->getQualifierCollection) {
3437 $result .= "<multiRef href=\"\#id" . $current_id . "\"/>";
3438 $worklist{$current_id} = $node;
3439 $current_id ++;
3440 }
3441 $result .= "</qualifierCollection>";
3442 }
3443 ## end association to XML ##
3444
3445 # add trailing close tags
3446 $result .= "</multiRef>";
3447
3448 return ($result, $current_id, %worklist);
3449 }
3450
3451 # parse a given webservice response xml, construct a list of Association objects
3452 # param: xml doc
3453 # returns: list of Association objects
3454 sub fromWebserviceXML {
3455 my $self = shift;
3456 my $parser = new XML::DOM::Parser;
3457 my $docnode = $parser->parse(shift);
3458 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3459
3460 return $self->fromWSXMLListNode($root);
3461 }
3462
3463 # parse a given xml node, construct a list of Association objects
3464 # param: xml node
3465 # returns: a list of Association objects
3466 sub fromWSXMLListNode {
3467 my $self = shift;
3468 my $listNode = shift;
3469 my @obj_list = ();
3470
3471 # get all children for this node
3472 for my $childrenNode ($listNode->getChildNodes) {
3473 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3474 my $newobj = $self->fromWSXMLNode($childrenNode);
3475 push @obj_list, $newobj;
3476 }
3477 }
3478
3479 return @obj_list;
3480 }
3481
3482 # parse a given xml node, construct one Association object
3483 # param: xml node
3484 # returns: one Association object
3485 sub fromWSXMLNode {
3486 my $AssociationNode = $_[1];
3487
3488 ## begin ELEMENT_NODE children ##
3489 my $name;
3490 my $value;
3491 my @qualifier = ();
3492 ## end ELEMENT_NODE children ##
3493
3494 # get all children for this node
3495 for my $childrenNode ($AssociationNode->getChildNodes) {
3496 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3497 if( ! defined($childrenNode->getFirstChild) ){ next; };
3498 my $textNode = $childrenNode->getFirstChild;
3499 ## begin iterate ELEMENT_NODE ##
3500 if (0) {
3501 # do nothing, just a place holder for "if" component
3502 }
3503 elsif ($childrenNode->getNodeName eq "name") {
3504 $name=$textNode->getNodeValue;
3505 }
3506 elsif ($childrenNode->getNodeName eq "value") {
3507 $value=$textNode->getNodeValue;
3508 }
3509 elsif ($childrenNode->getNodeName eq "qualifierCollection") {
3510 my $doi = new CaCORE::EVS::Qualifier;
3511 @qualifier=$doi->fromWSXMLListNode($childrenNode);
3512 }
3513 ## end iterate ELEMENT_NODE ##
3514 }
3515 }
3516 my $newobj = new CaCORE::EVS::Association;
3517 ## begin set attr ##
3518 $newobj->setName($name);
3519 $newobj->setValue($value);
3520 $newobj->setQualifierCollection(@qualifier);
3521 ## end set attr ##
3522
3523 return $newobj;
3524 }
3525
3526 ## begin getters and setters ##
3527
3528 sub getName {
3529 my $self = shift;
3530 return $self->{name};
3531 }
3532  
3533 sub setName {
3534 my $self = shift;
3535 $self->{name} = shift;
3536 }
3537  
3538 sub getValue {
3539 my $self = shift;
3540 return $self->{value};
3541 }
3542  
3543 sub setValue {
3544 my $self = shift;
3545 $self->{value} = shift;
3546 }
3547  
3548 ## end getters and setters ##
3549
3550 ## begin bean association methods ##
3551
3552 sub getQualifierCollection {
3553 my $self = shift;
3554 if( defined($self->{qualifier}) ) {
3555 return @{$self->{qualifier}};
3556 } else {
3557 return ();
3558 }
3559 }
3560  
3561 sub setQualifierCollection {
3562 my ($self, @set) = @_;
3563 push @{$self->{qualifier}}, @set;
3564 }
3565  
3566 ## end bean association methods ##
3567
3568 1;
3569 #end
3570 # ------------------------------------------------------------------------------------------
3571 package CaCORE::EVS::EditActionDate;
3572
3573 use 5.005;
3574 #use strict;
3575 use warnings;
3576
3577 require Exporter;
3578
3579 use XML::DOM;
3580
3581 ## begin import objects ##
3582 use CaCORE::ApplicationService;
3583 ## end import objects ##
3584
3585
3586 @ISA = qw(CaCORE::DomainObjectI);
3587
3588 our %EXPORT_TAGS = ( 'all' => [ qw(
3589
3590 ) ] );
3591
3592 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3593
3594 our @EXPORT = qw(
3595 );
3596
3597 # create an instance of the EditActionDate object
3598 # returns: a EditActionDate object
3599 sub new {
3600 my $class = shift;
3601 my $self = {};
3602 bless($self, $class);
3603 #print "new EditActionDate\n";
3604 return $self;
3605 }
3606
3607 # Construct the specific section of the WSDL request corresponding
3608 # to this EditActionDate intance
3609 # returns: XML in string format
3610 sub toWebserviceXML {
3611 my $self = shift;
3612 my $result = shift;
3613 my $assigned_id = shift;
3614 my $current_id = shift;
3615 my $l = shift;
3616 my %worklist = %$l;
3617
3618 # prefix portion of the xml
3619 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":EditActionDate\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
3620 my $tmpstr = "";
3621 $current_id ++;
3622
3623 ## begin attribute to XML ##
3624 # action;
3625 if( defined( $self->getAction ) ) {
3626 $tmpstr = "<action xsi:type=\"xsd:int\">" . $self->getAction . "</action>";
3627 } else {
3628 $tmpstr = "<action xsi:type=\"xsd:int\" xsi:nil=\"true\" />";
3629 }
3630 $result .= $tmpstr;
3631  
3632 # editDate;
3633 if( defined( $self->getEditDate ) ) {
3634 $tmpstr = "<editDate xsi:type=\"xsd:dateTime\">" . $self->getEditDate . "</editDate>";
3635 } else {
3636 $tmpstr = "<editDate xsi:type=\"xsd:dateTime\" xsi:nil=\"true\" />";
3637 }
3638 $result .= $tmpstr;
3639  
3640 ## end attribute to XML ##
3641
3642 ## begin association to XML ##
3643 ## end association to XML ##
3644
3645 # add trailing close tags
3646 $result .= "</multiRef>";
3647
3648 return ($result, $current_id, %worklist);
3649 }
3650
3651 # parse a given webservice response xml, construct a list of EditActionDate objects
3652 # param: xml doc
3653 # returns: list of EditActionDate objects
3654 sub fromWebserviceXML {
3655 my $self = shift;
3656 my $parser = new XML::DOM::Parser;
3657 my $docnode = $parser->parse(shift);
3658 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3659
3660 return $self->fromWSXMLListNode($root);
3661 }
3662
3663 # parse a given xml node, construct a list of EditActionDate objects
3664 # param: xml node
3665 # returns: a list of EditActionDate objects
3666 sub fromWSXMLListNode {
3667 my $self = shift;
3668 my $listNode = shift;
3669 my @obj_list = ();
3670
3671 # get all children for this node
3672 for my $childrenNode ($listNode->getChildNodes) {
3673 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3674 my $newobj = $self->fromWSXMLNode($childrenNode);
3675 push @obj_list, $newobj;
3676 }
3677 }
3678
3679 return @obj_list;
3680 }
3681
3682 # parse a given xml node, construct one EditActionDate object
3683 # param: xml node
3684 # returns: one EditActionDate object
3685 sub fromWSXMLNode {
3686 my $EditActionDateNode = $_[1];
3687
3688 ## begin ELEMENT_NODE children ##
3689 my $action;
3690 my $editDate;
3691 ## end ELEMENT_NODE children ##
3692
3693 # get all children for this node
3694 for my $childrenNode ($EditActionDateNode->getChildNodes) {
3695 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3696 if( ! defined($childrenNode->getFirstChild) ){ next; };
3697 my $textNode = $childrenNode->getFirstChild;
3698 ## begin iterate ELEMENT_NODE ##
3699 if (0) {
3700 # do nothing, just a place holder for "if" component
3701 }
3702 elsif ($childrenNode->getNodeName eq "action") {
3703 $action=$textNode->getNodeValue;
3704 }
3705 elsif ($childrenNode->getNodeName eq "editDate") {
3706 $editDate=$textNode->getNodeValue;
3707 }
3708 ## end iterate ELEMENT_NODE ##
3709 }
3710 }
3711 my $newobj = new CaCORE::EVS::EditActionDate;
3712 ## begin set attr ##
3713 $newobj->setAction($action);
3714 $newobj->setEditDate($editDate);
3715 ## end set attr ##
3716
3717 return $newobj;
3718 }
3719
3720 ## begin getters and setters ##
3721
3722 sub getAction {
3723 my $self = shift;
3724 return $self->{action};
3725 }
3726  
3727 sub setAction {
3728 my $self = shift;
3729 $self->{action} = shift;
3730 }
3731  
3732 sub getEditDate {
3733 my $self = shift;
3734 return $self->{editDate};
3735 }
3736  
3737 sub setEditDate {
3738 my $self = shift;
3739 $self->{editDate} = shift;
3740 }
3741  
3742 ## end getters and setters ##
3743
3744 ## begin bean association methods ##
3745
3746 ## end bean association methods ##
3747
3748 1;
3749 #end
3750 # ------------------------------------------------------------------------------------------
3751 package CaCORE::EVS::Role;
3752
3753 use 5.005;
3754 #use strict;
3755 use warnings;
3756
3757 require Exporter;
3758
3759 use XML::DOM;
3760
3761 ## begin import objects ##
3762 use CaCORE::ApplicationService;
3763 ## end import objects ##
3764
3765
3766 @ISA = qw(CaCORE::DomainObjectI);
3767
3768 our %EXPORT_TAGS = ( 'all' => [ qw(
3769
3770 ) ] );
3771
3772 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3773
3774 our @EXPORT = qw(
3775 );
3776
3777 # create an instance of the Role object
3778 # returns: a Role object
3779 sub new {
3780 my $class = shift;
3781 my $self = {};
3782 bless($self, $class);
3783 #print "new Role\n";
3784 return $self;
3785 }
3786
3787 # Construct the specific section of the WSDL request corresponding
3788 # to this Role intance
3789 # returns: XML in string format
3790 sub toWebserviceXML {
3791 my $self = shift;
3792 my $result = shift;
3793 my $assigned_id = shift;
3794 my $current_id = shift;
3795 my $l = shift;
3796 my %worklist = %$l;
3797
3798 # prefix portion of the xml
3799 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Role\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
3800 my $tmpstr = "";
3801 $current_id ++;
3802
3803 ## begin attribute to XML ##
3804 # name;
3805 if( defined( $self->getName ) ) {
3806 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
3807 } else {
3808 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3809 }
3810 $result .= $tmpstr;
3811  
3812 # value;
3813 if( defined( $self->getValue ) ) {
3814 $tmpstr = "<value xsi:type=\"xsd:string\">" . $self->getValue . "</value>";
3815 } else {
3816 $tmpstr = "<value xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3817 }
3818 $result .= $tmpstr;
3819  
3820 ## end attribute to XML ##
3821
3822 ## begin association to XML ##
3823 ## end association to XML ##
3824
3825 # add trailing close tags
3826 $result .= "</multiRef>";
3827
3828 return ($result, $current_id, %worklist);
3829 }
3830
3831 # parse a given webservice response xml, construct a list of Role objects
3832 # param: xml doc
3833 # returns: list of Role objects
3834 sub fromWebserviceXML {
3835 my $self = shift;
3836 my $parser = new XML::DOM::Parser;
3837 my $docnode = $parser->parse(shift);
3838 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3839
3840 return $self->fromWSXMLListNode($root);
3841 }
3842
3843 # parse a given xml node, construct a list of Role objects
3844 # param: xml node
3845 # returns: a list of Role objects
3846 sub fromWSXMLListNode {
3847 my $self = shift;
3848 my $listNode = shift;
3849 my @obj_list = ();
3850
3851 # get all children for this node
3852 for my $childrenNode ($listNode->getChildNodes) {
3853 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3854 my $newobj = $self->fromWSXMLNode($childrenNode);
3855 push @obj_list, $newobj;
3856 }
3857 }
3858
3859 return @obj_list;
3860 }
3861
3862 # parse a given xml node, construct one Role object
3863 # param: xml node
3864 # returns: one Role object
3865 sub fromWSXMLNode {
3866 my $RoleNode = $_[1];
3867
3868 ## begin ELEMENT_NODE children ##
3869 my $name;
3870 my $value;
3871 ## end ELEMENT_NODE children ##
3872
3873 # get all children for this node
3874 for my $childrenNode ($RoleNode->getChildNodes) {
3875 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3876 if( ! defined($childrenNode->getFirstChild) ){ next; };
3877 my $textNode = $childrenNode->getFirstChild;
3878 ## begin iterate ELEMENT_NODE ##
3879 if (0) {
3880 # do nothing, just a place holder for "if" component
3881 }
3882 elsif ($childrenNode->getNodeName eq "name") {
3883 $name=$textNode->getNodeValue;
3884 }
3885 elsif ($childrenNode->getNodeName eq "value") {
3886 $value=$textNode->getNodeValue;
3887 }
3888 ## end iterate ELEMENT_NODE ##
3889 }
3890 }
3891 my $newobj = new CaCORE::EVS::Role;
3892 ## begin set attr ##
3893 $newobj->setName($name);
3894 $newobj->setValue($value);
3895 ## end set attr ##
3896
3897 return $newobj;
3898 }
3899
3900 ## begin getters and setters ##
3901
3902 sub getName {
3903 my $self = shift;
3904 return $self->{name};
3905 }
3906  
3907 sub setName {
3908 my $self = shift;
3909 $self->{name} = shift;
3910 }
3911  
3912 sub getValue {
3913 my $self = shift;
3914 return $self->{value};
3915 }
3916  
3917 sub setValue {
3918 my $self = shift;
3919 $self->{value} = shift;
3920 }
3921  
3922 ## end getters and setters ##
3923
3924 ## begin bean association methods ##
3925
3926 ## end bean association methods ##
3927
3928 1;
3929 #end
3930 # ------------------------------------------------------------------------------------------
3931 package CaCORE::EVS::Atom;
3932
3933 use 5.005;
3934 #use strict;
3935 use warnings;
3936
3937 require Exporter;
3938
3939 use XML::DOM;
3940
3941 ## begin import objects ##
3942 use CaCORE::ApplicationService;
3943 ## end import objects ##
3944
3945
3946 @ISA = qw(CaCORE::DomainObjectI);
3947
3948 our %EXPORT_TAGS = ( 'all' => [ qw(
3949
3950 ) ] );
3951
3952 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3953
3954 our @EXPORT = qw(
3955 );
3956
3957 # create an instance of the Atom object
3958 # returns: a Atom object
3959 sub new {
3960 my $class = shift;
3961 my $self = {};
3962 bless($self, $class);
3963 #print "new Atom\n";
3964 return $self;
3965 }
3966
3967 # Construct the specific section of the WSDL request corresponding
3968 # to this Atom intance
3969 # returns: XML in string format
3970 sub toWebserviceXML {
3971 my $self = shift;
3972 my $result = shift;
3973 my $assigned_id = shift;
3974 my $current_id = shift;
3975 my $l = shift;
3976 my %worklist = %$l;
3977
3978 # prefix portion of the xml
3979 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Atom\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
3980 my $tmpstr = "";
3981 $current_id ++;
3982
3983 ## begin attribute to XML ##
3984 # code;
3985 if( defined( $self->getCode ) ) {
3986 $tmpstr = "<code xsi:type=\"xsd:string\">" . $self->getCode . "</code>";
3987 } else {
3988 $tmpstr = "<code xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3989 }
3990 $result .= $tmpstr;
3991  
3992 # lui;
3993 if( defined( $self->getLui ) ) {
3994 $tmpstr = "<lui xsi:type=\"xsd:string\">" . $self->getLui . "</lui>";
3995 } else {
3996 $tmpstr = "<lui xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3997 }
3998 $result .= $tmpstr;
3999  
4000 # name;
4001 if( defined( $self->getName ) ) {
4002 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
4003 } else {
4004 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4005 }
4006 $result .= $tmpstr;
4007  
4008 # origin;
4009 if( defined( $self->getOrigin ) ) {
4010 $tmpstr = "<origin xsi:type=\"xsd:string\">" . $self->getOrigin . "</origin>";
4011 } else {
4012 $tmpstr = "<origin xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4013 }
4014 $result .= $tmpstr;
4015  
4016 ## end attribute to XML ##
4017
4018 ## begin association to XML ##
4019 # Source;
4020 if( defined( $self->getSource ) ) {
4021 $result .= "<source href=\"\#id" . $current_id . "\"/>";
4022 $worklist{$current_id} = $self->getSource;
4023 $current_id ++;
4024 }
4025 ## end association to XML ##
4026
4027 # add trailing close tags
4028 $result .= "</multiRef>";
4029
4030 return ($result, $current_id, %worklist);
4031 }
4032
4033 # parse a given webservice response xml, construct a list of Atom objects
4034 # param: xml doc
4035 # returns: list of Atom objects
4036 sub fromWebserviceXML {
4037 my $self = shift;
4038 my $parser = new XML::DOM::Parser;
4039 my $docnode = $parser->parse(shift);
4040 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
4041
4042 return $self->fromWSXMLListNode($root);
4043 }
4044
4045 # parse a given xml node, construct a list of Atom objects
4046 # param: xml node
4047 # returns: a list of Atom objects
4048 sub fromWSXMLListNode {
4049 my $self = shift;
4050 my $listNode = shift;
4051 my @obj_list = ();
4052
4053 # get all children for this node
4054 for my $childrenNode ($listNode->getChildNodes) {
4055 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4056 my $newobj = $self->fromWSXMLNode($childrenNode);
4057 push @obj_list, $newobj;
4058 }
4059 }
4060
4061 return @obj_list;
4062 }
4063
4064 # parse a given xml node, construct one Atom object
4065 # param: xml node
4066 # returns: one Atom object
4067 sub fromWSXMLNode {
4068 my $AtomNode = $_[1];
4069
4070 ## begin ELEMENT_NODE children ##
4071 my $code;
4072 my $lui;
4073 my $name;
4074 my $origin;
4075 my $source;
4076 ## end ELEMENT_NODE children ##
4077
4078 # get all children for this node
4079 for my $childrenNode ($AtomNode->getChildNodes) {
4080 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4081 if( ! defined($childrenNode->getFirstChild) ){ next; };
4082 my $textNode = $childrenNode->getFirstChild;
4083 ## begin iterate ELEMENT_NODE ##
4084 if (0) {
4085 # do nothing, just a place holder for "if" component
4086 }
4087 elsif ($childrenNode->getNodeName eq "code") {
4088 $code=$textNode->getNodeValue;
4089 }
4090 elsif ($childrenNode->getNodeName eq "lui") {
4091 $lui=$textNode->getNodeValue;
4092 }
4093 elsif ($childrenNode->getNodeName eq "name") {
4094 $name=$textNode->getNodeValue;
4095 }
4096 elsif ($childrenNode->getNodeName eq "origin") {
4097 $origin=$textNode->getNodeValue;
4098 }
4099 elsif ($childrenNode->getNodeName eq "source") {
4100 my $doi = new CaCORE::EVS::Source;
4101 $source=$doi->fromWSXMLNode($childrenNode);
4102 }
4103 ## end iterate ELEMENT_NODE ##
4104 }
4105 }
4106 my $newobj = new CaCORE::EVS::Atom;
4107 ## begin set attr ##
4108 $newobj->setCode($code);
4109 $newobj->setLui($lui);
4110 $newobj->setName($name);
4111 $newobj->setOrigin($origin);
4112 $newobj->setSource($source);
4113 ## end set attr ##
4114
4115 return $newobj;
4116 }
4117
4118 ## begin getters and setters ##
4119
4120 sub getCode {
4121 my $self = shift;
4122 return $self->{code};
4123 }
4124  
4125 sub setCode {
4126 my $self = shift;
4127 $self->{code} = shift;
4128 }
4129  
4130 sub getLui {
4131 my $self = shift;
4132 return $self->{lui};
4133 }
4134  
4135 sub setLui {
4136 my $self = shift;
4137 $self->{lui} = shift;
4138 }
4139  
4140 sub getName {
4141 my $self = shift;
4142 return $self->{name};
4143 }
4144  
4145 sub setName {
4146 my $self = shift;
4147 $self->{name} = shift;
4148 }
4149  
4150 sub getOrigin {
4151 my $self = shift;
4152 return $self->{origin};
4153 }
4154  
4155 sub setOrigin {
4156 my $self = shift;
4157 $self->{origin} = shift;
4158 }
4159  
4160 ## end getters and setters ##
4161
4162 ## begin bean association methods ##
4163
4164 sub getSource {
4165 my $self = shift;
4166 return $self->{source};
4167 }
4168  
4169 sub setSource {
4170 my $self = shift;
4171 $self->{source} = shift;
4172 }
4173  
4174 ## end bean association methods ##
4175
4176 1;
4177 #end
4178 # ------------------------------------------------------------------------------------------
4179 package CaCORE::EVS::Qualifier;
4180
4181 use 5.005;
4182 #use strict;
4183 use warnings;
4184
4185 require Exporter;
4186
4187 use XML::DOM;
4188
4189 ## begin import objects ##
4190 use CaCORE::ApplicationService;
4191 ## end import objects ##
4192
4193
4194 @ISA = qw(CaCORE::DomainObjectI);
4195
4196 our %EXPORT_TAGS = ( 'all' => [ qw(
4197
4198 ) ] );
4199
4200 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
4201
4202 our @EXPORT = qw(
4203 );
4204
4205 # create an instance of the Qualifier object
4206 # returns: a Qualifier object
4207 sub new {
4208 my $class = shift;
4209 my $self = {};
4210 bless($self, $class);
4211 #print "new Qualifier\n";
4212 return $self;
4213 }
4214
4215 # Construct the specific section of the WSDL request corresponding
4216 # to this Qualifier intance
4217 # returns: XML in string format
4218 sub toWebserviceXML {
4219 my $self = shift;
4220 my $result = shift;
4221 my $assigned_id = shift;
4222 my $current_id = shift;
4223 my $l = shift;
4224 my %worklist = %$l;
4225
4226 # prefix portion of the xml
4227 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Qualifier\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.evs.nci.nih.gov\">";
4228 my $tmpstr = "";
4229 $current_id ++;
4230
4231 ## begin attribute to XML ##
4232 # name;
4233 if( defined( $self->getName ) ) {
4234 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
4235 } else {
4236 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4237 }
4238 $result .= $tmpstr;
4239  
4240 # value;
4241 if( defined( $self->getValue ) ) {
4242 $tmpstr = "<value xsi:type=\"xsd:string\">" . $self->getValue . "</value>";
4243 } else {
4244 $tmpstr = "<value xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4245 }
4246 $result .= $tmpstr;
4247  
4248 ## end attribute to XML ##
4249
4250 ## begin association to XML ##
4251 ## end association to XML ##
4252
4253 # add trailing close tags
4254 $result .= "</multiRef>";
4255
4256 return ($result, $current_id, %worklist);
4257 }
4258
4259 # parse a given webservice response xml, construct a list of Qualifier objects
4260 # param: xml doc
4261 # returns: list of Qualifier objects
4262 sub fromWebserviceXML {
4263 my $self = shift;
4264 my $parser = new XML::DOM::Parser;
4265 my $docnode = $parser->parse(shift);
4266 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
4267
4268 return $self->fromWSXMLListNode($root);
4269 }
4270
4271 # parse a given xml node, construct a list of Qualifier objects
4272 # param: xml node
4273 # returns: a list of Qualifier objects
4274 sub fromWSXMLListNode {
4275 my $self = shift;
4276 my $listNode = shift;
4277 my @obj_list = ();
4278
4279 # get all children for this node
4280 for my $childrenNode ($listNode->getChildNodes) {
4281 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4282 my $newobj = $self->fromWSXMLNode($childrenNode);
4283 push @obj_list, $newobj;
4284 }
4285 }
4286
4287 return @obj_list;
4288 }
4289
4290 # parse a given xml node, construct one Qualifier object
4291 # param: xml node
4292 # returns: one Qualifier object
4293 sub fromWSXMLNode {
4294 my $QualifierNode = $_[1];
4295
4296 ## begin ELEMENT_NODE children ##
4297 my $name;
4298 my $value;
4299 ## end ELEMENT_NODE children ##
4300
4301 # get all children for this node
4302 for my $childrenNode ($QualifierNode->getChildNodes) {
4303 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4304 if( ! defined($childrenNode->getFirstChild) ){ next; };
4305 my $textNode = $childrenNode->getFirstChild;
4306 ## begin iterate ELEMENT_NODE ##
4307 if (0) {
4308 # do nothing, just a place holder for "if" component
4309 }
4310 elsif ($childrenNode->getNodeName eq "name") {
4311 $name=$textNode->getNodeValue;
4312 }
4313 elsif ($childrenNode->getNodeName eq "value") {
4314 $value=$textNode->getNodeValue;
4315 }
4316 ## end iterate ELEMENT_NODE ##
4317 }
4318 }
4319 my $newobj = new CaCORE::EVS::Qualifier;
4320 ## begin set attr ##
4321 $newobj->setName($name);
4322 $newobj->setValue($value);
4323 ## end set attr ##
4324
4325 return $newobj;
4326 }
4327
4328 ## begin getters and setters ##
4329
4330 sub getName {
4331 my $self = shift;
4332 return $self->{name};
4333 }
4334  
4335 sub setName {
4336 my $self = shift;
4337 $self->{name} = shift;
4338 }
4339  
4340 sub getValue {
4341 my $self = shift;
4342 return $self->{value};
4343 }
4344  
4345 sub setValue {
4346 my $self = shift;
4347 $self->{value} = shift;
4348 }
4349  
4350 ## end getters and setters ##
4351
4352 ## begin bean association methods ##
4353
4354 ## end bean association methods ##
4355
4356 1;
4357 #end
4358 # Below is module documentation for Association
4359
4360 =pod
4361
4362 =head1 Association
4363
4364 CaCORE::EVS::Association - Perl extension for Association.
4365
4366 =head2 ABSTRACT
4367
4368 The CaCORE::EVS::Association is a Perl object representation of the
4369 CaCORE Association object.
4370
4371
4372 =head2 SYNOPSIS
4373
4374 See L<CaCORE::ApplicationService>.
4375
4376 =head2 DESCRIPTION
4377
4378
4379
4380 =head2 ATTRIBUTES of Association
4381
4382 The following are all the attributes of the Association object and their data types:
4383
4384 =over 4
4385
4386 =item name
4387  
4388 data type: C<string>
4389  
4390 =item value
4391  
4392 data type: C<string>
4393  
4394
4395 =back
4396
4397 Note: Although you can also use the corresponding setter methods to set the
4398 attribute values, it is not recommended to do so unless you absolutely have
4399 to change the object's attributes.
4400
4401 =head2 ASSOCIATIONS of Association
4402
4403 The following are all the objects that are associated with the Association:
4404
4405 =over 4
4406
4407 =item Instance of L</Qualifier>:
4408  
4409 One to many assoication, use C<getQualifierCollection> to get a collection of associated Qualifier.
4410  
4411
4412 =back
4413
4414 =cut
4415
4416 # Below is module documentation for Atom
4417
4418 =pod
4419
4420 =head1 Atom
4421
4422 CaCORE::EVS::Atom - Perl extension for Atom.
4423
4424 =head2 ABSTRACT
4425
4426 The CaCORE::EVS::Atom is a Perl object representation of the
4427 CaCORE Atom object.
4428
4429
4430 =head2 SYNOPSIS
4431
4432 See L<CaCORE::ApplicationService>.
4433
4434 =head2 DESCRIPTION
4435
4436
4437
4438 =head2 ATTRIBUTES of Atom
4439
4440 The following are all the attributes of the Atom object and their data types:
4441
4442 =over 4
4443
4444 =item code
4445  
4446 data type: C<string>
4447  
4448 =item lui
4449  
4450 data type: C<string>
4451  
4452 =item name
4453  
4454 data type: C<string>
4455  
4456 =item origin
4457  
4458 data type: C<string>
4459  
4460
4461 =back
4462
4463 Note: Although you can also use the corresponding setter methods to set the
4464 attribute values, it is not recommended to do so unless you absolutely have
4465 to change the object's attributes.
4466
4467 =head2 ASSOCIATIONS of Atom
4468
4469 The following are all the objects that are associated with the Atom:
4470
4471 =over 4
4472
4473 =item Collection of L</Source>:
4474  
4475 Many to one assoication, use C<getSource> to get the associated Source.
4476  
4477
4478 =back
4479
4480 =cut
4481
4482 # Below is module documentation for AttributeSetDescriptor
4483
4484 =pod
4485
4486 =head1 AttributeSetDescriptor
4487
4488 CaCORE::EVS::AttributeSetDescriptor - Perl extension for AttributeSetDescriptor.
4489
4490 =head2 ABSTRACT
4491
4492 The CaCORE::EVS::AttributeSetDescriptor is a Perl object representation of the
4493 CaCORE AttributeSetDescriptor object.
4494
4495
4496 =head2 SYNOPSIS
4497
4498 See L<CaCORE::ApplicationService>.
4499
4500 =head2 DESCRIPTION
4501
4502
4503
4504 =head2 ATTRIBUTES of AttributeSetDescriptor
4505
4506 The following are all the attributes of the AttributeSetDescriptor object and their data types:
4507
4508 =over 4
4509
4510 =item name
4511  
4512 data type: C<string>
4513  
4514
4515 =back
4516
4517 Note: Although you can also use the corresponding setter methods to set the
4518 attribute values, it is not recommended to do so unless you absolutely have
4519 to change the object's attributes.
4520
4521 =head2 ASSOCIATIONS of AttributeSetDescriptor
4522
4523 The following are all the objects that are associated with the AttributeSetDescriptor:
4524
4525 =over 4
4526
4527 =item Instance of L</Property>:
4528  
4529 One to many assoication, use C<getPropertyCollection> to get a collection of associated Property.
4530  
4531 =item Instance of L</Role>:
4532  
4533 One to many assoication, use C<getRoleCollection> to get a collection of associated Role.
4534  
4535
4536 =back
4537
4538 =cut
4539
4540 # Below is module documentation for Definition
4541
4542 =pod
4543
4544 =head1 Definition
4545
4546 CaCORE::EVS::Definition - Perl extension for Definition.
4547
4548 =head2 ABSTRACT
4549
4550 The CaCORE::EVS::Definition is a Perl object representation of the
4551 CaCORE Definition object.
4552
4553
4554 =head2 SYNOPSIS
4555
4556 See L<CaCORE::ApplicationService>.
4557
4558 =head2 DESCRIPTION
4559
4560
4561
4562 =head2 ATTRIBUTES of Definition
4563
4564 The following are all the attributes of the Definition object and their data types:
4565
4566 =over 4
4567
4568 =item definition
4569  
4570 data type: C<string>
4571  
4572
4573 =back
4574
4575 Note: Although you can also use the corresponding setter methods to set the
4576 attribute values, it is not recommended to do so unless you absolutely have
4577 to change the object's attributes.
4578
4579 =head2 ASSOCIATIONS of Definition
4580
4581 The following are all the objects that are associated with the Definition:
4582
4583 =over 4
4584
4585 =item Collection of L</Source>:
4586  
4587 Many to one assoication, use C<getSource> to get the associated Source.
4588  
4589
4590 =back
4591
4592 =cut
4593
4594 # Below is module documentation for DescLogicConcept
4595
4596 =pod
4597
4598 =head1 DescLogicConcept
4599
4600 CaCORE::EVS::DescLogicConcept - Perl extension for DescLogicConcept.
4601
4602 =head2 ABSTRACT
4603
4604 The CaCORE::EVS::DescLogicConcept is a Perl object representation of the
4605 CaCORE DescLogicConcept object.
4606
4607
4608 =head2 SYNOPSIS
4609
4610 See L<CaCORE::ApplicationService>.
4611
4612 =head2 DESCRIPTION
4613
4614
4615
4616 =head2 ATTRIBUTES of DescLogicConcept
4617
4618 The following are all the attributes of the DescLogicConcept object and their data types:
4619
4620 =over 4
4621
4622 =item code
4623  
4624 data type: C<string>
4625  
4626 =item hasChildren
4627  
4628 data type: C<boolean>
4629  
4630 =item hasParents
4631  
4632 data type: C<boolean>
4633  
4634 =item isRetired
4635  
4636 data type: C<boolean>
4637  
4638 =item name
4639  
4640 data type: C<string>
4641  
4642 =item namespaceId
4643  
4644 data type: C<int>
4645  
4646 =item vocabularyName
4647  
4648 data type: C<string>
4649  
4650
4651 =back
4652
4653 Note: Although you can also use the corresponding setter methods to set the
4654 attribute values, it is not recommended to do so unless you absolutely have
4655 to change the object's attributes.
4656
4657 =head2 ASSOCIATIONS of DescLogicConcept
4658
4659 The following are all the objects that are associated with the DescLogicConcept:
4660
4661 =over 4
4662
4663 =item Instance of L</Association>:
4664  
4665 One to many assoication, use C<getAssociationCollection> to get a collection of associated Association.
4666  
4667 =item Collection of L</EdgeProperties>:
4668  
4669 Many to one assoication, use C<getEdgeProperties> to get the associated EdgeProperties.
4670  
4671 =item Instance of L</InverseAssociation>:
4672  
4673 One to many assoication, use C<getInverseAssociationCollection> to get a collection of associated InverseAssociation.
4674  
4675 =item Instance of L</InverseRole>:
4676  
4677 One to many assoication, use C<getInverseRoleCollection> to get a collection of associated InverseRole.
4678  
4679 =item Instance of L</Property>:
4680  
4681 One to many assoication, use C<getPropertyCollection> to get a collection of associated Property.
4682  
4683 =item Instance of L</Role>:
4684  
4685 One to many assoication, use C<getRoleCollection> to get a collection of associated Role.
4686  
4687 =item Instance of L</SemanticTypeVector>:
4688  
4689 One to many assoication, use C<getSemanticTypeVectorCollection> to get a collection of associated SemanticTypeVector.
4690  
4691 =item Collection of L</TreeNode>:
4692  
4693 Many to one assoication, use C<getTreeNode> to get the associated TreeNode.
4694  
4695 =item Collection of L</Vocabulary>:
4696  
4697 Many to one assoication, use C<getVocabulary> to get the associated Vocabulary.
4698  
4699
4700 =back
4701
4702 =cut
4703
4704 # Below is module documentation for EdgeProperties
4705
4706 =pod
4707
4708 =head1 EdgeProperties
4709
4710 CaCORE::EVS::EdgeProperties - Perl extension for EdgeProperties.
4711
4712 =head2 ABSTRACT
4713
4714 The CaCORE::EVS::EdgeProperties is a Perl object representation of the
4715 CaCORE EdgeProperties object.
4716
4717
4718 =head2 SYNOPSIS
4719
4720 See L<CaCORE::ApplicationService>.
4721
4722 =head2 DESCRIPTION
4723
4724
4725
4726 =head2 ATTRIBUTES of EdgeProperties
4727
4728 The following are all the attributes of the EdgeProperties object and their data types:
4729
4730 =over 4
4731
4732 =item isA
4733  
4734 data type: C<boolean>
4735  
4736 =item name
4737  
4738 data type: C<string>
4739  
4740 =item traverseDown
4741  
4742 data type: C<boolean>
4743  
4744
4745 =back
4746
4747 Note: Although you can also use the corresponding setter methods to set the
4748 attribute values, it is not recommended to do so unless you absolutely have
4749 to change the object's attributes.
4750
4751 =head2 ASSOCIATIONS of EdgeProperties
4752
4753 The following are all the objects that are associated with the EdgeProperties:
4754
4755 =over 4
4756
4757 =item Instance of L</Links>:
4758  
4759 One to many assoication, use C<getLinksCollection> to get a collection of associated Links.
4760  
4761
4762 =back
4763
4764 =cut
4765
4766 # Below is module documentation for EditActionDate
4767
4768 =pod
4769
4770 =head1 EditActionDate
4771
4772 CaCORE::EVS::EditActionDate - Perl extension for EditActionDate.
4773
4774 =head2 ABSTRACT
4775
4776 The CaCORE::EVS::EditActionDate is a Perl object representation of the
4777 CaCORE EditActionDate object.
4778
4779
4780 =head2 SYNOPSIS
4781
4782 See L<CaCORE::ApplicationService>.
4783
4784 =head2 DESCRIPTION
4785
4786
4787
4788 =head2 ATTRIBUTES of EditActionDate
4789
4790 The following are all the attributes of the EditActionDate object and their data types:
4791
4792 =over 4
4793
4794 =item action
4795  
4796 data type: C<int>
4797  
4798 =item editDate
4799  
4800 data type: C<dateTime>
4801  
4802
4803 =back
4804
4805 Note: Although you can also use the corresponding setter methods to set the
4806 attribute values, it is not recommended to do so unless you absolutely have
4807 to change the object's attributes.
4808
4809 =head2 ASSOCIATIONS of EditActionDate
4810
4811 The following are all the objects that are associated with the EditActionDate:
4812
4813 =over 4
4814
4815
4816 =back
4817
4818 =cut
4819
4820 # Below is module documentation for HashSet
4821
4822 =pod
4823
4824 =head1 HashSet
4825
4826 CaCORE::EVS::HashSet - Perl extension for HashSet.
4827
4828 =head2 ABSTRACT
4829
4830 The CaCORE::EVS::HashSet is a Perl object representation of the
4831 CaCORE HashSet object.
4832
4833
4834 =head2 SYNOPSIS
4835
4836 See L<CaCORE::ApplicationService>.
4837
4838 =head2 DESCRIPTION
4839
4840
4841
4842 =head2 ATTRIBUTES of HashSet
4843
4844 The following are all the attributes of the HashSet object and their data types:
4845
4846 =over 4
4847
4848
4849 =back
4850
4851 Note: Although you can also use the corresponding setter methods to set the
4852 attribute values, it is not recommended to do so unless you absolutely have
4853 to change the object's attributes.
4854
4855 =head2 ASSOCIATIONS of HashSet
4856
4857 The following are all the objects that are associated with the HashSet:
4858
4859 =over 4
4860
4861
4862 =back
4863
4864 =cut
4865
4866 # Below is module documentation for History
4867
4868 =pod
4869
4870 =head1 History
4871
4872 CaCORE::EVS::History - Perl extension for History.
4873
4874 =head2 ABSTRACT
4875
4876 The CaCORE::EVS::History is a Perl object representation of the
4877 CaCORE History object.
4878
4879
4880 =head2 SYNOPSIS
4881
4882 See L<CaCORE::ApplicationService>.
4883
4884 =head2 DESCRIPTION
4885
4886
4887
4888 =head2 ATTRIBUTES of History
4889
4890 The following are all the attributes of the History object and their data types:
4891
4892 =over 4
4893
4894 =item editAction
4895  
4896 data type: C<string>
4897  
4898 =item editActionDate
4899  
4900 data type: C<dateTime>
4901  
4902 =item namespaceId
4903  
4904 data type: C<int>
4905  
4906 =item referenceCode
4907  
4908 data type: C<string>
4909  
4910
4911 =back
4912
4913 Note: Although you can also use the corresponding setter methods to set the
4914 attribute values, it is not recommended to do so unless you absolutely have
4915 to change the object's attributes.
4916
4917 =head2 ASSOCIATIONS of History
4918
4919 The following are all the objects that are associated with the History:
4920
4921 =over 4
4922
4923
4924 =back
4925
4926 =cut
4927
4928 # Below is module documentation for HistoryRecord
4929
4930 =pod
4931
4932 =head1 HistoryRecord
4933
4934 CaCORE::EVS::HistoryRecord - Perl extension for HistoryRecord.
4935
4936 =head2 ABSTRACT
4937
4938 The CaCORE::EVS::HistoryRecord is a Perl object representation of the
4939 CaCORE HistoryRecord object.
4940
4941
4942 =head2 SYNOPSIS
4943
4944 See L<CaCORE::ApplicationService>.
4945
4946 =head2 DESCRIPTION
4947
4948
4949
4950 =head2 ATTRIBUTES of HistoryRecord
4951
4952 The following are all the attributes of the HistoryRecord object and their data types:
4953
4954 =over 4
4955
4956 =item descLogicConceptCode
4957  
4958 data type: C<string>
4959  
4960
4961 =back
4962
4963 Note: Although you can also use the corresponding setter methods to set the
4964 attribute values, it is not recommended to do so unless you absolutely have
4965 to change the object's attributes.
4966
4967 =head2 ASSOCIATIONS of HistoryRecord
4968
4969 The following are all the objects that are associated with the HistoryRecord:
4970
4971 =over 4
4972
4973 =item Instance of L</History>:
4974  
4975 One to many assoication, use C<getHistoryCollection> to get a collection of associated History.
4976  
4977
4978 =back
4979
4980 =cut
4981
4982 # Below is module documentation for MetaThesaurusConcept
4983
4984 =pod
4985
4986 =head1 MetaThesaurusConcept
4987
4988 CaCORE::EVS::MetaThesaurusConcept - Perl extension for MetaThesaurusConcept.
4989
4990 =head2 ABSTRACT
4991
4992 The CaCORE::EVS::MetaThesaurusConcept is a Perl object representation of the
4993 CaCORE MetaThesaurusConcept object.
4994
4995
4996 =head2 SYNOPSIS
4997
4998 See L<CaCORE::ApplicationService>.
4999
5000 =head2 DESCRIPTION
5001
5002
5003
5004 =head2 ATTRIBUTES of MetaThesaurusConcept
5005
5006 The following are all the attributes of the MetaThesaurusConcept object and their data types:
5007
5008 =over 4
5009
5010 =item cui
5011  
5012 data type: C<string>
5013  
5014 =item name
5015  
5016 data type: C<string>
5017  
5018
5019 =back
5020
5021 Note: Although you can also use the corresponding setter methods to set the
5022 attribute values, it is not recommended to do so unless you absolutely have
5023 to change the object's attributes.
5024
5025 =head2 ASSOCIATIONS of MetaThesaurusConcept
5026
5027 The following are all the objects that are associated with the MetaThesaurusConcept:
5028
5029 =over 4
5030
5031 =item Instance of L</Atom>:
5032  
5033 One to many assoication, use C<getAtomCollection> to get a collection of associated Atom.
5034  
5035 =item Instance of L</Definition>:
5036  
5037 One to many assoication, use C<getDefinitionCollection> to get a collection of associated Definition.
5038  
5039 =item Instance of L</SemanticType>:
5040  
5041 One to many assoication, use C<getSemanticTypeCollection> to get a collection of associated SemanticType.
5042  
5043 =item Instance of L</Source>:
5044  
5045 One to many assoication, use C<getSourceCollection> to get a collection of associated Source.
5046  
5047 =item Instance of L</Synonym>:
5048  
5049 One to many assoication, use C<getSynonymCollection> to get a collection of associated Synonym.
5050  
5051
5052 =back
5053
5054 =cut
5055
5056 # Below is module documentation for Property
5057
5058 =pod
5059
5060 =head1 Property
5061
5062 CaCORE::EVS::Property - Perl extension for Property.
5063
5064 =head2 ABSTRACT
5065
5066 The CaCORE::EVS::Property is a Perl object representation of the
5067 CaCORE Property object.
5068
5069
5070 =head2 SYNOPSIS
5071
5072 See L<CaCORE::ApplicationService>.
5073
5074 =head2 DESCRIPTION
5075
5076
5077
5078 =head2 ATTRIBUTES of Property
5079
5080 The following are all the attributes of the Property object and their data types:
5081
5082 =over 4
5083
5084 =item name
5085  
5086 data type: C<string>
5087  
5088 =item value
5089  
5090 data type: C<string>
5091  
5092
5093 =back
5094
5095 Note: Although you can also use the corresponding setter methods to set the
5096 attribute values, it is not recommended to do so unless you absolutely have
5097 to change the object's attributes.
5098
5099 =head2 ASSOCIATIONS of Property
5100
5101 The following are all the objects that are associated with the Property:
5102
5103 =over 4
5104
5105 =item Instance of L</Qualifier>:
5106  
5107 One to many assoication, use C<getQualifierCollection> to get a collection of associated Qualifier.
5108  
5109
5110 =back
5111
5112 =cut
5113
5114 # Below is module documentation for Qualifier
5115
5116 =pod
5117
5118 =head1 Qualifier
5119
5120 CaCORE::EVS::Qualifier - Perl extension for Qualifier.
5121
5122 =head2 ABSTRACT
5123
5124 The CaCORE::EVS::Qualifier is a Perl object representation of the
5125 CaCORE Qualifier object.
5126
5127
5128 =head2 SYNOPSIS
5129
5130 See L<CaCORE::ApplicationService>.
5131
5132 =head2 DESCRIPTION
5133
5134
5135
5136 =head2 ATTRIBUTES of Qualifier
5137
5138 The following are all the attributes of the Qualifier object and their data types:
5139
5140 =over 4
5141
5142 =item name
5143  
5144 data type: C<string>
5145  
5146 =item value
5147  
5148 data type: C<string>
5149  
5150
5151 =back
5152
5153 Note: Although you can also use the corresponding setter methods to set the
5154 attribute values, it is not recommended to do so unless you absolutely have
5155 to change the object's attributes.
5156
5157 =head2 ASSOCIATIONS of Qualifier
5158
5159 The following are all the objects that are associated with the Qualifier:
5160
5161 =over 4
5162
5163
5164 =back
5165
5166 =cut
5167
5168 # Below is module documentation for Role
5169
5170 =pod
5171
5172 =head1 Role
5173
5174 CaCORE::EVS::Role - Perl extension for Role.
5175
5176 =head2 ABSTRACT
5177
5178 The CaCORE::EVS::Role is a Perl object representation of the
5179 CaCORE Role object.
5180
5181
5182 =head2 SYNOPSIS
5183
5184 See L<CaCORE::ApplicationService>.
5185
5186 =head2 DESCRIPTION
5187
5188
5189
5190 =head2 ATTRIBUTES of Role
5191
5192 The following are all the attributes of the Role object and their data types:
5193
5194 =over 4
5195
5196 =item name
5197  
5198 data type: C<string>
5199  
5200 =item value
5201  
5202 data type: C<string>
5203  
5204
5205 =back
5206
5207 Note: Although you can also use the corresponding setter methods to set the
5208 attribute values, it is not recommended to do so unless you absolutely have
5209 to change the object's attributes.
5210
5211 =head2 ASSOCIATIONS of Role
5212
5213 The following are all the objects that are associated with the Role:
5214
5215 =over 4
5216
5217
5218 =back
5219
5220 =cut
5221
5222 # Below is module documentation for SemanticType
5223
5224 =pod
5225
5226 =head1 SemanticType
5227
5228 CaCORE::EVS::SemanticType - Perl extension for SemanticType.
5229
5230 =head2 ABSTRACT
5231
5232 The CaCORE::EVS::SemanticType is a Perl object representation of the
5233 CaCORE SemanticType object.
5234
5235
5236 =head2 SYNOPSIS
5237
5238 See L<CaCORE::ApplicationService>.
5239
5240 =head2 DESCRIPTION
5241
5242
5243
5244 =head2 ATTRIBUTES of SemanticType
5245
5246 The following are all the attributes of the SemanticType object and their data types:
5247
5248 =over 4
5249
5250 =item id
5251  
5252 data type: C<string>
5253  
5254 =item name
5255  
5256 data type: C<string>
5257  
5258
5259 =back
5260
5261 Note: Although you can also use the corresponding setter methods to set the
5262 attribute values, it is not recommended to do so unless you absolutely have
5263 to change the object's attributes.
5264
5265 =head2 ASSOCIATIONS of SemanticType
5266
5267 The following are all the objects that are associated with the SemanticType:
5268
5269 =over 4
5270
5271
5272 =back
5273
5274 =cut
5275
5276 # Below is module documentation for Silo
5277
5278 =pod
5279
5280 =head1 Silo
5281
5282 CaCORE::EVS::Silo - Perl extension for Silo.
5283
5284 =head2 ABSTRACT
5285
5286 The CaCORE::EVS::Silo is a Perl object representation of the
5287 CaCORE Silo object.
5288
5289
5290 =head2 SYNOPSIS
5291
5292 See L<CaCORE::ApplicationService>.
5293
5294 =head2 DESCRIPTION
5295
5296
5297
5298 =head2 ATTRIBUTES of Silo
5299
5300 The following are all the attributes of the Silo object and their data types:
5301
5302 =over 4
5303
5304 =item id
5305  
5306 data type: C<int>
5307  
5308 =item name
5309  
5310 data type: C<string>
5311  
5312
5313 =back
5314
5315 Note: Although you can also use the corresponding setter methods to set the
5316 attribute values, it is not recommended to do so unless you absolutely have
5317 to change the object's attributes.
5318
5319 =head2 ASSOCIATIONS of Silo
5320
5321 The following are all the objects that are associated with the Silo:
5322
5323 =over 4
5324
5325
5326 =back
5327
5328 =cut
5329
5330 # Below is module documentation for Source
5331
5332 =pod
5333
5334 =head1 Source
5335
5336 CaCORE::EVS::Source - Perl extension for Source.
5337
5338 =head2 ABSTRACT
5339
5340 The CaCORE::EVS::Source is a Perl object representation of the
5341 CaCORE Source object.
5342
5343
5344 =head2 SYNOPSIS
5345
5346 See L<CaCORE::ApplicationService>.
5347
5348 =head2 DESCRIPTION
5349
5350
5351
5352 =head2 ATTRIBUTES of Source
5353
5354 The following are all the attributes of the Source object and their data types:
5355
5356 =over 4
5357
5358 =item abbreviation
5359  
5360 data type: C<string>
5361  
5362 =item code
5363  
5364 data type: C<string>
5365  
5366 =item description
5367  
5368 data type: C<string>
5369  
5370
5371 =back
5372
5373 Note: Although you can also use the corresponding setter methods to set the
5374 attribute values, it is not recommended to do so unless you absolutely have
5375 to change the object's attributes.
5376
5377 =head2 ASSOCIATIONS of Source
5378
5379 The following are all the objects that are associated with the Source:
5380
5381 =over 4
5382
5383
5384 =back
5385
5386 =cut
5387
5388 # Below is module documentation for TreeNode
5389
5390 =pod
5391
5392 =head1 TreeNode
5393
5394 CaCORE::EVS::TreeNode - Perl extension for TreeNode.
5395
5396 =head2 ABSTRACT
5397
5398 The CaCORE::EVS::TreeNode is a Perl object representation of the
5399 CaCORE TreeNode object.
5400
5401
5402 =head2 SYNOPSIS
5403
5404 See L<CaCORE::ApplicationService>.
5405
5406 =head2 DESCRIPTION
5407
5408
5409
5410 =head2 ATTRIBUTES of TreeNode
5411
5412 The following are all the attributes of the TreeNode object and their data types:
5413
5414 =over 4
5415
5416 =item isA
5417  
5418 data type: C<boolean>
5419  
5420 =item name
5421  
5422 data type: C<string>
5423  
5424 =item traverseDown
5425  
5426 data type: C<boolean>
5427  
5428
5429 =back
5430
5431 Note: Although you can also use the corresponding setter methods to set the
5432 attribute values, it is not recommended to do so unless you absolutely have
5433 to change the object's attributes.
5434
5435 =head2 ASSOCIATIONS of TreeNode
5436
5437 The following are all the objects that are associated with the TreeNode:
5438
5439 =over 4
5440
5441 =item Instance of L</Links>:
5442  
5443 One to many assoication, use C<getLinksCollection> to get a collection of associated Links.
5444  
5445
5446 =back
5447
5448 =cut
5449
5450 # Below is module documentation for Vocabulary
5451
5452 =pod
5453
5454 =head1 Vocabulary
5455
5456 CaCORE::EVS::Vocabulary - Perl extension for Vocabulary.
5457
5458 =head2 ABSTRACT
5459
5460 The CaCORE::EVS::Vocabulary is a Perl object representation of the
5461 CaCORE Vocabulary object.
5462
5463
5464 =head2 SYNOPSIS
5465
5466 See L<CaCORE::ApplicationService>.
5467
5468 =head2 DESCRIPTION
5469
5470
5471
5472 =head2 ATTRIBUTES of Vocabulary
5473
5474 The following are all the attributes of the Vocabulary object and their data types:
5475
5476 =over 4
5477
5478 =item description
5479  
5480 data type: C<string>
5481  
5482 =item name
5483  
5484 data type: C<string>
5485  
5486 =item namespaceId
5487  
5488 data type: C<int>
5489  
5490
5491 =back
5492
5493 Note: Although you can also use the corresponding setter methods to set the
5494 attribute values, it is not recommended to do so unless you absolutely have
5495 to change the object's attributes.
5496
5497 =head2 ASSOCIATIONS of Vocabulary
5498
5499 The following are all the objects that are associated with the Vocabulary:
5500
5501 =over 4
5502
5503 =item Collection of L</SecurityToken>:
5504  
5505 Many to one assoication, use C<getSecurityToken> to get the associated SecurityToken.
5506  
5507 =item Instance of L</Silo>:
5508  
5509 One to many assoication, use C<getSiloCollection> to get a collection of associated Silo.
5510  
5511
5512 =back
5513
5514 =cut
5515
5516
5517 =pod
5518
5519 =head1 SUPPORT
5520
5521 Please do not contact author directly. Send email to ncicb@pop.nci.nih.gov to request
5522 support or report a bug.
5523
5524 =head1 AUTHOR
5525
5526 Shan Jiang <jiangs@mail.nih.gov>
5527
5528 =head1 COPYRIGHT AND LICENSE
5529
5530 The CaCORE Software License, Version 1.0
5531
5532 Copyright 2001-2005 SAIC. This software was developed in conjunction with the National Cancer Institute, and so to the extent government employees are co-authors, any rights in such works shall be subject to Title 17 of the United States Code, section 105. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5533
5534 =over 1
5535
5536 =item 1
5537
5538 Redistributions of source code must retain the above copyright notice, this list of conditions and the disclaimer of Article 5, below. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the disclaimer of Article 5 in the documentation and/or other materials provided with the distribution.
5539
5540 =item 2
5541
5542 The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by SAIC and the National Cancer Institute." If no such end-user documentation is to be included, this acknowledgment shall appear in the software itself, wherever such third-party acknowledgments normally appear.
5543
5544 =item 3
5545
5546 The names "The National Cancer Institute", "NCI" and "SAIC" must not be used to endorse or promote products derived from this software. This license does not authorize the licensee to use any trademarks owned by either NCI or SAIC.
5547
5548 =item 4
5549
5550 This license does not authorize or prohibit the incorporation of this software into any third party proprietary programs. Licensee is expressly made responsible for obtaining any permission required to incorporate this software into third party proprietary programs and for informing licensee's end-users of their obligation to secure any required permissions before incorporating this software into third party proprietary software programs.
5551
5552 =item 5
5553
5554 THIS SOFTWARE IS PROVIDED "AS IS," AND ANY EXPRESSED OR IMPLIED WARRANTIES, (INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE) ARE DISCLAIMED. IN NO EVENT SHALL THE NATIONAL CANCER INSTITUTE, SAIC, OR THEIR AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5555
5556 =back
5557
5558 =cut
5559
5560