CaBIO.pm untested

filter: Statementstmt 0.0% 0 / 4843 Branchbran 0.0% 0 / 1100 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 879 Podpod 0.0% 0 / 694 totaltotal 0.0% 0 / 7516 CC 551 SCAR 39.1
CC
551
Cov
0%
fromWSXMLNode
420.0
fromWSXMLNode
342.0
toWebserviceXML
306.0
CRAP 50.0
1 # ------------------------------------------------------------------------------------------
2 package CaCORE::CaBIO::SNP;
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 SNP object
30 # returns: a SNP object
31 sub new {
32 my $class = shift;
33 my $self = {};
34 bless($self, $class);
35 #print "new SNP\n";
36 return $self;
37 }
38
39 # Construct the specific section of the WSDL request corresponding
40 # to this SNP 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 . ":SNP\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
52 my $tmpstr = "";
53 $current_id ++;
54
55 ## begin attribute to XML ##
56 # DBSNPID;
57 if( defined( $self->getDBSNPID ) ) {
58 $tmpstr = "<DBSNPID xsi:type=\"xsd:string\">" . $self->getDBSNPID . "</DBSNPID>";
59 } else {
60 $tmpstr = "<DBSNPID xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
61 }
62 $result .= $tmpstr;
63  
64 # alleleA;
65 if( defined( $self->getAlleleA ) ) {
66 $tmpstr = "<alleleA xsi:type=\"xsd:string\">" . $self->getAlleleA . "</alleleA>";
67 } else {
68 $tmpstr = "<alleleA xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
69 }
70 $result .= $tmpstr;
71  
72 # alleleB;
73 if( defined( $self->getAlleleB ) ) {
74 $tmpstr = "<alleleB xsi:type=\"xsd:string\">" . $self->getAlleleB . "</alleleB>";
75 } else {
76 $tmpstr = "<alleleB xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
77 }
78 $result .= $tmpstr;
79  
80 # bigid;
81 if( defined( $self->getBigid ) ) {
82 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
83 } else {
84 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
85 }
86 $result .= $tmpstr;
87  
88 # id;
89 if( defined( $self->getId ) ) {
90 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
91 } else {
92 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
93 }
94 $result .= $tmpstr;
95  
96 # validationStatus;
97 if( defined( $self->getValidationStatus ) ) {
98 $tmpstr = "<validationStatus xsi:type=\"xsd:string\">" . $self->getValidationStatus . "</validationStatus>";
99 } else {
100 $tmpstr = "<validationStatus xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
101 }
102 $result .= $tmpstr;
103  
104 ## end attribute to XML ##
105
106 ## begin association to XML ##
107 ## end association to XML ##
108
109 # add trailing close tags
110 $result .= "</multiRef>";
111
112 return ($result, $current_id, %worklist);
113 }
114
115 # parse a given webservice response xml, construct a list of SNP objects
116 # param: xml doc
117 # returns: list of SNP objects
118 sub fromWebserviceXML {
119 my $self = shift;
120 my $parser = new XML::DOM::Parser;
121 my $docnode = $parser->parse(shift);
122 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
123
124 return $self->fromWSXMLListNode($root);
125 }
126
127 # parse a given xml node, construct a list of SNP objects
128 # param: xml node
129 # returns: a list of SNP objects
130 sub fromWSXMLListNode {
131 my $self = shift;
132 my $listNode = shift;
133 my @obj_list = ();
134
135 # get all children for this node
136 for my $childrenNode ($listNode->getChildNodes) {
137 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
138 my $newobj = $self->fromWSXMLNode($childrenNode);
139 push @obj_list, $newobj;
140 }
141 }
142
143 return @obj_list;
144 }
145
146 # parse a given xml node, construct one SNP object
147 # param: xml node
148 # returns: one SNP object
149 sub fromWSXMLNode {
150 my $SNPNode = $_[1];
151
152 ## begin ELEMENT_NODE children ##
153 my $DBSNPID;
154 my $alleleA;
155 my $alleleB;
156 my $bigid;
157 my $id;
158 my $validationStatus;
159 ## end ELEMENT_NODE children ##
160
161 # get all children for this node
162 for my $childrenNode ($SNPNode->getChildNodes) {
163 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
164 if( ! defined($childrenNode->getFirstChild) ){ next; };
165 my $textNode = $childrenNode->getFirstChild;
166 ## begin iterate ELEMENT_NODE ##
167 if (0) {
168 # do nothing, just a place holder for "if" component
169 }
170 elsif ($childrenNode->getNodeName eq "DBSNPID") {
171 $DBSNPID=$textNode->getNodeValue;
172 }
173 elsif ($childrenNode->getNodeName eq "alleleA") {
174 $alleleA=$textNode->getNodeValue;
175 }
176 elsif ($childrenNode->getNodeName eq "alleleB") {
177 $alleleB=$textNode->getNodeValue;
178 }
179 elsif ($childrenNode->getNodeName eq "bigid") {
180 $bigid=$textNode->getNodeValue;
181 }
182 elsif ($childrenNode->getNodeName eq "id") {
183 $id=$textNode->getNodeValue;
184 }
185 elsif ($childrenNode->getNodeName eq "validationStatus") {
186 $validationStatus=$textNode->getNodeValue;
187 }
188 ## end iterate ELEMENT_NODE ##
189 }
190 }
191 my $newobj = new CaCORE::CaBIO::SNP;
192 ## begin set attr ##
193 $newobj->setDBSNPID($DBSNPID);
194 $newobj->setAlleleA($alleleA);
195 $newobj->setAlleleB($alleleB);
196 $newobj->setBigid($bigid);
197 $newobj->setId($id);
198 $newobj->setValidationStatus($validationStatus);
199 ## end set attr ##
200
201 return $newobj;
202 }
203
204 ## begin getters and setters ##
205
206 sub getDBSNPID {
207 my $self = shift;
208 return $self->{DBSNPID};
209 }
210  
211 sub setDBSNPID {
212 my $self = shift;
213 $self->{DBSNPID} = shift;
214 }
215  
216 sub getAlleleA {
217 my $self = shift;
218 return $self->{alleleA};
219 }
220  
221 sub setAlleleA {
222 my $self = shift;
223 $self->{alleleA} = shift;
224 }
225  
226 sub getAlleleB {
227 my $self = shift;
228 return $self->{alleleB};
229 }
230  
231 sub setAlleleB {
232 my $self = shift;
233 $self->{alleleB} = shift;
234 }
235  
236 sub getBigid {
237 my $self = shift;
238 return $self->{bigid};
239 }
240  
241 sub setBigid {
242 my $self = shift;
243 $self->{bigid} = shift;
244 }
245  
246 sub getId {
247 my $self = shift;
248 return $self->{id};
249 }
250  
251 sub setId {
252 my $self = shift;
253 $self->{id} = shift;
254 }
255  
256 sub getValidationStatus {
257 my $self = shift;
258 return $self->{validationStatus};
259 }
260  
261 sub setValidationStatus {
262 my $self = shift;
263 $self->{validationStatus} = shift;
264 }
265  
266 ## end getters and setters ##
267
268 ## begin bean association methods ##
269
270 sub getDatabaseCrossReferenceCollection {
271 my $self = shift;
272 my $appSvc = CaCORE::ApplicationService->instance();
273 my @results = $appSvc->queryObject("CaCORE::Common::DatabaseCrossReference", $self);
274 return @results;
275 }
276  
277 sub getGeneRelativeLocationCollection {
278 my $self = shift;
279 my $appSvc = CaCORE::ApplicationService->instance();
280 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneRelativeLocation", $self);
281 return @results;
282 }
283  
284 sub getLocationCollection {
285 my $self = shift;
286 my $appSvc = CaCORE::ApplicationService->instance();
287 my @results = $appSvc->queryObject("CaCORE::CaBIO::Location", $self);
288 return @results;
289 }
290  
291 sub getPopulationFrequencyCollection {
292 my $self = shift;
293 my $appSvc = CaCORE::ApplicationService->instance();
294 my @results = $appSvc->queryObject("CaCORE::CaBIO::PopulationFrequency", $self);
295 return @results;
296 }
297  
298 ## end bean association methods ##
299
300 1;
301 #end
302 # ------------------------------------------------------------------------------------------
303 package CaCORE::CaBIO::Taxon;
304
305 use 5.005;
306 #use strict;
307 use warnings;
308
309 require Exporter;
310
311 use XML::DOM;
312
313 ## begin import objects ##
314 use CaCORE::ApplicationService;
315 ## end import objects ##
316
317
318 @ISA = qw(CaCORE::DomainObjectI);
319
320 our %EXPORT_TAGS = ( 'all' => [ qw(
321
322 ) ] );
323
324 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
325
326 our @EXPORT = qw(
327 );
328
329 # create an instance of the Taxon object
330 # returns: a Taxon object
331 sub new {
332 my $class = shift;
333 my $self = {};
334 bless($self, $class);
335 #print "new Taxon\n";
336 return $self;
337 }
338
339 # Construct the specific section of the WSDL request corresponding
340 # to this Taxon intance
341 # returns: XML in string format
342 sub toWebserviceXML {
343 my $self = shift;
344 my $result = shift;
345 my $assigned_id = shift;
346 my $current_id = shift;
347 my $l = shift;
348 my %worklist = %$l;
349
350 # prefix portion of the xml
351 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Taxon\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
352 my $tmpstr = "";
353 $current_id ++;
354
355 ## begin attribute to XML ##
356 # abbreviation;
357 if( defined( $self->getAbbreviation ) ) {
358 $tmpstr = "<abbreviation xsi:type=\"xsd:string\">" . $self->getAbbreviation . "</abbreviation>";
359 } else {
360 $tmpstr = "<abbreviation xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
361 }
362 $result .= $tmpstr;
363  
364 # bigid;
365 if( defined( $self->getBigid ) ) {
366 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
367 } else {
368 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
369 }
370 $result .= $tmpstr;
371  
372 # commonName;
373 if( defined( $self->getCommonName ) ) {
374 $tmpstr = "<commonName xsi:type=\"xsd:string\">" . $self->getCommonName . "</commonName>";
375 } else {
376 $tmpstr = "<commonName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
377 }
378 $result .= $tmpstr;
379  
380 # ethnicityStrain;
381 if( defined( $self->getEthnicityStrain ) ) {
382 $tmpstr = "<ethnicityStrain xsi:type=\"xsd:string\">" . $self->getEthnicityStrain . "</ethnicityStrain>";
383 } else {
384 $tmpstr = "<ethnicityStrain xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
385 }
386 $result .= $tmpstr;
387  
388 # id;
389 if( defined( $self->getId ) ) {
390 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
391 } else {
392 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
393 }
394 $result .= $tmpstr;
395  
396 # scientificName;
397 if( defined( $self->getScientificName ) ) {
398 $tmpstr = "<scientificName xsi:type=\"xsd:string\">" . $self->getScientificName . "</scientificName>";
399 } else {
400 $tmpstr = "<scientificName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
401 }
402 $result .= $tmpstr;
403  
404 ## end attribute to XML ##
405
406 ## begin association to XML ##
407 ## end association to XML ##
408
409 # add trailing close tags
410 $result .= "</multiRef>";
411
412 return ($result, $current_id, %worklist);
413 }
414
415 # parse a given webservice response xml, construct a list of Taxon objects
416 # param: xml doc
417 # returns: list of Taxon objects
418 sub fromWebserviceXML {
419 my $self = shift;
420 my $parser = new XML::DOM::Parser;
421 my $docnode = $parser->parse(shift);
422 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
423
424 return $self->fromWSXMLListNode($root);
425 }
426
427 # parse a given xml node, construct a list of Taxon objects
428 # param: xml node
429 # returns: a list of Taxon objects
430 sub fromWSXMLListNode {
431 my $self = shift;
432 my $listNode = shift;
433 my @obj_list = ();
434
435 # get all children for this node
436 for my $childrenNode ($listNode->getChildNodes) {
437 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
438 my $newobj = $self->fromWSXMLNode($childrenNode);
439 push @obj_list, $newobj;
440 }
441 }
442
443 return @obj_list;
444 }
445
446 # parse a given xml node, construct one Taxon object
447 # param: xml node
448 # returns: one Taxon object
449 sub fromWSXMLNode {
450 my $TaxonNode = $_[1];
451
452 ## begin ELEMENT_NODE children ##
453 my $abbreviation;
454 my $bigid;
455 my $commonName;
456 my $ethnicityStrain;
457 my $id;
458 my $scientificName;
459 ## end ELEMENT_NODE children ##
460
461 # get all children for this node
462 for my $childrenNode ($TaxonNode->getChildNodes) {
463 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
464 if( ! defined($childrenNode->getFirstChild) ){ next; };
465 my $textNode = $childrenNode->getFirstChild;
466 ## begin iterate ELEMENT_NODE ##
467 if (0) {
468 # do nothing, just a place holder for "if" component
469 }
470 elsif ($childrenNode->getNodeName eq "abbreviation") {
471 $abbreviation=$textNode->getNodeValue;
472 }
473 elsif ($childrenNode->getNodeName eq "bigid") {
474 $bigid=$textNode->getNodeValue;
475 }
476 elsif ($childrenNode->getNodeName eq "commonName") {
477 $commonName=$textNode->getNodeValue;
478 }
479 elsif ($childrenNode->getNodeName eq "ethnicityStrain") {
480 $ethnicityStrain=$textNode->getNodeValue;
481 }
482 elsif ($childrenNode->getNodeName eq "id") {
483 $id=$textNode->getNodeValue;
484 }
485 elsif ($childrenNode->getNodeName eq "scientificName") {
486 $scientificName=$textNode->getNodeValue;
487 }
488 ## end iterate ELEMENT_NODE ##
489 }
490 }
491 my $newobj = new CaCORE::CaBIO::Taxon;
492 ## begin set attr ##
493 $newobj->setAbbreviation($abbreviation);
494 $newobj->setBigid($bigid);
495 $newobj->setCommonName($commonName);
496 $newobj->setEthnicityStrain($ethnicityStrain);
497 $newobj->setId($id);
498 $newobj->setScientificName($scientificName);
499 ## end set attr ##
500
501 return $newobj;
502 }
503
504 ## begin getters and setters ##
505
506 sub getAbbreviation {
507 my $self = shift;
508 return $self->{abbreviation};
509 }
510  
511 sub setAbbreviation {
512 my $self = shift;
513 $self->{abbreviation} = shift;
514 }
515  
516 sub getBigid {
517 my $self = shift;
518 return $self->{bigid};
519 }
520  
521 sub setBigid {
522 my $self = shift;
523 $self->{bigid} = shift;
524 }
525  
526 sub getCommonName {
527 my $self = shift;
528 return $self->{commonName};
529 }
530  
531 sub setCommonName {
532 my $self = shift;
533 $self->{commonName} = shift;
534 }
535  
536 sub getEthnicityStrain {
537 my $self = shift;
538 return $self->{ethnicityStrain};
539 }
540  
541 sub setEthnicityStrain {
542 my $self = shift;
543 $self->{ethnicityStrain} = shift;
544 }
545  
546 sub getId {
547 my $self = shift;
548 return $self->{id};
549 }
550  
551 sub setId {
552 my $self = shift;
553 $self->{id} = shift;
554 }
555  
556 sub getScientificName {
557 my $self = shift;
558 return $self->{scientificName};
559 }
560  
561 sub setScientificName {
562 my $self = shift;
563 $self->{scientificName} = shift;
564 }
565  
566 ## end getters and setters ##
567
568 ## begin bean association methods ##
569
570 sub getChromosomeCollection {
571 my $self = shift;
572 my $appSvc = CaCORE::ApplicationService->instance();
573 my @results = $appSvc->queryObject("CaCORE::CaBIO::Chromosome", $self);
574 return @results;
575 }
576  
577 sub getCloneCollection {
578 my $self = shift;
579 my $appSvc = CaCORE::ApplicationService->instance();
580 my @results = $appSvc->queryObject("CaCORE::CaBIO::Clone", $self);
581 return @results;
582 }
583  
584 sub getGeneCollection {
585 my $self = shift;
586 my $appSvc = CaCORE::ApplicationService->instance();
587 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
588 return @results;
589 }
590  
591 sub getPathwayCollection {
592 my $self = shift;
593 my $appSvc = CaCORE::ApplicationService->instance();
594 my @results = $appSvc->queryObject("CaCORE::CaBIO::Pathway", $self);
595 return @results;
596 }
597  
598 sub getProteinCollection {
599 my $self = shift;
600 my $appSvc = CaCORE::ApplicationService->instance();
601 my @results = $appSvc->queryObject("CaCORE::CaBIO::Protein", $self);
602 return @results;
603 }
604  
605 sub getTissueCollection {
606 my $self = shift;
607 my $appSvc = CaCORE::ApplicationService->instance();
608 my @results = $appSvc->queryObject("CaCORE::CaBIO::Tissue", $self);
609 return @results;
610 }
611  
612 ## end bean association methods ##
613
614 1;
615 #end
616 # ------------------------------------------------------------------------------------------
617 package CaCORE::CaBIO::Chromosome;
618
619 use 5.005;
620 #use strict;
621 use warnings;
622
623 require Exporter;
624
625 use XML::DOM;
626
627 ## begin import objects ##
628 use CaCORE::ApplicationService;
629 ## end import objects ##
630
631
632 @ISA = qw(CaCORE::DomainObjectI);
633
634 our %EXPORT_TAGS = ( 'all' => [ qw(
635
636 ) ] );
637
638 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
639
640 our @EXPORT = qw(
641 );
642
643 # create an instance of the Chromosome object
644 # returns: a Chromosome object
645 sub new {
646 my $class = shift;
647 my $self = {};
648 bless($self, $class);
649 #print "new Chromosome\n";
650 return $self;
651 }
652
653 # Construct the specific section of the WSDL request corresponding
654 # to this Chromosome intance
655 # returns: XML in string format
656 sub toWebserviceXML {
657 my $self = shift;
658 my $result = shift;
659 my $assigned_id = shift;
660 my $current_id = shift;
661 my $l = shift;
662 my %worklist = %$l;
663
664 # prefix portion of the xml
665 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Chromosome\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
666 my $tmpstr = "";
667 $current_id ++;
668
669 ## begin attribute to XML ##
670 # bigid;
671 if( defined( $self->getBigid ) ) {
672 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
673 } else {
674 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
675 }
676 $result .= $tmpstr;
677  
678 # id;
679 if( defined( $self->getId ) ) {
680 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
681 } else {
682 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
683 }
684 $result .= $tmpstr;
685  
686 # number;
687 if( defined( $self->getNumber ) ) {
688 $tmpstr = "<number xsi:type=\"xsd:string\">" . $self->getNumber . "</number>";
689 } else {
690 $tmpstr = "<number xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
691 }
692 $result .= $tmpstr;
693  
694 ## end attribute to XML ##
695
696 ## begin association to XML ##
697 ## end association to XML ##
698
699 # add trailing close tags
700 $result .= "</multiRef>";
701
702 return ($result, $current_id, %worklist);
703 }
704
705 # parse a given webservice response xml, construct a list of Chromosome objects
706 # param: xml doc
707 # returns: list of Chromosome objects
708 sub fromWebserviceXML {
709 my $self = shift;
710 my $parser = new XML::DOM::Parser;
711 my $docnode = $parser->parse(shift);
712 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
713
714 return $self->fromWSXMLListNode($root);
715 }
716
717 # parse a given xml node, construct a list of Chromosome objects
718 # param: xml node
719 # returns: a list of Chromosome objects
720 sub fromWSXMLListNode {
721 my $self = shift;
722 my $listNode = shift;
723 my @obj_list = ();
724
725 # get all children for this node
726 for my $childrenNode ($listNode->getChildNodes) {
727 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
728 my $newobj = $self->fromWSXMLNode($childrenNode);
729 push @obj_list, $newobj;
730 }
731 }
732
733 return @obj_list;
734 }
735
736 # parse a given xml node, construct one Chromosome object
737 # param: xml node
738 # returns: one Chromosome object
739 sub fromWSXMLNode {
740 my $ChromosomeNode = $_[1];
741
742 ## begin ELEMENT_NODE children ##
743 my $bigid;
744 my $id;
745 my $number;
746 ## end ELEMENT_NODE children ##
747
748 # get all children for this node
749 for my $childrenNode ($ChromosomeNode->getChildNodes) {
750 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
751 if( ! defined($childrenNode->getFirstChild) ){ next; };
752 my $textNode = $childrenNode->getFirstChild;
753 ## begin iterate ELEMENT_NODE ##
754 if (0) {
755 # do nothing, just a place holder for "if" component
756 }
757 elsif ($childrenNode->getNodeName eq "bigid") {
758 $bigid=$textNode->getNodeValue;
759 }
760 elsif ($childrenNode->getNodeName eq "id") {
761 $id=$textNode->getNodeValue;
762 }
763 elsif ($childrenNode->getNodeName eq "number") {
764 $number=$textNode->getNodeValue;
765 }
766 ## end iterate ELEMENT_NODE ##
767 }
768 }
769 my $newobj = new CaCORE::CaBIO::Chromosome;
770 ## begin set attr ##
771 $newobj->setBigid($bigid);
772 $newobj->setId($id);
773 $newobj->setNumber($number);
774 ## end set attr ##
775
776 return $newobj;
777 }
778
779 ## begin getters and setters ##
780
781 sub getBigid {
782 my $self = shift;
783 return $self->{bigid};
784 }
785  
786 sub setBigid {
787 my $self = shift;
788 $self->{bigid} = shift;
789 }
790  
791 sub getId {
792 my $self = shift;
793 return $self->{id};
794 }
795  
796 sub setId {
797 my $self = shift;
798 $self->{id} = shift;
799 }
800  
801 sub getNumber {
802 my $self = shift;
803 return $self->{number};
804 }
805  
806 sub setNumber {
807 my $self = shift;
808 $self->{number} = shift;
809 }
810  
811 ## end getters and setters ##
812
813 ## begin bean association methods ##
814
815 sub getGeneCollection {
816 my $self = shift;
817 my $appSvc = CaCORE::ApplicationService->instance();
818 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
819 return @results;
820 }
821  
822 sub getLocationCollection {
823 my $self = shift;
824 my $appSvc = CaCORE::ApplicationService->instance();
825 my @results = $appSvc->queryObject("CaCORE::CaBIO::Location", $self);
826 return @results;
827 }
828  
829 sub getTaxon {
830 my $self = shift;
831 my $appSvc = CaCORE::ApplicationService->instance();
832 my @results = $appSvc->queryObject("CaCORE::CaBIO::Taxon", $self);
833 return $results[0];
834 }
835  
836 ## end bean association methods ##
837
838 1;
839 #end
840 # ------------------------------------------------------------------------------------------
841 package CaCORE::CaBIO::Gene;
842
843 use 5.005;
844 #use strict;
845 use warnings;
846
847 require Exporter;
848
849 use XML::DOM;
850
851 ## begin import objects ##
852 use CaCORE::ApplicationService;
853 ## end import objects ##
854
855
856 @ISA = qw(CaCORE::DomainObjectI);
857
858 our %EXPORT_TAGS = ( 'all' => [ qw(
859
860 ) ] );
861
862 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
863
864 our @EXPORT = qw(
865 );
866
867 # create an instance of the Gene object
868 # returns: a Gene object
869 sub new {
870 my $class = shift;
871 my $self = {};
872 bless($self, $class);
873 #print "new Gene\n";
874 return $self;
875 }
876
877 # Construct the specific section of the WSDL request corresponding
878 # to this Gene intance
879 # returns: XML in string format
880 sub toWebserviceXML {
881 my $self = shift;
882 my $result = shift;
883 my $assigned_id = shift;
884 my $current_id = shift;
885 my $l = shift;
886 my %worklist = %$l;
887
888 # prefix portion of the xml
889 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Gene\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
890 my $tmpstr = "";
891 $current_id ++;
892
893 ## begin attribute to XML ##
894 # bigid;
895 if( defined( $self->getBigid ) ) {
896 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
897 } else {
898 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
899 }
900 $result .= $tmpstr;
901  
902 # clusterId;
903 if( defined( $self->getClusterId ) ) {
904 $tmpstr = "<clusterId xsi:type=\"xsd:long\">" . $self->getClusterId . "</clusterId>";
905 } else {
906 $tmpstr = "<clusterId xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
907 }
908 $result .= $tmpstr;
909  
910 # fullName;
911 if( defined( $self->getFullName ) ) {
912 $tmpstr = "<fullName xsi:type=\"xsd:string\">" . $self->getFullName . "</fullName>";
913 } else {
914 $tmpstr = "<fullName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
915 }
916 $result .= $tmpstr;
917  
918 # id;
919 if( defined( $self->getId ) ) {
920 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
921 } else {
922 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
923 }
924 $result .= $tmpstr;
925  
926 # symbol;
927 if( defined( $self->getSymbol ) ) {
928 $tmpstr = "<symbol xsi:type=\"xsd:string\">" . $self->getSymbol . "</symbol>";
929 } else {
930 $tmpstr = "<symbol xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
931 }
932 $result .= $tmpstr;
933  
934 ## end attribute to XML ##
935
936 ## begin association to XML ##
937 ## end association to XML ##
938
939 # add trailing close tags
940 $result .= "</multiRef>";
941
942 return ($result, $current_id, %worklist);
943 }
944
945 # parse a given webservice response xml, construct a list of Gene objects
946 # param: xml doc
947 # returns: list of Gene objects
948 sub fromWebserviceXML {
949 my $self = shift;
950 my $parser = new XML::DOM::Parser;
951 my $docnode = $parser->parse(shift);
952 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
953
954 return $self->fromWSXMLListNode($root);
955 }
956
957 # parse a given xml node, construct a list of Gene objects
958 # param: xml node
959 # returns: a list of Gene objects
960 sub fromWSXMLListNode {
961 my $self = shift;
962 my $listNode = shift;
963 my @obj_list = ();
964
965 # get all children for this node
966 for my $childrenNode ($listNode->getChildNodes) {
967 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
968 my $newobj = $self->fromWSXMLNode($childrenNode);
969 push @obj_list, $newobj;
970 }
971 }
972
973 return @obj_list;
974 }
975
976 # parse a given xml node, construct one Gene object
977 # param: xml node
978 # returns: one Gene object
979 sub fromWSXMLNode {
980 my $GeneNode = $_[1];
981
982 ## begin ELEMENT_NODE children ##
983 my $bigid;
984 my $clusterId;
985 my $fullName;
986 my $id;
987 my $symbol;
988 ## end ELEMENT_NODE children ##
989
990 # get all children for this node
991 for my $childrenNode ($GeneNode->getChildNodes) {
992 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
993 if( ! defined($childrenNode->getFirstChild) ){ next; };
994 my $textNode = $childrenNode->getFirstChild;
995 ## begin iterate ELEMENT_NODE ##
996 if (0) {
997 # do nothing, just a place holder for "if" component
998 }
999 elsif ($childrenNode->getNodeName eq "bigid") {
1000 $bigid=$textNode->getNodeValue;
1001 }
1002 elsif ($childrenNode->getNodeName eq "clusterId") {
1003 $clusterId=$textNode->getNodeValue;
1004 }
1005 elsif ($childrenNode->getNodeName eq "fullName") {
1006 $fullName=$textNode->getNodeValue;
1007 }
1008 elsif ($childrenNode->getNodeName eq "id") {
1009 $id=$textNode->getNodeValue;
1010 }
1011 elsif ($childrenNode->getNodeName eq "symbol") {
1012 $symbol=$textNode->getNodeValue;
1013 }
1014 ## end iterate ELEMENT_NODE ##
1015 }
1016 }
1017 my $newobj = new CaCORE::CaBIO::Gene;
1018 ## begin set attr ##
1019 $newobj->setBigid($bigid);
1020 $newobj->setClusterId($clusterId);
1021 $newobj->setFullName($fullName);
1022 $newobj->setId($id);
1023 $newobj->setSymbol($symbol);
1024 ## end set attr ##
1025
1026 return $newobj;
1027 }
1028
1029 ## begin getters and setters ##
1030
1031 sub getBigid {
1032 my $self = shift;
1033 return $self->{bigid};
1034 }
1035  
1036 sub setBigid {
1037 my $self = shift;
1038 $self->{bigid} = shift;
1039 }
1040  
1041 sub getClusterId {
1042 my $self = shift;
1043 return $self->{clusterId};
1044 }
1045  
1046 sub setClusterId {
1047 my $self = shift;
1048 $self->{clusterId} = shift;
1049 }
1050  
1051 sub getFullName {
1052 my $self = shift;
1053 return $self->{fullName};
1054 }
1055  
1056 sub setFullName {
1057 my $self = shift;
1058 $self->{fullName} = shift;
1059 }
1060  
1061 sub getId {
1062 my $self = shift;
1063 return $self->{id};
1064 }
1065  
1066 sub setId {
1067 my $self = shift;
1068 $self->{id} = shift;
1069 }
1070  
1071 sub getSymbol {
1072 my $self = shift;
1073 return $self->{symbol};
1074 }
1075  
1076 sub setSymbol {
1077 my $self = shift;
1078 $self->{symbol} = shift;
1079 }
1080  
1081 ## end getters and setters ##
1082
1083 ## begin bean association methods ##
1084
1085 sub getChromosome {
1086 my $self = shift;
1087 my $appSvc = CaCORE::ApplicationService->instance();
1088 my @results = $appSvc->queryObject("CaCORE::CaBIO::Chromosome", $self);
1089 return $results[0];
1090 }
1091  
1092 sub getDatabaseCrossReferenceCollection {
1093 my $self = shift;
1094 my $appSvc = CaCORE::ApplicationService->instance();
1095 my @results = $appSvc->queryObject("CaCORE::Common::DatabaseCrossReference", $self);
1096 return @results;
1097 }
1098  
1099 sub getGeneAliasCollection {
1100 my $self = shift;
1101 my $appSvc = CaCORE::ApplicationService->instance();
1102 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneAlias", $self);
1103 return @results;
1104 }
1105  
1106 sub getGeneOntologyCollection {
1107 my $self = shift;
1108 my $appSvc = CaCORE::ApplicationService->instance();
1109 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneOntology", $self);
1110 return @results;
1111 }
1112  
1113 sub getGeneRelativeLocationCollection {
1114 my $self = shift;
1115 my $appSvc = CaCORE::ApplicationService->instance();
1116 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneRelativeLocation", $self);
1117 return @results;
1118 }
1119  
1120 sub getGenericReporterCollection {
1121 my $self = shift;
1122 my $appSvc = CaCORE::ApplicationService->instance();
1123 my @results = $appSvc->queryObject("CaCORE::CaBIO::GenericReporter", $self);
1124 return @results;
1125 }
1126  
1127 sub getHistopathologyCollection {
1128 my $self = shift;
1129 my $appSvc = CaCORE::ApplicationService->instance();
1130 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
1131 return @results;
1132 }
1133  
1134 sub getHomologousAssociationCollection {
1135 my $self = shift;
1136 my $appSvc = CaCORE::ApplicationService->instance();
1137 my @results = $appSvc->queryObject("CaCORE::CaBIO::HomologousAssociation", $self);
1138 return @results;
1139 }
1140  
1141 sub getLibraryCollection {
1142 my $self = shift;
1143 my $appSvc = CaCORE::ApplicationService->instance();
1144 my @results = $appSvc->queryObject("CaCORE::CaBIO::Library", $self);
1145 return @results;
1146 }
1147  
1148 sub getLocationCollection {
1149 my $self = shift;
1150 my $appSvc = CaCORE::ApplicationService->instance();
1151 my @results = $appSvc->queryObject("CaCORE::CaBIO::Location", $self);
1152 return @results;
1153 }
1154  
1155 sub getNucleicAcidSequenceCollection {
1156 my $self = shift;
1157 my $appSvc = CaCORE::ApplicationService->instance();
1158 my @results = $appSvc->queryObject("CaCORE::CaBIO::NucleicAcidSequence", $self);
1159 return @results;
1160 }
1161  
1162 sub getOrganOntologyCollection {
1163 my $self = shift;
1164 my $appSvc = CaCORE::ApplicationService->instance();
1165 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntology", $self);
1166 return @results;
1167 }
1168  
1169 sub getPathwayCollection {
1170 my $self = shift;
1171 my $appSvc = CaCORE::ApplicationService->instance();
1172 my @results = $appSvc->queryObject("CaCORE::CaBIO::Pathway", $self);
1173 return @results;
1174 }
1175  
1176 sub getProteinCollection {
1177 my $self = shift;
1178 my $appSvc = CaCORE::ApplicationService->instance();
1179 my @results = $appSvc->queryObject("CaCORE::CaBIO::Protein", $self);
1180 return @results;
1181 }
1182  
1183 sub getTargetCollection {
1184 my $self = shift;
1185 my $appSvc = CaCORE::ApplicationService->instance();
1186 my @results = $appSvc->queryObject("CaCORE::CaBIO::Target", $self);
1187 return @results;
1188 }
1189  
1190 sub getTaxon {
1191 my $self = shift;
1192 my $appSvc = CaCORE::ApplicationService->instance();
1193 my @results = $appSvc->queryObject("CaCORE::CaBIO::Taxon", $self);
1194 return $results[0];
1195 }
1196  
1197 ## end bean association methods ##
1198
1199 1;
1200 #end
1201 # ------------------------------------------------------------------------------------------
1202 package CaCORE::CaBIO::Protocol;
1203
1204 use 5.005;
1205 #use strict;
1206 use warnings;
1207
1208 require Exporter;
1209
1210 use XML::DOM;
1211
1212 ## begin import objects ##
1213 use CaCORE::ApplicationService;
1214 ## end import objects ##
1215
1216
1217 @ISA = qw(CaCORE::DomainObjectI);
1218
1219 our %EXPORT_TAGS = ( 'all' => [ qw(
1220
1221 ) ] );
1222
1223 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
1224
1225 our @EXPORT = qw(
1226 );
1227
1228 # create an instance of the Protocol object
1229 # returns: a Protocol object
1230 sub new {
1231 my $class = shift;
1232 my $self = {};
1233 bless($self, $class);
1234 #print "new Protocol\n";
1235 return $self;
1236 }
1237
1238 # Construct the specific section of the WSDL request corresponding
1239 # to this Protocol intance
1240 # returns: XML in string format
1241 sub toWebserviceXML {
1242 my $self = shift;
1243 my $result = shift;
1244 my $assigned_id = shift;
1245 my $current_id = shift;
1246 my $l = shift;
1247 my %worklist = %$l;
1248
1249 # prefix portion of the xml
1250 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Protocol\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
1251 my $tmpstr = "";
1252 $current_id ++;
1253
1254 ## begin attribute to XML ##
1255 # bigid;
1256 if( defined( $self->getBigid ) ) {
1257 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
1258 } else {
1259 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1260 }
1261 $result .= $tmpstr;
1262  
1263 # description;
1264 if( defined( $self->getDescription ) ) {
1265 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
1266 } else {
1267 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1268 }
1269 $result .= $tmpstr;
1270  
1271 # id;
1272 if( defined( $self->getId ) ) {
1273 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
1274 } else {
1275 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
1276 }
1277 $result .= $tmpstr;
1278  
1279 # name;
1280 if( defined( $self->getName ) ) {
1281 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
1282 } else {
1283 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1284 }
1285 $result .= $tmpstr;
1286  
1287 # type;
1288 if( defined( $self->getType ) ) {
1289 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
1290 } else {
1291 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1292 }
1293 $result .= $tmpstr;
1294  
1295 ## end attribute to XML ##
1296
1297 ## begin association to XML ##
1298 ## end association to XML ##
1299
1300 # add trailing close tags
1301 $result .= "</multiRef>";
1302
1303 return ($result, $current_id, %worklist);
1304 }
1305
1306 # parse a given webservice response xml, construct a list of Protocol objects
1307 # param: xml doc
1308 # returns: list of Protocol objects
1309 sub fromWebserviceXML {
1310 my $self = shift;
1311 my $parser = new XML::DOM::Parser;
1312 my $docnode = $parser->parse(shift);
1313 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
1314
1315 return $self->fromWSXMLListNode($root);
1316 }
1317
1318 # parse a given xml node, construct a list of Protocol objects
1319 # param: xml node
1320 # returns: a list of Protocol objects
1321 sub fromWSXMLListNode {
1322 my $self = shift;
1323 my $listNode = shift;
1324 my @obj_list = ();
1325
1326 # get all children for this node
1327 for my $childrenNode ($listNode->getChildNodes) {
1328 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1329 my $newobj = $self->fromWSXMLNode($childrenNode);
1330 push @obj_list, $newobj;
1331 }
1332 }
1333
1334 return @obj_list;
1335 }
1336
1337 # parse a given xml node, construct one Protocol object
1338 # param: xml node
1339 # returns: one Protocol object
1340 sub fromWSXMLNode {
1341 my $ProtocolNode = $_[1];
1342
1343 ## begin ELEMENT_NODE children ##
1344 my $bigid;
1345 my $description;
1346 my $id;
1347 my $name;
1348 my $type;
1349 ## end ELEMENT_NODE children ##
1350
1351 # get all children for this node
1352 for my $childrenNode ($ProtocolNode->getChildNodes) {
1353 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1354 if( ! defined($childrenNode->getFirstChild) ){ next; };
1355 my $textNode = $childrenNode->getFirstChild;
1356 ## begin iterate ELEMENT_NODE ##
1357 if (0) {
1358 # do nothing, just a place holder for "if" component
1359 }
1360 elsif ($childrenNode->getNodeName eq "bigid") {
1361 $bigid=$textNode->getNodeValue;
1362 }
1363 elsif ($childrenNode->getNodeName eq "description") {
1364 $description=$textNode->getNodeValue;
1365 }
1366 elsif ($childrenNode->getNodeName eq "id") {
1367 $id=$textNode->getNodeValue;
1368 }
1369 elsif ($childrenNode->getNodeName eq "name") {
1370 $name=$textNode->getNodeValue;
1371 }
1372 elsif ($childrenNode->getNodeName eq "type") {
1373 $type=$textNode->getNodeValue;
1374 }
1375 ## end iterate ELEMENT_NODE ##
1376 }
1377 }
1378 my $newobj = new CaCORE::CaBIO::Protocol;
1379 ## begin set attr ##
1380 $newobj->setBigid($bigid);
1381 $newobj->setDescription($description);
1382 $newobj->setId($id);
1383 $newobj->setName($name);
1384 $newobj->setType($type);
1385 ## end set attr ##
1386
1387 return $newobj;
1388 }
1389
1390 ## begin getters and setters ##
1391
1392 sub getBigid {
1393 my $self = shift;
1394 return $self->{bigid};
1395 }
1396  
1397 sub setBigid {
1398 my $self = shift;
1399 $self->{bigid} = shift;
1400 }
1401  
1402 sub getDescription {
1403 my $self = shift;
1404 return $self->{description};
1405 }
1406  
1407 sub setDescription {
1408 my $self = shift;
1409 $self->{description} = shift;
1410 }
1411  
1412 sub getId {
1413 my $self = shift;
1414 return $self->{id};
1415 }
1416  
1417 sub setId {
1418 my $self = shift;
1419 $self->{id} = shift;
1420 }
1421  
1422 sub getName {
1423 my $self = shift;
1424 return $self->{name};
1425 }
1426  
1427 sub setName {
1428 my $self = shift;
1429 $self->{name} = shift;
1430 }
1431  
1432 sub getType {
1433 my $self = shift;
1434 return $self->{type};
1435 }
1436  
1437 sub setType {
1438 my $self = shift;
1439 $self->{type} = shift;
1440 }
1441  
1442 ## end getters and setters ##
1443
1444 ## begin bean association methods ##
1445
1446 sub getLibraryCollection {
1447 my $self = shift;
1448 my $appSvc = CaCORE::ApplicationService->instance();
1449 my @results = $appSvc->queryObject("CaCORE::CaBIO::Library", $self);
1450 return @results;
1451 }
1452  
1453 sub getTissueCollection {
1454 my $self = shift;
1455 my $appSvc = CaCORE::ApplicationService->instance();
1456 my @results = $appSvc->queryObject("CaCORE::CaBIO::Tissue", $self);
1457 return @results;
1458 }
1459  
1460 ## end bean association methods ##
1461
1462 1;
1463 #end
1464 # ------------------------------------------------------------------------------------------
1465 package CaCORE::CaBIO::Tissue;
1466
1467 use 5.005;
1468 #use strict;
1469 use warnings;
1470
1471 require Exporter;
1472
1473 use XML::DOM;
1474
1475 ## begin import objects ##
1476 use CaCORE::ApplicationService;
1477 ## end import objects ##
1478
1479
1480 @ISA = qw(CaCORE::DomainObjectI);
1481
1482 our %EXPORT_TAGS = ( 'all' => [ qw(
1483
1484 ) ] );
1485
1486 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
1487
1488 our @EXPORT = qw(
1489 );
1490
1491 # create an instance of the Tissue object
1492 # returns: a Tissue object
1493 sub new {
1494 my $class = shift;
1495 my $self = {};
1496 bless($self, $class);
1497 #print "new Tissue\n";
1498 return $self;
1499 }
1500
1501 # Construct the specific section of the WSDL request corresponding
1502 # to this Tissue intance
1503 # returns: XML in string format
1504 sub toWebserviceXML {
1505 my $self = shift;
1506 my $result = shift;
1507 my $assigned_id = shift;
1508 my $current_id = shift;
1509 my $l = shift;
1510 my %worklist = %$l;
1511
1512 # prefix portion of the xml
1513 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Tissue\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
1514 my $tmpstr = "";
1515 $current_id ++;
1516
1517 ## begin attribute to XML ##
1518 # cellLine;
1519 if( defined( $self->getCellLine ) ) {
1520 $tmpstr = "<cellLine xsi:type=\"xsd:string\">" . $self->getCellLine . "</cellLine>";
1521 } else {
1522 $tmpstr = "<cellLine xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1523 }
1524 $result .= $tmpstr;
1525  
1526 # cellType;
1527 if( defined( $self->getCellType ) ) {
1528 $tmpstr = "<cellType xsi:type=\"xsd:string\">" . $self->getCellType . "</cellType>";
1529 } else {
1530 $tmpstr = "<cellType xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1531 }
1532 $result .= $tmpstr;
1533  
1534 # description;
1535 if( defined( $self->getDescription ) ) {
1536 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
1537 } else {
1538 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1539 }
1540 $result .= $tmpstr;
1541  
1542 # developmentalStage;
1543 if( defined( $self->getDevelopmentalStage ) ) {
1544 $tmpstr = "<developmentalStage xsi:type=\"xsd:string\">" . $self->getDevelopmentalStage . "</developmentalStage>";
1545 } else {
1546 $tmpstr = "<developmentalStage xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1547 }
1548 $result .= $tmpstr;
1549  
1550 # histology;
1551 if( defined( $self->getHistology ) ) {
1552 $tmpstr = "<histology xsi:type=\"xsd:string\">" . $self->getHistology . "</histology>";
1553 } else {
1554 $tmpstr = "<histology xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1555 }
1556 $result .= $tmpstr;
1557  
1558 # id;
1559 if( defined( $self->getId ) ) {
1560 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
1561 } else {
1562 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
1563 }
1564 $result .= $tmpstr;
1565  
1566 # name;
1567 if( defined( $self->getName ) ) {
1568 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
1569 } else {
1570 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1571 }
1572 $result .= $tmpstr;
1573  
1574 # organ;
1575 if( defined( $self->getOrgan ) ) {
1576 $tmpstr = "<organ xsi:type=\"xsd:string\">" . $self->getOrgan . "</organ>";
1577 } else {
1578 $tmpstr = "<organ xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1579 }
1580 $result .= $tmpstr;
1581  
1582 # sex;
1583 if( defined( $self->getSex ) ) {
1584 $tmpstr = "<sex xsi:type=\"xsd:string\">" . $self->getSex . "</sex>";
1585 } else {
1586 $tmpstr = "<sex xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1587 }
1588 $result .= $tmpstr;
1589  
1590 # supplier;
1591 if( defined( $self->getSupplier ) ) {
1592 $tmpstr = "<supplier xsi:type=\"xsd:string\">" . $self->getSupplier . "</supplier>";
1593 } else {
1594 $tmpstr = "<supplier xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1595 }
1596 $result .= $tmpstr;
1597  
1598 # type;
1599 if( defined( $self->getType ) ) {
1600 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
1601 } else {
1602 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1603 }
1604 $result .= $tmpstr;
1605  
1606 ## end attribute to XML ##
1607
1608 ## begin association to XML ##
1609 ## end association to XML ##
1610
1611 # add trailing close tags
1612 $result .= "</multiRef>";
1613
1614 return ($result, $current_id, %worklist);
1615 }
1616
1617 # parse a given webservice response xml, construct a list of Tissue objects
1618 # param: xml doc
1619 # returns: list of Tissue objects
1620 sub fromWebserviceXML {
1621 my $self = shift;
1622 my $parser = new XML::DOM::Parser;
1623 my $docnode = $parser->parse(shift);
1624 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
1625
1626 return $self->fromWSXMLListNode($root);
1627 }
1628
1629 # parse a given xml node, construct a list of Tissue objects
1630 # param: xml node
1631 # returns: a list of Tissue objects
1632 sub fromWSXMLListNode {
1633 my $self = shift;
1634 my $listNode = shift;
1635 my @obj_list = ();
1636
1637 # get all children for this node
1638 for my $childrenNode ($listNode->getChildNodes) {
1639 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1640 my $newobj = $self->fromWSXMLNode($childrenNode);
1641 push @obj_list, $newobj;
1642 }
1643 }
1644
1645 return @obj_list;
1646 }
1647
1648 # parse a given xml node, construct one Tissue object
1649 # param: xml node
1650 # returns: one Tissue object
1651 sub fromWSXMLNode {
1652 my $TissueNode = $_[1];
1653
1654 ## begin ELEMENT_NODE children ##
1655 my $cellLine;
1656 my $cellType;
1657 my $description;
1658 my $developmentalStage;
1659 my $histology;
1660 my $id;
1661 my $name;
1662 my $organ;
1663 my $sex;
1664 my $supplier;
1665 my $type;
1666 ## end ELEMENT_NODE children ##
1667
1668 # get all children for this node
1669 for my $childrenNode ($TissueNode->getChildNodes) {
1670 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
1671 if( ! defined($childrenNode->getFirstChild) ){ next; };
1672 my $textNode = $childrenNode->getFirstChild;
1673 ## begin iterate ELEMENT_NODE ##
1674 if (0) {
1675 # do nothing, just a place holder for "if" component
1676 }
1677 elsif ($childrenNode->getNodeName eq "cellLine") {
1678 $cellLine=$textNode->getNodeValue;
1679 }
1680 elsif ($childrenNode->getNodeName eq "cellType") {
1681 $cellType=$textNode->getNodeValue;
1682 }
1683 elsif ($childrenNode->getNodeName eq "description") {
1684 $description=$textNode->getNodeValue;
1685 }
1686 elsif ($childrenNode->getNodeName eq "developmentalStage") {
1687 $developmentalStage=$textNode->getNodeValue;
1688 }
1689 elsif ($childrenNode->getNodeName eq "histology") {
1690 $histology=$textNode->getNodeValue;
1691 }
1692 elsif ($childrenNode->getNodeName eq "id") {
1693 $id=$textNode->getNodeValue;
1694 }
1695 elsif ($childrenNode->getNodeName eq "name") {
1696 $name=$textNode->getNodeValue;
1697 }
1698 elsif ($childrenNode->getNodeName eq "organ") {
1699 $organ=$textNode->getNodeValue;
1700 }
1701 elsif ($childrenNode->getNodeName eq "sex") {
1702 $sex=$textNode->getNodeValue;
1703 }
1704 elsif ($childrenNode->getNodeName eq "supplier") {
1705 $supplier=$textNode->getNodeValue;
1706 }
1707 elsif ($childrenNode->getNodeName eq "type") {
1708 $type=$textNode->getNodeValue;
1709 }
1710 ## end iterate ELEMENT_NODE ##
1711 }
1712 }
1713 my $newobj = new CaCORE::CaBIO::Tissue;
1714 ## begin set attr ##
1715 $newobj->setCellLine($cellLine);
1716 $newobj->setCellType($cellType);
1717 $newobj->setDescription($description);
1718 $newobj->setDevelopmentalStage($developmentalStage);
1719 $newobj->setHistology($histology);
1720 $newobj->setId($id);
1721 $newobj->setName($name);
1722 $newobj->setOrgan($organ);
1723 $newobj->setSex($sex);
1724 $newobj->setSupplier($supplier);
1725 $newobj->setType($type);
1726 ## end set attr ##
1727
1728 return $newobj;
1729 }
1730
1731 ## begin getters and setters ##
1732
1733 sub getCellLine {
1734 my $self = shift;
1735 return $self->{cellLine};
1736 }
1737  
1738 sub setCellLine {
1739 my $self = shift;
1740 $self->{cellLine} = shift;
1741 }
1742  
1743 sub getCellType {
1744 my $self = shift;
1745 return $self->{cellType};
1746 }
1747  
1748 sub setCellType {
1749 my $self = shift;
1750 $self->{cellType} = shift;
1751 }
1752  
1753 sub getDescription {
1754 my $self = shift;
1755 return $self->{description};
1756 }
1757  
1758 sub setDescription {
1759 my $self = shift;
1760 $self->{description} = shift;
1761 }
1762  
1763 sub getDevelopmentalStage {
1764 my $self = shift;
1765 return $self->{developmentalStage};
1766 }
1767  
1768 sub setDevelopmentalStage {
1769 my $self = shift;
1770 $self->{developmentalStage} = shift;
1771 }
1772  
1773 sub getHistology {
1774 my $self = shift;
1775 return $self->{histology};
1776 }
1777  
1778 sub setHistology {
1779 my $self = shift;
1780 $self->{histology} = shift;
1781 }
1782  
1783 sub getId {
1784 my $self = shift;
1785 return $self->{id};
1786 }
1787  
1788 sub setId {
1789 my $self = shift;
1790 $self->{id} = shift;
1791 }
1792  
1793 sub getName {
1794 my $self = shift;
1795 return $self->{name};
1796 }
1797  
1798 sub setName {
1799 my $self = shift;
1800 $self->{name} = shift;
1801 }
1802  
1803 sub getOrgan {
1804 my $self = shift;
1805 return $self->{organ};
1806 }
1807  
1808 sub setOrgan {
1809 my $self = shift;
1810 $self->{organ} = shift;
1811 }
1812  
1813 sub getSex {
1814 my $self = shift;
1815 return $self->{sex};
1816 }
1817  
1818 sub setSex {
1819 my $self = shift;
1820 $self->{sex} = shift;
1821 }
1822  
1823 sub getSupplier {
1824 my $self = shift;
1825 return $self->{supplier};
1826 }
1827  
1828 sub setSupplier {
1829 my $self = shift;
1830 $self->{supplier} = shift;
1831 }
1832  
1833 sub getType {
1834 my $self = shift;
1835 return $self->{type};
1836 }
1837  
1838 sub setType {
1839 my $self = shift;
1840 $self->{type} = shift;
1841 }
1842  
1843 ## end getters and setters ##
1844
1845 ## begin bean association methods ##
1846
1847 sub getLibraryCollection {
1848 my $self = shift;
1849 my $appSvc = CaCORE::ApplicationService->instance();
1850 my @results = $appSvc->queryObject("CaCORE::CaBIO::Library", $self);
1851 return @results;
1852 }
1853  
1854 sub getProtocol {
1855 my $self = shift;
1856 my $appSvc = CaCORE::ApplicationService->instance();
1857 my @results = $appSvc->queryObject("CaCORE::CaBIO::Protocol", $self);
1858 return $results[0];
1859 }
1860  
1861 sub getTaxon {
1862 my $self = shift;
1863 my $appSvc = CaCORE::ApplicationService->instance();
1864 my @results = $appSvc->queryObject("CaCORE::CaBIO::Taxon", $self);
1865 return $results[0];
1866 }
1867  
1868 ## end bean association methods ##
1869
1870 1;
1871 #end
1872 # ------------------------------------------------------------------------------------------
1873 package CaCORE::CaBIO::Library;
1874
1875 use 5.005;
1876 #use strict;
1877 use warnings;
1878
1879 require Exporter;
1880
1881 use XML::DOM;
1882
1883 ## begin import objects ##
1884 use CaCORE::ApplicationService;
1885 ## end import objects ##
1886
1887
1888 @ISA = qw(CaCORE::DomainObjectI);
1889
1890 our %EXPORT_TAGS = ( 'all' => [ qw(
1891
1892 ) ] );
1893
1894 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
1895
1896 our @EXPORT = qw(
1897 );
1898
1899 # create an instance of the Library object
1900 # returns: a Library object
1901 sub new {
1902 my $class = shift;
1903 my $self = {};
1904 bless($self, $class);
1905 #print "new Library\n";
1906 return $self;
1907 }
1908
1909 # Construct the specific section of the WSDL request corresponding
1910 # to this Library intance
1911 # returns: XML in string format
1912 sub toWebserviceXML {
1913 my $self = shift;
1914 my $result = shift;
1915 my $assigned_id = shift;
1916 my $current_id = shift;
1917 my $l = shift;
1918 my %worklist = %$l;
1919
1920 # prefix portion of the xml
1921 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Library\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
1922 my $tmpstr = "";
1923 $current_id ++;
1924
1925 ## begin attribute to XML ##
1926 # bigid;
1927 if( defined( $self->getBigid ) ) {
1928 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
1929 } else {
1930 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1931 }
1932 $result .= $tmpstr;
1933  
1934 # cloneProducer;
1935 if( defined( $self->getCloneProducer ) ) {
1936 $tmpstr = "<cloneProducer xsi:type=\"xsd:string\">" . $self->getCloneProducer . "</cloneProducer>";
1937 } else {
1938 $tmpstr = "<cloneProducer xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1939 }
1940 $result .= $tmpstr;
1941  
1942 # cloneVector;
1943 if( defined( $self->getCloneVector ) ) {
1944 $tmpstr = "<cloneVector xsi:type=\"xsd:string\">" . $self->getCloneVector . "</cloneVector>";
1945 } else {
1946 $tmpstr = "<cloneVector xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1947 }
1948 $result .= $tmpstr;
1949  
1950 # cloneVectorType;
1951 if( defined( $self->getCloneVectorType ) ) {
1952 $tmpstr = "<cloneVectorType xsi:type=\"xsd:string\">" . $self->getCloneVectorType . "</cloneVectorType>";
1953 } else {
1954 $tmpstr = "<cloneVectorType xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1955 }
1956 $result .= $tmpstr;
1957  
1958 # clonesToDate;
1959 if( defined( $self->getClonesToDate ) ) {
1960 $tmpstr = "<clonesToDate xsi:type=\"xsd:long\">" . $self->getClonesToDate . "</clonesToDate>";
1961 } else {
1962 $tmpstr = "<clonesToDate xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
1963 }
1964 $result .= $tmpstr;
1965  
1966 # creationDate;
1967 if( defined( $self->getCreationDate ) ) {
1968 $tmpstr = "<creationDate xsi:type=\"xsd:dateTime\">" . $self->getCreationDate . "</creationDate>";
1969 } else {
1970 $tmpstr = "<creationDate xsi:type=\"xsd:dateTime\" xsi:nil=\"true\" />";
1971 }
1972 $result .= $tmpstr;
1973  
1974 # description;
1975 if( defined( $self->getDescription ) ) {
1976 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
1977 } else {
1978 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1979 }
1980 $result .= $tmpstr;
1981  
1982 # id;
1983 if( defined( $self->getId ) ) {
1984 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
1985 } else {
1986 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
1987 }
1988 $result .= $tmpstr;
1989  
1990 # keyword;
1991 if( defined( $self->getKeyword ) ) {
1992 $tmpstr = "<keyword xsi:type=\"xsd:string\">" . $self->getKeyword . "</keyword>";
1993 } else {
1994 $tmpstr = "<keyword xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
1995 }
1996 $result .= $tmpstr;
1997  
1998 # labHost;
1999 if( defined( $self->getLabHost ) ) {
2000 $tmpstr = "<labHost xsi:type=\"xsd:string\">" . $self->getLabHost . "</labHost>";
2001 } else {
2002 $tmpstr = "<labHost xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2003 }
2004 $result .= $tmpstr;
2005  
2006 # name;
2007 if( defined( $self->getName ) ) {
2008 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
2009 } else {
2010 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2011 }
2012 $result .= $tmpstr;
2013  
2014 # rsite1;
2015 if( defined( $self->getRsite1 ) ) {
2016 $tmpstr = "<rsite1 xsi:type=\"xsd:string\">" . $self->getRsite1 . "</rsite1>";
2017 } else {
2018 $tmpstr = "<rsite1 xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2019 }
2020 $result .= $tmpstr;
2021  
2022 # rsite2;
2023 if( defined( $self->getRsite2 ) ) {
2024 $tmpstr = "<rsite2 xsi:type=\"xsd:string\">" . $self->getRsite2 . "</rsite2>";
2025 } else {
2026 $tmpstr = "<rsite2 xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2027 }
2028 $result .= $tmpstr;
2029  
2030 # sequencesToDate;
2031 if( defined( $self->getSequencesToDate ) ) {
2032 $tmpstr = "<sequencesToDate xsi:type=\"xsd:long\">" . $self->getSequencesToDate . "</sequencesToDate>";
2033 } else {
2034 $tmpstr = "<sequencesToDate xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2035 }
2036 $result .= $tmpstr;
2037  
2038 # type;
2039 if( defined( $self->getType ) ) {
2040 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
2041 } else {
2042 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2043 }
2044 $result .= $tmpstr;
2045  
2046 # uniGeneId;
2047 if( defined( $self->getUniGeneId ) ) {
2048 $tmpstr = "<uniGeneId xsi:type=\"xsd:long\">" . $self->getUniGeneId . "</uniGeneId>";
2049 } else {
2050 $tmpstr = "<uniGeneId xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2051 }
2052 $result .= $tmpstr;
2053  
2054 ## end attribute to XML ##
2055
2056 ## begin association to XML ##
2057 ## end association to XML ##
2058
2059 # add trailing close tags
2060 $result .= "</multiRef>";
2061
2062 return ($result, $current_id, %worklist);
2063 }
2064
2065 # parse a given webservice response xml, construct a list of Library objects
2066 # param: xml doc
2067 # returns: list of Library objects
2068 sub fromWebserviceXML {
2069 my $self = shift;
2070 my $parser = new XML::DOM::Parser;
2071 my $docnode = $parser->parse(shift);
2072 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2073
2074 return $self->fromWSXMLListNode($root);
2075 }
2076
2077 # parse a given xml node, construct a list of Library objects
2078 # param: xml node
2079 # returns: a list of Library objects
2080 sub fromWSXMLListNode {
2081 my $self = shift;
2082 my $listNode = shift;
2083 my @obj_list = ();
2084
2085 # get all children for this node
2086 for my $childrenNode ($listNode->getChildNodes) {
2087 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2088 my $newobj = $self->fromWSXMLNode($childrenNode);
2089 push @obj_list, $newobj;
2090 }
2091 }
2092
2093 return @obj_list;
2094 }
2095
2096 # parse a given xml node, construct one Library object
2097 # param: xml node
2098 # returns: one Library object
2099 sub fromWSXMLNode {
2100 my $LibraryNode = $_[1];
2101
2102 ## begin ELEMENT_NODE children ##
2103 my $bigid;
2104 my $cloneProducer;
2105 my $cloneVector;
2106 my $cloneVectorType;
2107 my $clonesToDate;
2108 my $creationDate;
2109 my $description;
2110 my $id;
2111 my $keyword;
2112 my $labHost;
2113 my $name;
2114 my $rsite1;
2115 my $rsite2;
2116 my $sequencesToDate;
2117 my $type;
2118 my $uniGeneId;
2119 ## end ELEMENT_NODE children ##
2120
2121 # get all children for this node
2122 for my $childrenNode ($LibraryNode->getChildNodes) {
2123 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2124 if( ! defined($childrenNode->getFirstChild) ){ next; };
2125 my $textNode = $childrenNode->getFirstChild;
2126 ## begin iterate ELEMENT_NODE ##
2127 if (0) {
2128 # do nothing, just a place holder for "if" component
2129 }
2130 elsif ($childrenNode->getNodeName eq "bigid") {
2131 $bigid=$textNode->getNodeValue;
2132 }
2133 elsif ($childrenNode->getNodeName eq "cloneProducer") {
2134 $cloneProducer=$textNode->getNodeValue;
2135 }
2136 elsif ($childrenNode->getNodeName eq "cloneVector") {
2137 $cloneVector=$textNode->getNodeValue;
2138 }
2139 elsif ($childrenNode->getNodeName eq "cloneVectorType") {
2140 $cloneVectorType=$textNode->getNodeValue;
2141 }
2142 elsif ($childrenNode->getNodeName eq "clonesToDate") {
2143 $clonesToDate=$textNode->getNodeValue;
2144 }
2145 elsif ($childrenNode->getNodeName eq "creationDate") {
2146 $creationDate=$textNode->getNodeValue;
2147 }
2148 elsif ($childrenNode->getNodeName eq "description") {
2149 $description=$textNode->getNodeValue;
2150 }
2151 elsif ($childrenNode->getNodeName eq "id") {
2152 $id=$textNode->getNodeValue;
2153 }
2154 elsif ($childrenNode->getNodeName eq "keyword") {
2155 $keyword=$textNode->getNodeValue;
2156 }
2157 elsif ($childrenNode->getNodeName eq "labHost") {
2158 $labHost=$textNode->getNodeValue;
2159 }
2160 elsif ($childrenNode->getNodeName eq "name") {
2161 $name=$textNode->getNodeValue;
2162 }
2163 elsif ($childrenNode->getNodeName eq "rsite1") {
2164 $rsite1=$textNode->getNodeValue;
2165 }
2166 elsif ($childrenNode->getNodeName eq "rsite2") {
2167 $rsite2=$textNode->getNodeValue;
2168 }
2169 elsif ($childrenNode->getNodeName eq "sequencesToDate") {
2170 $sequencesToDate=$textNode->getNodeValue;
2171 }
2172 elsif ($childrenNode->getNodeName eq "type") {
2173 $type=$textNode->getNodeValue;
2174 }
2175 elsif ($childrenNode->getNodeName eq "uniGeneId") {
2176 $uniGeneId=$textNode->getNodeValue;
2177 }
2178 ## end iterate ELEMENT_NODE ##
2179 }
2180 }
2181 my $newobj = new CaCORE::CaBIO::Library;
2182 ## begin set attr ##
2183 $newobj->setBigid($bigid);
2184 $newobj->setCloneProducer($cloneProducer);
2185 $newobj->setCloneVector($cloneVector);
2186 $newobj->setCloneVectorType($cloneVectorType);
2187 $newobj->setClonesToDate($clonesToDate);
2188 $newobj->setCreationDate($creationDate);
2189 $newobj->setDescription($description);
2190 $newobj->setId($id);
2191 $newobj->setKeyword($keyword);
2192 $newobj->setLabHost($labHost);
2193 $newobj->setName($name);
2194 $newobj->setRsite1($rsite1);
2195 $newobj->setRsite2($rsite2);
2196 $newobj->setSequencesToDate($sequencesToDate);
2197 $newobj->setType($type);
2198 $newobj->setUniGeneId($uniGeneId);
2199 ## end set attr ##
2200
2201 return $newobj;
2202 }
2203
2204 ## begin getters and setters ##
2205
2206 sub getBigid {
2207 my $self = shift;
2208 return $self->{bigid};
2209 }
2210  
2211 sub setBigid {
2212 my $self = shift;
2213 $self->{bigid} = shift;
2214 }
2215  
2216 sub getCloneProducer {
2217 my $self = shift;
2218 return $self->{cloneProducer};
2219 }
2220  
2221 sub setCloneProducer {
2222 my $self = shift;
2223 $self->{cloneProducer} = shift;
2224 }
2225  
2226 sub getCloneVector {
2227 my $self = shift;
2228 return $self->{cloneVector};
2229 }
2230  
2231 sub setCloneVector {
2232 my $self = shift;
2233 $self->{cloneVector} = shift;
2234 }
2235  
2236 sub getCloneVectorType {
2237 my $self = shift;
2238 return $self->{cloneVectorType};
2239 }
2240  
2241 sub setCloneVectorType {
2242 my $self = shift;
2243 $self->{cloneVectorType} = shift;
2244 }
2245  
2246 sub getClonesToDate {
2247 my $self = shift;
2248 return $self->{clonesToDate};
2249 }
2250  
2251 sub setClonesToDate {
2252 my $self = shift;
2253 $self->{clonesToDate} = shift;
2254 }
2255  
2256 sub getCreationDate {
2257 my $self = shift;
2258 return $self->{creationDate};
2259 }
2260  
2261 sub setCreationDate {
2262 my $self = shift;
2263 $self->{creationDate} = shift;
2264 }
2265  
2266 sub getDescription {
2267 my $self = shift;
2268 return $self->{description};
2269 }
2270  
2271 sub setDescription {
2272 my $self = shift;
2273 $self->{description} = shift;
2274 }
2275  
2276 sub getId {
2277 my $self = shift;
2278 return $self->{id};
2279 }
2280  
2281 sub setId {
2282 my $self = shift;
2283 $self->{id} = shift;
2284 }
2285  
2286 sub getKeyword {
2287 my $self = shift;
2288 return $self->{keyword};
2289 }
2290  
2291 sub setKeyword {
2292 my $self = shift;
2293 $self->{keyword} = shift;
2294 }
2295  
2296 sub getLabHost {
2297 my $self = shift;
2298 return $self->{labHost};
2299 }
2300  
2301 sub setLabHost {
2302 my $self = shift;
2303 $self->{labHost} = shift;
2304 }
2305  
2306 sub getName {
2307 my $self = shift;
2308 return $self->{name};
2309 }
2310  
2311 sub setName {
2312 my $self = shift;
2313 $self->{name} = shift;
2314 }
2315  
2316 sub getRsite1 {
2317 my $self = shift;
2318 return $self->{rsite1};
2319 }
2320  
2321 sub setRsite1 {
2322 my $self = shift;
2323 $self->{rsite1} = shift;
2324 }
2325  
2326 sub getRsite2 {
2327 my $self = shift;
2328 return $self->{rsite2};
2329 }
2330  
2331 sub setRsite2 {
2332 my $self = shift;
2333 $self->{rsite2} = shift;
2334 }
2335  
2336 sub getSequencesToDate {
2337 my $self = shift;
2338 return $self->{sequencesToDate};
2339 }
2340  
2341 sub setSequencesToDate {
2342 my $self = shift;
2343 $self->{sequencesToDate} = shift;
2344 }
2345  
2346 sub getType {
2347 my $self = shift;
2348 return $self->{type};
2349 }
2350  
2351 sub setType {
2352 my $self = shift;
2353 $self->{type} = shift;
2354 }
2355  
2356 sub getUniGeneId {
2357 my $self = shift;
2358 return $self->{uniGeneId};
2359 }
2360  
2361 sub setUniGeneId {
2362 my $self = shift;
2363 $self->{uniGeneId} = shift;
2364 }
2365  
2366 ## end getters and setters ##
2367
2368 ## begin bean association methods ##
2369
2370 sub getCloneCollection {
2371 my $self = shift;
2372 my $appSvc = CaCORE::ApplicationService->instance();
2373 my @results = $appSvc->queryObject("CaCORE::CaBIO::Clone", $self);
2374 return @results;
2375 }
2376  
2377 sub getGeneCollection {
2378 my $self = shift;
2379 my $appSvc = CaCORE::ApplicationService->instance();
2380 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
2381 return @results;
2382 }
2383  
2384 sub getHistopathologyCollection {
2385 my $self = shift;
2386 my $appSvc = CaCORE::ApplicationService->instance();
2387 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
2388 return @results;
2389 }
2390  
2391 sub getProtocol {
2392 my $self = shift;
2393 my $appSvc = CaCORE::ApplicationService->instance();
2394 my @results = $appSvc->queryObject("CaCORE::CaBIO::Protocol", $self);
2395 return $results[0];
2396 }
2397  
2398 sub getTissue {
2399 my $self = shift;
2400 my $appSvc = CaCORE::ApplicationService->instance();
2401 my @results = $appSvc->queryObject("CaCORE::CaBIO::Tissue", $self);
2402 return $results[0];
2403 }
2404  
2405 ## end bean association methods ##
2406
2407 1;
2408 #end
2409 # ------------------------------------------------------------------------------------------
2410 package CaCORE::CaBIO::Clone;
2411
2412 use 5.005;
2413 #use strict;
2414 use warnings;
2415
2416 require Exporter;
2417
2418 use XML::DOM;
2419
2420 ## begin import objects ##
2421 use CaCORE::ApplicationService;
2422 ## end import objects ##
2423
2424
2425 @ISA = qw(CaCORE::DomainObjectI);
2426
2427 our %EXPORT_TAGS = ( 'all' => [ qw(
2428
2429 ) ] );
2430
2431 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2432
2433 our @EXPORT = qw(
2434 );
2435
2436 # create an instance of the Clone object
2437 # returns: a Clone object
2438 sub new {
2439 my $class = shift;
2440 my $self = {};
2441 bless($self, $class);
2442 #print "new Clone\n";
2443 return $self;
2444 }
2445
2446 # Construct the specific section of the WSDL request corresponding
2447 # to this Clone intance
2448 # returns: XML in string format
2449 sub toWebserviceXML {
2450 my $self = shift;
2451 my $result = shift;
2452 my $assigned_id = shift;
2453 my $current_id = shift;
2454 my $l = shift;
2455 my %worklist = %$l;
2456
2457 # prefix portion of the xml
2458 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Clone\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
2459 my $tmpstr = "";
2460 $current_id ++;
2461
2462 ## begin attribute to XML ##
2463 # bigid;
2464 if( defined( $self->getBigid ) ) {
2465 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
2466 } else {
2467 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2468 }
2469 $result .= $tmpstr;
2470  
2471 # id;
2472 if( defined( $self->getId ) ) {
2473 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
2474 } else {
2475 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2476 }
2477 $result .= $tmpstr;
2478  
2479 # insertSize;
2480 if( defined( $self->getInsertSize ) ) {
2481 $tmpstr = "<insertSize xsi:type=\"xsd:long\">" . $self->getInsertSize . "</insertSize>";
2482 } else {
2483 $tmpstr = "<insertSize xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2484 }
2485 $result .= $tmpstr;
2486  
2487 # name;
2488 if( defined( $self->getName ) ) {
2489 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
2490 } else {
2491 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2492 }
2493 $result .= $tmpstr;
2494  
2495 # type;
2496 if( defined( $self->getType ) ) {
2497 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
2498 } else {
2499 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2500 }
2501 $result .= $tmpstr;
2502  
2503 ## end attribute to XML ##
2504
2505 ## begin association to XML ##
2506 ## end association to XML ##
2507
2508 # add trailing close tags
2509 $result .= "</multiRef>";
2510
2511 return ($result, $current_id, %worklist);
2512 }
2513
2514 # parse a given webservice response xml, construct a list of Clone objects
2515 # param: xml doc
2516 # returns: list of Clone objects
2517 sub fromWebserviceXML {
2518 my $self = shift;
2519 my $parser = new XML::DOM::Parser;
2520 my $docnode = $parser->parse(shift);
2521 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2522
2523 return $self->fromWSXMLListNode($root);
2524 }
2525
2526 # parse a given xml node, construct a list of Clone objects
2527 # param: xml node
2528 # returns: a list of Clone objects
2529 sub fromWSXMLListNode {
2530 my $self = shift;
2531 my $listNode = shift;
2532 my @obj_list = ();
2533
2534 # get all children for this node
2535 for my $childrenNode ($listNode->getChildNodes) {
2536 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2537 my $newobj = $self->fromWSXMLNode($childrenNode);
2538 push @obj_list, $newobj;
2539 }
2540 }
2541
2542 return @obj_list;
2543 }
2544
2545 # parse a given xml node, construct one Clone object
2546 # param: xml node
2547 # returns: one Clone object
2548 sub fromWSXMLNode {
2549 my $CloneNode = $_[1];
2550
2551 ## begin ELEMENT_NODE children ##
2552 my $bigid;
2553 my $id;
2554 my $insertSize;
2555 my $name;
2556 my $type;
2557 ## end ELEMENT_NODE children ##
2558
2559 # get all children for this node
2560 for my $childrenNode ($CloneNode->getChildNodes) {
2561 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2562 if( ! defined($childrenNode->getFirstChild) ){ next; };
2563 my $textNode = $childrenNode->getFirstChild;
2564 ## begin iterate ELEMENT_NODE ##
2565 if (0) {
2566 # do nothing, just a place holder for "if" component
2567 }
2568 elsif ($childrenNode->getNodeName eq "bigid") {
2569 $bigid=$textNode->getNodeValue;
2570 }
2571 elsif ($childrenNode->getNodeName eq "id") {
2572 $id=$textNode->getNodeValue;
2573 }
2574 elsif ($childrenNode->getNodeName eq "insertSize") {
2575 $insertSize=$textNode->getNodeValue;
2576 }
2577 elsif ($childrenNode->getNodeName eq "name") {
2578 $name=$textNode->getNodeValue;
2579 }
2580 elsif ($childrenNode->getNodeName eq "type") {
2581 $type=$textNode->getNodeValue;
2582 }
2583 ## end iterate ELEMENT_NODE ##
2584 }
2585 }
2586 my $newobj = new CaCORE::CaBIO::Clone;
2587 ## begin set attr ##
2588 $newobj->setBigid($bigid);
2589 $newobj->setId($id);
2590 $newobj->setInsertSize($insertSize);
2591 $newobj->setName($name);
2592 $newobj->setType($type);
2593 ## end set attr ##
2594
2595 return $newobj;
2596 }
2597
2598 ## begin getters and setters ##
2599
2600 sub getBigid {
2601 my $self = shift;
2602 return $self->{bigid};
2603 }
2604  
2605 sub setBigid {
2606 my $self = shift;
2607 $self->{bigid} = shift;
2608 }
2609  
2610 sub getId {
2611 my $self = shift;
2612 return $self->{id};
2613 }
2614  
2615 sub setId {
2616 my $self = shift;
2617 $self->{id} = shift;
2618 }
2619  
2620 sub getInsertSize {
2621 my $self = shift;
2622 return $self->{insertSize};
2623 }
2624  
2625 sub setInsertSize {
2626 my $self = shift;
2627 $self->{insertSize} = shift;
2628 }
2629  
2630 sub getName {
2631 my $self = shift;
2632 return $self->{name};
2633 }
2634  
2635 sub setName {
2636 my $self = shift;
2637 $self->{name} = shift;
2638 }
2639  
2640 sub getType {
2641 my $self = shift;
2642 return $self->{type};
2643 }
2644  
2645 sub setType {
2646 my $self = shift;
2647 $self->{type} = shift;
2648 }
2649  
2650 ## end getters and setters ##
2651
2652 ## begin bean association methods ##
2653
2654 sub getCloneRelativeLocationCollection {
2655 my $self = shift;
2656 my $appSvc = CaCORE::ApplicationService->instance();
2657 my @results = $appSvc->queryObject("CaCORE::CaBIO::CloneRelativeLocation", $self);
2658 return @results;
2659 }
2660  
2661 sub getLibrary {
2662 my $self = shift;
2663 my $appSvc = CaCORE::ApplicationService->instance();
2664 my @results = $appSvc->queryObject("CaCORE::CaBIO::Library", $self);
2665 return $results[0];
2666 }
2667  
2668 sub getNucleicAcidSequenceCollection {
2669 my $self = shift;
2670 my $appSvc = CaCORE::ApplicationService->instance();
2671 my @results = $appSvc->queryObject("CaCORE::CaBIO::NucleicAcidSequence", $self);
2672 return @results;
2673 }
2674  
2675 sub getTaxonCollection {
2676 my $self = shift;
2677 my $appSvc = CaCORE::ApplicationService->instance();
2678 my @results = $appSvc->queryObject("CaCORE::CaBIO::Taxon", $self);
2679 return @results;
2680 }
2681  
2682 ## end bean association methods ##
2683
2684 1;
2685 #end
2686 # ------------------------------------------------------------------------------------------
2687 package CaCORE::CaBIO::CloneRelativeLocation;
2688
2689 use 5.005;
2690 #use strict;
2691 use warnings;
2692
2693 require Exporter;
2694
2695 use XML::DOM;
2696
2697 ## begin import objects ##
2698 use CaCORE::ApplicationService;
2699 ## end import objects ##
2700
2701
2702 @ISA = qw(CaCORE::DomainObjectI);
2703
2704 our %EXPORT_TAGS = ( 'all' => [ qw(
2705
2706 ) ] );
2707
2708 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2709
2710 our @EXPORT = qw(
2711 );
2712
2713 # create an instance of the CloneRelativeLocation object
2714 # returns: a CloneRelativeLocation object
2715 sub new {
2716 my $class = shift;
2717 my $self = {};
2718 bless($self, $class);
2719 #print "new CloneRelativeLocation\n";
2720 return $self;
2721 }
2722
2723 # Construct the specific section of the WSDL request corresponding
2724 # to this CloneRelativeLocation intance
2725 # returns: XML in string format
2726 sub toWebserviceXML {
2727 my $self = shift;
2728 my $result = shift;
2729 my $assigned_id = shift;
2730 my $current_id = shift;
2731 my $l = shift;
2732 my %worklist = %$l;
2733
2734 # prefix portion of the xml
2735 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":CloneRelativeLocation\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
2736 my $tmpstr = "";
2737 $current_id ++;
2738
2739 ## begin attribute to XML ##
2740 # bigid;
2741 if( defined( $self->getBigid ) ) {
2742 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
2743 } else {
2744 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2745 }
2746 $result .= $tmpstr;
2747  
2748 # id;
2749 if( defined( $self->getId ) ) {
2750 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
2751 } else {
2752 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2753 }
2754 $result .= $tmpstr;
2755  
2756 # type;
2757 if( defined( $self->getType ) ) {
2758 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
2759 } else {
2760 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2761 }
2762 $result .= $tmpstr;
2763  
2764 ## end attribute to XML ##
2765
2766 ## begin association to XML ##
2767 ## end association to XML ##
2768
2769 # add trailing close tags
2770 $result .= "</multiRef>";
2771
2772 return ($result, $current_id, %worklist);
2773 }
2774
2775 # parse a given webservice response xml, construct a list of CloneRelativeLocation objects
2776 # param: xml doc
2777 # returns: list of CloneRelativeLocation objects
2778 sub fromWebserviceXML {
2779 my $self = shift;
2780 my $parser = new XML::DOM::Parser;
2781 my $docnode = $parser->parse(shift);
2782 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
2783
2784 return $self->fromWSXMLListNode($root);
2785 }
2786
2787 # parse a given xml node, construct a list of CloneRelativeLocation objects
2788 # param: xml node
2789 # returns: a list of CloneRelativeLocation objects
2790 sub fromWSXMLListNode {
2791 my $self = shift;
2792 my $listNode = shift;
2793 my @obj_list = ();
2794
2795 # get all children for this node
2796 for my $childrenNode ($listNode->getChildNodes) {
2797 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2798 my $newobj = $self->fromWSXMLNode($childrenNode);
2799 push @obj_list, $newobj;
2800 }
2801 }
2802
2803 return @obj_list;
2804 }
2805
2806 # parse a given xml node, construct one CloneRelativeLocation object
2807 # param: xml node
2808 # returns: one CloneRelativeLocation object
2809 sub fromWSXMLNode {
2810 my $CloneRelativeLocationNode = $_[1];
2811
2812 ## begin ELEMENT_NODE children ##
2813 my $bigid;
2814 my $id;
2815 my $type;
2816 ## end ELEMENT_NODE children ##
2817
2818 # get all children for this node
2819 for my $childrenNode ($CloneRelativeLocationNode->getChildNodes) {
2820 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
2821 if( ! defined($childrenNode->getFirstChild) ){ next; };
2822 my $textNode = $childrenNode->getFirstChild;
2823 ## begin iterate ELEMENT_NODE ##
2824 if (0) {
2825 # do nothing, just a place holder for "if" component
2826 }
2827 elsif ($childrenNode->getNodeName eq "bigid") {
2828 $bigid=$textNode->getNodeValue;
2829 }
2830 elsif ($childrenNode->getNodeName eq "id") {
2831 $id=$textNode->getNodeValue;
2832 }
2833 elsif ($childrenNode->getNodeName eq "type") {
2834 $type=$textNode->getNodeValue;
2835 }
2836 ## end iterate ELEMENT_NODE ##
2837 }
2838 }
2839 my $newobj = new CaCORE::CaBIO::CloneRelativeLocation;
2840 ## begin set attr ##
2841 $newobj->setBigid($bigid);
2842 $newobj->setId($id);
2843 $newobj->setType($type);
2844 ## end set attr ##
2845
2846 return $newobj;
2847 }
2848
2849 ## begin getters and setters ##
2850
2851 sub getBigid {
2852 my $self = shift;
2853 return $self->{bigid};
2854 }
2855  
2856 sub setBigid {
2857 my $self = shift;
2858 $self->{bigid} = shift;
2859 }
2860  
2861 sub getId {
2862 my $self = shift;
2863 return $self->{id};
2864 }
2865  
2866 sub setId {
2867 my $self = shift;
2868 $self->{id} = shift;
2869 }
2870  
2871 sub getType {
2872 my $self = shift;
2873 return $self->{type};
2874 }
2875  
2876 sub setType {
2877 my $self = shift;
2878 $self->{type} = shift;
2879 }
2880  
2881 ## end getters and setters ##
2882
2883 ## begin bean association methods ##
2884
2885 sub getClone {
2886 my $self = shift;
2887 my $appSvc = CaCORE::ApplicationService->instance();
2888 my @results = $appSvc->queryObject("CaCORE::CaBIO::Clone", $self);
2889 return $results[0];
2890 }
2891  
2892 sub getNucleicAcidSequence {
2893 my $self = shift;
2894 my $appSvc = CaCORE::ApplicationService->instance();
2895 my @results = $appSvc->queryObject("CaCORE::CaBIO::NucleicAcidSequence", $self);
2896 return $results[0];
2897 }
2898  
2899 ## end bean association methods ##
2900
2901 1;
2902 #end
2903 # ------------------------------------------------------------------------------------------
2904 package CaCORE::CaBIO::NucleicAcidSequence;
2905
2906 use 5.005;
2907 #use strict;
2908 use warnings;
2909
2910 require Exporter;
2911
2912 use XML::DOM;
2913
2914 ## begin import objects ##
2915 use CaCORE::ApplicationService;
2916 ## end import objects ##
2917
2918
2919 @ISA = qw(CaCORE::DomainObjectI);
2920
2921 our %EXPORT_TAGS = ( 'all' => [ qw(
2922
2923 ) ] );
2924
2925 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
2926
2927 our @EXPORT = qw(
2928 );
2929
2930 # create an instance of the NucleicAcidSequence object
2931 # returns: a NucleicAcidSequence object
2932 sub new {
2933 my $class = shift;
2934 my $self = {};
2935 bless($self, $class);
2936 #print "new NucleicAcidSequence\n";
2937 return $self;
2938 }
2939
2940 # Construct the specific section of the WSDL request corresponding
2941 # to this NucleicAcidSequence intance
2942 # returns: XML in string format
2943 sub toWebserviceXML {
2944 my $self = shift;
2945 my $result = shift;
2946 my $assigned_id = shift;
2947 my $current_id = shift;
2948 my $l = shift;
2949 my %worklist = %$l;
2950
2951 # prefix portion of the xml
2952 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":NucleicAcidSequence\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
2953 my $tmpstr = "";
2954 $current_id ++;
2955
2956 ## begin attribute to XML ##
2957 # accessionNumber;
2958 if( defined( $self->getAccessionNumber ) ) {
2959 $tmpstr = "<accessionNumber xsi:type=\"xsd:string\">" . $self->getAccessionNumber . "</accessionNumber>";
2960 } else {
2961 $tmpstr = "<accessionNumber xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2962 }
2963 $result .= $tmpstr;
2964  
2965 # accessionNumberVersion;
2966 if( defined( $self->getAccessionNumberVersion ) ) {
2967 $tmpstr = "<accessionNumberVersion xsi:type=\"xsd:string\">" . $self->getAccessionNumberVersion . "</accessionNumberVersion>";
2968 } else {
2969 $tmpstr = "<accessionNumberVersion xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2970 }
2971 $result .= $tmpstr;
2972  
2973 # bigid;
2974 if( defined( $self->getBigid ) ) {
2975 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
2976 } else {
2977 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
2978 }
2979 $result .= $tmpstr;
2980  
2981 # id;
2982 if( defined( $self->getId ) ) {
2983 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
2984 } else {
2985 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2986 }
2987 $result .= $tmpstr;
2988  
2989 # length;
2990 if( defined( $self->getLength ) ) {
2991 $tmpstr = "<length xsi:type=\"xsd:long\">" . $self->getLength . "</length>";
2992 } else {
2993 $tmpstr = "<length xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
2994 }
2995 $result .= $tmpstr;
2996  
2997 # type;
2998 if( defined( $self->getType ) ) {
2999 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
3000 } else {
3001 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3002 }
3003 $result .= $tmpstr;
3004  
3005 # value;
3006 if( defined( $self->getValue ) ) {
3007 $tmpstr = "<value xsi:type=\"xsd:string\">" . $self->getValue . "</value>";
3008 } else {
3009 $tmpstr = "<value xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3010 }
3011 $result .= $tmpstr;
3012  
3013 ## end attribute to XML ##
3014
3015 ## begin association to XML ##
3016 ## end association to XML ##
3017
3018 # add trailing close tags
3019 $result .= "</multiRef>";
3020
3021 return ($result, $current_id, %worklist);
3022 }
3023
3024 # parse a given webservice response xml, construct a list of NucleicAcidSequence objects
3025 # param: xml doc
3026 # returns: list of NucleicAcidSequence objects
3027 sub fromWebserviceXML {
3028 my $self = shift;
3029 my $parser = new XML::DOM::Parser;
3030 my $docnode = $parser->parse(shift);
3031 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3032
3033 return $self->fromWSXMLListNode($root);
3034 }
3035
3036 # parse a given xml node, construct a list of NucleicAcidSequence objects
3037 # param: xml node
3038 # returns: a list of NucleicAcidSequence objects
3039 sub fromWSXMLListNode {
3040 my $self = shift;
3041 my $listNode = shift;
3042 my @obj_list = ();
3043
3044 # get all children for this node
3045 for my $childrenNode ($listNode->getChildNodes) {
3046 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3047 my $newobj = $self->fromWSXMLNode($childrenNode);
3048 push @obj_list, $newobj;
3049 }
3050 }
3051
3052 return @obj_list;
3053 }
3054
3055 # parse a given xml node, construct one NucleicAcidSequence object
3056 # param: xml node
3057 # returns: one NucleicAcidSequence object
3058 sub fromWSXMLNode {
3059 my $NucleicAcidSequenceNode = $_[1];
3060
3061 ## begin ELEMENT_NODE children ##
3062 my $accessionNumber;
3063 my $accessionNumberVersion;
3064 my $bigid;
3065 my $id;
3066 my $length;
3067 my $type;
3068 my $value;
3069 ## end ELEMENT_NODE children ##
3070
3071 # get all children for this node
3072 for my $childrenNode ($NucleicAcidSequenceNode->getChildNodes) {
3073 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3074 if( ! defined($childrenNode->getFirstChild) ){ next; };
3075 my $textNode = $childrenNode->getFirstChild;
3076 ## begin iterate ELEMENT_NODE ##
3077 if (0) {
3078 # do nothing, just a place holder for "if" component
3079 }
3080 elsif ($childrenNode->getNodeName eq "accessionNumber") {
3081 $accessionNumber=$textNode->getNodeValue;
3082 }
3083 elsif ($childrenNode->getNodeName eq "accessionNumberVersion") {
3084 $accessionNumberVersion=$textNode->getNodeValue;
3085 }
3086 elsif ($childrenNode->getNodeName eq "bigid") {
3087 $bigid=$textNode->getNodeValue;
3088 }
3089 elsif ($childrenNode->getNodeName eq "id") {
3090 $id=$textNode->getNodeValue;
3091 }
3092 elsif ($childrenNode->getNodeName eq "length") {
3093 $length=$textNode->getNodeValue;
3094 }
3095 elsif ($childrenNode->getNodeName eq "type") {
3096 $type=$textNode->getNodeValue;
3097 }
3098 elsif ($childrenNode->getNodeName eq "value") {
3099 $value=$textNode->getNodeValue;
3100 }
3101 ## end iterate ELEMENT_NODE ##
3102 }
3103 }
3104 my $newobj = new CaCORE::CaBIO::NucleicAcidSequence;
3105 ## begin set attr ##
3106 $newobj->setAccessionNumber($accessionNumber);
3107 $newobj->setAccessionNumberVersion($accessionNumberVersion);
3108 $newobj->setBigid($bigid);
3109 $newobj->setId($id);
3110 $newobj->setLength($length);
3111 $newobj->setType($type);
3112 $newobj->setValue($value);
3113 ## end set attr ##
3114
3115 return $newobj;
3116 }
3117
3118 ## begin getters and setters ##
3119
3120 sub getAccessionNumber {
3121 my $self = shift;
3122 return $self->{accessionNumber};
3123 }
3124  
3125 sub setAccessionNumber {
3126 my $self = shift;
3127 $self->{accessionNumber} = shift;
3128 }
3129  
3130 sub getAccessionNumberVersion {
3131 my $self = shift;
3132 return $self->{accessionNumberVersion};
3133 }
3134  
3135 sub setAccessionNumberVersion {
3136 my $self = shift;
3137 $self->{accessionNumberVersion} = shift;
3138 }
3139  
3140 sub getBigid {
3141 my $self = shift;
3142 return $self->{bigid};
3143 }
3144  
3145 sub setBigid {
3146 my $self = shift;
3147 $self->{bigid} = shift;
3148 }
3149  
3150 sub getId {
3151 my $self = shift;
3152 return $self->{id};
3153 }
3154  
3155 sub setId {
3156 my $self = shift;
3157 $self->{id} = shift;
3158 }
3159  
3160 sub getLength {
3161 my $self = shift;
3162 return $self->{length};
3163 }
3164  
3165 sub setLength {
3166 my $self = shift;
3167 $self->{length} = shift;
3168 }
3169  
3170 sub getType {
3171 my $self = shift;
3172 return $self->{type};
3173 }
3174  
3175 sub setType {
3176 my $self = shift;
3177 $self->{type} = shift;
3178 }
3179  
3180 sub getValue {
3181 my $self = shift;
3182 return $self->{value};
3183 }
3184  
3185 sub setValue {
3186 my $self = shift;
3187 $self->{value} = shift;
3188 }
3189  
3190 ## end getters and setters ##
3191
3192 ## begin bean association methods ##
3193
3194 sub getCloneRelativeLocation {
3195 my $self = shift;
3196 my $appSvc = CaCORE::ApplicationService->instance();
3197 my @results = $appSvc->queryObject("CaCORE::CaBIO::CloneRelativeLocation", $self);
3198 return $results[0];
3199 }
3200  
3201 sub getDatabaseCrossReferenceCollection {
3202 my $self = shift;
3203 my $appSvc = CaCORE::ApplicationService->instance();
3204 my @results = $appSvc->queryObject("CaCORE::Common::DatabaseCrossReference", $self);
3205 return @results;
3206 }
3207  
3208 sub getGeneCollection {
3209 my $self = shift;
3210 my $appSvc = CaCORE::ApplicationService->instance();
3211 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
3212 return @results;
3213 }
3214  
3215 sub getLocationCollection {
3216 my $self = shift;
3217 my $appSvc = CaCORE::ApplicationService->instance();
3218 my @results = $appSvc->queryObject("CaCORE::CaBIO::Location", $self);
3219 return @results;
3220 }
3221  
3222 ## end bean association methods ##
3223
3224 1;
3225 #end
3226 # ------------------------------------------------------------------------------------------
3227 package CaCORE::CaBIO::Location;
3228
3229 use 5.005;
3230 #use strict;
3231 use warnings;
3232
3233 require Exporter;
3234
3235 use XML::DOM;
3236
3237 ## begin import objects ##
3238 use CaCORE::ApplicationService;
3239 ## end import objects ##
3240
3241
3242 @ISA = qw(CaCORE::DomainObjectI);
3243
3244 our %EXPORT_TAGS = ( 'all' => [ qw(
3245
3246 ) ] );
3247
3248 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3249
3250 our @EXPORT = qw(
3251 );
3252
3253 # create an instance of the Location object
3254 # returns: a Location object
3255 sub new {
3256 my $class = shift;
3257 my $self = {};
3258 bless($self, $class);
3259 #print "new Location\n";
3260 return $self;
3261 }
3262
3263 # Construct the specific section of the WSDL request corresponding
3264 # to this Location intance
3265 # returns: XML in string format
3266 sub toWebserviceXML {
3267 my $self = shift;
3268 my $result = shift;
3269 my $assigned_id = shift;
3270 my $current_id = shift;
3271 my $l = shift;
3272 my %worklist = %$l;
3273
3274 # prefix portion of the xml
3275 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Location\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
3276 my $tmpstr = "";
3277 $current_id ++;
3278
3279 ## begin attribute to XML ##
3280 # id;
3281 if( defined( $self->getId ) ) {
3282 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
3283 } else {
3284 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
3285 }
3286 $result .= $tmpstr;
3287  
3288 ## end attribute to XML ##
3289
3290 ## begin association to XML ##
3291 ## end association to XML ##
3292
3293 # add trailing close tags
3294 $result .= "</multiRef>";
3295
3296 return ($result, $current_id, %worklist);
3297 }
3298
3299 # parse a given webservice response xml, construct a list of Location objects
3300 # param: xml doc
3301 # returns: list of Location objects
3302 sub fromWebserviceXML {
3303 my $self = shift;
3304 my $parser = new XML::DOM::Parser;
3305 my $docnode = $parser->parse(shift);
3306 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3307
3308 return $self->fromWSXMLListNode($root);
3309 }
3310
3311 # parse a given xml node, construct a list of Location objects
3312 # param: xml node
3313 # returns: a list of Location objects
3314 sub fromWSXMLListNode {
3315 my $self = shift;
3316 my $listNode = shift;
3317 my @obj_list = ();
3318
3319 # get all children for this node
3320 for my $childrenNode ($listNode->getChildNodes) {
3321 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3322 my $newobj = $self->fromWSXMLNode($childrenNode);
3323 push @obj_list, $newobj;
3324 }
3325 }
3326
3327 return @obj_list;
3328 }
3329
3330 # parse a given xml node, construct one Location object
3331 # param: xml node
3332 # returns: one Location object
3333 sub fromWSXMLNode {
3334 my $LocationNode = $_[1];
3335
3336 ## begin ELEMENT_NODE children ##
3337 my $id;
3338 ## end ELEMENT_NODE children ##
3339
3340 # get all children for this node
3341 for my $childrenNode ($LocationNode->getChildNodes) {
3342 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3343 if( ! defined($childrenNode->getFirstChild) ){ next; };
3344 my $textNode = $childrenNode->getFirstChild;
3345 ## begin iterate ELEMENT_NODE ##
3346 if (0) {
3347 # do nothing, just a place holder for "if" component
3348 }
3349 elsif ($childrenNode->getNodeName eq "id") {
3350 $id=$textNode->getNodeValue;
3351 }
3352 ## end iterate ELEMENT_NODE ##
3353 }
3354 }
3355 my $newobj = new CaCORE::CaBIO::Location;
3356 ## begin set attr ##
3357 $newobj->setId($id);
3358 ## end set attr ##
3359
3360 return $newobj;
3361 }
3362
3363 ## begin getters and setters ##
3364
3365 sub getId {
3366 my $self = shift;
3367 return $self->{id};
3368 }
3369  
3370 sub setId {
3371 my $self = shift;
3372 $self->{id} = shift;
3373 }
3374  
3375 ## end getters and setters ##
3376
3377 ## begin bean association methods ##
3378
3379 sub getSNP {
3380 my $self = shift;
3381 my $appSvc = CaCORE::ApplicationService->instance();
3382 my @results = $appSvc->queryObject("CaCORE::CaBIO::SNP", $self);
3383 return $results[0];
3384 }
3385  
3386 sub getChromosome {
3387 my $self = shift;
3388 my $appSvc = CaCORE::ApplicationService->instance();
3389 my @results = $appSvc->queryObject("CaCORE::CaBIO::Chromosome", $self);
3390 return $results[0];
3391 }
3392  
3393 sub getGene {
3394 my $self = shift;
3395 my $appSvc = CaCORE::ApplicationService->instance();
3396 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
3397 return $results[0];
3398 }
3399  
3400 sub getNucleicAcidSequence {
3401 my $self = shift;
3402 my $appSvc = CaCORE::ApplicationService->instance();
3403 my @results = $appSvc->queryObject("CaCORE::CaBIO::NucleicAcidSequence", $self);
3404 return $results[0];
3405 }
3406  
3407 ## end bean association methods ##
3408
3409 1;
3410 #end
3411 # ------------------------------------------------------------------------------------------
3412 package CaCORE::CaBIO::PhysicalLocation;
3413
3414 use 5.005;
3415 #use strict;
3416 use warnings;
3417
3418 require Exporter;
3419
3420 use XML::DOM;
3421
3422 ## begin import objects ##
3423 use CaCORE::ApplicationService;
3424 ## end import objects ##
3425
3426
3427 @ISA = qw(CaCORE::CaBIO::Location);
3428 our %EXPORT_TAGS = ( 'all' => [ qw(
3429
3430 ) ] );
3431
3432 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3433
3434 our @EXPORT = qw(
3435 );
3436
3437 # create an instance of the PhysicalLocation object
3438 # returns: a PhysicalLocation object
3439 sub new {
3440 my $class = shift;
3441 my $self = {};
3442 bless($self, $class);
3443 #print "new PhysicalLocation\n";
3444 return $self;
3445 }
3446
3447 # Construct the specific section of the WSDL request corresponding
3448 # to this PhysicalLocation intance
3449 # returns: XML in string format
3450 sub toWebserviceXML {
3451 my $self = shift;
3452 my $result = shift;
3453 my $assigned_id = shift;
3454 my $current_id = shift;
3455 my $l = shift;
3456 my %worklist = %$l;
3457
3458 # prefix portion of the xml
3459 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":PhysicalLocation\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
3460 my $tmpstr = "";
3461 $current_id ++;
3462
3463 ## begin attribute to XML ##
3464 # chromosomalEndPosition;
3465 if( defined( $self->getChromosomalEndPosition ) ) {
3466 $tmpstr = "<chromosomalEndPosition xsi:type=\"xsd:long\">" . $self->getChromosomalEndPosition . "</chromosomalEndPosition>";
3467 } else {
3468 $tmpstr = "<chromosomalEndPosition xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
3469 }
3470 $result .= $tmpstr;
3471  
3472 # chromosomalStartPosition;
3473 if( defined( $self->getChromosomalStartPosition ) ) {
3474 $tmpstr = "<chromosomalStartPosition xsi:type=\"xsd:long\">" . $self->getChromosomalStartPosition . "</chromosomalStartPosition>";
3475 } else {
3476 $tmpstr = "<chromosomalStartPosition xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
3477 }
3478 $result .= $tmpstr;
3479  
3480 # id;
3481 if( defined( $self->getId ) ) {
3482 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
3483 } else {
3484 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
3485 }
3486 $result .= $tmpstr;
3487  
3488 ## end attribute to XML ##
3489
3490 ## begin association to XML ##
3491 ## end association to XML ##
3492
3493 # add trailing close tags
3494 $result .= "</multiRef>";
3495
3496 return ($result, $current_id, %worklist);
3497 }
3498
3499 # parse a given webservice response xml, construct a list of PhysicalLocation objects
3500 # param: xml doc
3501 # returns: list of PhysicalLocation objects
3502 sub fromWebserviceXML {
3503 my $self = shift;
3504 my $parser = new XML::DOM::Parser;
3505 my $docnode = $parser->parse(shift);
3506 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3507
3508 return $self->fromWSXMLListNode($root);
3509 }
3510
3511 # parse a given xml node, construct a list of PhysicalLocation objects
3512 # param: xml node
3513 # returns: a list of PhysicalLocation objects
3514 sub fromWSXMLListNode {
3515 my $self = shift;
3516 my $listNode = shift;
3517 my @obj_list = ();
3518
3519 # get all children for this node
3520 for my $childrenNode ($listNode->getChildNodes) {
3521 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3522 my $newobj = $self->fromWSXMLNode($childrenNode);
3523 push @obj_list, $newobj;
3524 }
3525 }
3526
3527 return @obj_list;
3528 }
3529
3530 # parse a given xml node, construct one PhysicalLocation object
3531 # param: xml node
3532 # returns: one PhysicalLocation object
3533 sub fromWSXMLNode {
3534 my $PhysicalLocationNode = $_[1];
3535
3536 ## begin ELEMENT_NODE children ##
3537 my $chromosomalEndPosition;
3538 my $chromosomalStartPosition;
3539 my $id;
3540 ## end ELEMENT_NODE children ##
3541
3542 # get all children for this node
3543 for my $childrenNode ($PhysicalLocationNode->getChildNodes) {
3544 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3545 if( ! defined($childrenNode->getFirstChild) ){ next; };
3546 my $textNode = $childrenNode->getFirstChild;
3547 ## begin iterate ELEMENT_NODE ##
3548 if (0) {
3549 # do nothing, just a place holder for "if" component
3550 }
3551 elsif ($childrenNode->getNodeName eq "chromosomalEndPosition") {
3552 $chromosomalEndPosition=$textNode->getNodeValue;
3553 }
3554 elsif ($childrenNode->getNodeName eq "chromosomalStartPosition") {
3555 $chromosomalStartPosition=$textNode->getNodeValue;
3556 }
3557 elsif ($childrenNode->getNodeName eq "id") {
3558 $id=$textNode->getNodeValue;
3559 }
3560 ## end iterate ELEMENT_NODE ##
3561 }
3562 }
3563 my $newobj = new CaCORE::CaBIO::PhysicalLocation;
3564 ## begin set attr ##
3565 $newobj->setChromosomalEndPosition($chromosomalEndPosition);
3566 $newobj->setChromosomalStartPosition($chromosomalStartPosition);
3567 $newobj->setId($id);
3568 ## end set attr ##
3569
3570 return $newobj;
3571 }
3572
3573 ## begin getters and setters ##
3574
3575 sub getChromosomalEndPosition {
3576 my $self = shift;
3577 return $self->{chromosomalEndPosition};
3578 }
3579  
3580 sub setChromosomalEndPosition {
3581 my $self = shift;
3582 $self->{chromosomalEndPosition} = shift;
3583 }
3584  
3585 sub getChromosomalStartPosition {
3586 my $self = shift;
3587 return $self->{chromosomalStartPosition};
3588 }
3589  
3590 sub setChromosomalStartPosition {
3591 my $self = shift;
3592 $self->{chromosomalStartPosition} = shift;
3593 }
3594  
3595 sub getId {
3596 my $self = shift;
3597 return $self->{id};
3598 }
3599  
3600 sub setId {
3601 my $self = shift;
3602 $self->{id} = shift;
3603 }
3604  
3605 ## end getters and setters ##
3606
3607 ## begin bean association methods ##
3608
3609 sub getCytobandCollection {
3610 my $self = shift;
3611 my $appSvc = CaCORE::ApplicationService->instance();
3612 my @results = $appSvc->queryObject("CaCORE::CaBIO::Cytoband", $self);
3613 return @results;
3614 }
3615  
3616 sub getSNP {
3617 my $self = shift;
3618 my $appSvc = CaCORE::ApplicationService->instance();
3619 my @results = $appSvc->queryObject("CaCORE::CaBIO::SNP", $self);
3620 return $results[0];
3621 }
3622  
3623 sub getChromosome {
3624 my $self = shift;
3625 my $appSvc = CaCORE::ApplicationService->instance();
3626 my @results = $appSvc->queryObject("CaCORE::CaBIO::Chromosome", $self);
3627 return $results[0];
3628 }
3629  
3630 sub getGene {
3631 my $self = shift;
3632 my $appSvc = CaCORE::ApplicationService->instance();
3633 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
3634 return $results[0];
3635 }
3636  
3637 sub getNucleicAcidSequence {
3638 my $self = shift;
3639 my $appSvc = CaCORE::ApplicationService->instance();
3640 my @results = $appSvc->queryObject("CaCORE::CaBIO::NucleicAcidSequence", $self);
3641 return $results[0];
3642 }
3643  
3644 ## end bean association methods ##
3645
3646 1;
3647 #end
3648 # ------------------------------------------------------------------------------------------
3649 package CaCORE::CaBIO::DiseaseOntology;
3650
3651 use 5.005;
3652 #use strict;
3653 use warnings;
3654
3655 require Exporter;
3656
3657 use XML::DOM;
3658
3659 ## begin import objects ##
3660 use CaCORE::ApplicationService;
3661 ## end import objects ##
3662
3663
3664 @ISA = qw(CaCORE::DomainObjectI);
3665
3666 our %EXPORT_TAGS = ( 'all' => [ qw(
3667
3668 ) ] );
3669
3670 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3671
3672 our @EXPORT = qw(
3673 );
3674
3675 # create an instance of the DiseaseOntology object
3676 # returns: a DiseaseOntology object
3677 sub new {
3678 my $class = shift;
3679 my $self = {};
3680 bless($self, $class);
3681 #print "new DiseaseOntology\n";
3682 return $self;
3683 }
3684
3685 # Construct the specific section of the WSDL request corresponding
3686 # to this DiseaseOntology intance
3687 # returns: XML in string format
3688 sub toWebserviceXML {
3689 my $self = shift;
3690 my $result = shift;
3691 my $assigned_id = shift;
3692 my $current_id = shift;
3693 my $l = shift;
3694 my %worklist = %$l;
3695
3696 # prefix portion of the xml
3697 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":DiseaseOntology\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
3698 my $tmpstr = "";
3699 $current_id ++;
3700
3701 ## begin attribute to XML ##
3702 # bigid;
3703 if( defined( $self->getBigid ) ) {
3704 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
3705 } else {
3706 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3707 }
3708 $result .= $tmpstr;
3709  
3710 # id;
3711 if( defined( $self->getId ) ) {
3712 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
3713 } else {
3714 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
3715 }
3716 $result .= $tmpstr;
3717  
3718 # name;
3719 if( defined( $self->getName ) ) {
3720 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
3721 } else {
3722 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3723 }
3724 $result .= $tmpstr;
3725  
3726 ## end attribute to XML ##
3727
3728 ## begin association to XML ##
3729 ## end association to XML ##
3730
3731 # add trailing close tags
3732 $result .= "</multiRef>";
3733
3734 return ($result, $current_id, %worklist);
3735 }
3736
3737 # parse a given webservice response xml, construct a list of DiseaseOntology objects
3738 # param: xml doc
3739 # returns: list of DiseaseOntology objects
3740 sub fromWebserviceXML {
3741 my $self = shift;
3742 my $parser = new XML::DOM::Parser;
3743 my $docnode = $parser->parse(shift);
3744 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3745
3746 return $self->fromWSXMLListNode($root);
3747 }
3748
3749 # parse a given xml node, construct a list of DiseaseOntology objects
3750 # param: xml node
3751 # returns: a list of DiseaseOntology objects
3752 sub fromWSXMLListNode {
3753 my $self = shift;
3754 my $listNode = shift;
3755 my @obj_list = ();
3756
3757 # get all children for this node
3758 for my $childrenNode ($listNode->getChildNodes) {
3759 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3760 my $newobj = $self->fromWSXMLNode($childrenNode);
3761 push @obj_list, $newobj;
3762 }
3763 }
3764
3765 return @obj_list;
3766 }
3767
3768 # parse a given xml node, construct one DiseaseOntology object
3769 # param: xml node
3770 # returns: one DiseaseOntology object
3771 sub fromWSXMLNode {
3772 my $DiseaseOntologyNode = $_[1];
3773
3774 ## begin ELEMENT_NODE children ##
3775 my $bigid;
3776 my $id;
3777 my $name;
3778 ## end ELEMENT_NODE children ##
3779
3780 # get all children for this node
3781 for my $childrenNode ($DiseaseOntologyNode->getChildNodes) {
3782 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3783 if( ! defined($childrenNode->getFirstChild) ){ next; };
3784 my $textNode = $childrenNode->getFirstChild;
3785 ## begin iterate ELEMENT_NODE ##
3786 if (0) {
3787 # do nothing, just a place holder for "if" component
3788 }
3789 elsif ($childrenNode->getNodeName eq "bigid") {
3790 $bigid=$textNode->getNodeValue;
3791 }
3792 elsif ($childrenNode->getNodeName eq "id") {
3793 $id=$textNode->getNodeValue;
3794 }
3795 elsif ($childrenNode->getNodeName eq "name") {
3796 $name=$textNode->getNodeValue;
3797 }
3798 ## end iterate ELEMENT_NODE ##
3799 }
3800 }
3801 my $newobj = new CaCORE::CaBIO::DiseaseOntology;
3802 ## begin set attr ##
3803 $newobj->setBigid($bigid);
3804 $newobj->setId($id);
3805 $newobj->setName($name);
3806 ## end set attr ##
3807
3808 return $newobj;
3809 }
3810
3811 ## begin getters and setters ##
3812
3813 sub getBigid {
3814 my $self = shift;
3815 return $self->{bigid};
3816 }
3817  
3818 sub setBigid {
3819 my $self = shift;
3820 $self->{bigid} = shift;
3821 }
3822  
3823 sub getId {
3824 my $self = shift;
3825 return $self->{id};
3826 }
3827  
3828 sub setId {
3829 my $self = shift;
3830 $self->{id} = shift;
3831 }
3832  
3833 sub getName {
3834 my $self = shift;
3835 return $self->{name};
3836 }
3837  
3838 sub setName {
3839 my $self = shift;
3840 $self->{name} = shift;
3841 }
3842  
3843 ## end getters and setters ##
3844
3845 ## begin bean association methods ##
3846
3847 sub getChildDiseaseOntologyRelationshipCollection {
3848 my $self = shift;
3849 my $appSvc = CaCORE::ApplicationService->instance();
3850 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntologyRelationship", $self);
3851 return @results;
3852 }
3853  
3854 sub getClinicalTrialProtocolCollection {
3855 my $self = shift;
3856 my $appSvc = CaCORE::ApplicationService->instance();
3857 my @results = $appSvc->queryObject("CaCORE::CaBIO::ClinicalTrialProtocol", $self);
3858 return @results;
3859 }
3860  
3861 sub getHistopathologyCollection {
3862 my $self = shift;
3863 my $appSvc = CaCORE::ApplicationService->instance();
3864 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
3865 return @results;
3866 }
3867  
3868 sub getParentDiseaseOntologyRelationshipCollection {
3869 my $self = shift;
3870 my $appSvc = CaCORE::ApplicationService->instance();
3871 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntologyRelationship", $self);
3872 return @results;
3873 }
3874  
3875 ## end bean association methods ##
3876
3877 1;
3878 #end
3879 # ------------------------------------------------------------------------------------------
3880 package CaCORE::CaBIO::GeneRelativeLocation;
3881
3882 use 5.005;
3883 #use strict;
3884 use warnings;
3885
3886 require Exporter;
3887
3888 use XML::DOM;
3889
3890 ## begin import objects ##
3891 use CaCORE::ApplicationService;
3892 ## end import objects ##
3893
3894
3895 @ISA = qw(CaCORE::DomainObjectI);
3896
3897 our %EXPORT_TAGS = ( 'all' => [ qw(
3898
3899 ) ] );
3900
3901 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
3902
3903 our @EXPORT = qw(
3904 );
3905
3906 # create an instance of the GeneRelativeLocation object
3907 # returns: a GeneRelativeLocation object
3908 sub new {
3909 my $class = shift;
3910 my $self = {};
3911 bless($self, $class);
3912 #print "new GeneRelativeLocation\n";
3913 return $self;
3914 }
3915
3916 # Construct the specific section of the WSDL request corresponding
3917 # to this GeneRelativeLocation intance
3918 # returns: XML in string format
3919 sub toWebserviceXML {
3920 my $self = shift;
3921 my $result = shift;
3922 my $assigned_id = shift;
3923 my $current_id = shift;
3924 my $l = shift;
3925 my %worklist = %$l;
3926
3927 # prefix portion of the xml
3928 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":GeneRelativeLocation\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
3929 my $tmpstr = "";
3930 $current_id ++;
3931
3932 ## begin attribute to XML ##
3933 # bigid;
3934 if( defined( $self->getBigid ) ) {
3935 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
3936 } else {
3937 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3938 }
3939 $result .= $tmpstr;
3940  
3941 # id;
3942 if( defined( $self->getId ) ) {
3943 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
3944 } else {
3945 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
3946 }
3947 $result .= $tmpstr;
3948  
3949 # type;
3950 if( defined( $self->getType ) ) {
3951 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
3952 } else {
3953 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
3954 }
3955 $result .= $tmpstr;
3956  
3957 ## end attribute to XML ##
3958
3959 ## begin association to XML ##
3960 ## end association to XML ##
3961
3962 # add trailing close tags
3963 $result .= "</multiRef>";
3964
3965 return ($result, $current_id, %worklist);
3966 }
3967
3968 # parse a given webservice response xml, construct a list of GeneRelativeLocation objects
3969 # param: xml doc
3970 # returns: list of GeneRelativeLocation objects
3971 sub fromWebserviceXML {
3972 my $self = shift;
3973 my $parser = new XML::DOM::Parser;
3974 my $docnode = $parser->parse(shift);
3975 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
3976
3977 return $self->fromWSXMLListNode($root);
3978 }
3979
3980 # parse a given xml node, construct a list of GeneRelativeLocation objects
3981 # param: xml node
3982 # returns: a list of GeneRelativeLocation objects
3983 sub fromWSXMLListNode {
3984 my $self = shift;
3985 my $listNode = shift;
3986 my @obj_list = ();
3987
3988 # get all children for this node
3989 for my $childrenNode ($listNode->getChildNodes) {
3990 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
3991 my $newobj = $self->fromWSXMLNode($childrenNode);
3992 push @obj_list, $newobj;
3993 }
3994 }
3995
3996 return @obj_list;
3997 }
3998
3999 # parse a given xml node, construct one GeneRelativeLocation object
4000 # param: xml node
4001 # returns: one GeneRelativeLocation object
4002 sub fromWSXMLNode {
4003 my $GeneRelativeLocationNode = $_[1];
4004
4005 ## begin ELEMENT_NODE children ##
4006 my $bigid;
4007 my $id;
4008 my $type;
4009 ## end ELEMENT_NODE children ##
4010
4011 # get all children for this node
4012 for my $childrenNode ($GeneRelativeLocationNode->getChildNodes) {
4013 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4014 if( ! defined($childrenNode->getFirstChild) ){ next; };
4015 my $textNode = $childrenNode->getFirstChild;
4016 ## begin iterate ELEMENT_NODE ##
4017 if (0) {
4018 # do nothing, just a place holder for "if" component
4019 }
4020 elsif ($childrenNode->getNodeName eq "bigid") {
4021 $bigid=$textNode->getNodeValue;
4022 }
4023 elsif ($childrenNode->getNodeName eq "id") {
4024 $id=$textNode->getNodeValue;
4025 }
4026 elsif ($childrenNode->getNodeName eq "type") {
4027 $type=$textNode->getNodeValue;
4028 }
4029 ## end iterate ELEMENT_NODE ##
4030 }
4031 }
4032 my $newobj = new CaCORE::CaBIO::GeneRelativeLocation;
4033 ## begin set attr ##
4034 $newobj->setBigid($bigid);
4035 $newobj->setId($id);
4036 $newobj->setType($type);
4037 ## end set attr ##
4038
4039 return $newobj;
4040 }
4041
4042 ## begin getters and setters ##
4043
4044 sub getBigid {
4045 my $self = shift;
4046 return $self->{bigid};
4047 }
4048  
4049 sub setBigid {
4050 my $self = shift;
4051 $self->{bigid} = shift;
4052 }
4053  
4054 sub getId {
4055 my $self = shift;
4056 return $self->{id};
4057 }
4058  
4059 sub setId {
4060 my $self = shift;
4061 $self->{id} = shift;
4062 }
4063  
4064 sub getType {
4065 my $self = shift;
4066 return $self->{type};
4067 }
4068  
4069 sub setType {
4070 my $self = shift;
4071 $self->{type} = shift;
4072 }
4073  
4074 ## end getters and setters ##
4075
4076 ## begin bean association methods ##
4077
4078 ## end bean association methods ##
4079
4080 1;
4081 #end
4082 # ------------------------------------------------------------------------------------------
4083 package CaCORE::CaBIO::PopulationFrequency;
4084
4085 use 5.005;
4086 #use strict;
4087 use warnings;
4088
4089 require Exporter;
4090
4091 use XML::DOM;
4092
4093 ## begin import objects ##
4094 use CaCORE::ApplicationService;
4095 ## end import objects ##
4096
4097
4098 @ISA = qw(CaCORE::DomainObjectI);
4099
4100 our %EXPORT_TAGS = ( 'all' => [ qw(
4101
4102 ) ] );
4103
4104 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
4105
4106 our @EXPORT = qw(
4107 );
4108
4109 # create an instance of the PopulationFrequency object
4110 # returns: a PopulationFrequency object
4111 sub new {
4112 my $class = shift;
4113 my $self = {};
4114 bless($self, $class);
4115 #print "new PopulationFrequency\n";
4116 return $self;
4117 }
4118
4119 # Construct the specific section of the WSDL request corresponding
4120 # to this PopulationFrequency intance
4121 # returns: XML in string format
4122 sub toWebserviceXML {
4123 my $self = shift;
4124 my $result = shift;
4125 my $assigned_id = shift;
4126 my $current_id = shift;
4127 my $l = shift;
4128 my %worklist = %$l;
4129
4130 # prefix portion of the xml
4131 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":PopulationFrequency\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
4132 my $tmpstr = "";
4133 $current_id ++;
4134
4135 ## begin attribute to XML ##
4136 # bigid;
4137 if( defined( $self->getBigid ) ) {
4138 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
4139 } else {
4140 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4141 }
4142 $result .= $tmpstr;
4143  
4144 # ethnicity;
4145 if( defined( $self->getEthnicity ) ) {
4146 $tmpstr = "<ethnicity xsi:type=\"xsd:string\">" . $self->getEthnicity . "</ethnicity>";
4147 } else {
4148 $tmpstr = "<ethnicity xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4149 }
4150 $result .= $tmpstr;
4151  
4152 # id;
4153 if( defined( $self->getId ) ) {
4154 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
4155 } else {
4156 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
4157 }
4158 $result .= $tmpstr;
4159  
4160 # majorAllele;
4161 if( defined( $self->getMajorAllele ) ) {
4162 $tmpstr = "<majorAllele xsi:type=\"xsd:string\">" . $self->getMajorAllele . "</majorAllele>";
4163 } else {
4164 $tmpstr = "<majorAllele xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4165 }
4166 $result .= $tmpstr;
4167  
4168 # majorFrequency;
4169 if( defined( $self->getMajorFrequency ) ) {
4170 $tmpstr = "<majorFrequency xsi:type=\"xsd:double\">" . $self->getMajorFrequency . "</majorFrequency>";
4171 } else {
4172 $tmpstr = "<majorFrequency xsi:type=\"xsd:double\" xsi:nil=\"true\" />";
4173 }
4174 $result .= $tmpstr;
4175  
4176 # minorAllele;
4177 if( defined( $self->getMinorAllele ) ) {
4178 $tmpstr = "<minorAllele xsi:type=\"xsd:string\">" . $self->getMinorAllele . "</minorAllele>";
4179 } else {
4180 $tmpstr = "<minorAllele xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4181 }
4182 $result .= $tmpstr;
4183  
4184 # minorFrequency;
4185 if( defined( $self->getMinorFrequency ) ) {
4186 $tmpstr = "<minorFrequency xsi:type=\"xsd:double\">" . $self->getMinorFrequency . "</minorFrequency>";
4187 } else {
4188 $tmpstr = "<minorFrequency xsi:type=\"xsd:double\" xsi:nil=\"true\" />";
4189 }
4190 $result .= $tmpstr;
4191  
4192 # type;
4193 if( defined( $self->getType ) ) {
4194 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
4195 } else {
4196 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4197 }
4198 $result .= $tmpstr;
4199  
4200 ## end attribute to XML ##
4201
4202 ## begin association to XML ##
4203 ## end association to XML ##
4204
4205 # add trailing close tags
4206 $result .= "</multiRef>";
4207
4208 return ($result, $current_id, %worklist);
4209 }
4210
4211 # parse a given webservice response xml, construct a list of PopulationFrequency objects
4212 # param: xml doc
4213 # returns: list of PopulationFrequency objects
4214 sub fromWebserviceXML {
4215 my $self = shift;
4216 my $parser = new XML::DOM::Parser;
4217 my $docnode = $parser->parse(shift);
4218 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
4219
4220 return $self->fromWSXMLListNode($root);
4221 }
4222
4223 # parse a given xml node, construct a list of PopulationFrequency objects
4224 # param: xml node
4225 # returns: a list of PopulationFrequency objects
4226 sub fromWSXMLListNode {
4227 my $self = shift;
4228 my $listNode = shift;
4229 my @obj_list = ();
4230
4231 # get all children for this node
4232 for my $childrenNode ($listNode->getChildNodes) {
4233 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4234 my $newobj = $self->fromWSXMLNode($childrenNode);
4235 push @obj_list, $newobj;
4236 }
4237 }
4238
4239 return @obj_list;
4240 }
4241
4242 # parse a given xml node, construct one PopulationFrequency object
4243 # param: xml node
4244 # returns: one PopulationFrequency object
4245 sub fromWSXMLNode {
4246 my $PopulationFrequencyNode = $_[1];
4247
4248 ## begin ELEMENT_NODE children ##
4249 my $bigid;
4250 my $ethnicity;
4251 my $id;
4252 my $majorAllele;
4253 my $majorFrequency;
4254 my $minorAllele;
4255 my $minorFrequency;
4256 my $type;
4257 ## end ELEMENT_NODE children ##
4258
4259 # get all children for this node
4260 for my $childrenNode ($PopulationFrequencyNode->getChildNodes) {
4261 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4262 if( ! defined($childrenNode->getFirstChild) ){ next; };
4263 my $textNode = $childrenNode->getFirstChild;
4264 ## begin iterate ELEMENT_NODE ##
4265 if (0) {
4266 # do nothing, just a place holder for "if" component
4267 }
4268 elsif ($childrenNode->getNodeName eq "bigid") {
4269 $bigid=$textNode->getNodeValue;
4270 }
4271 elsif ($childrenNode->getNodeName eq "ethnicity") {
4272 $ethnicity=$textNode->getNodeValue;
4273 }
4274 elsif ($childrenNode->getNodeName eq "id") {
4275 $id=$textNode->getNodeValue;
4276 }
4277 elsif ($childrenNode->getNodeName eq "majorAllele") {
4278 $majorAllele=$textNode->getNodeValue;
4279 }
4280 elsif ($childrenNode->getNodeName eq "majorFrequency") {
4281 $majorFrequency=$textNode->getNodeValue;
4282 }
4283 elsif ($childrenNode->getNodeName eq "minorAllele") {
4284 $minorAllele=$textNode->getNodeValue;
4285 }
4286 elsif ($childrenNode->getNodeName eq "minorFrequency") {
4287 $minorFrequency=$textNode->getNodeValue;
4288 }
4289 elsif ($childrenNode->getNodeName eq "type") {
4290 $type=$textNode->getNodeValue;
4291 }
4292 ## end iterate ELEMENT_NODE ##
4293 }
4294 }
4295 my $newobj = new CaCORE::CaBIO::PopulationFrequency;
4296 ## begin set attr ##
4297 $newobj->setBigid($bigid);
4298 $newobj->setEthnicity($ethnicity);
4299 $newobj->setId($id);
4300 $newobj->setMajorAllele($majorAllele);
4301 $newobj->setMajorFrequency($majorFrequency);
4302 $newobj->setMinorAllele($minorAllele);
4303 $newobj->setMinorFrequency($minorFrequency);
4304 $newobj->setType($type);
4305 ## end set attr ##
4306
4307 return $newobj;
4308 }
4309
4310 ## begin getters and setters ##
4311
4312 sub getBigid {
4313 my $self = shift;
4314 return $self->{bigid};
4315 }
4316  
4317 sub setBigid {
4318 my $self = shift;
4319 $self->{bigid} = shift;
4320 }
4321  
4322 sub getEthnicity {
4323 my $self = shift;
4324 return $self->{ethnicity};
4325 }
4326  
4327 sub setEthnicity {
4328 my $self = shift;
4329 $self->{ethnicity} = shift;
4330 }
4331  
4332 sub getId {
4333 my $self = shift;
4334 return $self->{id};
4335 }
4336  
4337 sub setId {
4338 my $self = shift;
4339 $self->{id} = shift;
4340 }
4341  
4342 sub getMajorAllele {
4343 my $self = shift;
4344 return $self->{majorAllele};
4345 }
4346  
4347 sub setMajorAllele {
4348 my $self = shift;
4349 $self->{majorAllele} = shift;
4350 }
4351  
4352 sub getMajorFrequency {
4353 my $self = shift;
4354 return $self->{majorFrequency};
4355 }
4356  
4357 sub setMajorFrequency {
4358 my $self = shift;
4359 $self->{majorFrequency} = shift;
4360 }
4361  
4362 sub getMinorAllele {
4363 my $self = shift;
4364 return $self->{minorAllele};
4365 }
4366  
4367 sub setMinorAllele {
4368 my $self = shift;
4369 $self->{minorAllele} = shift;
4370 }
4371  
4372 sub getMinorFrequency {
4373 my $self = shift;
4374 return $self->{minorFrequency};
4375 }
4376  
4377 sub setMinorFrequency {
4378 my $self = shift;
4379 $self->{minorFrequency} = shift;
4380 }
4381  
4382 sub getType {
4383 my $self = shift;
4384 return $self->{type};
4385 }
4386  
4387 sub setType {
4388 my $self = shift;
4389 $self->{type} = shift;
4390 }
4391  
4392 ## end getters and setters ##
4393
4394 ## begin bean association methods ##
4395
4396 sub getSNP {
4397 my $self = shift;
4398 my $appSvc = CaCORE::ApplicationService->instance();
4399 my @results = $appSvc->queryObject("CaCORE::CaBIO::SNP", $self);
4400 return $results[0];
4401 }
4402  
4403 ## end bean association methods ##
4404
4405 1;
4406 #end
4407 # ------------------------------------------------------------------------------------------
4408 package CaCORE::CaBIO::HomologousAssociation;
4409
4410 use 5.005;
4411 #use strict;
4412 use warnings;
4413
4414 require Exporter;
4415
4416 use XML::DOM;
4417
4418 ## begin import objects ##
4419 use CaCORE::ApplicationService;
4420 ## end import objects ##
4421
4422
4423 @ISA = qw(CaCORE::DomainObjectI);
4424
4425 our %EXPORT_TAGS = ( 'all' => [ qw(
4426
4427 ) ] );
4428
4429 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
4430
4431 our @EXPORT = qw(
4432 );
4433
4434 # create an instance of the HomologousAssociation object
4435 # returns: a HomologousAssociation object
4436 sub new {
4437 my $class = shift;
4438 my $self = {};
4439 bless($self, $class);
4440 #print "new HomologousAssociation\n";
4441 return $self;
4442 }
4443
4444 # Construct the specific section of the WSDL request corresponding
4445 # to this HomologousAssociation intance
4446 # returns: XML in string format
4447 sub toWebserviceXML {
4448 my $self = shift;
4449 my $result = shift;
4450 my $assigned_id = shift;
4451 my $current_id = shift;
4452 my $l = shift;
4453 my %worklist = %$l;
4454
4455 # prefix portion of the xml
4456 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":HomologousAssociation\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
4457 my $tmpstr = "";
4458 $current_id ++;
4459
4460 ## begin attribute to XML ##
4461 # bigid;
4462 if( defined( $self->getBigid ) ) {
4463 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
4464 } else {
4465 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4466 }
4467 $result .= $tmpstr;
4468  
4469 # homologousId;
4470 if( defined( $self->getHomologousId ) ) {
4471 $tmpstr = "<homologousId xsi:type=\"xsd:long\">" . $self->getHomologousId . "</homologousId>";
4472 } else {
4473 $tmpstr = "<homologousId xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
4474 }
4475 $result .= $tmpstr;
4476  
4477 # id;
4478 if( defined( $self->getId ) ) {
4479 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
4480 } else {
4481 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
4482 }
4483 $result .= $tmpstr;
4484  
4485 # similarityPercentage;
4486 if( defined( $self->getSimilarityPercentage ) ) {
4487 $tmpstr = "<similarityPercentage xsi:type=\"xsd:float\">" . $self->getSimilarityPercentage . "</similarityPercentage>";
4488 } else {
4489 $tmpstr = "<similarityPercentage xsi:type=\"xsd:float\" xsi:nil=\"true\" />";
4490 }
4491 $result .= $tmpstr;
4492  
4493 ## end attribute to XML ##
4494
4495 ## begin association to XML ##
4496 ## end association to XML ##
4497
4498 # add trailing close tags
4499 $result .= "</multiRef>";
4500
4501 return ($result, $current_id, %worklist);
4502 }
4503
4504 # parse a given webservice response xml, construct a list of HomologousAssociation objects
4505 # param: xml doc
4506 # returns: list of HomologousAssociation objects
4507 sub fromWebserviceXML {
4508 my $self = shift;
4509 my $parser = new XML::DOM::Parser;
4510 my $docnode = $parser->parse(shift);
4511 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
4512
4513 return $self->fromWSXMLListNode($root);
4514 }
4515
4516 # parse a given xml node, construct a list of HomologousAssociation objects
4517 # param: xml node
4518 # returns: a list of HomologousAssociation objects
4519 sub fromWSXMLListNode {
4520 my $self = shift;
4521 my $listNode = shift;
4522 my @obj_list = ();
4523
4524 # get all children for this node
4525 for my $childrenNode ($listNode->getChildNodes) {
4526 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4527 my $newobj = $self->fromWSXMLNode($childrenNode);
4528 push @obj_list, $newobj;
4529 }
4530 }
4531
4532 return @obj_list;
4533 }
4534
4535 # parse a given xml node, construct one HomologousAssociation object
4536 # param: xml node
4537 # returns: one HomologousAssociation object
4538 sub fromWSXMLNode {
4539 my $HomologousAssociationNode = $_[1];
4540
4541 ## begin ELEMENT_NODE children ##
4542 my $bigid;
4543 my $homologousId;
4544 my $id;
4545 my $similarityPercentage;
4546 ## end ELEMENT_NODE children ##
4547
4548 # get all children for this node
4549 for my $childrenNode ($HomologousAssociationNode->getChildNodes) {
4550 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4551 if( ! defined($childrenNode->getFirstChild) ){ next; };
4552 my $textNode = $childrenNode->getFirstChild;
4553 ## begin iterate ELEMENT_NODE ##
4554 if (0) {
4555 # do nothing, just a place holder for "if" component
4556 }
4557 elsif ($childrenNode->getNodeName eq "bigid") {
4558 $bigid=$textNode->getNodeValue;
4559 }
4560 elsif ($childrenNode->getNodeName eq "homologousId") {
4561 $homologousId=$textNode->getNodeValue;
4562 }
4563 elsif ($childrenNode->getNodeName eq "id") {
4564 $id=$textNode->getNodeValue;
4565 }
4566 elsif ($childrenNode->getNodeName eq "similarityPercentage") {
4567 $similarityPercentage=$textNode->getNodeValue;
4568 }
4569 ## end iterate ELEMENT_NODE ##
4570 }
4571 }
4572 my $newobj = new CaCORE::CaBIO::HomologousAssociation;
4573 ## begin set attr ##
4574 $newobj->setBigid($bigid);
4575 $newobj->setHomologousId($homologousId);
4576 $newobj->setId($id);
4577 $newobj->setSimilarityPercentage($similarityPercentage);
4578 ## end set attr ##
4579
4580 return $newobj;
4581 }
4582
4583 ## begin getters and setters ##
4584
4585 sub getBigid {
4586 my $self = shift;
4587 return $self->{bigid};
4588 }
4589  
4590 sub setBigid {
4591 my $self = shift;
4592 $self->{bigid} = shift;
4593 }
4594  
4595 sub getHomologousId {
4596 my $self = shift;
4597 return $self->{homologousId};
4598 }
4599  
4600 sub setHomologousId {
4601 my $self = shift;
4602 $self->{homologousId} = shift;
4603 }
4604  
4605 sub getId {
4606 my $self = shift;
4607 return $self->{id};
4608 }
4609  
4610 sub setId {
4611 my $self = shift;
4612 $self->{id} = shift;
4613 }
4614  
4615 sub getSimilarityPercentage {
4616 my $self = shift;
4617 return $self->{similarityPercentage};
4618 }
4619  
4620 sub setSimilarityPercentage {
4621 my $self = shift;
4622 $self->{similarityPercentage} = shift;
4623 }
4624  
4625 ## end getters and setters ##
4626
4627 ## begin bean association methods ##
4628
4629 sub getHomologousGene {
4630 my $self = shift;
4631 my $appSvc = CaCORE::ApplicationService->instance();
4632 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
4633 return $results[0];
4634 }
4635  
4636 ## end bean association methods ##
4637
4638 1;
4639 #end
4640 # ------------------------------------------------------------------------------------------
4641 package CaCORE::CaBIO::Cytoband;
4642
4643 use 5.005;
4644 #use strict;
4645 use warnings;
4646
4647 require Exporter;
4648
4649 use XML::DOM;
4650
4651 ## begin import objects ##
4652 use CaCORE::ApplicationService;
4653 ## end import objects ##
4654
4655
4656 @ISA = qw(CaCORE::DomainObjectI);
4657
4658 our %EXPORT_TAGS = ( 'all' => [ qw(
4659
4660 ) ] );
4661
4662 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
4663
4664 our @EXPORT = qw(
4665 );
4666
4667 # create an instance of the Cytoband object
4668 # returns: a Cytoband object
4669 sub new {
4670 my $class = shift;
4671 my $self = {};
4672 bless($self, $class);
4673 #print "new Cytoband\n";
4674 return $self;
4675 }
4676
4677 # Construct the specific section of the WSDL request corresponding
4678 # to this Cytoband intance
4679 # returns: XML in string format
4680 sub toWebserviceXML {
4681 my $self = shift;
4682 my $result = shift;
4683 my $assigned_id = shift;
4684 my $current_id = shift;
4685 my $l = shift;
4686 my %worklist = %$l;
4687
4688 # prefix portion of the xml
4689 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Cytoband\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
4690 my $tmpstr = "";
4691 $current_id ++;
4692
4693 ## begin attribute to XML ##
4694 # bigid;
4695 if( defined( $self->getBigid ) ) {
4696 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
4697 } else {
4698 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4699 }
4700 $result .= $tmpstr;
4701  
4702 # id;
4703 if( defined( $self->getId ) ) {
4704 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
4705 } else {
4706 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
4707 }
4708 $result .= $tmpstr;
4709  
4710 # name;
4711 if( defined( $self->getName ) ) {
4712 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
4713 } else {
4714 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4715 }
4716 $result .= $tmpstr;
4717  
4718 ## end attribute to XML ##
4719
4720 ## begin association to XML ##
4721 ## end association to XML ##
4722
4723 # add trailing close tags
4724 $result .= "</multiRef>";
4725
4726 return ($result, $current_id, %worklist);
4727 }
4728
4729 # parse a given webservice response xml, construct a list of Cytoband objects
4730 # param: xml doc
4731 # returns: list of Cytoband objects
4732 sub fromWebserviceXML {
4733 my $self = shift;
4734 my $parser = new XML::DOM::Parser;
4735 my $docnode = $parser->parse(shift);
4736 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
4737
4738 return $self->fromWSXMLListNode($root);
4739 }
4740
4741 # parse a given xml node, construct a list of Cytoband objects
4742 # param: xml node
4743 # returns: a list of Cytoband objects
4744 sub fromWSXMLListNode {
4745 my $self = shift;
4746 my $listNode = shift;
4747 my @obj_list = ();
4748
4749 # get all children for this node
4750 for my $childrenNode ($listNode->getChildNodes) {
4751 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4752 my $newobj = $self->fromWSXMLNode($childrenNode);
4753 push @obj_list, $newobj;
4754 }
4755 }
4756
4757 return @obj_list;
4758 }
4759
4760 # parse a given xml node, construct one Cytoband object
4761 # param: xml node
4762 # returns: one Cytoband object
4763 sub fromWSXMLNode {
4764 my $CytobandNode = $_[1];
4765
4766 ## begin ELEMENT_NODE children ##
4767 my $bigid;
4768 my $id;
4769 my $name;
4770 ## end ELEMENT_NODE children ##
4771
4772 # get all children for this node
4773 for my $childrenNode ($CytobandNode->getChildNodes) {
4774 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4775 if( ! defined($childrenNode->getFirstChild) ){ next; };
4776 my $textNode = $childrenNode->getFirstChild;
4777 ## begin iterate ELEMENT_NODE ##
4778 if (0) {
4779 # do nothing, just a place holder for "if" component
4780 }
4781 elsif ($childrenNode->getNodeName eq "bigid") {
4782 $bigid=$textNode->getNodeValue;
4783 }
4784 elsif ($childrenNode->getNodeName eq "id") {
4785 $id=$textNode->getNodeValue;
4786 }
4787 elsif ($childrenNode->getNodeName eq "name") {
4788 $name=$textNode->getNodeValue;
4789 }
4790 ## end iterate ELEMENT_NODE ##
4791 }
4792 }
4793 my $newobj = new CaCORE::CaBIO::Cytoband;
4794 ## begin set attr ##
4795 $newobj->setBigid($bigid);
4796 $newobj->setId($id);
4797 $newobj->setName($name);
4798 ## end set attr ##
4799
4800 return $newobj;
4801 }
4802
4803 ## begin getters and setters ##
4804
4805 sub getBigid {
4806 my $self = shift;
4807 return $self->{bigid};
4808 }
4809  
4810 sub setBigid {
4811 my $self = shift;
4812 $self->{bigid} = shift;
4813 }
4814  
4815 sub getId {
4816 my $self = shift;
4817 return $self->{id};
4818 }
4819  
4820 sub setId {
4821 my $self = shift;
4822 $self->{id} = shift;
4823 }
4824  
4825 sub getName {
4826 my $self = shift;
4827 return $self->{name};
4828 }
4829  
4830 sub setName {
4831 my $self = shift;
4832 $self->{name} = shift;
4833 }
4834  
4835 ## end getters and setters ##
4836
4837 ## begin bean association methods ##
4838
4839 sub getPhysicalLocation {
4840 my $self = shift;
4841 my $appSvc = CaCORE::ApplicationService->instance();
4842 my @results = $appSvc->queryObject("CaCORE::CaBIO::PhysicalLocation", $self);
4843 return $results[0];
4844 }
4845  
4846 ## end bean association methods ##
4847
4848 1;
4849 #end
4850 # ------------------------------------------------------------------------------------------
4851 package CaCORE::CaBIO::GeneOntology;
4852
4853 use 5.005;
4854 #use strict;
4855 use warnings;
4856
4857 require Exporter;
4858
4859 use XML::DOM;
4860
4861 ## begin import objects ##
4862 use CaCORE::ApplicationService;
4863 ## end import objects ##
4864
4865
4866 @ISA = qw(CaCORE::DomainObjectI);
4867
4868 our %EXPORT_TAGS = ( 'all' => [ qw(
4869
4870 ) ] );
4871
4872 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
4873
4874 our @EXPORT = qw(
4875 );
4876
4877 # create an instance of the GeneOntology object
4878 # returns: a GeneOntology object
4879 sub new {
4880 my $class = shift;
4881 my $self = {};
4882 bless($self, $class);
4883 #print "new GeneOntology\n";
4884 return $self;
4885 }
4886
4887 # Construct the specific section of the WSDL request corresponding
4888 # to this GeneOntology intance
4889 # returns: XML in string format
4890 sub toWebserviceXML {
4891 my $self = shift;
4892 my $result = shift;
4893 my $assigned_id = shift;
4894 my $current_id = shift;
4895 my $l = shift;
4896 my %worklist = %$l;
4897
4898 # prefix portion of the xml
4899 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":GeneOntology\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
4900 my $tmpstr = "";
4901 $current_id ++;
4902
4903 ## begin attribute to XML ##
4904 # bigid;
4905 if( defined( $self->getBigid ) ) {
4906 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
4907 } else {
4908 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4909 }
4910 $result .= $tmpstr;
4911  
4912 # id;
4913 if( defined( $self->getId ) ) {
4914 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
4915 } else {
4916 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
4917 }
4918 $result .= $tmpstr;
4919  
4920 # name;
4921 if( defined( $self->getName ) ) {
4922 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
4923 } else {
4924 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
4925 }
4926 $result .= $tmpstr;
4927  
4928 ## end attribute to XML ##
4929
4930 ## begin association to XML ##
4931 ## end association to XML ##
4932
4933 # add trailing close tags
4934 $result .= "</multiRef>";
4935
4936 return ($result, $current_id, %worklist);
4937 }
4938
4939 # parse a given webservice response xml, construct a list of GeneOntology objects
4940 # param: xml doc
4941 # returns: list of GeneOntology objects
4942 sub fromWebserviceXML {
4943 my $self = shift;
4944 my $parser = new XML::DOM::Parser;
4945 my $docnode = $parser->parse(shift);
4946 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
4947
4948 return $self->fromWSXMLListNode($root);
4949 }
4950
4951 # parse a given xml node, construct a list of GeneOntology objects
4952 # param: xml node
4953 # returns: a list of GeneOntology objects
4954 sub fromWSXMLListNode {
4955 my $self = shift;
4956 my $listNode = shift;
4957 my @obj_list = ();
4958
4959 # get all children for this node
4960 for my $childrenNode ($listNode->getChildNodes) {
4961 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4962 my $newobj = $self->fromWSXMLNode($childrenNode);
4963 push @obj_list, $newobj;
4964 }
4965 }
4966
4967 return @obj_list;
4968 }
4969
4970 # parse a given xml node, construct one GeneOntology object
4971 # param: xml node
4972 # returns: one GeneOntology object
4973 sub fromWSXMLNode {
4974 my $GeneOntologyNode = $_[1];
4975
4976 ## begin ELEMENT_NODE children ##
4977 my $bigid;
4978 my $id;
4979 my $name;
4980 ## end ELEMENT_NODE children ##
4981
4982 # get all children for this node
4983 for my $childrenNode ($GeneOntologyNode->getChildNodes) {
4984 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
4985 if( ! defined($childrenNode->getFirstChild) ){ next; };
4986 my $textNode = $childrenNode->getFirstChild;
4987 ## begin iterate ELEMENT_NODE ##
4988 if (0) {
4989 # do nothing, just a place holder for "if" component
4990 }
4991 elsif ($childrenNode->getNodeName eq "bigid") {
4992 $bigid=$textNode->getNodeValue;
4993 }
4994 elsif ($childrenNode->getNodeName eq "id") {
4995 $id=$textNode->getNodeValue;
4996 }
4997 elsif ($childrenNode->getNodeName eq "name") {
4998 $name=$textNode->getNodeValue;
4999 }
5000 ## end iterate ELEMENT_NODE ##
5001 }
5002 }
5003 my $newobj = new CaCORE::CaBIO::GeneOntology;
5004 ## begin set attr ##
5005 $newobj->setBigid($bigid);
5006 $newobj->setId($id);
5007 $newobj->setName($name);
5008 ## end set attr ##
5009
5010 return $newobj;
5011 }
5012
5013 ## begin getters and setters ##
5014
5015 sub getBigid {
5016 my $self = shift;
5017 return $self->{bigid};
5018 }
5019  
5020 sub setBigid {
5021 my $self = shift;
5022 $self->{bigid} = shift;
5023 }
5024  
5025 sub getId {
5026 my $self = shift;
5027 return $self->{id};
5028 }
5029  
5030 sub setId {
5031 my $self = shift;
5032 $self->{id} = shift;
5033 }
5034  
5035 sub getName {
5036 my $self = shift;
5037 return $self->{name};
5038 }
5039  
5040 sub setName {
5041 my $self = shift;
5042 $self->{name} = shift;
5043 }
5044  
5045 ## end getters and setters ##
5046
5047 ## begin bean association methods ##
5048
5049 sub getChildGeneOntologyRelationshipCollection {
5050 my $self = shift;
5051 my $appSvc = CaCORE::ApplicationService->instance();
5052 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneOntologyRelationship", $self);
5053 return @results;
5054 }
5055  
5056 sub getGeneCollection {
5057 my $self = shift;
5058 my $appSvc = CaCORE::ApplicationService->instance();
5059 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
5060 return @results;
5061 }
5062  
5063 sub getParentGeneOntologyRelationshipCollection {
5064 my $self = shift;
5065 my $appSvc = CaCORE::ApplicationService->instance();
5066 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneOntologyRelationship", $self);
5067 return @results;
5068 }
5069  
5070 ## end bean association methods ##
5071
5072 1;
5073 #end
5074 # ------------------------------------------------------------------------------------------
5075 package CaCORE::CaBIO::OrganOntology;
5076
5077 use 5.005;
5078 #use strict;
5079 use warnings;
5080
5081 require Exporter;
5082
5083 use XML::DOM;
5084
5085 ## begin import objects ##
5086 use CaCORE::ApplicationService;
5087 ## end import objects ##
5088
5089
5090 @ISA = qw(CaCORE::DomainObjectI);
5091
5092 our %EXPORT_TAGS = ( 'all' => [ qw(
5093
5094 ) ] );
5095
5096 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
5097
5098 our @EXPORT = qw(
5099 );
5100
5101 # create an instance of the OrganOntology object
5102 # returns: a OrganOntology object
5103 sub new {
5104 my $class = shift;
5105 my $self = {};
5106 bless($self, $class);
5107 #print "new OrganOntology\n";
5108 return $self;
5109 }
5110
5111 # Construct the specific section of the WSDL request corresponding
5112 # to this OrganOntology intance
5113 # returns: XML in string format
5114 sub toWebserviceXML {
5115 my $self = shift;
5116 my $result = shift;
5117 my $assigned_id = shift;
5118 my $current_id = shift;
5119 my $l = shift;
5120 my %worklist = %$l;
5121
5122 # prefix portion of the xml
5123 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":OrganOntology\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
5124 my $tmpstr = "";
5125 $current_id ++;
5126
5127 ## begin attribute to XML ##
5128 # bigid;
5129 if( defined( $self->getBigid ) ) {
5130 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
5131 } else {
5132 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5133 }
5134 $result .= $tmpstr;
5135  
5136 # id;
5137 if( defined( $self->getId ) ) {
5138 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
5139 } else {
5140 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
5141 }
5142 $result .= $tmpstr;
5143  
5144 # name;
5145 if( defined( $self->getName ) ) {
5146 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
5147 } else {
5148 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5149 }
5150 $result .= $tmpstr;
5151  
5152 ## end attribute to XML ##
5153
5154 ## begin association to XML ##
5155 ## end association to XML ##
5156
5157 # add trailing close tags
5158 $result .= "</multiRef>";
5159
5160 return ($result, $current_id, %worklist);
5161 }
5162
5163 # parse a given webservice response xml, construct a list of OrganOntology objects
5164 # param: xml doc
5165 # returns: list of OrganOntology objects
5166 sub fromWebserviceXML {
5167 my $self = shift;
5168 my $parser = new XML::DOM::Parser;
5169 my $docnode = $parser->parse(shift);
5170 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
5171
5172 return $self->fromWSXMLListNode($root);
5173 }
5174
5175 # parse a given xml node, construct a list of OrganOntology objects
5176 # param: xml node
5177 # returns: a list of OrganOntology objects
5178 sub fromWSXMLListNode {
5179 my $self = shift;
5180 my $listNode = shift;
5181 my @obj_list = ();
5182
5183 # get all children for this node
5184 for my $childrenNode ($listNode->getChildNodes) {
5185 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
5186 my $newobj = $self->fromWSXMLNode($childrenNode);
5187 push @obj_list, $newobj;
5188 }
5189 }
5190
5191 return @obj_list;
5192 }
5193
5194 # parse a given xml node, construct one OrganOntology object
5195 # param: xml node
5196 # returns: one OrganOntology object
5197 sub fromWSXMLNode {
5198 my $OrganOntologyNode = $_[1];
5199
5200 ## begin ELEMENT_NODE children ##
5201 my $bigid;
5202 my $id;
5203 my $name;
5204 ## end ELEMENT_NODE children ##
5205
5206 # get all children for this node
5207 for my $childrenNode ($OrganOntologyNode->getChildNodes) {
5208 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
5209 if( ! defined($childrenNode->getFirstChild) ){ next; };
5210 my $textNode = $childrenNode->getFirstChild;
5211 ## begin iterate ELEMENT_NODE ##
5212 if (0) {
5213 # do nothing, just a place holder for "if" component
5214 }
5215 elsif ($childrenNode->getNodeName eq "bigid") {
5216 $bigid=$textNode->getNodeValue;
5217 }
5218 elsif ($childrenNode->getNodeName eq "id") {
5219 $id=$textNode->getNodeValue;
5220 }
5221 elsif ($childrenNode->getNodeName eq "name") {
5222 $name=$textNode->getNodeValue;
5223 }
5224 ## end iterate ELEMENT_NODE ##
5225 }
5226 }
5227 my $newobj = new CaCORE::CaBIO::OrganOntology;
5228 ## begin set attr ##
5229 $newobj->setBigid($bigid);
5230 $newobj->setId($id);
5231 $newobj->setName($name);
5232 ## end set attr ##
5233
5234 return $newobj;
5235 }
5236
5237 ## begin getters and setters ##
5238
5239 sub getBigid {
5240 my $self = shift;
5241 return $self->{bigid};
5242 }
5243  
5244 sub setBigid {
5245 my $self = shift;
5246 $self->{bigid} = shift;
5247 }
5248  
5249 sub getId {
5250 my $self = shift;
5251 return $self->{id};
5252 }
5253  
5254 sub setId {
5255 my $self = shift;
5256 $self->{id} = shift;
5257 }
5258  
5259 sub getName {
5260 my $self = shift;
5261 return $self->{name};
5262 }
5263  
5264 sub setName {
5265 my $self = shift;
5266 $self->{name} = shift;
5267 }
5268  
5269 ## end getters and setters ##
5270
5271 ## begin bean association methods ##
5272
5273 sub getAnomalyCollection {
5274 my $self = shift;
5275 my $appSvc = CaCORE::ApplicationService->instance();
5276 my @results = $appSvc->queryObject("CaCORE::CaBIO::Anomaly", $self);
5277 return @results;
5278 }
5279  
5280 sub getChildOrganOntologyRelationshipCollection {
5281 my $self = shift;
5282 my $appSvc = CaCORE::ApplicationService->instance();
5283 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntologyRelationship", $self);
5284 return @results;
5285 }
5286  
5287 sub getGeneCollection {
5288 my $self = shift;
5289 my $appSvc = CaCORE::ApplicationService->instance();
5290 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
5291 return @results;
5292 }
5293  
5294 sub getHistopathologyCollection {
5295 my $self = shift;
5296 my $appSvc = CaCORE::ApplicationService->instance();
5297 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
5298 return @results;
5299 }
5300  
5301 sub getParentOrganOntologyRelationshipCollection {
5302 my $self = shift;
5303 my $appSvc = CaCORE::ApplicationService->instance();
5304 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntologyRelationship", $self);
5305 return @results;
5306 }
5307  
5308 ## end bean association methods ##
5309
5310 1;
5311 #end
5312 # ------------------------------------------------------------------------------------------
5313 package CaCORE::CaBIO::Histopathology;
5314
5315 use 5.005;
5316 #use strict;
5317 use warnings;
5318
5319 require Exporter;
5320
5321 use XML::DOM;
5322
5323 ## begin import objects ##
5324 use CaCORE::ApplicationService;
5325 ## end import objects ##
5326
5327
5328 @ISA = qw(CaCORE::DomainObjectI);
5329
5330 our %EXPORT_TAGS = ( 'all' => [ qw(
5331
5332 ) ] );
5333
5334 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
5335
5336 our @EXPORT = qw(
5337 );
5338
5339 # create an instance of the Histopathology object
5340 # returns: a Histopathology object
5341 sub new {
5342 my $class = shift;
5343 my $self = {};
5344 bless($self, $class);
5345 #print "new Histopathology\n";
5346 return $self;
5347 }
5348
5349 # Construct the specific section of the WSDL request corresponding
5350 # to this Histopathology intance
5351 # returns: XML in string format
5352 sub toWebserviceXML {
5353 my $self = shift;
5354 my $result = shift;
5355 my $assigned_id = shift;
5356 my $current_id = shift;
5357 my $l = shift;
5358 my %worklist = %$l;
5359
5360 # prefix portion of the xml
5361 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Histopathology\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
5362 my $tmpstr = "";
5363 $current_id ++;
5364
5365 ## begin attribute to XML ##
5366 # ageOfOnset;
5367 if( defined( $self->getAgeOfOnset ) ) {
5368 $tmpstr = "<ageOfOnset xsi:type=\"xsd:string\">" . $self->getAgeOfOnset . "</ageOfOnset>";
5369 } else {
5370 $tmpstr = "<ageOfOnset xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5371 }
5372 $result .= $tmpstr;
5373  
5374 # comments;
5375 if( defined( $self->getComments ) ) {
5376 $tmpstr = "<comments xsi:type=\"xsd:string\">" . $self->getComments . "</comments>";
5377 } else {
5378 $tmpstr = "<comments xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5379 }
5380 $result .= $tmpstr;
5381  
5382 # grossDescription;
5383 if( defined( $self->getGrossDescription ) ) {
5384 $tmpstr = "<grossDescription xsi:type=\"xsd:string\">" . $self->getGrossDescription . "</grossDescription>";
5385 } else {
5386 $tmpstr = "<grossDescription xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5387 }
5388 $result .= $tmpstr;
5389  
5390 # id;
5391 if( defined( $self->getId ) ) {
5392 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
5393 } else {
5394 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
5395 }
5396 $result .= $tmpstr;
5397  
5398 # microscopicDescription;
5399 if( defined( $self->getMicroscopicDescription ) ) {
5400 $tmpstr = "<microscopicDescription xsi:type=\"xsd:string\">" . $self->getMicroscopicDescription . "</microscopicDescription>";
5401 } else {
5402 $tmpstr = "<microscopicDescription xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5403 }
5404 $result .= $tmpstr;
5405  
5406 # relationalOperation;
5407 if( defined( $self->getRelationalOperation ) ) {
5408 $tmpstr = "<relationalOperation xsi:type=\"xsd:string\">" . $self->getRelationalOperation . "</relationalOperation>";
5409 } else {
5410 $tmpstr = "<relationalOperation xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5411 }
5412 $result .= $tmpstr;
5413  
5414 # survivalInfo;
5415 if( defined( $self->getSurvivalInfo ) ) {
5416 $tmpstr = "<survivalInfo xsi:type=\"xsd:string\">" . $self->getSurvivalInfo . "</survivalInfo>";
5417 } else {
5418 $tmpstr = "<survivalInfo xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5419 }
5420 $result .= $tmpstr;
5421  
5422 # tumorIncidenceRate;
5423 if( defined( $self->getTumorIncidenceRate ) ) {
5424 $tmpstr = "<tumorIncidenceRate xsi:type=\"xsd:float\">" . $self->getTumorIncidenceRate . "</tumorIncidenceRate>";
5425 } else {
5426 $tmpstr = "<tumorIncidenceRate xsi:type=\"xsd:float\" xsi:nil=\"true\" />";
5427 }
5428 $result .= $tmpstr;
5429  
5430 ## end attribute to XML ##
5431
5432 ## begin association to XML ##
5433 # MetastasisCollection;
5434 if( defined( $self->getMetastasisCollection ) ) {
5435 my @assoclist = $self->getMetastasisCollection;
5436 if( $#assoclist >= 0 ) {
5437 $result .= "<metastasisCollection>";
5438 foreach my $node ($self->getMetastasisCollection) {
5439 $result .= "<metastasisCollection xsi:type=\"xsd:string\"> . $node . </metastasisCollection>";
5440 }
5441 $result .= "</metastasisCollection>";
5442 }
5443 }
5444 ## end association to XML ##
5445
5446 # add trailing close tags
5447 $result .= "</multiRef>";
5448
5449 return ($result, $current_id, %worklist);
5450 }
5451
5452 # parse a given webservice response xml, construct a list of Histopathology objects
5453 # param: xml doc
5454 # returns: list of Histopathology objects
5455 sub fromWebserviceXML {
5456 my $self = shift;
5457 my $parser = new XML::DOM::Parser;
5458 my $docnode = $parser->parse(shift);
5459 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
5460
5461 return $self->fromWSXMLListNode($root);
5462 }
5463
5464 # parse a given xml node, construct a list of Histopathology objects
5465 # param: xml node
5466 # returns: a list of Histopathology objects
5467 sub fromWSXMLListNode {
5468 my $self = shift;
5469 my $listNode = shift;
5470 my @obj_list = ();
5471
5472 # get all children for this node
5473 for my $childrenNode ($listNode->getChildNodes) {
5474 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
5475 my $newobj = $self->fromWSXMLNode($childrenNode);
5476 push @obj_list, $newobj;
5477 }
5478 }
5479
5480 return @obj_list;
5481 }
5482
5483 # parse a given xml node, construct one Histopathology object
5484 # param: xml node
5485 # returns: one Histopathology object
5486 sub fromWSXMLNode {
5487 my $HistopathologyNode = $_[1];
5488
5489 ## begin ELEMENT_NODE children ##
5490 my $ageOfOnset;
5491 my $comments;
5492 my $grossDescription;
5493 my $id;
5494 my $microscopicDescription;
5495 my $relationalOperation;
5496 my $survivalInfo;
5497 my $tumorIncidenceRate;
5498 my @metastasis = ();
5499 ## end ELEMENT_NODE children ##
5500
5501 # get all children for this node
5502 for my $childrenNode ($HistopathologyNode->getChildNodes) {
5503 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
5504 if( ! defined($childrenNode->getFirstChild) ){ next; };
5505 my $textNode = $childrenNode->getFirstChild;
5506 ## begin iterate ELEMENT_NODE ##
5507 if (0) {
5508 # do nothing, just a place holder for "if" component
5509 }
5510 elsif ($childrenNode->getNodeName eq "ageOfOnset") {
5511 $ageOfOnset=$textNode->getNodeValue;
5512 }
5513 elsif ($childrenNode->getNodeName eq "comments") {
5514 $comments=$textNode->getNodeValue;
5515 }
5516 elsif ($childrenNode->getNodeName eq "grossDescription") {
5517 $grossDescription=$textNode->getNodeValue;
5518 }
5519 elsif ($childrenNode->getNodeName eq "id") {
5520 $id=$textNode->getNodeValue;
5521 }
5522 elsif ($childrenNode->getNodeName eq "microscopicDescription") {
5523 $microscopicDescription=$textNode->getNodeValue;
5524 }
5525 elsif ($childrenNode->getNodeName eq "relationalOperation") {
5526 $relationalOperation=$textNode->getNodeValue;
5527 }
5528 elsif ($childrenNode->getNodeName eq "survivalInfo") {
5529 $survivalInfo=$textNode->getNodeValue;
5530 }
5531 elsif ($childrenNode->getNodeName eq "tumorIncidenceRate") {
5532 $tumorIncidenceRate=$textNode->getNodeValue;
5533 }
5534 elsif ($childrenNode->getNodeName eq "metastasisCollection") {
5535 for my $node ($childrenNode->getChildNodes) {
5536 if( $node->getNodeName eq "empty" ){ next; };
5537 if( ! defined($node->getFirstChild) ){ next; };
5538 my $txnode = $node->getFirstChild;
5539 push @metastasis, $txnode->getNodeValue;
5540 }
5541 }
5542 ## end iterate ELEMENT_NODE ##
5543 }
5544 }
5545 my $newobj = new CaCORE::CaBIO::Histopathology;
5546 ## begin set attr ##
5547 $newobj->setAgeOfOnset($ageOfOnset);
5548 $newobj->setComments($comments);
5549 $newobj->setGrossDescription($grossDescription);
5550 $newobj->setId($id);
5551 $newobj->setMicroscopicDescription($microscopicDescription);
5552 $newobj->setRelationalOperation($relationalOperation);
5553 $newobj->setSurvivalInfo($survivalInfo);
5554 $newobj->setTumorIncidenceRate($tumorIncidenceRate);
5555 $newobj->setMetastasisCollection(@metastasis);
5556 ## end set attr ##
5557
5558 return $newobj;
5559 }
5560
5561 ## begin getters and setters ##
5562
5563 sub getAgeOfOnset {
5564 my $self = shift;
5565 return $self->{ageOfOnset};
5566 }
5567  
5568 sub setAgeOfOnset {
5569 my $self = shift;
5570 $self->{ageOfOnset} = shift;
5571 }
5572  
5573 sub getComments {
5574 my $self = shift;
5575 return $self->{comments};
5576 }
5577  
5578 sub setComments {
5579 my $self = shift;
5580 $self->{comments} = shift;
5581 }
5582  
5583 sub getGrossDescription {
5584 my $self = shift;
5585 return $self->{grossDescription};
5586 }
5587  
5588 sub setGrossDescription {
5589 my $self = shift;
5590 $self->{grossDescription} = shift;
5591 }
5592  
5593 sub getId {
5594 my $self = shift;
5595 return $self->{id};
5596 }
5597  
5598 sub setId {
5599 my $self = shift;
5600 $self->{id} = shift;
5601 }
5602  
5603 sub getMicroscopicDescription {
5604 my $self = shift;
5605 return $self->{microscopicDescription};
5606 }
5607  
5608 sub setMicroscopicDescription {
5609 my $self = shift;
5610 $self->{microscopicDescription} = shift;
5611 }
5612  
5613 sub getRelationalOperation {
5614 my $self = shift;
5615 return $self->{relationalOperation};
5616 }
5617  
5618 sub setRelationalOperation {
5619 my $self = shift;
5620 $self->{relationalOperation} = shift;
5621 }
5622  
5623 sub getSurvivalInfo {
5624 my $self = shift;
5625 return $self->{survivalInfo};
5626 }
5627  
5628 sub setSurvivalInfo {
5629 my $self = shift;
5630 $self->{survivalInfo} = shift;
5631 }
5632  
5633 sub getTumorIncidenceRate {
5634 my $self = shift;
5635 return $self->{tumorIncidenceRate};
5636 }
5637  
5638 sub setTumorIncidenceRate {
5639 my $self = shift;
5640 $self->{tumorIncidenceRate} = shift;
5641 }
5642  
5643 ## end getters and setters ##
5644
5645 ## begin bean association methods ##
5646
5647 sub getAnomalyCollection {
5648 my $self = shift;
5649 my $appSvc = CaCORE::ApplicationService->instance();
5650 my @results = $appSvc->queryObject("CaCORE::CaBIO::Anomaly", $self);
5651 return @results;
5652 }
5653  
5654 sub getClinicalTrialProtocolCollection {
5655 my $self = shift;
5656 my $appSvc = CaCORE::ApplicationService->instance();
5657 my @results = $appSvc->queryObject("CaCORE::CaBIO::ClinicalTrialProtocol", $self);
5658 return @results;
5659 }
5660  
5661 sub getDiseaseOntology {
5662 my $self = shift;
5663 my $appSvc = CaCORE::ApplicationService->instance();
5664 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntology", $self);
5665 return $results[0];
5666 }
5667  
5668 sub getGeneCollection {
5669 my $self = shift;
5670 my $appSvc = CaCORE::ApplicationService->instance();
5671 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
5672 return @results;
5673 }
5674  
5675 sub getLibraryCollection {
5676 my $self = shift;
5677 my $appSvc = CaCORE::ApplicationService->instance();
5678 my @results = $appSvc->queryObject("CaCORE::CaBIO::Library", $self);
5679 return @results;
5680 }
5681  
5682 sub getMetastasisCollection {
5683 my $self = shift;
5684 if( defined($self->{metastasis}) ) {
5685 return @{$self->{metastasis}};
5686 } else {
5687 return ();
5688 }
5689 }
5690  
5691 sub setMetastasisCollection {
5692 my ($self, @set) = @_;
5693 push @{$self->{metastasis}}, @set;
5694 }
5695  
5696 sub getOrganOntology {
5697 my $self = shift;
5698 my $appSvc = CaCORE::ApplicationService->instance();
5699 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntology", $self);
5700 return $results[0];
5701 }
5702  
5703 ## end bean association methods ##
5704
5705 1;
5706 #end
5707 # ------------------------------------------------------------------------------------------
5708 package CaCORE::CaBIO::ProteinSequence;
5709
5710 use 5.005;
5711 #use strict;
5712 use warnings;
5713
5714 require Exporter;
5715
5716 use XML::DOM;
5717
5718 ## begin import objects ##
5719 use CaCORE::ApplicationService;
5720 ## end import objects ##
5721
5722
5723 @ISA = qw(CaCORE::DomainObjectI);
5724
5725 our %EXPORT_TAGS = ( 'all' => [ qw(
5726
5727 ) ] );
5728
5729 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
5730
5731 our @EXPORT = qw(
5732 );
5733
5734 # create an instance of the ProteinSequence object
5735 # returns: a ProteinSequence object
5736 sub new {
5737 my $class = shift;
5738 my $self = {};
5739 bless($self, $class);
5740 #print "new ProteinSequence\n";
5741 return $self;
5742 }
5743
5744 # Construct the specific section of the WSDL request corresponding
5745 # to this ProteinSequence intance
5746 # returns: XML in string format
5747 sub toWebserviceXML {
5748 my $self = shift;
5749 my $result = shift;
5750 my $assigned_id = shift;
5751 my $current_id = shift;
5752 my $l = shift;
5753 my %worklist = %$l;
5754
5755 # prefix portion of the xml
5756 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":ProteinSequence\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
5757 my $tmpstr = "";
5758 $current_id ++;
5759
5760 ## begin attribute to XML ##
5761 # bigid;
5762 if( defined( $self->getBigid ) ) {
5763 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
5764 } else {
5765 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5766 }
5767 $result .= $tmpstr;
5768  
5769 # checkSum;
5770 if( defined( $self->getCheckSum ) ) {
5771 $tmpstr = "<checkSum xsi:type=\"xsd:string\">" . $self->getCheckSum . "</checkSum>";
5772 } else {
5773 $tmpstr = "<checkSum xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5774 }
5775 $result .= $tmpstr;
5776  
5777 # id;
5778 if( defined( $self->getId ) ) {
5779 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
5780 } else {
5781 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
5782 }
5783 $result .= $tmpstr;
5784  
5785 # length;
5786 if( defined( $self->getLength ) ) {
5787 $tmpstr = "<length xsi:type=\"xsd:long\">" . $self->getLength . "</length>";
5788 } else {
5789 $tmpstr = "<length xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
5790 }
5791 $result .= $tmpstr;
5792  
5793 # molecularWeightInDaltons;
5794 if( defined( $self->getMolecularWeightInDaltons ) ) {
5795 $tmpstr = "<molecularWeightInDaltons xsi:type=\"xsd:double\">" . $self->getMolecularWeightInDaltons . "</molecularWeightInDaltons>";
5796 } else {
5797 $tmpstr = "<molecularWeightInDaltons xsi:type=\"xsd:double\" xsi:nil=\"true\" />";
5798 }
5799 $result .= $tmpstr;
5800  
5801 # value;
5802 if( defined( $self->getValue ) ) {
5803 $tmpstr = "<value xsi:type=\"xsd:string\">" . $self->getValue . "</value>";
5804 } else {
5805 $tmpstr = "<value xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
5806 }
5807 $result .= $tmpstr;
5808  
5809 ## end attribute to XML ##
5810
5811 ## begin association to XML ##
5812 ## end association to XML ##
5813
5814 # add trailing close tags
5815 $result .= "</multiRef>";
5816
5817 return ($result, $current_id, %worklist);
5818 }
5819
5820 # parse a given webservice response xml, construct a list of ProteinSequence objects
5821 # param: xml doc
5822 # returns: list of ProteinSequence objects
5823 sub fromWebserviceXML {
5824 my $self = shift;
5825 my $parser = new XML::DOM::Parser;
5826 my $docnode = $parser->parse(shift);
5827 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
5828
5829 return $self->fromWSXMLListNode($root);
5830 }
5831
5832 # parse a given xml node, construct a list of ProteinSequence objects
5833 # param: xml node
5834 # returns: a list of ProteinSequence objects
5835 sub fromWSXMLListNode {
5836 my $self = shift;
5837 my $listNode = shift;
5838 my @obj_list = ();
5839
5840 # get all children for this node
5841 for my $childrenNode ($listNode->getChildNodes) {
5842 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
5843 my $newobj = $self->fromWSXMLNode($childrenNode);
5844 push @obj_list, $newobj;
5845 }
5846 }
5847
5848 return @obj_list;
5849 }
5850
5851 # parse a given xml node, construct one ProteinSequence object
5852 # param: xml node
5853 # returns: one ProteinSequence object
5854 sub fromWSXMLNode {
5855 my $ProteinSequenceNode = $_[1];
5856
5857 ## begin ELEMENT_NODE children ##
5858 my $bigid;
5859 my $checkSum;
5860 my $id;
5861 my $length;
5862 my $molecularWeightInDaltons;
5863 my $value;
5864 ## end ELEMENT_NODE children ##
5865
5866 # get all children for this node
5867 for my $childrenNode ($ProteinSequenceNode->getChildNodes) {
5868 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
5869 if( ! defined($childrenNode->getFirstChild) ){ next; };
5870 my $textNode = $childrenNode->getFirstChild;
5871 ## begin iterate ELEMENT_NODE ##
5872 if (0) {
5873 # do nothing, just a place holder for "if" component
5874 }
5875 elsif ($childrenNode->getNodeName eq "bigid") {
5876 $bigid=$textNode->getNodeValue;
5877 }
5878 elsif ($childrenNode->getNodeName eq "checkSum") {
5879 $checkSum=$textNode->getNodeValue;
5880 }
5881 elsif ($childrenNode->getNodeName eq "id") {
5882 $id=$textNode->getNodeValue;
5883 }
5884 elsif ($childrenNode->getNodeName eq "length") {
5885 $length=$textNode->getNodeValue;
5886 }
5887 elsif ($childrenNode->getNodeName eq "molecularWeightInDaltons") {
5888 $molecularWeightInDaltons=$textNode->getNodeValue;
5889 }
5890 elsif ($childrenNode->getNodeName eq "value") {
5891 $value=$textNode->getNodeValue;
5892 }
5893 ## end iterate ELEMENT_NODE ##
5894 }
5895 }
5896 my $newobj = new CaCORE::CaBIO::ProteinSequence;
5897 ## begin set attr ##
5898 $newobj->setBigid($bigid);
5899 $newobj->setCheckSum($checkSum);
5900 $newobj->setId($id);
5901 $newobj->setLength($length);
5902 $newobj->setMolecularWeightInDaltons($molecularWeightInDaltons);
5903 $newobj->setValue($value);
5904 ## end set attr ##
5905
5906 return $newobj;
5907 }
5908
5909 ## begin getters and setters ##
5910
5911 sub getBigid {
5912 my $self = shift;
5913 return $self->{bigid};
5914 }
5915  
5916 sub setBigid {
5917 my $self = shift;
5918 $self->{bigid} = shift;
5919 }
5920  
5921 sub getCheckSum {
5922 my $self = shift;
5923 return $self->{checkSum};
5924 }
5925  
5926 sub setCheckSum {
5927 my $self = shift;
5928 $self->{checkSum} = shift;
5929 }
5930  
5931 sub getId {
5932 my $self = shift;
5933 return $self->{id};
5934 }
5935  
5936 sub setId {
5937 my $self = shift;
5938 $self->{id} = shift;
5939 }
5940  
5941 sub getLength {
5942 my $self = shift;
5943 return $self->{length};
5944 }
5945  
5946 sub setLength {
5947 my $self = shift;
5948 $self->{length} = shift;
5949 }
5950  
5951 sub getMolecularWeightInDaltons {
5952 my $self = shift;
5953 return $self->{molecularWeightInDaltons};
5954 }
5955  
5956 sub setMolecularWeightInDaltons {
5957 my $self = shift;
5958 $self->{molecularWeightInDaltons} = shift;
5959 }
5960  
5961 sub getValue {
5962 my $self = shift;
5963 return $self->{value};
5964 }
5965  
5966 sub setValue {
5967 my $self = shift;
5968 $self->{value} = shift;
5969 }
5970  
5971 ## end getters and setters ##
5972
5973 ## begin bean association methods ##
5974
5975 sub getProtein {
5976 my $self = shift;
5977 my $appSvc = CaCORE::ApplicationService->instance();
5978 my @results = $appSvc->queryObject("CaCORE::CaBIO::Protein", $self);
5979 return $results[0];
5980 }
5981  
5982 ## end bean association methods ##
5983
5984 1;
5985 #end
5986 # ------------------------------------------------------------------------------------------
5987 package CaCORE::CaBIO::Protein;
5988
5989 use 5.005;
5990 #use strict;
5991 use warnings;
5992
5993 require Exporter;
5994
5995 use XML::DOM;
5996
5997 ## begin import objects ##
5998 use CaCORE::ApplicationService;
5999 ## end import objects ##
6000
6001
6002 @ISA = qw(CaCORE::DomainObjectI);
6003
6004 our %EXPORT_TAGS = ( 'all' => [ qw(
6005
6006 ) ] );
6007
6008 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
6009
6010 our @EXPORT = qw(
6011 );
6012
6013 # create an instance of the Protein object
6014 # returns: a Protein object
6015 sub new {
6016 my $class = shift;
6017 my $self = {};
6018 bless($self, $class);
6019 #print "new Protein\n";
6020 return $self;
6021 }
6022
6023 # Construct the specific section of the WSDL request corresponding
6024 # to this Protein intance
6025 # returns: XML in string format
6026 sub toWebserviceXML {
6027 my $self = shift;
6028 my $result = shift;
6029 my $assigned_id = shift;
6030 my $current_id = shift;
6031 my $l = shift;
6032 my %worklist = %$l;
6033
6034 # prefix portion of the xml
6035 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Protein\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
6036 my $tmpstr = "";
6037 $current_id ++;
6038
6039 ## begin attribute to XML ##
6040 # bigid;
6041 if( defined( $self->getBigid ) ) {
6042 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
6043 } else {
6044 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6045 }
6046 $result .= $tmpstr;
6047  
6048 # copyrightStatement;
6049 if( defined( $self->getCopyrightStatement ) ) {
6050 $tmpstr = "<copyrightStatement xsi:type=\"xsd:string\">" . $self->getCopyrightStatement . "</copyrightStatement>";
6051 } else {
6052 $tmpstr = "<copyrightStatement xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6053 }
6054 $result .= $tmpstr;
6055  
6056 # id;
6057 if( defined( $self->getId ) ) {
6058 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
6059 } else {
6060 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
6061 }
6062 $result .= $tmpstr;
6063  
6064 # name;
6065 if( defined( $self->getName ) ) {
6066 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
6067 } else {
6068 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6069 }
6070 $result .= $tmpstr;
6071  
6072 # primaryAccession;
6073 if( defined( $self->getPrimaryAccession ) ) {
6074 $tmpstr = "<primaryAccession xsi:type=\"xsd:string\">" . $self->getPrimaryAccession . "</primaryAccession>";
6075 } else {
6076 $tmpstr = "<primaryAccession xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6077 }
6078 $result .= $tmpstr;
6079  
6080 # uniProtCode;
6081 if( defined( $self->getUniProtCode ) ) {
6082 $tmpstr = "<uniProtCode xsi:type=\"xsd:string\">" . $self->getUniProtCode . "</uniProtCode>";
6083 } else {
6084 $tmpstr = "<uniProtCode xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6085 }
6086 $result .= $tmpstr;
6087  
6088 ## end attribute to XML ##
6089
6090 ## begin association to XML ##
6091 # KeywordsCollection;
6092 if( defined( $self->getKeywordsCollection ) ) {
6093 my @assoclist = $self->getKeywordsCollection;
6094 if( $#assoclist >= 0 ) {
6095 $result .= "<keywordsCollection>";
6096 foreach my $node ($self->getKeywordsCollection) {
6097 $result .= "<keywordsCollection xsi:type=\"xsd:string\"> . $node . </keywordsCollection>";
6098 }
6099 $result .= "</keywordsCollection>";
6100 }
6101 }
6102 # SecondaryAccessionCollection;
6103 if( defined( $self->getSecondaryAccessionCollection ) ) {
6104 my @assoclist = $self->getSecondaryAccessionCollection;
6105 if( $#assoclist >= 0 ) {
6106 $result .= "<secondaryAccessionCollection>";
6107 foreach my $node ($self->getSecondaryAccessionCollection) {
6108 $result .= "<secondaryAccessionCollection xsi:type=\"xsd:string\"> . $node . </secondaryAccessionCollection>";
6109 }
6110 $result .= "</secondaryAccessionCollection>";
6111 }
6112 }
6113 ## end association to XML ##
6114
6115 # add trailing close tags
6116 $result .= "</multiRef>";
6117
6118 return ($result, $current_id, %worklist);
6119 }
6120
6121 # parse a given webservice response xml, construct a list of Protein objects
6122 # param: xml doc
6123 # returns: list of Protein objects
6124 sub fromWebserviceXML {
6125 my $self = shift;
6126 my $parser = new XML::DOM::Parser;
6127 my $docnode = $parser->parse(shift);
6128 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
6129
6130 return $self->fromWSXMLListNode($root);
6131 }
6132
6133 # parse a given xml node, construct a list of Protein objects
6134 # param: xml node
6135 # returns: a list of Protein objects
6136 sub fromWSXMLListNode {
6137 my $self = shift;
6138 my $listNode = shift;
6139 my @obj_list = ();
6140
6141 # get all children for this node
6142 for my $childrenNode ($listNode->getChildNodes) {
6143 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6144 my $newobj = $self->fromWSXMLNode($childrenNode);
6145 push @obj_list, $newobj;
6146 }
6147 }
6148
6149 return @obj_list;
6150 }
6151
6152 # parse a given xml node, construct one Protein object
6153 # param: xml node
6154 # returns: one Protein object
6155 sub fromWSXMLNode {
6156 my $ProteinNode = $_[1];
6157
6158 ## begin ELEMENT_NODE children ##
6159 my $bigid;
6160 my $copyrightStatement;
6161 my $id;
6162 my $name;
6163 my $primaryAccession;
6164 my $uniProtCode;
6165 my @keywords = ();
6166 my @secondaryAccession = ();
6167 ## end ELEMENT_NODE children ##
6168
6169 # get all children for this node
6170 for my $childrenNode ($ProteinNode->getChildNodes) {
6171 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6172 if( ! defined($childrenNode->getFirstChild) ){ next; };
6173 my $textNode = $childrenNode->getFirstChild;
6174 ## begin iterate ELEMENT_NODE ##
6175 if (0) {
6176 # do nothing, just a place holder for "if" component
6177 }
6178 elsif ($childrenNode->getNodeName eq "bigid") {
6179 $bigid=$textNode->getNodeValue;
6180 }
6181 elsif ($childrenNode->getNodeName eq "copyrightStatement") {
6182 $copyrightStatement=$textNode->getNodeValue;
6183 }
6184 elsif ($childrenNode->getNodeName eq "id") {
6185 $id=$textNode->getNodeValue;
6186 }
6187 elsif ($childrenNode->getNodeName eq "name") {
6188 $name=$textNode->getNodeValue;
6189 }
6190 elsif ($childrenNode->getNodeName eq "primaryAccession") {
6191 $primaryAccession=$textNode->getNodeValue;
6192 }
6193 elsif ($childrenNode->getNodeName eq "uniProtCode") {
6194 $uniProtCode=$textNode->getNodeValue;
6195 }
6196 elsif ($childrenNode->getNodeName eq "keywords") {
6197 for my $node ($childrenNode->getChildNodes) {
6198 if( $node->getNodeName eq "empty" ){ next; };
6199 if( ! defined($node->getFirstChild) ){ next; };
6200 my $txnode = $node->getFirstChild;
6201 push @keywords, $txnode->getNodeValue;
6202 }
6203 }
6204 elsif ($childrenNode->getNodeName eq "secondaryAccession") {
6205 for my $node ($childrenNode->getChildNodes) {
6206 if( $node->getNodeName eq "empty" ){ next; };
6207 if( ! defined($node->getFirstChild) ){ next; };
6208 my $txnode = $node->getFirstChild;
6209 push @secondaryAccession, $txnode->getNodeValue;
6210 }
6211 }
6212 ## end iterate ELEMENT_NODE ##
6213 }
6214 }
6215 my $newobj = new CaCORE::CaBIO::Protein;
6216 ## begin set attr ##
6217 $newobj->setBigid($bigid);
6218 $newobj->setCopyrightStatement($copyrightStatement);
6219 $newobj->setId($id);
6220 $newobj->setName($name);
6221 $newobj->setPrimaryAccession($primaryAccession);
6222 $newobj->setUniProtCode($uniProtCode);
6223 $newobj->setKeywordsCollection(@keywords);
6224 $newobj->setSecondaryAccessionCollection(@secondaryAccession);
6225 ## end set attr ##
6226
6227 return $newobj;
6228 }
6229
6230 ## begin getters and setters ##
6231
6232 sub getBigid {
6233 my $self = shift;
6234 return $self->{bigid};
6235 }
6236  
6237 sub setBigid {
6238 my $self = shift;
6239 $self->{bigid} = shift;
6240 }
6241  
6242 sub getCopyrightStatement {
6243 my $self = shift;
6244 return $self->{copyrightStatement};
6245 }
6246  
6247 sub setCopyrightStatement {
6248 my $self = shift;
6249 $self->{copyrightStatement} = shift;
6250 }
6251  
6252 sub getId {
6253 my $self = shift;
6254 return $self->{id};
6255 }
6256  
6257 sub setId {
6258 my $self = shift;
6259 $self->{id} = shift;
6260 }
6261  
6262 sub getName {
6263 my $self = shift;
6264 return $self->{name};
6265 }
6266  
6267 sub setName {
6268 my $self = shift;
6269 $self->{name} = shift;
6270 }
6271  
6272 sub getPrimaryAccession {
6273 my $self = shift;
6274 return $self->{primaryAccession};
6275 }
6276  
6277 sub setPrimaryAccession {
6278 my $self = shift;
6279 $self->{primaryAccession} = shift;
6280 }
6281  
6282 sub getUniProtCode {
6283 my $self = shift;
6284 return $self->{uniProtCode};
6285 }
6286  
6287 sub setUniProtCode {
6288 my $self = shift;
6289 $self->{uniProtCode} = shift;
6290 }
6291  
6292 ## end getters and setters ##
6293
6294 ## begin bean association methods ##
6295
6296 sub getGeneCollection {
6297 my $self = shift;
6298 my $appSvc = CaCORE::ApplicationService->instance();
6299 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
6300 return @results;
6301 }
6302  
6303 sub getKeywordsCollection {
6304 my $self = shift;
6305 if( defined($self->{keywords}) ) {
6306 return @{$self->{keywords}};
6307 } else {
6308 return ();
6309 }
6310 }
6311  
6312 sub setKeywordsCollection {
6313 my ($self, @set) = @_;
6314 push @{$self->{keywords}}, @set;
6315 }
6316  
6317 sub getProteinAliasCollection {
6318 my $self = shift;
6319 my $appSvc = CaCORE::ApplicationService->instance();
6320 my @results = $appSvc->queryObject("CaCORE::CaBIO::ProteinAlias", $self);
6321 return @results;
6322 }
6323  
6324 sub getProteinSequence {
6325 my $self = shift;
6326 my $appSvc = CaCORE::ApplicationService->instance();
6327 my @results = $appSvc->queryObject("CaCORE::CaBIO::ProteinSequence", $self);
6328 return $results[0];
6329 }
6330  
6331 sub getSecondaryAccessionCollection {
6332 my $self = shift;
6333 if( defined($self->{secondaryAccession}) ) {
6334 return @{$self->{secondaryAccession}};
6335 } else {
6336 return ();
6337 }
6338 }
6339  
6340 sub setSecondaryAccessionCollection {
6341 my ($self, @set) = @_;
6342 push @{$self->{secondaryAccession}}, @set;
6343 }
6344  
6345 sub getTaxonCollection {
6346 my $self = shift;
6347 my $appSvc = CaCORE::ApplicationService->instance();
6348 my @results = $appSvc->queryObject("CaCORE::CaBIO::Taxon", $self);
6349 return @results;
6350 }
6351  
6352 ## end bean association methods ##
6353
6354 1;
6355 #end
6356 # ------------------------------------------------------------------------------------------
6357 package CaCORE::CaBIO::ProteinAlias;
6358
6359 use 5.005;
6360 #use strict;
6361 use warnings;
6362
6363 require Exporter;
6364
6365 use XML::DOM;
6366
6367 ## begin import objects ##
6368 use CaCORE::ApplicationService;
6369 ## end import objects ##
6370
6371
6372 @ISA = qw(CaCORE::DomainObjectI);
6373
6374 our %EXPORT_TAGS = ( 'all' => [ qw(
6375
6376 ) ] );
6377
6378 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
6379
6380 our @EXPORT = qw(
6381 );
6382
6383 # create an instance of the ProteinAlias object
6384 # returns: a ProteinAlias object
6385 sub new {
6386 my $class = shift;
6387 my $self = {};
6388 bless($self, $class);
6389 #print "new ProteinAlias\n";
6390 return $self;
6391 }
6392
6393 # Construct the specific section of the WSDL request corresponding
6394 # to this ProteinAlias intance
6395 # returns: XML in string format
6396 sub toWebserviceXML {
6397 my $self = shift;
6398 my $result = shift;
6399 my $assigned_id = shift;
6400 my $current_id = shift;
6401 my $l = shift;
6402 my %worklist = %$l;
6403
6404 # prefix portion of the xml
6405 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":ProteinAlias\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
6406 my $tmpstr = "";
6407 $current_id ++;
6408
6409 ## begin attribute to XML ##
6410 # bigid;
6411 if( defined( $self->getBigid ) ) {
6412 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
6413 } else {
6414 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6415 }
6416 $result .= $tmpstr;
6417  
6418 # id;
6419 if( defined( $self->getId ) ) {
6420 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
6421 } else {
6422 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
6423 }
6424 $result .= $tmpstr;
6425  
6426 # name;
6427 if( defined( $self->getName ) ) {
6428 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
6429 } else {
6430 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6431 }
6432 $result .= $tmpstr;
6433  
6434 ## end attribute to XML ##
6435
6436 ## begin association to XML ##
6437 ## end association to XML ##
6438
6439 # add trailing close tags
6440 $result .= "</multiRef>";
6441
6442 return ($result, $current_id, %worklist);
6443 }
6444
6445 # parse a given webservice response xml, construct a list of ProteinAlias objects
6446 # param: xml doc
6447 # returns: list of ProteinAlias objects
6448 sub fromWebserviceXML {
6449 my $self = shift;
6450 my $parser = new XML::DOM::Parser;
6451 my $docnode = $parser->parse(shift);
6452 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
6453
6454 return $self->fromWSXMLListNode($root);
6455 }
6456
6457 # parse a given xml node, construct a list of ProteinAlias objects
6458 # param: xml node
6459 # returns: a list of ProteinAlias objects
6460 sub fromWSXMLListNode {
6461 my $self = shift;
6462 my $listNode = shift;
6463 my @obj_list = ();
6464
6465 # get all children for this node
6466 for my $childrenNode ($listNode->getChildNodes) {
6467 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6468 my $newobj = $self->fromWSXMLNode($childrenNode);
6469 push @obj_list, $newobj;
6470 }
6471 }
6472
6473 return @obj_list;
6474 }
6475
6476 # parse a given xml node, construct one ProteinAlias object
6477 # param: xml node
6478 # returns: one ProteinAlias object
6479 sub fromWSXMLNode {
6480 my $ProteinAliasNode = $_[1];
6481
6482 ## begin ELEMENT_NODE children ##
6483 my $bigid;
6484 my $id;
6485 my $name;
6486 ## end ELEMENT_NODE children ##
6487
6488 # get all children for this node
6489 for my $childrenNode ($ProteinAliasNode->getChildNodes) {
6490 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6491 if( ! defined($childrenNode->getFirstChild) ){ next; };
6492 my $textNode = $childrenNode->getFirstChild;
6493 ## begin iterate ELEMENT_NODE ##
6494 if (0) {
6495 # do nothing, just a place holder for "if" component
6496 }
6497 elsif ($childrenNode->getNodeName eq "bigid") {
6498 $bigid=$textNode->getNodeValue;
6499 }
6500 elsif ($childrenNode->getNodeName eq "id") {
6501 $id=$textNode->getNodeValue;
6502 }
6503 elsif ($childrenNode->getNodeName eq "name") {
6504 $name=$textNode->getNodeValue;
6505 }
6506 ## end iterate ELEMENT_NODE ##
6507 }
6508 }
6509 my $newobj = new CaCORE::CaBIO::ProteinAlias;
6510 ## begin set attr ##
6511 $newobj->setBigid($bigid);
6512 $newobj->setId($id);
6513 $newobj->setName($name);
6514 ## end set attr ##
6515
6516 return $newobj;
6517 }
6518
6519 ## begin getters and setters ##
6520
6521 sub getBigid {
6522 my $self = shift;
6523 return $self->{bigid};
6524 }
6525  
6526 sub setBigid {
6527 my $self = shift;
6528 $self->{bigid} = shift;
6529 }
6530  
6531 sub getId {
6532 my $self = shift;
6533 return $self->{id};
6534 }
6535  
6536 sub setId {
6537 my $self = shift;
6538 $self->{id} = shift;
6539 }
6540  
6541 sub getName {
6542 my $self = shift;
6543 return $self->{name};
6544 }
6545  
6546 sub setName {
6547 my $self = shift;
6548 $self->{name} = shift;
6549 }
6550  
6551 ## end getters and setters ##
6552
6553 ## begin bean association methods ##
6554
6555 sub getProteinCollection {
6556 my $self = shift;
6557 my $appSvc = CaCORE::ApplicationService->instance();
6558 my @results = $appSvc->queryObject("CaCORE::CaBIO::Protein", $self);
6559 return @results;
6560 }
6561  
6562 ## end bean association methods ##
6563
6564 1;
6565 #end
6566 # ------------------------------------------------------------------------------------------
6567 package CaCORE::CaBIO::Target;
6568
6569 use 5.005;
6570 #use strict;
6571 use warnings;
6572
6573 require Exporter;
6574
6575 use XML::DOM;
6576
6577 ## begin import objects ##
6578 use CaCORE::ApplicationService;
6579 ## end import objects ##
6580
6581
6582 @ISA = qw(CaCORE::DomainObjectI);
6583
6584 our %EXPORT_TAGS = ( 'all' => [ qw(
6585
6586 ) ] );
6587
6588 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
6589
6590 our @EXPORT = qw(
6591 );
6592
6593 # create an instance of the Target object
6594 # returns: a Target object
6595 sub new {
6596 my $class = shift;
6597 my $self = {};
6598 bless($self, $class);
6599 #print "new Target\n";
6600 return $self;
6601 }
6602
6603 # Construct the specific section of the WSDL request corresponding
6604 # to this Target intance
6605 # returns: XML in string format
6606 sub toWebserviceXML {
6607 my $self = shift;
6608 my $result = shift;
6609 my $assigned_id = shift;
6610 my $current_id = shift;
6611 my $l = shift;
6612 my %worklist = %$l;
6613
6614 # prefix portion of the xml
6615 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Target\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
6616 my $tmpstr = "";
6617 $current_id ++;
6618
6619 ## begin attribute to XML ##
6620 # bigid;
6621 if( defined( $self->getBigid ) ) {
6622 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
6623 } else {
6624 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6625 }
6626 $result .= $tmpstr;
6627  
6628 # id;
6629 if( defined( $self->getId ) ) {
6630 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
6631 } else {
6632 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
6633 }
6634 $result .= $tmpstr;
6635  
6636 # name;
6637 if( defined( $self->getName ) ) {
6638 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
6639 } else {
6640 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6641 }
6642 $result .= $tmpstr;
6643  
6644 # type;
6645 if( defined( $self->getType ) ) {
6646 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
6647 } else {
6648 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6649 }
6650 $result .= $tmpstr;
6651  
6652 ## end attribute to XML ##
6653
6654 ## begin association to XML ##
6655 ## end association to XML ##
6656
6657 # add trailing close tags
6658 $result .= "</multiRef>";
6659
6660 return ($result, $current_id, %worklist);
6661 }
6662
6663 # parse a given webservice response xml, construct a list of Target objects
6664 # param: xml doc
6665 # returns: list of Target objects
6666 sub fromWebserviceXML {
6667 my $self = shift;
6668 my $parser = new XML::DOM::Parser;
6669 my $docnode = $parser->parse(shift);
6670 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
6671
6672 return $self->fromWSXMLListNode($root);
6673 }
6674
6675 # parse a given xml node, construct a list of Target objects
6676 # param: xml node
6677 # returns: a list of Target objects
6678 sub fromWSXMLListNode {
6679 my $self = shift;
6680 my $listNode = shift;
6681 my @obj_list = ();
6682
6683 # get all children for this node
6684 for my $childrenNode ($listNode->getChildNodes) {
6685 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6686 my $newobj = $self->fromWSXMLNode($childrenNode);
6687 push @obj_list, $newobj;
6688 }
6689 }
6690
6691 return @obj_list;
6692 }
6693
6694 # parse a given xml node, construct one Target object
6695 # param: xml node
6696 # returns: one Target object
6697 sub fromWSXMLNode {
6698 my $TargetNode = $_[1];
6699
6700 ## begin ELEMENT_NODE children ##
6701 my $bigid;
6702 my $id;
6703 my $name;
6704 my $type;
6705 ## end ELEMENT_NODE children ##
6706
6707 # get all children for this node
6708 for my $childrenNode ($TargetNode->getChildNodes) {
6709 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6710 if( ! defined($childrenNode->getFirstChild) ){ next; };
6711 my $textNode = $childrenNode->getFirstChild;
6712 ## begin iterate ELEMENT_NODE ##
6713 if (0) {
6714 # do nothing, just a place holder for "if" component
6715 }
6716 elsif ($childrenNode->getNodeName eq "bigid") {
6717 $bigid=$textNode->getNodeValue;
6718 }
6719 elsif ($childrenNode->getNodeName eq "id") {
6720 $id=$textNode->getNodeValue;
6721 }
6722 elsif ($childrenNode->getNodeName eq "name") {
6723 $name=$textNode->getNodeValue;
6724 }
6725 elsif ($childrenNode->getNodeName eq "type") {
6726 $type=$textNode->getNodeValue;
6727 }
6728 ## end iterate ELEMENT_NODE ##
6729 }
6730 }
6731 my $newobj = new CaCORE::CaBIO::Target;
6732 ## begin set attr ##
6733 $newobj->setBigid($bigid);
6734 $newobj->setId($id);
6735 $newobj->setName($name);
6736 $newobj->setType($type);
6737 ## end set attr ##
6738
6739 return $newobj;
6740 }
6741
6742 ## begin getters and setters ##
6743
6744 sub getBigid {
6745 my $self = shift;
6746 return $self->{bigid};
6747 }
6748  
6749 sub setBigid {
6750 my $self = shift;
6751 $self->{bigid} = shift;
6752 }
6753  
6754 sub getId {
6755 my $self = shift;
6756 return $self->{id};
6757 }
6758  
6759 sub setId {
6760 my $self = shift;
6761 $self->{id} = shift;
6762 }
6763  
6764 sub getName {
6765 my $self = shift;
6766 return $self->{name};
6767 }
6768  
6769 sub setName {
6770 my $self = shift;
6771 $self->{name} = shift;
6772 }
6773  
6774 sub getType {
6775 my $self = shift;
6776 return $self->{type};
6777 }
6778  
6779 sub setType {
6780 my $self = shift;
6781 $self->{type} = shift;
6782 }
6783  
6784 ## end getters and setters ##
6785
6786 ## begin bean association methods ##
6787
6788 sub getAgentCollection {
6789 my $self = shift;
6790 my $appSvc = CaCORE::ApplicationService->instance();
6791 my @results = $appSvc->queryObject("CaCORE::CaBIO::Agent", $self);
6792 return @results;
6793 }
6794  
6795 sub getAnomalyCollection {
6796 my $self = shift;
6797 my $appSvc = CaCORE::ApplicationService->instance();
6798 my @results = $appSvc->queryObject("CaCORE::CaBIO::Anomaly", $self);
6799 return @results;
6800 }
6801  
6802 sub getGeneCollection {
6803 my $self = shift;
6804 my $appSvc = CaCORE::ApplicationService->instance();
6805 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
6806 return @results;
6807 }
6808  
6809 ## end bean association methods ##
6810
6811 1;
6812 #end
6813 # ------------------------------------------------------------------------------------------
6814 package CaCORE::CaBIO::GeneAlias;
6815
6816 use 5.005;
6817 #use strict;
6818 use warnings;
6819
6820 require Exporter;
6821
6822 use XML::DOM;
6823
6824 ## begin import objects ##
6825 use CaCORE::ApplicationService;
6826 ## end import objects ##
6827
6828
6829 @ISA = qw(CaCORE::DomainObjectI);
6830
6831 our %EXPORT_TAGS = ( 'all' => [ qw(
6832
6833 ) ] );
6834
6835 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
6836
6837 our @EXPORT = qw(
6838 );
6839
6840 # create an instance of the GeneAlias object
6841 # returns: a GeneAlias object
6842 sub new {
6843 my $class = shift;
6844 my $self = {};
6845 bless($self, $class);
6846 #print "new GeneAlias\n";
6847 return $self;
6848 }
6849
6850 # Construct the specific section of the WSDL request corresponding
6851 # to this GeneAlias intance
6852 # returns: XML in string format
6853 sub toWebserviceXML {
6854 my $self = shift;
6855 my $result = shift;
6856 my $assigned_id = shift;
6857 my $current_id = shift;
6858 my $l = shift;
6859 my %worklist = %$l;
6860
6861 # prefix portion of the xml
6862 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":GeneAlias\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
6863 my $tmpstr = "";
6864 $current_id ++;
6865
6866 ## begin attribute to XML ##
6867 # bigid;
6868 if( defined( $self->getBigid ) ) {
6869 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
6870 } else {
6871 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6872 }
6873 $result .= $tmpstr;
6874  
6875 # id;
6876 if( defined( $self->getId ) ) {
6877 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
6878 } else {
6879 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
6880 }
6881 $result .= $tmpstr;
6882  
6883 # name;
6884 if( defined( $self->getName ) ) {
6885 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
6886 } else {
6887 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6888 }
6889 $result .= $tmpstr;
6890  
6891 # type;
6892 if( defined( $self->getType ) ) {
6893 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
6894 } else {
6895 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
6896 }
6897 $result .= $tmpstr;
6898  
6899 ## end attribute to XML ##
6900
6901 ## begin association to XML ##
6902 ## end association to XML ##
6903
6904 # add trailing close tags
6905 $result .= "</multiRef>";
6906
6907 return ($result, $current_id, %worklist);
6908 }
6909
6910 # parse a given webservice response xml, construct a list of GeneAlias objects
6911 # param: xml doc
6912 # returns: list of GeneAlias objects
6913 sub fromWebserviceXML {
6914 my $self = shift;
6915 my $parser = new XML::DOM::Parser;
6916 my $docnode = $parser->parse(shift);
6917 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
6918
6919 return $self->fromWSXMLListNode($root);
6920 }
6921
6922 # parse a given xml node, construct a list of GeneAlias objects
6923 # param: xml node
6924 # returns: a list of GeneAlias objects
6925 sub fromWSXMLListNode {
6926 my $self = shift;
6927 my $listNode = shift;
6928 my @obj_list = ();
6929
6930 # get all children for this node
6931 for my $childrenNode ($listNode->getChildNodes) {
6932 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6933 my $newobj = $self->fromWSXMLNode($childrenNode);
6934 push @obj_list, $newobj;
6935 }
6936 }
6937
6938 return @obj_list;
6939 }
6940
6941 # parse a given xml node, construct one GeneAlias object
6942 # param: xml node
6943 # returns: one GeneAlias object
6944 sub fromWSXMLNode {
6945 my $GeneAliasNode = $_[1];
6946
6947 ## begin ELEMENT_NODE children ##
6948 my $bigid;
6949 my $id;
6950 my $name;
6951 my $type;
6952 ## end ELEMENT_NODE children ##
6953
6954 # get all children for this node
6955 for my $childrenNode ($GeneAliasNode->getChildNodes) {
6956 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
6957 if( ! defined($childrenNode->getFirstChild) ){ next; };
6958 my $textNode = $childrenNode->getFirstChild;
6959 ## begin iterate ELEMENT_NODE ##
6960 if (0) {
6961 # do nothing, just a place holder for "if" component
6962 }
6963 elsif ($childrenNode->getNodeName eq "bigid") {
6964 $bigid=$textNode->getNodeValue;
6965 }
6966 elsif ($childrenNode->getNodeName eq "id") {
6967 $id=$textNode->getNodeValue;
6968 }
6969 elsif ($childrenNode->getNodeName eq "name") {
6970 $name=$textNode->getNodeValue;
6971 }
6972 elsif ($childrenNode->getNodeName eq "type") {
6973 $type=$textNode->getNodeValue;
6974 }
6975 ## end iterate ELEMENT_NODE ##
6976 }
6977 }
6978 my $newobj = new CaCORE::CaBIO::GeneAlias;
6979 ## begin set attr ##
6980 $newobj->setBigid($bigid);
6981 $newobj->setId($id);
6982 $newobj->setName($name);
6983 $newobj->setType($type);
6984 ## end set attr ##
6985
6986 return $newobj;
6987 }
6988
6989 ## begin getters and setters ##
6990
6991 sub getBigid {
6992 my $self = shift;
6993 return $self->{bigid};
6994 }
6995  
6996 sub setBigid {
6997 my $self = shift;
6998 $self->{bigid} = shift;
6999 }
7000  
7001 sub getId {
7002 my $self = shift;
7003 return $self->{id};
7004 }
7005  
7006 sub setId {
7007 my $self = shift;
7008 $self->{id} = shift;
7009 }
7010  
7011 sub getName {
7012 my $self = shift;
7013 return $self->{name};
7014 }
7015  
7016 sub setName {
7017 my $self = shift;
7018 $self->{name} = shift;
7019 }
7020  
7021 sub getType {
7022 my $self = shift;
7023 return $self->{type};
7024 }
7025  
7026 sub setType {
7027 my $self = shift;
7028 $self->{type} = shift;
7029 }
7030  
7031 ## end getters and setters ##
7032
7033 ## begin bean association methods ##
7034
7035 sub getGeneCollection {
7036 my $self = shift;
7037 my $appSvc = CaCORE::ApplicationService->instance();
7038 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
7039 return @results;
7040 }
7041  
7042 ## end bean association methods ##
7043
7044 1;
7045 #end
7046 # ------------------------------------------------------------------------------------------
7047 package CaCORE::CaBIO::GenericArray;
7048
7049 use 5.005;
7050 #use strict;
7051 use warnings;
7052
7053 require Exporter;
7054
7055 use XML::DOM;
7056
7057 ## begin import objects ##
7058 use CaCORE::ApplicationService;
7059 ## end import objects ##
7060
7061
7062 @ISA = qw(CaCORE::DomainObjectI);
7063
7064 our %EXPORT_TAGS = ( 'all' => [ qw(
7065
7066 ) ] );
7067
7068 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
7069
7070 our @EXPORT = qw(
7071 );
7072
7073 # create an instance of the GenericArray object
7074 # returns: a GenericArray object
7075 sub new {
7076 my $class = shift;
7077 my $self = {};
7078 bless($self, $class);
7079 #print "new GenericArray\n";
7080 return $self;
7081 }
7082
7083 # Construct the specific section of the WSDL request corresponding
7084 # to this GenericArray intance
7085 # returns: XML in string format
7086 sub toWebserviceXML {
7087 my $self = shift;
7088 my $result = shift;
7089 my $assigned_id = shift;
7090 my $current_id = shift;
7091 my $l = shift;
7092 my %worklist = %$l;
7093
7094 # prefix portion of the xml
7095 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":GenericArray\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
7096 my $tmpstr = "";
7097 $current_id ++;
7098
7099 ## begin attribute to XML ##
7100 # arrayName;
7101 if( defined( $self->getArrayName ) ) {
7102 $tmpstr = "<arrayName xsi:type=\"xsd:string\">" . $self->getArrayName . "</arrayName>";
7103 } else {
7104 $tmpstr = "<arrayName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7105 }
7106 $result .= $tmpstr;
7107  
7108 # bigid;
7109 if( defined( $self->getBigid ) ) {
7110 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
7111 } else {
7112 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7113 }
7114 $result .= $tmpstr;
7115  
7116 # id;
7117 if( defined( $self->getId ) ) {
7118 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
7119 } else {
7120 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
7121 }
7122 $result .= $tmpstr;
7123  
7124 # platform;
7125 if( defined( $self->getPlatform ) ) {
7126 $tmpstr = "<platform xsi:type=\"xsd:string\">" . $self->getPlatform . "</platform>";
7127 } else {
7128 $tmpstr = "<platform xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7129 }
7130 $result .= $tmpstr;
7131  
7132 # type;
7133 if( defined( $self->getType ) ) {
7134 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
7135 } else {
7136 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7137 }
7138 $result .= $tmpstr;
7139  
7140 ## end attribute to XML ##
7141
7142 ## begin association to XML ##
7143 ## end association to XML ##
7144
7145 # add trailing close tags
7146 $result .= "</multiRef>";
7147
7148 return ($result, $current_id, %worklist);
7149 }
7150
7151 # parse a given webservice response xml, construct a list of GenericArray objects
7152 # param: xml doc
7153 # returns: list of GenericArray objects
7154 sub fromWebserviceXML {
7155 my $self = shift;
7156 my $parser = new XML::DOM::Parser;
7157 my $docnode = $parser->parse(shift);
7158 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
7159
7160 return $self->fromWSXMLListNode($root);
7161 }
7162
7163 # parse a given xml node, construct a list of GenericArray objects
7164 # param: xml node
7165 # returns: a list of GenericArray objects
7166 sub fromWSXMLListNode {
7167 my $self = shift;
7168 my $listNode = shift;
7169 my @obj_list = ();
7170
7171 # get all children for this node
7172 for my $childrenNode ($listNode->getChildNodes) {
7173 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7174 my $newobj = $self->fromWSXMLNode($childrenNode);
7175 push @obj_list, $newobj;
7176 }
7177 }
7178
7179 return @obj_list;
7180 }
7181
7182 # parse a given xml node, construct one GenericArray object
7183 # param: xml node
7184 # returns: one GenericArray object
7185 sub fromWSXMLNode {
7186 my $GenericArrayNode = $_[1];
7187
7188 ## begin ELEMENT_NODE children ##
7189 my $arrayName;
7190 my $bigid;
7191 my $id;
7192 my $platform;
7193 my $type;
7194 ## end ELEMENT_NODE children ##
7195
7196 # get all children for this node
7197 for my $childrenNode ($GenericArrayNode->getChildNodes) {
7198 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7199 if( ! defined($childrenNode->getFirstChild) ){ next; };
7200 my $textNode = $childrenNode->getFirstChild;
7201 ## begin iterate ELEMENT_NODE ##
7202 if (0) {
7203 # do nothing, just a place holder for "if" component
7204 }
7205 elsif ($childrenNode->getNodeName eq "arrayName") {
7206 $arrayName=$textNode->getNodeValue;
7207 }
7208 elsif ($childrenNode->getNodeName eq "bigid") {
7209 $bigid=$textNode->getNodeValue;
7210 }
7211 elsif ($childrenNode->getNodeName eq "id") {
7212 $id=$textNode->getNodeValue;
7213 }
7214 elsif ($childrenNode->getNodeName eq "platform") {
7215 $platform=$textNode->getNodeValue;
7216 }
7217 elsif ($childrenNode->getNodeName eq "type") {
7218 $type=$textNode->getNodeValue;
7219 }
7220 ## end iterate ELEMENT_NODE ##
7221 }
7222 }
7223 my $newobj = new CaCORE::CaBIO::GenericArray;
7224 ## begin set attr ##
7225 $newobj->setArrayName($arrayName);
7226 $newobj->setBigid($bigid);
7227 $newobj->setId($id);
7228 $newobj->setPlatform($platform);
7229 $newobj->setType($type);
7230 ## end set attr ##
7231
7232 return $newobj;
7233 }
7234
7235 ## begin getters and setters ##
7236
7237 sub getArrayName {
7238 my $self = shift;
7239 return $self->{arrayName};
7240 }
7241  
7242 sub setArrayName {
7243 my $self = shift;
7244 $self->{arrayName} = shift;
7245 }
7246  
7247 sub getBigid {
7248 my $self = shift;
7249 return $self->{bigid};
7250 }
7251  
7252 sub setBigid {
7253 my $self = shift;
7254 $self->{bigid} = shift;
7255 }
7256  
7257 sub getId {
7258 my $self = shift;
7259 return $self->{id};
7260 }
7261  
7262 sub setId {
7263 my $self = shift;
7264 $self->{id} = shift;
7265 }
7266  
7267 sub getPlatform {
7268 my $self = shift;
7269 return $self->{platform};
7270 }
7271  
7272 sub setPlatform {
7273 my $self = shift;
7274 $self->{platform} = shift;
7275 }
7276  
7277 sub getType {
7278 my $self = shift;
7279 return $self->{type};
7280 }
7281  
7282 sub setType {
7283 my $self = shift;
7284 $self->{type} = shift;
7285 }
7286  
7287 ## end getters and setters ##
7288
7289 ## begin bean association methods ##
7290
7291 sub getGenericReporterCollection {
7292 my $self = shift;
7293 my $appSvc = CaCORE::ApplicationService->instance();
7294 my @results = $appSvc->queryObject("CaCORE::CaBIO::GenericReporter", $self);
7295 return @results;
7296 }
7297  
7298 ## end bean association methods ##
7299
7300 1;
7301 #end
7302 # ------------------------------------------------------------------------------------------
7303 package CaCORE::CaBIO::Vocabulary;
7304
7305 use 5.005;
7306 #use strict;
7307 use warnings;
7308
7309 require Exporter;
7310
7311 use XML::DOM;
7312
7313 ## begin import objects ##
7314 use CaCORE::ApplicationService;
7315 ## end import objects ##
7316
7317
7318 @ISA = qw(CaCORE::DomainObjectI);
7319
7320 our %EXPORT_TAGS = ( 'all' => [ qw(
7321
7322 ) ] );
7323
7324 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
7325
7326 our @EXPORT = qw(
7327 );
7328
7329 # create an instance of the Vocabulary object
7330 # returns: a Vocabulary object
7331 sub new {
7332 my $class = shift;
7333 my $self = {};
7334 bless($self, $class);
7335 #print "new Vocabulary\n";
7336 return $self;
7337 }
7338
7339 # Construct the specific section of the WSDL request corresponding
7340 # to this Vocabulary intance
7341 # returns: XML in string format
7342 sub toWebserviceXML {
7343 my $self = shift;
7344 my $result = shift;
7345 my $assigned_id = shift;
7346 my $current_id = shift;
7347 my $l = shift;
7348 my %worklist = %$l;
7349
7350 # prefix portion of the xml
7351 $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.cabio.nci.nih.gov\">";
7352 my $tmpstr = "";
7353 $current_id ++;
7354
7355 ## begin attribute to XML ##
7356 # bigid;
7357 if( defined( $self->getBigid ) ) {
7358 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
7359 } else {
7360 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7361 }
7362 $result .= $tmpstr;
7363  
7364 # coreTerm;
7365 if( defined( $self->getCoreTerm ) ) {
7366 $tmpstr = "<coreTerm xsi:type=\"xsd:string\">" . $self->getCoreTerm . "</coreTerm>";
7367 } else {
7368 $tmpstr = "<coreTerm xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7369 }
7370 $result .= $tmpstr;
7371  
7372 # generalTerm;
7373 if( defined( $self->getGeneralTerm ) ) {
7374 $tmpstr = "<generalTerm xsi:type=\"xsd:string\">" . $self->getGeneralTerm . "</generalTerm>";
7375 } else {
7376 $tmpstr = "<generalTerm xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7377 }
7378 $result .= $tmpstr;
7379  
7380 # id;
7381 if( defined( $self->getId ) ) {
7382 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
7383 } else {
7384 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
7385 }
7386 $result .= $tmpstr;
7387  
7388 ## end attribute to XML ##
7389
7390 ## begin association to XML ##
7391 ## end association to XML ##
7392
7393 # add trailing close tags
7394 $result .= "</multiRef>";
7395
7396 return ($result, $current_id, %worklist);
7397 }
7398
7399 # parse a given webservice response xml, construct a list of Vocabulary objects
7400 # param: xml doc
7401 # returns: list of Vocabulary objects
7402 sub fromWebserviceXML {
7403 my $self = shift;
7404 my $parser = new XML::DOM::Parser;
7405 my $docnode = $parser->parse(shift);
7406 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
7407
7408 return $self->fromWSXMLListNode($root);
7409 }
7410
7411 # parse a given xml node, construct a list of Vocabulary objects
7412 # param: xml node
7413 # returns: a list of Vocabulary objects
7414 sub fromWSXMLListNode {
7415 my $self = shift;
7416 my $listNode = shift;
7417 my @obj_list = ();
7418
7419 # get all children for this node
7420 for my $childrenNode ($listNode->getChildNodes) {
7421 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7422 my $newobj = $self->fromWSXMLNode($childrenNode);
7423 push @obj_list, $newobj;
7424 }
7425 }
7426
7427 return @obj_list;
7428 }
7429
7430 # parse a given xml node, construct one Vocabulary object
7431 # param: xml node
7432 # returns: one Vocabulary object
7433 sub fromWSXMLNode {
7434 my $VocabularyNode = $_[1];
7435
7436 ## begin ELEMENT_NODE children ##
7437 my $bigid;
7438 my $coreTerm;
7439 my $generalTerm;
7440 my $id;
7441 ## end ELEMENT_NODE children ##
7442
7443 # get all children for this node
7444 for my $childrenNode ($VocabularyNode->getChildNodes) {
7445 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7446 if( ! defined($childrenNode->getFirstChild) ){ next; };
7447 my $textNode = $childrenNode->getFirstChild;
7448 ## begin iterate ELEMENT_NODE ##
7449 if (0) {
7450 # do nothing, just a place holder for "if" component
7451 }
7452 elsif ($childrenNode->getNodeName eq "bigid") {
7453 $bigid=$textNode->getNodeValue;
7454 }
7455 elsif ($childrenNode->getNodeName eq "coreTerm") {
7456 $coreTerm=$textNode->getNodeValue;
7457 }
7458 elsif ($childrenNode->getNodeName eq "generalTerm") {
7459 $generalTerm=$textNode->getNodeValue;
7460 }
7461 elsif ($childrenNode->getNodeName eq "id") {
7462 $id=$textNode->getNodeValue;
7463 }
7464 ## end iterate ELEMENT_NODE ##
7465 }
7466 }
7467 my $newobj = new CaCORE::CaBIO::Vocabulary;
7468 ## begin set attr ##
7469 $newobj->setBigid($bigid);
7470 $newobj->setCoreTerm($coreTerm);
7471 $newobj->setGeneralTerm($generalTerm);
7472 $newobj->setId($id);
7473 ## end set attr ##
7474
7475 return $newobj;
7476 }
7477
7478 ## begin getters and setters ##
7479
7480 sub getBigid {
7481 my $self = shift;
7482 return $self->{bigid};
7483 }
7484  
7485 sub setBigid {
7486 my $self = shift;
7487 $self->{bigid} = shift;
7488 }
7489  
7490 sub getCoreTerm {
7491 my $self = shift;
7492 return $self->{coreTerm};
7493 }
7494  
7495 sub setCoreTerm {
7496 my $self = shift;
7497 $self->{coreTerm} = shift;
7498 }
7499  
7500 sub getGeneralTerm {
7501 my $self = shift;
7502 return $self->{generalTerm};
7503 }
7504  
7505 sub setGeneralTerm {
7506 my $self = shift;
7507 $self->{generalTerm} = shift;
7508 }
7509  
7510 sub getId {
7511 my $self = shift;
7512 return $self->{id};
7513 }
7514  
7515 sub setId {
7516 my $self = shift;
7517 $self->{id} = shift;
7518 }
7519  
7520 ## end getters and setters ##
7521
7522 ## begin bean association methods ##
7523
7524 sub getAnomalyCollection {
7525 my $self = shift;
7526 my $appSvc = CaCORE::ApplicationService->instance();
7527 my @results = $appSvc->queryObject("CaCORE::CaBIO::Anomaly", $self);
7528 return @results;
7529 }
7530  
7531 ## end bean association methods ##
7532
7533 1;
7534 #end
7535 # ------------------------------------------------------------------------------------------
7536 package CaCORE::CaBIO::OrganOntologyRelationship;
7537
7538 use 5.005;
7539 #use strict;
7540 use warnings;
7541
7542 require Exporter;
7543
7544 use XML::DOM;
7545
7546 ## begin import objects ##
7547 use CaCORE::ApplicationService;
7548 ## end import objects ##
7549
7550
7551 @ISA = qw(CaCORE::DomainObjectI);
7552
7553 our %EXPORT_TAGS = ( 'all' => [ qw(
7554
7555 ) ] );
7556
7557 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
7558
7559 our @EXPORT = qw(
7560 );
7561
7562 # create an instance of the OrganOntologyRelationship object
7563 # returns: a OrganOntologyRelationship object
7564 sub new {
7565 my $class = shift;
7566 my $self = {};
7567 bless($self, $class);
7568 #print "new OrganOntologyRelationship\n";
7569 return $self;
7570 }
7571
7572 # Construct the specific section of the WSDL request corresponding
7573 # to this OrganOntologyRelationship intance
7574 # returns: XML in string format
7575 sub toWebserviceXML {
7576 my $self = shift;
7577 my $result = shift;
7578 my $assigned_id = shift;
7579 my $current_id = shift;
7580 my $l = shift;
7581 my %worklist = %$l;
7582
7583 # prefix portion of the xml
7584 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":OrganOntologyRelationship\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
7585 my $tmpstr = "";
7586 $current_id ++;
7587
7588 ## begin attribute to XML ##
7589 # bigid;
7590 if( defined( $self->getBigid ) ) {
7591 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
7592 } else {
7593 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7594 }
7595 $result .= $tmpstr;
7596  
7597 # id;
7598 if( defined( $self->getId ) ) {
7599 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
7600 } else {
7601 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
7602 }
7603 $result .= $tmpstr;
7604  
7605 # type;
7606 if( defined( $self->getType ) ) {
7607 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
7608 } else {
7609 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7610 }
7611 $result .= $tmpstr;
7612  
7613 ## end attribute to XML ##
7614
7615 ## begin association to XML ##
7616 ## end association to XML ##
7617
7618 # add trailing close tags
7619 $result .= "</multiRef>";
7620
7621 return ($result, $current_id, %worklist);
7622 }
7623
7624 # parse a given webservice response xml, construct a list of OrganOntologyRelationship objects
7625 # param: xml doc
7626 # returns: list of OrganOntologyRelationship objects
7627 sub fromWebserviceXML {
7628 my $self = shift;
7629 my $parser = new XML::DOM::Parser;
7630 my $docnode = $parser->parse(shift);
7631 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
7632
7633 return $self->fromWSXMLListNode($root);
7634 }
7635
7636 # parse a given xml node, construct a list of OrganOntologyRelationship objects
7637 # param: xml node
7638 # returns: a list of OrganOntologyRelationship objects
7639 sub fromWSXMLListNode {
7640 my $self = shift;
7641 my $listNode = shift;
7642 my @obj_list = ();
7643
7644 # get all children for this node
7645 for my $childrenNode ($listNode->getChildNodes) {
7646 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7647 my $newobj = $self->fromWSXMLNode($childrenNode);
7648 push @obj_list, $newobj;
7649 }
7650 }
7651
7652 return @obj_list;
7653 }
7654
7655 # parse a given xml node, construct one OrganOntologyRelationship object
7656 # param: xml node
7657 # returns: one OrganOntologyRelationship object
7658 sub fromWSXMLNode {
7659 my $OrganOntologyRelationshipNode = $_[1];
7660
7661 ## begin ELEMENT_NODE children ##
7662 my $bigid;
7663 my $id;
7664 my $type;
7665 ## end ELEMENT_NODE children ##
7666
7667 # get all children for this node
7668 for my $childrenNode ($OrganOntologyRelationshipNode->getChildNodes) {
7669 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7670 if( ! defined($childrenNode->getFirstChild) ){ next; };
7671 my $textNode = $childrenNode->getFirstChild;
7672 ## begin iterate ELEMENT_NODE ##
7673 if (0) {
7674 # do nothing, just a place holder for "if" component
7675 }
7676 elsif ($childrenNode->getNodeName eq "bigid") {
7677 $bigid=$textNode->getNodeValue;
7678 }
7679 elsif ($childrenNode->getNodeName eq "id") {
7680 $id=$textNode->getNodeValue;
7681 }
7682 elsif ($childrenNode->getNodeName eq "type") {
7683 $type=$textNode->getNodeValue;
7684 }
7685 ## end iterate ELEMENT_NODE ##
7686 }
7687 }
7688 my $newobj = new CaCORE::CaBIO::OrganOntologyRelationship;
7689 ## begin set attr ##
7690 $newobj->setBigid($bigid);
7691 $newobj->setId($id);
7692 $newobj->setType($type);
7693 ## end set attr ##
7694
7695 return $newobj;
7696 }
7697
7698 ## begin getters and setters ##
7699
7700 sub getBigid {
7701 my $self = shift;
7702 return $self->{bigid};
7703 }
7704  
7705 sub setBigid {
7706 my $self = shift;
7707 $self->{bigid} = shift;
7708 }
7709  
7710 sub getId {
7711 my $self = shift;
7712 return $self->{id};
7713 }
7714  
7715 sub setId {
7716 my $self = shift;
7717 $self->{id} = shift;
7718 }
7719  
7720 sub getType {
7721 my $self = shift;
7722 return $self->{type};
7723 }
7724  
7725 sub setType {
7726 my $self = shift;
7727 $self->{type} = shift;
7728 }
7729  
7730 ## end getters and setters ##
7731
7732 ## begin bean association methods ##
7733
7734 sub getChildOrganOntology {
7735 my $self = shift;
7736 my $appSvc = CaCORE::ApplicationService->instance();
7737 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntology", $self);
7738 return $results[0];
7739 }
7740  
7741 sub getParentOrganOntology {
7742 my $self = shift;
7743 my $appSvc = CaCORE::ApplicationService->instance();
7744 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntology", $self);
7745 return $results[0];
7746 }
7747  
7748 ## end bean association methods ##
7749
7750 1;
7751 #end
7752 # ------------------------------------------------------------------------------------------
7753 package CaCORE::CaBIO::Anomaly;
7754
7755 use 5.005;
7756 #use strict;
7757 use warnings;
7758
7759 require Exporter;
7760
7761 use XML::DOM;
7762
7763 ## begin import objects ##
7764 use CaCORE::ApplicationService;
7765 ## end import objects ##
7766
7767
7768 @ISA = qw(CaCORE::DomainObjectI);
7769
7770 our %EXPORT_TAGS = ( 'all' => [ qw(
7771
7772 ) ] );
7773
7774 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
7775
7776 our @EXPORT = qw(
7777 );
7778
7779 # create an instance of the Anomaly object
7780 # returns: a Anomaly object
7781 sub new {
7782 my $class = shift;
7783 my $self = {};
7784 bless($self, $class);
7785 #print "new Anomaly\n";
7786 return $self;
7787 }
7788
7789 # Construct the specific section of the WSDL request corresponding
7790 # to this Anomaly intance
7791 # returns: XML in string format
7792 sub toWebserviceXML {
7793 my $self = shift;
7794 my $result = shift;
7795 my $assigned_id = shift;
7796 my $current_id = shift;
7797 my $l = shift;
7798 my %worklist = %$l;
7799
7800 # prefix portion of the xml
7801 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Anomaly\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
7802 my $tmpstr = "";
7803 $current_id ++;
7804
7805 ## begin attribute to XML ##
7806 # bigid;
7807 if( defined( $self->getBigid ) ) {
7808 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
7809 } else {
7810 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7811 }
7812 $result .= $tmpstr;
7813  
7814 # description;
7815 if( defined( $self->getDescription ) ) {
7816 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
7817 } else {
7818 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
7819 }
7820 $result .= $tmpstr;
7821  
7822 # id;
7823 if( defined( $self->getId ) ) {
7824 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
7825 } else {
7826 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
7827 }
7828 $result .= $tmpstr;
7829  
7830 ## end attribute to XML ##
7831
7832 ## begin association to XML ##
7833 ## end association to XML ##
7834
7835 # add trailing close tags
7836 $result .= "</multiRef>";
7837
7838 return ($result, $current_id, %worklist);
7839 }
7840
7841 # parse a given webservice response xml, construct a list of Anomaly objects
7842 # param: xml doc
7843 # returns: list of Anomaly objects
7844 sub fromWebserviceXML {
7845 my $self = shift;
7846 my $parser = new XML::DOM::Parser;
7847 my $docnode = $parser->parse(shift);
7848 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
7849
7850 return $self->fromWSXMLListNode($root);
7851 }
7852
7853 # parse a given xml node, construct a list of Anomaly objects
7854 # param: xml node
7855 # returns: a list of Anomaly objects
7856 sub fromWSXMLListNode {
7857 my $self = shift;
7858 my $listNode = shift;
7859 my @obj_list = ();
7860
7861 # get all children for this node
7862 for my $childrenNode ($listNode->getChildNodes) {
7863 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7864 my $newobj = $self->fromWSXMLNode($childrenNode);
7865 push @obj_list, $newobj;
7866 }
7867 }
7868
7869 return @obj_list;
7870 }
7871
7872 # parse a given xml node, construct one Anomaly object
7873 # param: xml node
7874 # returns: one Anomaly object
7875 sub fromWSXMLNode {
7876 my $AnomalyNode = $_[1];
7877
7878 ## begin ELEMENT_NODE children ##
7879 my $bigid;
7880 my $description;
7881 my $id;
7882 ## end ELEMENT_NODE children ##
7883
7884 # get all children for this node
7885 for my $childrenNode ($AnomalyNode->getChildNodes) {
7886 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
7887 if( ! defined($childrenNode->getFirstChild) ){ next; };
7888 my $textNode = $childrenNode->getFirstChild;
7889 ## begin iterate ELEMENT_NODE ##
7890 if (0) {
7891 # do nothing, just a place holder for "if" component
7892 }
7893 elsif ($childrenNode->getNodeName eq "bigid") {
7894 $bigid=$textNode->getNodeValue;
7895 }
7896 elsif ($childrenNode->getNodeName eq "description") {
7897 $description=$textNode->getNodeValue;
7898 }
7899 elsif ($childrenNode->getNodeName eq "id") {
7900 $id=$textNode->getNodeValue;
7901 }
7902 ## end iterate ELEMENT_NODE ##
7903 }
7904 }
7905 my $newobj = new CaCORE::CaBIO::Anomaly;
7906 ## begin set attr ##
7907 $newobj->setBigid($bigid);
7908 $newobj->setDescription($description);
7909 $newobj->setId($id);
7910 ## end set attr ##
7911
7912 return $newobj;
7913 }
7914
7915 ## begin getters and setters ##
7916
7917 sub getBigid {
7918 my $self = shift;
7919 return $self->{bigid};
7920 }
7921  
7922 sub setBigid {
7923 my $self = shift;
7924 $self->{bigid} = shift;
7925 }
7926  
7927 sub getDescription {
7928 my $self = shift;
7929 return $self->{description};
7930 }
7931  
7932 sub setDescription {
7933 my $self = shift;
7934 $self->{description} = shift;
7935 }
7936  
7937 sub getId {
7938 my $self = shift;
7939 return $self->{id};
7940 }
7941  
7942 sub setId {
7943 my $self = shift;
7944 $self->{id} = shift;
7945 }
7946  
7947 ## end getters and setters ##
7948
7949 ## begin bean association methods ##
7950
7951 sub getHistopathology {
7952 my $self = shift;
7953 my $appSvc = CaCORE::ApplicationService->instance();
7954 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
7955 return $results[0];
7956 }
7957  
7958 sub getOrganOntologyCollection {
7959 my $self = shift;
7960 my $appSvc = CaCORE::ApplicationService->instance();
7961 my @results = $appSvc->queryObject("CaCORE::CaBIO::OrganOntology", $self);
7962 return @results;
7963 }
7964  
7965 sub getVocabularyCollection {
7966 my $self = shift;
7967 my $appSvc = CaCORE::ApplicationService->instance();
7968 my @results = $appSvc->queryObject("CaCORE::CaBIO::Vocabulary", $self);
7969 return @results;
7970 }
7971  
7972 ## end bean association methods ##
7973
7974 1;
7975 #end
7976 # ------------------------------------------------------------------------------------------
7977 package CaCORE::CaBIO::Agent;
7978
7979 use 5.005;
7980 #use strict;
7981 use warnings;
7982
7983 require Exporter;
7984
7985 use XML::DOM;
7986
7987 ## begin import objects ##
7988 use CaCORE::ApplicationService;
7989 ## end import objects ##
7990
7991
7992 @ISA = qw(CaCORE::DomainObjectI);
7993
7994 our %EXPORT_TAGS = ( 'all' => [ qw(
7995
7996 ) ] );
7997
7998 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
7999
8000 our @EXPORT = qw(
8001 );
8002
8003 # create an instance of the Agent object
8004 # returns: a Agent object
8005 sub new {
8006 my $class = shift;
8007 my $self = {};
8008 bless($self, $class);
8009 #print "new Agent\n";
8010 return $self;
8011 }
8012
8013 # Construct the specific section of the WSDL request corresponding
8014 # to this Agent intance
8015 # returns: XML in string format
8016 sub toWebserviceXML {
8017 my $self = shift;
8018 my $result = shift;
8019 my $assigned_id = shift;
8020 my $current_id = shift;
8021 my $l = shift;
8022 my %worklist = %$l;
8023
8024 # prefix portion of the xml
8025 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Agent\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
8026 my $tmpstr = "";
8027 $current_id ++;
8028
8029 ## begin attribute to XML ##
8030 # EVSId;
8031 if( defined( $self->getEVSId ) ) {
8032 $tmpstr = "<EVSId xsi:type=\"xsd:string\">" . $self->getEVSId . "</EVSId>";
8033 } else {
8034 $tmpstr = "<EVSId xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8035 }
8036 $result .= $tmpstr;
8037  
8038 # NSCNumber;
8039 if( defined( $self->getNSCNumber ) ) {
8040 $tmpstr = "<NSCNumber xsi:type=\"xsd:long\">" . $self->getNSCNumber . "</NSCNumber>";
8041 } else {
8042 $tmpstr = "<NSCNumber xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
8043 }
8044 $result .= $tmpstr;
8045  
8046 # bigid;
8047 if( defined( $self->getBigid ) ) {
8048 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
8049 } else {
8050 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8051 }
8052 $result .= $tmpstr;
8053  
8054 # comment;
8055 if( defined( $self->getComment ) ) {
8056 $tmpstr = "<comment xsi:type=\"xsd:string\">" . $self->getComment . "</comment>";
8057 } else {
8058 $tmpstr = "<comment xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8059 }
8060 $result .= $tmpstr;
8061  
8062 # id;
8063 if( defined( $self->getId ) ) {
8064 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
8065 } else {
8066 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
8067 }
8068 $result .= $tmpstr;
8069  
8070 # isCMAPAgent;
8071 if( defined( $self->getIsCMAPAgent ) ) {
8072 $tmpstr = "<isCMAPAgent xsi:type=\"xsd:boolean\">" . $self->getIsCMAPAgent . "</isCMAPAgent>";
8073 } else {
8074 $tmpstr = "<isCMAPAgent xsi:type=\"xsd:boolean\" xsi:nil=\"true\" />";
8075 }
8076 $result .= $tmpstr;
8077  
8078 # name;
8079 if( defined( $self->getName ) ) {
8080 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
8081 } else {
8082 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8083 }
8084 $result .= $tmpstr;
8085  
8086 # source;
8087 if( defined( $self->getSource ) ) {
8088 $tmpstr = "<source xsi:type=\"xsd:string\">" . $self->getSource . "</source>";
8089 } else {
8090 $tmpstr = "<source xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8091 }
8092 $result .= $tmpstr;
8093  
8094 ## end attribute to XML ##
8095
8096 ## begin association to XML ##
8097 ## end association to XML ##
8098
8099 # add trailing close tags
8100 $result .= "</multiRef>";
8101
8102 return ($result, $current_id, %worklist);
8103 }
8104
8105 # parse a given webservice response xml, construct a list of Agent objects
8106 # param: xml doc
8107 # returns: list of Agent objects
8108 sub fromWebserviceXML {
8109 my $self = shift;
8110 my $parser = new XML::DOM::Parser;
8111 my $docnode = $parser->parse(shift);
8112 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
8113
8114 return $self->fromWSXMLListNode($root);
8115 }
8116
8117 # parse a given xml node, construct a list of Agent objects
8118 # param: xml node
8119 # returns: a list of Agent objects
8120 sub fromWSXMLListNode {
8121 my $self = shift;
8122 my $listNode = shift;
8123 my @obj_list = ();
8124
8125 # get all children for this node
8126 for my $childrenNode ($listNode->getChildNodes) {
8127 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
8128 my $newobj = $self->fromWSXMLNode($childrenNode);
8129 push @obj_list, $newobj;
8130 }
8131 }
8132
8133 return @obj_list;
8134 }
8135
8136 # parse a given xml node, construct one Agent object
8137 # param: xml node
8138 # returns: one Agent object
8139 sub fromWSXMLNode {
8140 my $AgentNode = $_[1];
8141
8142 ## begin ELEMENT_NODE children ##
8143 my $EVSId;
8144 my $NSCNumber;
8145 my $bigid;
8146 my $comment;
8147 my $id;
8148 my $isCMAPAgent;
8149 my $name;
8150 my $source;
8151 ## end ELEMENT_NODE children ##
8152
8153 # get all children for this node
8154 for my $childrenNode ($AgentNode->getChildNodes) {
8155 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
8156 if( ! defined($childrenNode->getFirstChild) ){ next; };
8157 my $textNode = $childrenNode->getFirstChild;
8158 ## begin iterate ELEMENT_NODE ##
8159 if (0) {
8160 # do nothing, just a place holder for "if" component
8161 }
8162 elsif ($childrenNode->getNodeName eq "EVSId") {
8163 $EVSId=$textNode->getNodeValue;
8164 }
8165 elsif ($childrenNode->getNodeName eq "NSCNumber") {
8166 $NSCNumber=$textNode->getNodeValue;
8167 }
8168 elsif ($childrenNode->getNodeName eq "bigid") {
8169 $bigid=$textNode->getNodeValue;
8170 }
8171 elsif ($childrenNode->getNodeName eq "comment") {
8172 $comment=$textNode->getNodeValue;
8173 }
8174 elsif ($childrenNode->getNodeName eq "id") {
8175 $id=$textNode->getNodeValue;
8176 }
8177 elsif ($childrenNode->getNodeName eq "isCMAPAgent") {
8178 $isCMAPAgent=$textNode->getNodeValue;
8179 }
8180 elsif ($childrenNode->getNodeName eq "name") {
8181 $name=$textNode->getNodeValue;
8182 }
8183 elsif ($childrenNode->getNodeName eq "source") {
8184 $source=$textNode->getNodeValue;
8185 }
8186 ## end iterate ELEMENT_NODE ##
8187 }
8188 }
8189 my $newobj = new CaCORE::CaBIO::Agent;
8190 ## begin set attr ##
8191 $newobj->setEVSId($EVSId);
8192 $newobj->setNSCNumber($NSCNumber);
8193 $newobj->setBigid($bigid);
8194 $newobj->setComment($comment);
8195 $newobj->setId($id);
8196 $newobj->setIsCMAPAgent($isCMAPAgent);
8197 $newobj->setName($name);
8198 $newobj->setSource($source);
8199 ## end set attr ##
8200
8201 return $newobj;
8202 }
8203
8204 ## begin getters and setters ##
8205
8206 sub getEVSId {
8207 my $self = shift;
8208 return $self->{EVSId};
8209 }
8210  
8211 sub setEVSId {
8212 my $self = shift;
8213 $self->{EVSId} = shift;
8214 }
8215  
8216 sub getNSCNumber {
8217 my $self = shift;
8218 return $self->{NSCNumber};
8219 }
8220  
8221 sub setNSCNumber {
8222 my $self = shift;
8223 $self->{NSCNumber} = shift;
8224 }
8225  
8226 sub getBigid {
8227 my $self = shift;
8228 return $self->{bigid};
8229 }
8230  
8231 sub setBigid {
8232 my $self = shift;
8233 $self->{bigid} = shift;
8234 }
8235  
8236 sub getComment {
8237 my $self = shift;
8238 return $self->{comment};
8239 }
8240  
8241 sub setComment {
8242 my $self = shift;
8243 $self->{comment} = shift;
8244 }
8245  
8246 sub getId {
8247 my $self = shift;
8248 return $self->{id};
8249 }
8250  
8251 sub setId {
8252 my $self = shift;
8253 $self->{id} = shift;
8254 }
8255  
8256 sub getIsCMAPAgent {
8257 my $self = shift;
8258 return $self->{isCMAPAgent};
8259 }
8260  
8261 sub setIsCMAPAgent {
8262 my $self = shift;
8263 $self->{isCMAPAgent} = shift;
8264 }
8265  
8266 sub getName {
8267 my $self = shift;
8268 return $self->{name};
8269 }
8270  
8271 sub setName {
8272 my $self = shift;
8273 $self->{name} = shift;
8274 }
8275  
8276 sub getSource {
8277 my $self = shift;
8278 return $self->{source};
8279 }
8280  
8281 sub setSource {
8282 my $self = shift;
8283 $self->{source} = shift;
8284 }
8285  
8286 ## end getters and setters ##
8287
8288 ## begin bean association methods ##
8289
8290 sub getClinicalTrialProtocolCollection {
8291 my $self = shift;
8292 my $appSvc = CaCORE::ApplicationService->instance();
8293 my @results = $appSvc->queryObject("CaCORE::CaBIO::ClinicalTrialProtocol", $self);
8294 return @results;
8295 }
8296  
8297 sub getTargetCollection {
8298 my $self = shift;
8299 my $appSvc = CaCORE::ApplicationService->instance();
8300 my @results = $appSvc->queryObject("CaCORE::CaBIO::Target", $self);
8301 return @results;
8302 }
8303  
8304 ## end bean association methods ##
8305
8306 1;
8307 #end
8308 # ------------------------------------------------------------------------------------------
8309 package CaCORE::CaBIO::ClinicalTrialProtocol;
8310
8311 use 5.005;
8312 #use strict;
8313 use warnings;
8314
8315 require Exporter;
8316
8317 use XML::DOM;
8318
8319 ## begin import objects ##
8320 use CaCORE::ApplicationService;
8321 ## end import objects ##
8322
8323
8324 @ISA = qw(CaCORE::DomainObjectI);
8325
8326 our %EXPORT_TAGS = ( 'all' => [ qw(
8327
8328 ) ] );
8329
8330 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
8331
8332 our @EXPORT = qw(
8333 );
8334
8335 # create an instance of the ClinicalTrialProtocol object
8336 # returns: a ClinicalTrialProtocol object
8337 sub new {
8338 my $class = shift;
8339 my $self = {};
8340 bless($self, $class);
8341 #print "new ClinicalTrialProtocol\n";
8342 return $self;
8343 }
8344
8345 # Construct the specific section of the WSDL request corresponding
8346 # to this ClinicalTrialProtocol intance
8347 # returns: XML in string format
8348 sub toWebserviceXML {
8349 my $self = shift;
8350 my $result = shift;
8351 my $assigned_id = shift;
8352 my $current_id = shift;
8353 my $l = shift;
8354 my %worklist = %$l;
8355
8356 # prefix portion of the xml
8357 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":ClinicalTrialProtocol\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
8358 my $tmpstr = "";
8359 $current_id ++;
8360
8361 ## begin attribute to XML ##
8362 # NIHAdminCode;
8363 if( defined( $self->getNIHAdminCode ) ) {
8364 $tmpstr = "<NIHAdminCode xsi:type=\"xsd:string\">" . $self->getNIHAdminCode . "</NIHAdminCode>";
8365 } else {
8366 $tmpstr = "<NIHAdminCode xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8367 }
8368 $result .= $tmpstr;
8369  
8370 # PDQIdentifier;
8371 if( defined( $self->getPDQIdentifier ) ) {
8372 $tmpstr = "<PDQIdentifier xsi:type=\"xsd:string\">" . $self->getPDQIdentifier . "</PDQIdentifier>";
8373 } else {
8374 $tmpstr = "<PDQIdentifier xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8375 }
8376 $result .= $tmpstr;
8377  
8378 # PIName;
8379 if( defined( $self->getPIName ) ) {
8380 $tmpstr = "<PIName xsi:type=\"xsd:string\">" . $self->getPIName . "</PIName>";
8381 } else {
8382 $tmpstr = "<PIName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8383 }
8384 $result .= $tmpstr;
8385  
8386 # bigid;
8387 if( defined( $self->getBigid ) ) {
8388 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
8389 } else {
8390 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8391 }
8392 $result .= $tmpstr;
8393  
8394 # currentStatus;
8395 if( defined( $self->getCurrentStatus ) ) {
8396 $tmpstr = "<currentStatus xsi:type=\"xsd:string\">" . $self->getCurrentStatus . "</currentStatus>";
8397 } else {
8398 $tmpstr = "<currentStatus xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8399 }
8400 $result .= $tmpstr;
8401  
8402 # currentStatusDate;
8403 if( defined( $self->getCurrentStatusDate ) ) {
8404 $tmpstr = "<currentStatusDate xsi:type=\"xsd:dateTime\">" . $self->getCurrentStatusDate . "</currentStatusDate>";
8405 } else {
8406 $tmpstr = "<currentStatusDate xsi:type=\"xsd:dateTime\" xsi:nil=\"true\" />";
8407 }
8408 $result .= $tmpstr;
8409  
8410 # documentNumber;
8411 if( defined( $self->getDocumentNumber ) ) {
8412 $tmpstr = "<documentNumber xsi:type=\"xsd:string\">" . $self->getDocumentNumber . "</documentNumber>";
8413 } else {
8414 $tmpstr = "<documentNumber xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8415 }
8416 $result .= $tmpstr;
8417  
8418 # id;
8419 if( defined( $self->getId ) ) {
8420 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
8421 } else {
8422 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
8423 }
8424 $result .= $tmpstr;
8425  
8426 # leadOrganizationId;
8427 if( defined( $self->getLeadOrganizationId ) ) {
8428 $tmpstr = "<leadOrganizationId xsi:type=\"xsd:string\">" . $self->getLeadOrganizationId . "</leadOrganizationId>";
8429 } else {
8430 $tmpstr = "<leadOrganizationId xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8431 }
8432 $result .= $tmpstr;
8433  
8434 # leadOrganizationName;
8435 if( defined( $self->getLeadOrganizationName ) ) {
8436 $tmpstr = "<leadOrganizationName xsi:type=\"xsd:string\">" . $self->getLeadOrganizationName . "</leadOrganizationName>";
8437 } else {
8438 $tmpstr = "<leadOrganizationName xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8439 }
8440 $result .= $tmpstr;
8441  
8442 # participationType;
8443 if( defined( $self->getParticipationType ) ) {
8444 $tmpstr = "<participationType xsi:type=\"xsd:string\">" . $self->getParticipationType . "</participationType>";
8445 } else {
8446 $tmpstr = "<participationType xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8447 }
8448 $result .= $tmpstr;
8449  
8450 # phase;
8451 if( defined( $self->getPhase ) ) {
8452 $tmpstr = "<phase xsi:type=\"xsd:string\">" . $self->getPhase . "</phase>";
8453 } else {
8454 $tmpstr = "<phase xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8455 }
8456 $result .= $tmpstr;
8457  
8458 # title;
8459 if( defined( $self->getTitle ) ) {
8460 $tmpstr = "<title xsi:type=\"xsd:string\">" . $self->getTitle . "</title>";
8461 } else {
8462 $tmpstr = "<title xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8463 }
8464 $result .= $tmpstr;
8465  
8466 # treatmentFlag;
8467 if( defined( $self->getTreatmentFlag ) ) {
8468 $tmpstr = "<treatmentFlag xsi:type=\"xsd:string\">" . $self->getTreatmentFlag . "</treatmentFlag>";
8469 } else {
8470 $tmpstr = "<treatmentFlag xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8471 }
8472 $result .= $tmpstr;
8473  
8474 ## end attribute to XML ##
8475
8476 ## begin association to XML ##
8477 ## end association to XML ##
8478
8479 # add trailing close tags
8480 $result .= "</multiRef>";
8481
8482 return ($result, $current_id, %worklist);
8483 }
8484
8485 # parse a given webservice response xml, construct a list of ClinicalTrialProtocol objects
8486 # param: xml doc
8487 # returns: list of ClinicalTrialProtocol objects
8488 sub fromWebserviceXML {
8489 my $self = shift;
8490 my $parser = new XML::DOM::Parser;
8491 my $docnode = $parser->parse(shift);
8492 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
8493
8494 return $self->fromWSXMLListNode($root);
8495 }
8496
8497 # parse a given xml node, construct a list of ClinicalTrialProtocol objects
8498 # param: xml node
8499 # returns: a list of ClinicalTrialProtocol objects
8500 sub fromWSXMLListNode {
8501 my $self = shift;
8502 my $listNode = shift;
8503 my @obj_list = ();
8504
8505 # get all children for this node
8506 for my $childrenNode ($listNode->getChildNodes) {
8507 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
8508 my $newobj = $self->fromWSXMLNode($childrenNode);
8509 push @obj_list, $newobj;
8510 }
8511 }
8512
8513 return @obj_list;
8514 }
8515
8516 # parse a given xml node, construct one ClinicalTrialProtocol object
8517 # param: xml node
8518 # returns: one ClinicalTrialProtocol object
8519 sub fromWSXMLNode {
8520 my $ClinicalTrialProtocolNode = $_[1];
8521
8522 ## begin ELEMENT_NODE children ##
8523 my $NIHAdminCode;
8524 my $PDQIdentifier;
8525 my $PIName;
8526 my $bigid;
8527 my $currentStatus;
8528 my $currentStatusDate;
8529 my $documentNumber;
8530 my $id;
8531 my $leadOrganizationId;
8532 my $leadOrganizationName;
8533 my $participationType;
8534 my $phase;
8535 my $title;
8536 my $treatmentFlag;
8537 ## end ELEMENT_NODE children ##
8538
8539 # get all children for this node
8540 for my $childrenNode ($ClinicalTrialProtocolNode->getChildNodes) {
8541 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
8542 if( ! defined($childrenNode->getFirstChild) ){ next; };
8543 my $textNode = $childrenNode->getFirstChild;
8544 ## begin iterate ELEMENT_NODE ##
8545 if (0) {
8546 # do nothing, just a place holder for "if" component
8547 }
8548 elsif ($childrenNode->getNodeName eq "NIHAdminCode") {
8549 $NIHAdminCode=$textNode->getNodeValue;
8550 }
8551 elsif ($childrenNode->getNodeName eq "PDQIdentifier") {
8552 $PDQIdentifier=$textNode->getNodeValue;
8553 }
8554 elsif ($childrenNode->getNodeName eq "PIName") {
8555 $PIName=$textNode->getNodeValue;
8556 }
8557 elsif ($childrenNode->getNodeName eq "bigid") {
8558 $bigid=$textNode->getNodeValue;
8559 }
8560 elsif ($childrenNode->getNodeName eq "currentStatus") {
8561 $currentStatus=$textNode->getNodeValue;
8562 }
8563 elsif ($childrenNode->getNodeName eq "currentStatusDate") {
8564 $currentStatusDate=$textNode->getNodeValue;
8565 }
8566 elsif ($childrenNode->getNodeName eq "documentNumber") {
8567 $documentNumber=$textNode->getNodeValue;
8568 }
8569 elsif ($childrenNode->getNodeName eq "id") {
8570 $id=$textNode->getNodeValue;
8571 }
8572 elsif ($childrenNode->getNodeName eq "leadOrganizationId") {
8573 $leadOrganizationId=$textNode->getNodeValue;
8574 }
8575 elsif ($childrenNode->getNodeName eq "leadOrganizationName") {
8576 $leadOrganizationName=$textNode->getNodeValue;
8577 }
8578 elsif ($childrenNode->getNodeName eq "participationType") {
8579 $participationType=$textNode->getNodeValue;
8580 }
8581 elsif ($childrenNode->getNodeName eq "phase") {
8582 $phase=$textNode->getNodeValue;
8583 }
8584 elsif ($childrenNode->getNodeName eq "title") {
8585 $title=$textNode->getNodeValue;
8586 }
8587 elsif ($childrenNode->getNodeName eq "treatmentFlag") {
8588 $treatmentFlag=$textNode->getNodeValue;
8589 }
8590 ## end iterate ELEMENT_NODE ##
8591 }
8592 }
8593 my $newobj = new CaCORE::CaBIO::ClinicalTrialProtocol;
8594 ## begin set attr ##
8595 $newobj->setNIHAdminCode($NIHAdminCode);
8596 $newobj->setPDQIdentifier($PDQIdentifier);
8597 $newobj->setPIName($PIName);
8598 $newobj->setBigid($bigid);
8599 $newobj->setCurrentStatus($currentStatus);
8600 $newobj->setCurrentStatusDate($currentStatusDate);
8601 $newobj->setDocumentNumber($documentNumber);
8602 $newobj->setId($id);
8603 $newobj->setLeadOrganizationId($leadOrganizationId);
8604 $newobj->setLeadOrganizationName($leadOrganizationName);
8605 $newobj->setParticipationType($participationType);
8606 $newobj->setPhase($phase);
8607 $newobj->setTitle($title);
8608 $newobj->setTreatmentFlag($treatmentFlag);
8609 ## end set attr ##
8610
8611 return $newobj;
8612 }
8613
8614 ## begin getters and setters ##
8615
8616 sub getNIHAdminCode {
8617 my $self = shift;
8618 return $self->{NIHAdminCode};
8619 }
8620  
8621 sub setNIHAdminCode {
8622 my $self = shift;
8623 $self->{NIHAdminCode} = shift;
8624 }
8625  
8626 sub getPDQIdentifier {
8627 my $self = shift;
8628 return $self->{PDQIdentifier};
8629 }
8630  
8631 sub setPDQIdentifier {
8632 my $self = shift;
8633 $self->{PDQIdentifier} = shift;
8634 }
8635  
8636 sub getPIName {
8637 my $self = shift;
8638 return $self->{PIName};
8639 }
8640  
8641 sub setPIName {
8642 my $self = shift;
8643 $self->{PIName} = shift;
8644 }
8645  
8646 sub getBigid {
8647 my $self = shift;
8648 return $self->{bigid};
8649 }
8650  
8651 sub setBigid {
8652 my $self = shift;
8653 $self->{bigid} = shift;
8654 }
8655  
8656 sub getCurrentStatus {
8657 my $self = shift;
8658 return $self->{currentStatus};
8659 }
8660  
8661 sub setCurrentStatus {
8662 my $self = shift;
8663 $self->{currentStatus} = shift;
8664 }
8665  
8666 sub getCurrentStatusDate {
8667 my $self = shift;
8668 return $self->{currentStatusDate};
8669 }
8670  
8671 sub setCurrentStatusDate {
8672 my $self = shift;
8673 $self->{currentStatusDate} = shift;
8674 }
8675  
8676 sub getDocumentNumber {
8677 my $self = shift;
8678 return $self->{documentNumber};
8679 }
8680  
8681 sub setDocumentNumber {
8682 my $self = shift;
8683 $self->{documentNumber} = shift;
8684 }
8685  
8686 sub getId {
8687 my $self = shift;
8688 return $self->{id};
8689 }
8690  
8691 sub setId {
8692 my $self = shift;
8693 $self->{id} = shift;
8694 }
8695  
8696 sub getLeadOrganizationId {
8697 my $self = shift;
8698 return $self->{leadOrganizationId};
8699 }
8700  
8701 sub setLeadOrganizationId {
8702 my $self = shift;
8703 $self->{leadOrganizationId} = shift;
8704 }
8705  
8706 sub getLeadOrganizationName {
8707 my $self = shift;
8708 return $self->{leadOrganizationName};
8709 }
8710  
8711 sub setLeadOrganizationName {
8712 my $self = shift;
8713 $self->{leadOrganizationName} = shift;
8714 }
8715  
8716 sub getParticipationType {
8717 my $self = shift;
8718 return $self->{participationType};
8719 }
8720  
8721 sub setParticipationType {
8722 my $self = shift;
8723 $self->{participationType} = shift;
8724 }
8725  
8726 sub getPhase {
8727 my $self = shift;
8728 return $self->{phase};
8729 }
8730  
8731 sub setPhase {
8732 my $self = shift;
8733 $self->{phase} = shift;
8734 }
8735  
8736 sub getTitle {
8737 my $self = shift;
8738 return $self->{title};
8739 }
8740  
8741 sub setTitle {
8742 my $self = shift;
8743 $self->{title} = shift;
8744 }
8745  
8746 sub getTreatmentFlag {
8747 my $self = shift;
8748 return $self->{treatmentFlag};
8749 }
8750  
8751 sub setTreatmentFlag {
8752 my $self = shift;
8753 $self->{treatmentFlag} = shift;
8754 }
8755  
8756 ## end getters and setters ##
8757
8758 ## begin bean association methods ##
8759
8760 sub getAgentCollection {
8761 my $self = shift;
8762 my $appSvc = CaCORE::ApplicationService->instance();
8763 my @results = $appSvc->queryObject("CaCORE::CaBIO::Agent", $self);
8764 return @results;
8765 }
8766  
8767 sub getDiseaseOntologyCollection {
8768 my $self = shift;
8769 my $appSvc = CaCORE::ApplicationService->instance();
8770 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntology", $self);
8771 return @results;
8772 }
8773  
8774 sub getHistopathologyCollection {
8775 my $self = shift;
8776 my $appSvc = CaCORE::ApplicationService->instance();
8777 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
8778 return @results;
8779 }
8780  
8781 sub getProtocolAssociationCollection {
8782 my $self = shift;
8783 my $appSvc = CaCORE::ApplicationService->instance();
8784 my @results = $appSvc->queryObject("CaCORE::CaBIO::ProtocolAssociation", $self);
8785 return @results;
8786 }
8787  
8788 ## end bean association methods ##
8789
8790 1;
8791 #end
8792 # ------------------------------------------------------------------------------------------
8793 package CaCORE::CaBIO::ProtocolAssociation;
8794
8795 use 5.005;
8796 #use strict;
8797 use warnings;
8798
8799 require Exporter;
8800
8801 use XML::DOM;
8802
8803 ## begin import objects ##
8804 use CaCORE::ApplicationService;
8805 ## end import objects ##
8806
8807
8808 @ISA = qw(CaCORE::DomainObjectI);
8809
8810 our %EXPORT_TAGS = ( 'all' => [ qw(
8811
8812 ) ] );
8813
8814 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
8815
8816 our @EXPORT = qw(
8817 );
8818
8819 # create an instance of the ProtocolAssociation object
8820 # returns: a ProtocolAssociation object
8821 sub new {
8822 my $class = shift;
8823 my $self = {};
8824 bless($self, $class);
8825 #print "new ProtocolAssociation\n";
8826 return $self;
8827 }
8828
8829 # Construct the specific section of the WSDL request corresponding
8830 # to this ProtocolAssociation intance
8831 # returns: XML in string format
8832 sub toWebserviceXML {
8833 my $self = shift;
8834 my $result = shift;
8835 my $assigned_id = shift;
8836 my $current_id = shift;
8837 my $l = shift;
8838 my %worklist = %$l;
8839
8840 # prefix portion of the xml
8841 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":ProtocolAssociation\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
8842 my $tmpstr = "";
8843 $current_id ++;
8844
8845 ## begin attribute to XML ##
8846 # CTEPNAME;
8847 if( defined( $self->getCTEPNAME ) ) {
8848 $tmpstr = "<CTEPNAME xsi:type=\"xsd:string\">" . $self->getCTEPNAME . "</CTEPNAME>";
8849 } else {
8850 $tmpstr = "<CTEPNAME xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8851 }
8852 $result .= $tmpstr;
8853  
8854 # IMTCODE;
8855 if( defined( $self->getIMTCODE ) ) {
8856 $tmpstr = "<IMTCODE xsi:type=\"xsd:long\">" . $self->getIMTCODE . "</IMTCODE>";
8857 } else {
8858 $tmpstr = "<IMTCODE xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
8859 }
8860 $result .= $tmpstr;
8861  
8862 # bigid;
8863 if( defined( $self->getBigid ) ) {
8864 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
8865 } else {
8866 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8867 }
8868 $result .= $tmpstr;
8869  
8870 # diseaseCategory;
8871 if( defined( $self->getDiseaseCategory ) ) {
8872 $tmpstr = "<diseaseCategory xsi:type=\"xsd:string\">" . $self->getDiseaseCategory . "</diseaseCategory>";
8873 } else {
8874 $tmpstr = "<diseaseCategory xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8875 }
8876 $result .= $tmpstr;
8877  
8878 # diseaseSubCategory;
8879 if( defined( $self->getDiseaseSubCategory ) ) {
8880 $tmpstr = "<diseaseSubCategory xsi:type=\"xsd:string\">" . $self->getDiseaseSubCategory . "</diseaseSubCategory>";
8881 } else {
8882 $tmpstr = "<diseaseSubCategory xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
8883 }
8884 $result .= $tmpstr;
8885  
8886 # id;
8887 if( defined( $self->getId ) ) {
8888 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
8889 } else {
8890 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
8891 }
8892 $result .= $tmpstr;
8893  
8894 ## end attribute to XML ##
8895
8896 ## begin association to XML ##
8897 ## end association to XML ##
8898
8899 # add trailing close tags
8900 $result .= "</multiRef>";
8901
8902 return ($result, $current_id, %worklist);
8903 }
8904
8905 # parse a given webservice response xml, construct a list of ProtocolAssociation objects
8906 # param: xml doc
8907 # returns: list of ProtocolAssociation objects
8908 sub fromWebserviceXML {
8909 my $self = shift;
8910 my $parser = new XML::DOM::Parser;
8911 my $docnode = $parser->parse(shift);
8912 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
8913
8914 return $self->fromWSXMLListNode($root);
8915 }
8916
8917 # parse a given xml node, construct a list of ProtocolAssociation objects
8918 # param: xml node
8919 # returns: a list of ProtocolAssociation objects
8920 sub fromWSXMLListNode {
8921 my $self = shift;
8922 my $listNode = shift;
8923 my @obj_list = ();
8924
8925 # get all children for this node
8926 for my $childrenNode ($listNode->getChildNodes) {
8927 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
8928 my $newobj = $self->fromWSXMLNode($childrenNode);
8929 push @obj_list, $newobj;
8930 }
8931 }
8932
8933 return @obj_list;
8934 }
8935
8936 # parse a given xml node, construct one ProtocolAssociation object
8937 # param: xml node
8938 # returns: one ProtocolAssociation object
8939 sub fromWSXMLNode {
8940 my $ProtocolAssociationNode = $_[1];
8941
8942 ## begin ELEMENT_NODE children ##
8943 my $CTEPNAME;
8944 my $IMTCODE;
8945 my $bigid;
8946 my $diseaseCategory;
8947 my $diseaseSubCategory;
8948 my $id;
8949 ## end ELEMENT_NODE children ##
8950
8951 # get all children for this node
8952 for my $childrenNode ($ProtocolAssociationNode->getChildNodes) {
8953 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
8954 if( ! defined($childrenNode->getFirstChild) ){ next; };
8955 my $textNode = $childrenNode->getFirstChild;
8956 ## begin iterate ELEMENT_NODE ##
8957 if (0) {
8958 # do nothing, just a place holder for "if" component
8959 }
8960 elsif ($childrenNode->getNodeName eq "CTEPNAME") {
8961 $CTEPNAME=$textNode->getNodeValue;
8962 }
8963 elsif ($childrenNode->getNodeName eq "IMTCODE") {
8964 $IMTCODE=$textNode->getNodeValue;
8965 }
8966 elsif ($childrenNode->getNodeName eq "bigid") {
8967 $bigid=$textNode->getNodeValue;
8968 }
8969 elsif ($childrenNode->getNodeName eq "diseaseCategory") {
8970 $diseaseCategory=$textNode->getNodeValue;
8971 }
8972 elsif ($childrenNode->getNodeName eq "diseaseSubCategory") {
8973 $diseaseSubCategory=$textNode->getNodeValue;
8974 }
8975 elsif ($childrenNode->getNodeName eq "id") {
8976 $id=$textNode->getNodeValue;
8977 }
8978 ## end iterate ELEMENT_NODE ##
8979 }
8980 }
8981 my $newobj = new CaCORE::CaBIO::ProtocolAssociation;
8982 ## begin set attr ##
8983 $newobj->setCTEPNAME($CTEPNAME);
8984 $newobj->setIMTCODE($IMTCODE);
8985 $newobj->setBigid($bigid);
8986 $newobj->setDiseaseCategory($diseaseCategory);
8987 $newobj->setDiseaseSubCategory($diseaseSubCategory);
8988 $newobj->setId($id);
8989 ## end set attr ##
8990
8991 return $newobj;
8992 }
8993
8994 ## begin getters and setters ##
8995
8996 sub getCTEPNAME {
8997 my $self = shift;
8998 return $self->{CTEPNAME};
8999 }
9000  
9001 sub setCTEPNAME {
9002 my $self = shift;
9003 $self->{CTEPNAME} = shift;
9004 }
9005  
9006 sub getIMTCODE {
9007 my $self = shift;
9008 return $self->{IMTCODE};
9009 }
9010  
9011 sub setIMTCODE {
9012 my $self = shift;
9013 $self->{IMTCODE} = shift;
9014 }
9015  
9016 sub getBigid {
9017 my $self = shift;
9018 return $self->{bigid};
9019 }
9020  
9021 sub setBigid {
9022 my $self = shift;
9023 $self->{bigid} = shift;
9024 }
9025  
9026 sub getDiseaseCategory {
9027 my $self = shift;
9028 return $self->{diseaseCategory};
9029 }
9030  
9031 sub setDiseaseCategory {
9032 my $self = shift;
9033 $self->{diseaseCategory} = shift;
9034 }
9035  
9036 sub getDiseaseSubCategory {
9037 my $self = shift;
9038 return $self->{diseaseSubCategory};
9039 }
9040  
9041 sub setDiseaseSubCategory {
9042 my $self = shift;
9043 $self->{diseaseSubCategory} = shift;
9044 }
9045  
9046 sub getId {
9047 my $self = shift;
9048 return $self->{id};
9049 }
9050  
9051 sub setId {
9052 my $self = shift;
9053 $self->{id} = shift;
9054 }
9055  
9056 ## end getters and setters ##
9057
9058 ## begin bean association methods ##
9059
9060 sub getClinicalTrialProtocol {
9061 my $self = shift;
9062 my $appSvc = CaCORE::ApplicationService->instance();
9063 my @results = $appSvc->queryObject("CaCORE::CaBIO::ClinicalTrialProtocol", $self);
9064 return $results[0];
9065 }
9066  
9067 sub getDiseaseOntology {
9068 my $self = shift;
9069 my $appSvc = CaCORE::ApplicationService->instance();
9070 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntology", $self);
9071 return $results[0];
9072 }
9073  
9074 ## end bean association methods ##
9075
9076 1;
9077 #end
9078 # ------------------------------------------------------------------------------------------
9079 package CaCORE::CaBIO::GeneOntologyRelationship;
9080
9081 use 5.005;
9082 #use strict;
9083 use warnings;
9084
9085 require Exporter;
9086
9087 use XML::DOM;
9088
9089 ## begin import objects ##
9090 use CaCORE::ApplicationService;
9091 ## end import objects ##
9092
9093
9094 @ISA = qw(CaCORE::DomainObjectI);
9095
9096 our %EXPORT_TAGS = ( 'all' => [ qw(
9097
9098 ) ] );
9099
9100 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
9101
9102 our @EXPORT = qw(
9103 );
9104
9105 # create an instance of the GeneOntologyRelationship object
9106 # returns: a GeneOntologyRelationship object
9107 sub new {
9108 my $class = shift;
9109 my $self = {};
9110 bless($self, $class);
9111 #print "new GeneOntologyRelationship\n";
9112 return $self;
9113 }
9114
9115 # Construct the specific section of the WSDL request corresponding
9116 # to this GeneOntologyRelationship intance
9117 # returns: XML in string format
9118 sub toWebserviceXML {
9119 my $self = shift;
9120 my $result = shift;
9121 my $assigned_id = shift;
9122 my $current_id = shift;
9123 my $l = shift;
9124 my %worklist = %$l;
9125
9126 # prefix portion of the xml
9127 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":GeneOntologyRelationship\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
9128 my $tmpstr = "";
9129 $current_id ++;
9130
9131 ## begin attribute to XML ##
9132 # bigid;
9133 if( defined( $self->getBigid ) ) {
9134 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
9135 } else {
9136 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9137 }
9138 $result .= $tmpstr;
9139  
9140 # id;
9141 if( defined( $self->getId ) ) {
9142 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
9143 } else {
9144 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
9145 }
9146 $result .= $tmpstr;
9147  
9148 # relationshipType;
9149 if( defined( $self->getRelationshipType ) ) {
9150 $tmpstr = "<relationshipType xsi:type=\"xsd:string\">" . $self->getRelationshipType . "</relationshipType>";
9151 } else {
9152 $tmpstr = "<relationshipType xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9153 }
9154 $result .= $tmpstr;
9155  
9156 ## end attribute to XML ##
9157
9158 ## begin association to XML ##
9159 ## end association to XML ##
9160
9161 # add trailing close tags
9162 $result .= "</multiRef>";
9163
9164 return ($result, $current_id, %worklist);
9165 }
9166
9167 # parse a given webservice response xml, construct a list of GeneOntologyRelationship objects
9168 # param: xml doc
9169 # returns: list of GeneOntologyRelationship objects
9170 sub fromWebserviceXML {
9171 my $self = shift;
9172 my $parser = new XML::DOM::Parser;
9173 my $docnode = $parser->parse(shift);
9174 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
9175
9176 return $self->fromWSXMLListNode($root);
9177 }
9178
9179 # parse a given xml node, construct a list of GeneOntologyRelationship objects
9180 # param: xml node
9181 # returns: a list of GeneOntologyRelationship objects
9182 sub fromWSXMLListNode {
9183 my $self = shift;
9184 my $listNode = shift;
9185 my @obj_list = ();
9186
9187 # get all children for this node
9188 for my $childrenNode ($listNode->getChildNodes) {
9189 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9190 my $newobj = $self->fromWSXMLNode($childrenNode);
9191 push @obj_list, $newobj;
9192 }
9193 }
9194
9195 return @obj_list;
9196 }
9197
9198 # parse a given xml node, construct one GeneOntologyRelationship object
9199 # param: xml node
9200 # returns: one GeneOntologyRelationship object
9201 sub fromWSXMLNode {
9202 my $GeneOntologyRelationshipNode = $_[1];
9203
9204 ## begin ELEMENT_NODE children ##
9205 my $bigid;
9206 my $id;
9207 my $relationshipType;
9208 ## end ELEMENT_NODE children ##
9209
9210 # get all children for this node
9211 for my $childrenNode ($GeneOntologyRelationshipNode->getChildNodes) {
9212 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9213 if( ! defined($childrenNode->getFirstChild) ){ next; };
9214 my $textNode = $childrenNode->getFirstChild;
9215 ## begin iterate ELEMENT_NODE ##
9216 if (0) {
9217 # do nothing, just a place holder for "if" component
9218 }
9219 elsif ($childrenNode->getNodeName eq "bigid") {
9220 $bigid=$textNode->getNodeValue;
9221 }
9222 elsif ($childrenNode->getNodeName eq "id") {
9223 $id=$textNode->getNodeValue;
9224 }
9225 elsif ($childrenNode->getNodeName eq "relationshipType") {
9226 $relationshipType=$textNode->getNodeValue;
9227 }
9228 ## end iterate ELEMENT_NODE ##
9229 }
9230 }
9231 my $newobj = new CaCORE::CaBIO::GeneOntologyRelationship;
9232 ## begin set attr ##
9233 $newobj->setBigid($bigid);
9234 $newobj->setId($id);
9235 $newobj->setRelationshipType($relationshipType);
9236 ## end set attr ##
9237
9238 return $newobj;
9239 }
9240
9241 ## begin getters and setters ##
9242
9243 sub getBigid {
9244 my $self = shift;
9245 return $self->{bigid};
9246 }
9247  
9248 sub setBigid {
9249 my $self = shift;
9250 $self->{bigid} = shift;
9251 }
9252  
9253 sub getId {
9254 my $self = shift;
9255 return $self->{id};
9256 }
9257  
9258 sub setId {
9259 my $self = shift;
9260 $self->{id} = shift;
9261 }
9262  
9263 sub getRelationshipType {
9264 my $self = shift;
9265 return $self->{relationshipType};
9266 }
9267  
9268 sub setRelationshipType {
9269 my $self = shift;
9270 $self->{relationshipType} = shift;
9271 }
9272  
9273 ## end getters and setters ##
9274
9275 ## begin bean association methods ##
9276
9277 sub getChildGeneOntology {
9278 my $self = shift;
9279 my $appSvc = CaCORE::ApplicationService->instance();
9280 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneOntology", $self);
9281 return $results[0];
9282 }
9283  
9284 sub getParentGeneOntology {
9285 my $self = shift;
9286 my $appSvc = CaCORE::ApplicationService->instance();
9287 my @results = $appSvc->queryObject("CaCORE::CaBIO::GeneOntology", $self);
9288 return $results[0];
9289 }
9290  
9291 ## end bean association methods ##
9292
9293 1;
9294 #end
9295 # ------------------------------------------------------------------------------------------
9296 package CaCORE::CaBIO::GenericReporter;
9297
9298 use 5.005;
9299 #use strict;
9300 use warnings;
9301
9302 require Exporter;
9303
9304 use XML::DOM;
9305
9306 ## begin import objects ##
9307 use CaCORE::ApplicationService;
9308 ## end import objects ##
9309
9310
9311 @ISA = qw(CaCORE::DomainObjectI);
9312
9313 our %EXPORT_TAGS = ( 'all' => [ qw(
9314
9315 ) ] );
9316
9317 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
9318
9319 our @EXPORT = qw(
9320 );
9321
9322 # create an instance of the GenericReporter object
9323 # returns: a GenericReporter object
9324 sub new {
9325 my $class = shift;
9326 my $self = {};
9327 bless($self, $class);
9328 #print "new GenericReporter\n";
9329 return $self;
9330 }
9331
9332 # Construct the specific section of the WSDL request corresponding
9333 # to this GenericReporter intance
9334 # returns: XML in string format
9335 sub toWebserviceXML {
9336 my $self = shift;
9337 my $result = shift;
9338 my $assigned_id = shift;
9339 my $current_id = shift;
9340 my $l = shift;
9341 my %worklist = %$l;
9342
9343 # prefix portion of the xml
9344 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":GenericReporter\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
9345 my $tmpstr = "";
9346 $current_id ++;
9347
9348 ## begin attribute to XML ##
9349 # bigid;
9350 if( defined( $self->getBigid ) ) {
9351 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
9352 } else {
9353 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9354 }
9355 $result .= $tmpstr;
9356  
9357 # id;
9358 if( defined( $self->getId ) ) {
9359 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
9360 } else {
9361 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
9362 }
9363 $result .= $tmpstr;
9364  
9365 # name;
9366 if( defined( $self->getName ) ) {
9367 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
9368 } else {
9369 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9370 }
9371 $result .= $tmpstr;
9372  
9373 # type;
9374 if( defined( $self->getType ) ) {
9375 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
9376 } else {
9377 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9378 }
9379 $result .= $tmpstr;
9380  
9381 ## end attribute to XML ##
9382
9383 ## begin association to XML ##
9384 ## end association to XML ##
9385
9386 # add trailing close tags
9387 $result .= "</multiRef>";
9388
9389 return ($result, $current_id, %worklist);
9390 }
9391
9392 # parse a given webservice response xml, construct a list of GenericReporter objects
9393 # param: xml doc
9394 # returns: list of GenericReporter objects
9395 sub fromWebserviceXML {
9396 my $self = shift;
9397 my $parser = new XML::DOM::Parser;
9398 my $docnode = $parser->parse(shift);
9399 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
9400
9401 return $self->fromWSXMLListNode($root);
9402 }
9403
9404 # parse a given xml node, construct a list of GenericReporter objects
9405 # param: xml node
9406 # returns: a list of GenericReporter objects
9407 sub fromWSXMLListNode {
9408 my $self = shift;
9409 my $listNode = shift;
9410 my @obj_list = ();
9411
9412 # get all children for this node
9413 for my $childrenNode ($listNode->getChildNodes) {
9414 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9415 my $newobj = $self->fromWSXMLNode($childrenNode);
9416 push @obj_list, $newobj;
9417 }
9418 }
9419
9420 return @obj_list;
9421 }
9422
9423 # parse a given xml node, construct one GenericReporter object
9424 # param: xml node
9425 # returns: one GenericReporter object
9426 sub fromWSXMLNode {
9427 my $GenericReporterNode = $_[1];
9428
9429 ## begin ELEMENT_NODE children ##
9430 my $bigid;
9431 my $id;
9432 my $name;
9433 my $type;
9434 ## end ELEMENT_NODE children ##
9435
9436 # get all children for this node
9437 for my $childrenNode ($GenericReporterNode->getChildNodes) {
9438 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9439 if( ! defined($childrenNode->getFirstChild) ){ next; };
9440 my $textNode = $childrenNode->getFirstChild;
9441 ## begin iterate ELEMENT_NODE ##
9442 if (0) {
9443 # do nothing, just a place holder for "if" component
9444 }
9445 elsif ($childrenNode->getNodeName eq "bigid") {
9446 $bigid=$textNode->getNodeValue;
9447 }
9448 elsif ($childrenNode->getNodeName eq "id") {
9449 $id=$textNode->getNodeValue;
9450 }
9451 elsif ($childrenNode->getNodeName eq "name") {
9452 $name=$textNode->getNodeValue;
9453 }
9454 elsif ($childrenNode->getNodeName eq "type") {
9455 $type=$textNode->getNodeValue;
9456 }
9457 ## end iterate ELEMENT_NODE ##
9458 }
9459 }
9460 my $newobj = new CaCORE::CaBIO::GenericReporter;
9461 ## begin set attr ##
9462 $newobj->setBigid($bigid);
9463 $newobj->setId($id);
9464 $newobj->setName($name);
9465 $newobj->setType($type);
9466 ## end set attr ##
9467
9468 return $newobj;
9469 }
9470
9471 ## begin getters and setters ##
9472
9473 sub getBigid {
9474 my $self = shift;
9475 return $self->{bigid};
9476 }
9477  
9478 sub setBigid {
9479 my $self = shift;
9480 $self->{bigid} = shift;
9481 }
9482  
9483 sub getId {
9484 my $self = shift;
9485 return $self->{id};
9486 }
9487  
9488 sub setId {
9489 my $self = shift;
9490 $self->{id} = shift;
9491 }
9492  
9493 sub getName {
9494 my $self = shift;
9495 return $self->{name};
9496 }
9497  
9498 sub setName {
9499 my $self = shift;
9500 $self->{name} = shift;
9501 }
9502  
9503 sub getType {
9504 my $self = shift;
9505 return $self->{type};
9506 }
9507  
9508 sub setType {
9509 my $self = shift;
9510 $self->{type} = shift;
9511 }
9512  
9513 ## end getters and setters ##
9514
9515 ## begin bean association methods ##
9516
9517 sub getGene {
9518 my $self = shift;
9519 my $appSvc = CaCORE::ApplicationService->instance();
9520 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
9521 return $results[0];
9522 }
9523  
9524 sub getGenericArrayCollection {
9525 my $self = shift;
9526 my $appSvc = CaCORE::ApplicationService->instance();
9527 my @results = $appSvc->queryObject("CaCORE::CaBIO::GenericArray", $self);
9528 return @results;
9529 }
9530  
9531 ## end bean association methods ##
9532
9533 1;
9534 #end
9535 # ------------------------------------------------------------------------------------------
9536 package CaCORE::CaBIO::Pathway;
9537
9538 use 5.005;
9539 #use strict;
9540 use warnings;
9541
9542 require Exporter;
9543
9544 use XML::DOM;
9545
9546 ## begin import objects ##
9547 use CaCORE::ApplicationService;
9548 ## end import objects ##
9549
9550
9551 @ISA = qw(CaCORE::DomainObjectI);
9552
9553 our %EXPORT_TAGS = ( 'all' => [ qw(
9554
9555 ) ] );
9556
9557 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
9558
9559 our @EXPORT = qw(
9560 );
9561
9562 # create an instance of the Pathway object
9563 # returns: a Pathway object
9564 sub new {
9565 my $class = shift;
9566 my $self = {};
9567 bless($self, $class);
9568 #print "new Pathway\n";
9569 return $self;
9570 }
9571
9572 # Construct the specific section of the WSDL request corresponding
9573 # to this Pathway intance
9574 # returns: XML in string format
9575 sub toWebserviceXML {
9576 my $self = shift;
9577 my $result = shift;
9578 my $assigned_id = shift;
9579 my $current_id = shift;
9580 my $l = shift;
9581 my %worklist = %$l;
9582
9583 # prefix portion of the xml
9584 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":Pathway\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
9585 my $tmpstr = "";
9586 $current_id ++;
9587
9588 ## begin attribute to XML ##
9589 # bigid;
9590 if( defined( $self->getBigid ) ) {
9591 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
9592 } else {
9593 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9594 }
9595 $result .= $tmpstr;
9596  
9597 # description;
9598 if( defined( $self->getDescription ) ) {
9599 $tmpstr = "<description xsi:type=\"xsd:string\">" . $self->getDescription . "</description>";
9600 } else {
9601 $tmpstr = "<description xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9602 }
9603 $result .= $tmpstr;
9604  
9605 # diagram;
9606 if( defined( $self->getDiagram ) ) {
9607 $tmpstr = "<diagram xsi:type=\"xsd:string\">" . $self->getDiagram . "</diagram>";
9608 } else {
9609 $tmpstr = "<diagram xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9610 }
9611 $result .= $tmpstr;
9612  
9613 # displayValue;
9614 if( defined( $self->getDisplayValue ) ) {
9615 $tmpstr = "<displayValue xsi:type=\"xsd:string\">" . $self->getDisplayValue . "</displayValue>";
9616 } else {
9617 $tmpstr = "<displayValue xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9618 }
9619 $result .= $tmpstr;
9620  
9621 # id;
9622 if( defined( $self->getId ) ) {
9623 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
9624 } else {
9625 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
9626 }
9627 $result .= $tmpstr;
9628  
9629 # name;
9630 if( defined( $self->getName ) ) {
9631 $tmpstr = "<name xsi:type=\"xsd:string\">" . $self->getName . "</name>";
9632 } else {
9633 $tmpstr = "<name xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9634 }
9635 $result .= $tmpstr;
9636  
9637 ## end attribute to XML ##
9638
9639 ## begin association to XML ##
9640 ## end association to XML ##
9641
9642 # add trailing close tags
9643 $result .= "</multiRef>";
9644
9645 return ($result, $current_id, %worklist);
9646 }
9647
9648 # parse a given webservice response xml, construct a list of Pathway objects
9649 # param: xml doc
9650 # returns: list of Pathway objects
9651 sub fromWebserviceXML {
9652 my $self = shift;
9653 my $parser = new XML::DOM::Parser;
9654 my $docnode = $parser->parse(shift);
9655 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
9656
9657 return $self->fromWSXMLListNode($root);
9658 }
9659
9660 # parse a given xml node, construct a list of Pathway objects
9661 # param: xml node
9662 # returns: a list of Pathway objects
9663 sub fromWSXMLListNode {
9664 my $self = shift;
9665 my $listNode = shift;
9666 my @obj_list = ();
9667
9668 # get all children for this node
9669 for my $childrenNode ($listNode->getChildNodes) {
9670 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9671 my $newobj = $self->fromWSXMLNode($childrenNode);
9672 push @obj_list, $newobj;
9673 }
9674 }
9675
9676 return @obj_list;
9677 }
9678
9679 # parse a given xml node, construct one Pathway object
9680 # param: xml node
9681 # returns: one Pathway object
9682 sub fromWSXMLNode {
9683 my $PathwayNode = $_[1];
9684
9685 ## begin ELEMENT_NODE children ##
9686 my $bigid;
9687 my $description;
9688 my $diagram;
9689 my $displayValue;
9690 my $id;
9691 my $name;
9692 ## end ELEMENT_NODE children ##
9693
9694 # get all children for this node
9695 for my $childrenNode ($PathwayNode->getChildNodes) {
9696 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9697 if( ! defined($childrenNode->getFirstChild) ){ next; };
9698 my $textNode = $childrenNode->getFirstChild;
9699 ## begin iterate ELEMENT_NODE ##
9700 if (0) {
9701 # do nothing, just a place holder for "if" component
9702 }
9703 elsif ($childrenNode->getNodeName eq "bigid") {
9704 $bigid=$textNode->getNodeValue;
9705 }
9706 elsif ($childrenNode->getNodeName eq "description") {
9707 $description=$textNode->getNodeValue;
9708 }
9709 elsif ($childrenNode->getNodeName eq "diagram") {
9710 $diagram=$textNode->getNodeValue;
9711 }
9712 elsif ($childrenNode->getNodeName eq "displayValue") {
9713 $displayValue=$textNode->getNodeValue;
9714 }
9715 elsif ($childrenNode->getNodeName eq "id") {
9716 $id=$textNode->getNodeValue;
9717 }
9718 elsif ($childrenNode->getNodeName eq "name") {
9719 $name=$textNode->getNodeValue;
9720 }
9721 ## end iterate ELEMENT_NODE ##
9722 }
9723 }
9724 my $newobj = new CaCORE::CaBIO::Pathway;
9725 ## begin set attr ##
9726 $newobj->setBigid($bigid);
9727 $newobj->setDescription($description);
9728 $newobj->setDiagram($diagram);
9729 $newobj->setDisplayValue($displayValue);
9730 $newobj->setId($id);
9731 $newobj->setName($name);
9732 ## end set attr ##
9733
9734 return $newobj;
9735 }
9736
9737 ## begin getters and setters ##
9738
9739 sub getBigid {
9740 my $self = shift;
9741 return $self->{bigid};
9742 }
9743  
9744 sub setBigid {
9745 my $self = shift;
9746 $self->{bigid} = shift;
9747 }
9748  
9749 sub getDescription {
9750 my $self = shift;
9751 return $self->{description};
9752 }
9753  
9754 sub setDescription {
9755 my $self = shift;
9756 $self->{description} = shift;
9757 }
9758  
9759 sub getDiagram {
9760 my $self = shift;
9761 return $self->{diagram};
9762 }
9763  
9764 sub setDiagram {
9765 my $self = shift;
9766 $self->{diagram} = shift;
9767 }
9768  
9769 sub getDisplayValue {
9770 my $self = shift;
9771 return $self->{displayValue};
9772 }
9773  
9774 sub setDisplayValue {
9775 my $self = shift;
9776 $self->{displayValue} = shift;
9777 }
9778  
9779 sub getId {
9780 my $self = shift;
9781 return $self->{id};
9782 }
9783  
9784 sub setId {
9785 my $self = shift;
9786 $self->{id} = shift;
9787 }
9788  
9789 sub getName {
9790 my $self = shift;
9791 return $self->{name};
9792 }
9793  
9794 sub setName {
9795 my $self = shift;
9796 $self->{name} = shift;
9797 }
9798  
9799 ## end getters and setters ##
9800
9801 ## begin bean association methods ##
9802
9803 sub getGeneCollection {
9804 my $self = shift;
9805 my $appSvc = CaCORE::ApplicationService->instance();
9806 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
9807 return @results;
9808 }
9809  
9810 sub getHistopathologyCollection {
9811 my $self = shift;
9812 my $appSvc = CaCORE::ApplicationService->instance();
9813 my @results = $appSvc->queryObject("CaCORE::CaBIO::Histopathology", $self);
9814 return @results;
9815 }
9816  
9817 sub getTaxon {
9818 my $self = shift;
9819 my $appSvc = CaCORE::ApplicationService->instance();
9820 my @results = $appSvc->queryObject("CaCORE::CaBIO::Taxon", $self);
9821 return $results[0];
9822 }
9823  
9824 ## end bean association methods ##
9825
9826 1;
9827 #end
9828 # ------------------------------------------------------------------------------------------
9829 package CaCORE::CaBIO::DiseaseOntologyRelationship;
9830
9831 use 5.005;
9832 #use strict;
9833 use warnings;
9834
9835 require Exporter;
9836
9837 use XML::DOM;
9838
9839 ## begin import objects ##
9840 use CaCORE::ApplicationService;
9841 ## end import objects ##
9842
9843
9844 @ISA = qw(CaCORE::DomainObjectI);
9845
9846 our %EXPORT_TAGS = ( 'all' => [ qw(
9847
9848 ) ] );
9849
9850 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
9851
9852 our @EXPORT = qw(
9853 );
9854
9855 # create an instance of the DiseaseOntologyRelationship object
9856 # returns: a DiseaseOntologyRelationship object
9857 sub new {
9858 my $class = shift;
9859 my $self = {};
9860 bless($self, $class);
9861 #print "new DiseaseOntologyRelationship\n";
9862 return $self;
9863 }
9864
9865 # Construct the specific section of the WSDL request corresponding
9866 # to this DiseaseOntologyRelationship intance
9867 # returns: XML in string format
9868 sub toWebserviceXML {
9869 my $self = shift;
9870 my $result = shift;
9871 my $assigned_id = shift;
9872 my $current_id = shift;
9873 my $l = shift;
9874 my %worklist = %$l;
9875
9876 # prefix portion of the xml
9877 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":DiseaseOntologyRelationship\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
9878 my $tmpstr = "";
9879 $current_id ++;
9880
9881 ## begin attribute to XML ##
9882 # bigid;
9883 if( defined( $self->getBigid ) ) {
9884 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
9885 } else {
9886 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9887 }
9888 $result .= $tmpstr;
9889  
9890 # id;
9891 if( defined( $self->getId ) ) {
9892 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
9893 } else {
9894 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
9895 }
9896 $result .= $tmpstr;
9897  
9898 # type;
9899 if( defined( $self->getType ) ) {
9900 $tmpstr = "<type xsi:type=\"xsd:string\">" . $self->getType . "</type>";
9901 } else {
9902 $tmpstr = "<type xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
9903 }
9904 $result .= $tmpstr;
9905  
9906 ## end attribute to XML ##
9907
9908 ## begin association to XML ##
9909 ## end association to XML ##
9910
9911 # add trailing close tags
9912 $result .= "</multiRef>";
9913
9914 return ($result, $current_id, %worklist);
9915 }
9916
9917 # parse a given webservice response xml, construct a list of DiseaseOntologyRelationship objects
9918 # param: xml doc
9919 # returns: list of DiseaseOntologyRelationship objects
9920 sub fromWebserviceXML {
9921 my $self = shift;
9922 my $parser = new XML::DOM::Parser;
9923 my $docnode = $parser->parse(shift);
9924 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
9925
9926 return $self->fromWSXMLListNode($root);
9927 }
9928
9929 # parse a given xml node, construct a list of DiseaseOntologyRelationship objects
9930 # param: xml node
9931 # returns: a list of DiseaseOntologyRelationship objects
9932 sub fromWSXMLListNode {
9933 my $self = shift;
9934 my $listNode = shift;
9935 my @obj_list = ();
9936
9937 # get all children for this node
9938 for my $childrenNode ($listNode->getChildNodes) {
9939 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9940 my $newobj = $self->fromWSXMLNode($childrenNode);
9941 push @obj_list, $newobj;
9942 }
9943 }
9944
9945 return @obj_list;
9946 }
9947
9948 # parse a given xml node, construct one DiseaseOntologyRelationship object
9949 # param: xml node
9950 # returns: one DiseaseOntologyRelationship object
9951 sub fromWSXMLNode {
9952 my $DiseaseOntologyRelationshipNode = $_[1];
9953
9954 ## begin ELEMENT_NODE children ##
9955 my $bigid;
9956 my $id;
9957 my $type;
9958 ## end ELEMENT_NODE children ##
9959
9960 # get all children for this node
9961 for my $childrenNode ($DiseaseOntologyRelationshipNode->getChildNodes) {
9962 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
9963 if( ! defined($childrenNode->getFirstChild) ){ next; };
9964 my $textNode = $childrenNode->getFirstChild;
9965 ## begin iterate ELEMENT_NODE ##
9966 if (0) {
9967 # do nothing, just a place holder for "if" component
9968 }
9969 elsif ($childrenNode->getNodeName eq "bigid") {
9970 $bigid=$textNode->getNodeValue;
9971 }
9972 elsif ($childrenNode->getNodeName eq "id") {
9973 $id=$textNode->getNodeValue;
9974 }
9975 elsif ($childrenNode->getNodeName eq "type") {
9976 $type=$textNode->getNodeValue;
9977 }
9978 ## end iterate ELEMENT_NODE ##
9979 }
9980 }
9981 my $newobj = new CaCORE::CaBIO::DiseaseOntologyRelationship;
9982 ## begin set attr ##
9983 $newobj->setBigid($bigid);
9984 $newobj->setId($id);
9985 $newobj->setType($type);
9986 ## end set attr ##
9987
9988 return $newobj;
9989 }
9990
9991 ## begin getters and setters ##
9992
9993 sub getBigid {
9994 my $self = shift;
9995 return $self->{bigid};
9996 }
9997  
9998 sub setBigid {
9999 my $self = shift;
10000 $self->{bigid} = shift;
10001 }
10002  
10003 sub getId {
10004 my $self = shift;
10005 return $self->{id};
10006 }
10007  
10008 sub setId {
10009 my $self = shift;
10010 $self->{id} = shift;
10011 }
10012  
10013 sub getType {
10014 my $self = shift;
10015 return $self->{type};
10016 }
10017  
10018 sub setType {
10019 my $self = shift;
10020 $self->{type} = shift;
10021 }
10022  
10023 ## end getters and setters ##
10024
10025 ## begin bean association methods ##
10026
10027 sub getChildDiseaseOntology {
10028 my $self = shift;
10029 my $appSvc = CaCORE::ApplicationService->instance();
10030 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntology", $self);
10031 return $results[0];
10032 }
10033  
10034 sub getParentDiseaseOntology {
10035 my $self = shift;
10036 my $appSvc = CaCORE::ApplicationService->instance();
10037 my @results = $appSvc->queryObject("CaCORE::CaBIO::DiseaseOntology", $self);
10038 return $results[0];
10039 }
10040  
10041 ## end bean association methods ##
10042
10043 1;
10044 #end
10045 # ------------------------------------------------------------------------------------------
10046 package CaCORE::CaBIO::CytogeneticLocation;
10047
10048 use 5.005;
10049 #use strict;
10050 use warnings;
10051
10052 require Exporter;
10053
10054 use XML::DOM;
10055
10056 ## begin import objects ##
10057 use CaCORE::ApplicationService;
10058 ## end import objects ##
10059
10060
10061 @ISA = qw(CaCORE::CaBIO::Location);
10062 our %EXPORT_TAGS = ( 'all' => [ qw(
10063
10064 ) ] );
10065
10066 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
10067
10068 our @EXPORT = qw(
10069 );
10070
10071 # create an instance of the CytogeneticLocation object
10072 # returns: a CytogeneticLocation object
10073 sub new {
10074 my $class = shift;
10075 my $self = {};
10076 bless($self, $class);
10077 #print "new CytogeneticLocation\n";
10078 return $self;
10079 }
10080
10081 # Construct the specific section of the WSDL request corresponding
10082 # to this CytogeneticLocation intance
10083 # returns: XML in string format
10084 sub toWebserviceXML {
10085 my $self = shift;
10086 my $result = shift;
10087 my $assigned_id = shift;
10088 my $current_id = shift;
10089 my $l = shift;
10090 my %worklist = %$l;
10091
10092 # prefix portion of the xml
10093 $result .= "<multiRef id=\"id" . $assigned_id ."\" soapenc:root=\"0\" soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns" . $current_id . ":CytogeneticLocation\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns" . $current_id . "=\"urn:ws.domain.cabio.nci.nih.gov\">";
10094 my $tmpstr = "";
10095 $current_id ++;
10096
10097 ## begin attribute to XML ##
10098 # bigid;
10099 if( defined( $self->getBigid ) ) {
10100 $tmpstr = "<bigid xsi:type=\"xsd:string\">" . $self->getBigid . "</bigid>";
10101 } else {
10102 $tmpstr = "<bigid xsi:type=\"xsd:string\" xsi:nil=\"true\" />";
10103 }
10104 $result .= $tmpstr;
10105  
10106 # endCytobandLocId;
10107 if( defined( $self->getEndCytobandLocId ) ) {
10108 $tmpstr = "<endCytobandLocId xsi:type=\"xsd:long\">" . $self->getEndCytobandLocId . "</endCytobandLocId>";
10109 } else {
10110 $tmpstr = "<endCytobandLocId xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
10111 }
10112 $result .= $tmpstr;
10113  
10114 # startCytobandLocId;
10115 if( defined( $self->getStartCytobandLocId ) ) {
10116 $tmpstr = "<startCytobandLocId xsi:type=\"xsd:long\">" . $self->getStartCytobandLocId . "</startCytobandLocId>";
10117 } else {
10118 $tmpstr = "<startCytobandLocId xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
10119 }
10120 $result .= $tmpstr;
10121  
10122 # id;
10123 if( defined( $self->getId ) ) {
10124 $tmpstr = "<id xsi:type=\"xsd:long\">" . $self->getId . "</id>";
10125 } else {
10126 $tmpstr = "<id xsi:type=\"xsd:long\" xsi:nil=\"true\" />";
10127 }
10128 $result .= $tmpstr;
10129  
10130 ## end attribute to XML ##
10131
10132 ## begin association to XML ##
10133 ## end association to XML ##
10134
10135 # add trailing close tags
10136 $result .= "</multiRef>";
10137
10138 return ($result, $current_id, %worklist);
10139 }
10140
10141 # parse a given webservice response xml, construct a list of CytogeneticLocation objects
10142 # param: xml doc
10143 # returns: list of CytogeneticLocation objects
10144 sub fromWebserviceXML {
10145 my $self = shift;
10146 my $parser = new XML::DOM::Parser;
10147 my $docnode = $parser->parse(shift);
10148 my $root = $docnode->getFirstChild->getFirstChild->getFirstChild->getFirstChild;
10149
10150 return $self->fromWSXMLListNode($root);
10151 }
10152
10153 # parse a given xml node, construct a list of CytogeneticLocation objects
10154 # param: xml node
10155 # returns: a list of CytogeneticLocation objects
10156 sub fromWSXMLListNode {
10157 my $self = shift;
10158 my $listNode = shift;
10159 my @obj_list = ();
10160
10161 # get all children for this node
10162 for my $childrenNode ($listNode->getChildNodes) {
10163 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
10164 my $newobj = $self->fromWSXMLNode($childrenNode);
10165 push @obj_list, $newobj;
10166 }
10167 }
10168
10169 return @obj_list;
10170 }
10171
10172 # parse a given xml node, construct one CytogeneticLocation object
10173 # param: xml node
10174 # returns: one CytogeneticLocation object
10175 sub fromWSXMLNode {
10176 my $CytogeneticLocationNode = $_[1];
10177
10178 ## begin ELEMENT_NODE children ##
10179 my $bigid;
10180 my $endCytobandLocId;
10181 my $startCytobandLocId;
10182 my $id;
10183 ## end ELEMENT_NODE children ##
10184
10185 # get all children for this node
10186 for my $childrenNode ($CytogeneticLocationNode->getChildNodes) {
10187 if ($childrenNode->getNodeType == XML::DOM::ELEMENT_NODE()) {
10188 if( ! defined($childrenNode->getFirstChild) ){ next; };
10189 my $textNode = $childrenNode->getFirstChild;
10190 ## begin iterate ELEMENT_NODE ##
10191 if (0) {
10192 # do nothing, just a place holder for "if" component
10193 }
10194 elsif ($childrenNode->getNodeName eq "bigid") {
10195 $bigid=$textNode->getNodeValue;
10196 }
10197 elsif ($childrenNode->getNodeName eq "endCytobandLocId") {
10198 $endCytobandLocId=$textNode->getNodeValue;
10199 }
10200 elsif ($childrenNode->getNodeName eq "startCytobandLocId") {
10201 $startCytobandLocId=$textNode->getNodeValue;
10202 }
10203 elsif ($childrenNode->getNodeName eq "id") {
10204 $id=$textNode->getNodeValue;
10205 }
10206 ## end iterate ELEMENT_NODE ##
10207 }
10208 }
10209 my $newobj = new CaCORE::CaBIO::CytogeneticLocation;
10210 ## begin set attr ##
10211 $newobj->setBigid($bigid);
10212 $newobj->setEndCytobandLocId($endCytobandLocId);
10213 $newobj->setStartCytobandLocId($startCytobandLocId);
10214 $newobj->setId($id);
10215 ## end set attr ##
10216
10217 return $newobj;
10218 }
10219
10220 ## begin getters and setters ##
10221
10222 sub getBigid {
10223 my $self = shift;
10224 return $self->{bigid};
10225 }
10226  
10227 sub setBigid {
10228 my $self = shift;
10229 $self->{bigid} = shift;
10230 }
10231  
10232 sub getEndCytobandLocId {
10233 my $self = shift;
10234 return $self->{endCytobandLocId};
10235 }
10236  
10237 sub setEndCytobandLocId {
10238 my $self = shift;
10239 $self->{endCytobandLocId} = shift;
10240 }
10241  
10242 sub getStartCytobandLocId {
10243 my $self = shift;
10244 return $self->{startCytobandLocId};
10245 }
10246  
10247 sub setStartCytobandLocId {
10248 my $self = shift;
10249 $self->{startCytobandLocId} = shift;
10250 }
10251  
10252 sub getId {
10253 my $self = shift;
10254 return $self->{id};
10255 }
10256  
10257 sub setId {
10258 my $self = shift;
10259 $self->{id} = shift;
10260 }
10261  
10262 ## end getters and setters ##
10263
10264 ## begin bean association methods ##
10265
10266 sub getEndCytoband {
10267 my $self = shift;
10268 my $appSvc = CaCORE::ApplicationService->instance();
10269 my @results = $appSvc->queryObject("CaCORE::CaBIO::Cytoband", $self);
10270 return $results[0];
10271 }
10272  
10273 sub getStartCytoband {
10274 my $self = shift;
10275 my $appSvc = CaCORE::ApplicationService->instance();
10276 my @results = $appSvc->queryObject("CaCORE::CaBIO::Cytoband", $self);
10277 return $results[0];
10278 }
10279  
10280 sub getSNP {
10281 my $self = shift;
10282 my $appSvc = CaCORE::ApplicationService->instance();
10283 my @results = $appSvc->queryObject("CaCORE::CaBIO::SNP", $self);
10284 return $results[0];
10285 }
10286  
10287 sub getChromosome {
10288 my $self = shift;
10289 my $appSvc = CaCORE::ApplicationService->instance();
10290 my @results = $appSvc->queryObject("CaCORE::CaBIO::Chromosome", $self);
10291 return $results[0];
10292 }
10293  
10294 sub getGene {
10295 my $self = shift;
10296 my $appSvc = CaCORE::ApplicationService->instance();
10297 my @results = $appSvc->queryObject("CaCORE::CaBIO::Gene", $self);
10298 return $results[0];
10299 }
10300  
10301 sub getNucleicAcidSequence {
10302 my $self = shift;
10303 my $appSvc = CaCORE::ApplicationService->instance();
10304 my @results = $appSvc->queryObject("CaCORE::CaBIO::NucleicAcidSequence", $self);
10305 return $results[0];
10306 }
10307  
10308 ## end bean association methods ##
10309
10310 1;
10311 #end
10312 # Below is module documentation for Agent
10313
10314 =pod
10315
10316 =head1 Agent
10317
10318 CaCORE::CaBIO::Agent - Perl extension for Agent.
10319
10320 =head2 ABSTRACT
10321
10322 The CaCORE::CaBIO::Agent is a Perl object representation of the
10323 CaCORE Agent object.
10324
10325
10326 =head2 SYNOPSIS
10327
10328 See L<CaCORE::ApplicationService>.
10329
10330 =head2 DESCRIPTION
10331
10332
10333
10334 =head2 ATTRIBUTES of Agent
10335
10336 The following are all the attributes of the Agent object and their data types:
10337
10338 =over 4
10339
10340 =item EVSId
10341  
10342 data type: C<string>
10343  
10344 =item NSCNumber
10345  
10346 data type: C<long>
10347  
10348 =item bigid
10349  
10350 data type: C<string>
10351  
10352 =item comment
10353  
10354 data type: C<string>
10355  
10356 =item id
10357  
10358 data type: C<long>
10359  
10360 =item isCMAPAgent
10361  
10362 data type: C<boolean>
10363  
10364 =item name
10365  
10366 data type: C<string>
10367  
10368 =item source
10369  
10370 data type: C<string>
10371  
10372
10373 =back
10374
10375 Note: Although you can also use the corresponding setter methods to set the
10376 attribute values, it is not recommended to do so unless you absolutely have
10377 to change the object's attributes.
10378
10379 =head2 ASSOCIATIONS of Agent
10380
10381 The following are all the objects that are associated with the Agent:
10382
10383 =over 4
10384
10385 =item Instance of L</ClinicalTrialProtocol>:
10386  
10387 One to many assoication, use C<getClinicalTrialProtocolCollection> to get a collection of associated ClinicalTrialProtocol.
10388  
10389 =item Instance of L</Target>:
10390  
10391 One to many assoication, use C<getTargetCollection> to get a collection of associated Target.
10392  
10393
10394 =back
10395
10396 =cut
10397
10398 # Below is module documentation for Anomaly
10399
10400 =pod
10401
10402 =head1 Anomaly
10403
10404 CaCORE::CaBIO::Anomaly - Perl extension for Anomaly.
10405
10406 =head2 ABSTRACT
10407
10408 The CaCORE::CaBIO::Anomaly is a Perl object representation of the
10409 CaCORE Anomaly object.
10410
10411
10412 =head2 SYNOPSIS
10413
10414 See L<CaCORE::ApplicationService>.
10415
10416 =head2 DESCRIPTION
10417
10418
10419
10420 =head2 ATTRIBUTES of Anomaly
10421
10422 The following are all the attributes of the Anomaly object and their data types:
10423
10424 =over 4
10425
10426 =item bigid
10427  
10428 data type: C<string>
10429  
10430 =item description
10431  
10432 data type: C<string>
10433  
10434 =item id
10435  
10436 data type: C<long>
10437  
10438
10439 =back
10440
10441 Note: Although you can also use the corresponding setter methods to set the
10442 attribute values, it is not recommended to do so unless you absolutely have
10443 to change the object's attributes.
10444
10445 =head2 ASSOCIATIONS of Anomaly
10446
10447 The following are all the objects that are associated with the Anomaly:
10448
10449 =over 4
10450
10451 =item Collection of L</Histopathology>:
10452  
10453 Many to one assoication, use C<getHistopathology> to get the associated Histopathology.
10454  
10455 =item Instance of L</OrganOntology>:
10456  
10457 One to many assoication, use C<getOrganOntologyCollection> to get a collection of associated OrganOntology.
10458  
10459 =item Instance of L</Vocabulary>:
10460  
10461 One to many assoication, use C<getVocabularyCollection> to get a collection of associated Vocabulary.
10462  
10463
10464 =back
10465
10466 =cut
10467
10468 # Below is module documentation for Chromosome
10469
10470 =pod
10471
10472 =head1 Chromosome
10473
10474 CaCORE::CaBIO::Chromosome - Perl extension for Chromosome.
10475
10476 =head2 ABSTRACT
10477
10478 The CaCORE::CaBIO::Chromosome is a Perl object representation of the
10479 CaCORE Chromosome object.
10480
10481
10482 =head2 SYNOPSIS
10483
10484 See L<CaCORE::ApplicationService>.
10485
10486 =head2 DESCRIPTION
10487
10488
10489
10490 =head2 ATTRIBUTES of Chromosome
10491
10492 The following are all the attributes of the Chromosome object and their data types:
10493
10494 =over 4
10495
10496 =item bigid
10497  
10498 data type: C<string>
10499  
10500 =item id
10501  
10502 data type: C<long>
10503  
10504 =item number
10505  
10506 data type: C<string>
10507  
10508
10509 =back
10510
10511 Note: Although you can also use the corresponding setter methods to set the
10512 attribute values, it is not recommended to do so unless you absolutely have
10513 to change the object's attributes.
10514
10515 =head2 ASSOCIATIONS of Chromosome
10516
10517 The following are all the objects that are associated with the Chromosome:
10518
10519 =over 4
10520
10521 =item Instance of L</Gene>:
10522  
10523 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
10524  
10525 =item Instance of L</Location>:
10526  
10527 One to many assoication, use C<getLocationCollection> to get a collection of associated Location.
10528  
10529 =item Collection of L</Taxon>:
10530  
10531 Many to one assoication, use C<getTaxon> to get the associated Taxon.
10532  
10533
10534 =back
10535
10536 =cut
10537
10538 # Below is module documentation for ClinicalTrialProtocol
10539
10540 =pod
10541
10542 =head1 ClinicalTrialProtocol
10543
10544 CaCORE::CaBIO::ClinicalTrialProtocol - Perl extension for ClinicalTrialProtocol.
10545
10546 =head2 ABSTRACT
10547
10548 The CaCORE::CaBIO::ClinicalTrialProtocol is a Perl object representation of the
10549 CaCORE ClinicalTrialProtocol object.
10550
10551
10552 =head2 SYNOPSIS
10553
10554 See L<CaCORE::ApplicationService>.
10555
10556 =head2 DESCRIPTION
10557
10558
10559
10560 =head2 ATTRIBUTES of ClinicalTrialProtocol
10561
10562 The following are all the attributes of the ClinicalTrialProtocol object and their data types:
10563
10564 =over 4
10565
10566 =item NIHAdminCode
10567  
10568 data type: C<string>
10569  
10570 =item PDQIdentifier
10571  
10572 data type: C<string>
10573  
10574 =item PIName
10575  
10576 data type: C<string>
10577  
10578 =item bigid
10579  
10580 data type: C<string>
10581  
10582 =item currentStatus
10583  
10584 data type: C<string>
10585  
10586 =item currentStatusDate
10587  
10588 data type: C<dateTime>
10589  
10590 =item documentNumber
10591  
10592 data type: C<string>
10593  
10594 =item id
10595  
10596 data type: C<long>
10597  
10598 =item leadOrganizationId
10599  
10600 data type: C<string>
10601  
10602 =item leadOrganizationName
10603  
10604 data type: C<string>
10605  
10606 =item participationType
10607  
10608 data type: C<string>
10609  
10610 =item phase
10611  
10612 data type: C<string>
10613  
10614 =item title
10615  
10616 data type: C<string>
10617  
10618 =item treatmentFlag
10619  
10620 data type: C<string>
10621  
10622
10623 =back
10624
10625 Note: Although you can also use the corresponding setter methods to set the
10626 attribute values, it is not recommended to do so unless you absolutely have
10627 to change the object's attributes.
10628
10629 =head2 ASSOCIATIONS of ClinicalTrialProtocol
10630
10631 The following are all the objects that are associated with the ClinicalTrialProtocol:
10632
10633 =over 4
10634
10635 =item Instance of L</Agent>:
10636  
10637 One to many assoication, use C<getAgentCollection> to get a collection of associated Agent.
10638  
10639 =item Instance of L</DiseaseOntology>:
10640  
10641 One to many assoication, use C<getDiseaseOntologyCollection> to get a collection of associated DiseaseOntology.
10642  
10643 =item Instance of L</Histopathology>:
10644  
10645 One to many assoication, use C<getHistopathologyCollection> to get a collection of associated Histopathology.
10646  
10647 =item Instance of L</ProtocolAssociation>:
10648  
10649 One to many assoication, use C<getProtocolAssociationCollection> to get a collection of associated ProtocolAssociation.
10650  
10651
10652 =back
10653
10654 =cut
10655
10656 # Below is module documentation for Clone
10657
10658 =pod
10659
10660 =head1 Clone
10661
10662 CaCORE::CaBIO::Clone - Perl extension for Clone.
10663
10664 =head2 ABSTRACT
10665
10666 The CaCORE::CaBIO::Clone is a Perl object representation of the
10667 CaCORE Clone object.
10668
10669
10670 =head2 SYNOPSIS
10671
10672 See L<CaCORE::ApplicationService>.
10673
10674 =head2 DESCRIPTION
10675
10676
10677
10678 =head2 ATTRIBUTES of Clone
10679
10680 The following are all the attributes of the Clone object and their data types:
10681
10682 =over 4
10683
10684 =item bigid
10685  
10686 data type: C<string>
10687  
10688 =item id
10689  
10690 data type: C<long>
10691  
10692 =item insertSize
10693  
10694 data type: C<long>
10695  
10696 =item name
10697  
10698 data type: C<string>
10699  
10700 =item type
10701  
10702 data type: C<string>
10703  
10704
10705 =back
10706
10707 Note: Although you can also use the corresponding setter methods to set the
10708 attribute values, it is not recommended to do so unless you absolutely have
10709 to change the object's attributes.
10710
10711 =head2 ASSOCIATIONS of Clone
10712
10713 The following are all the objects that are associated with the Clone:
10714
10715 =over 4
10716
10717 =item Instance of L</CloneRelativeLocation>:
10718  
10719 One to many assoication, use C<getCloneRelativeLocationCollection> to get a collection of associated CloneRelativeLocation.
10720  
10721 =item Collection of L</Library>:
10722  
10723 Many to one assoication, use C<getLibrary> to get the associated Library.
10724  
10725 =item Instance of L</NucleicAcidSequence>:
10726  
10727 One to many assoication, use C<getNucleicAcidSequenceCollection> to get a collection of associated NucleicAcidSequence.
10728  
10729 =item Instance of L</Taxon>:
10730  
10731 One to many assoication, use C<getTaxonCollection> to get a collection of associated Taxon.
10732  
10733
10734 =back
10735
10736 =cut
10737
10738 # Below is module documentation for CloneRelativeLocation
10739
10740 =pod
10741
10742 =head1 CloneRelativeLocation
10743
10744 CaCORE::CaBIO::CloneRelativeLocation - Perl extension for CloneRelativeLocation.
10745
10746 =head2 ABSTRACT
10747
10748 The CaCORE::CaBIO::CloneRelativeLocation is a Perl object representation of the
10749 CaCORE CloneRelativeLocation object.
10750
10751
10752 =head2 SYNOPSIS
10753
10754 See L<CaCORE::ApplicationService>.
10755
10756 =head2 DESCRIPTION
10757
10758
10759
10760 =head2 ATTRIBUTES of CloneRelativeLocation
10761
10762 The following are all the attributes of the CloneRelativeLocation object and their data types:
10763
10764 =over 4
10765
10766 =item bigid
10767  
10768 data type: C<string>
10769  
10770 =item id
10771  
10772 data type: C<long>
10773  
10774 =item type
10775  
10776 data type: C<string>
10777  
10778
10779 =back
10780
10781 Note: Although you can also use the corresponding setter methods to set the
10782 attribute values, it is not recommended to do so unless you absolutely have
10783 to change the object's attributes.
10784
10785 =head2 ASSOCIATIONS of CloneRelativeLocation
10786
10787 The following are all the objects that are associated with the CloneRelativeLocation:
10788
10789 =over 4
10790
10791 =item Collection of L</Clone>:
10792  
10793 Many to one assoication, use C<getClone> to get the associated Clone.
10794  
10795 =item Collection of L</NucleicAcidSequence>:
10796  
10797 Many to one assoication, use C<getNucleicAcidSequence> to get the associated NucleicAcidSequence.
10798  
10799
10800 =back
10801
10802 =cut
10803
10804 # Below is module documentation for Cytoband
10805
10806 =pod
10807
10808 =head1 Cytoband
10809
10810 CaCORE::CaBIO::Cytoband - Perl extension for Cytoband.
10811
10812 =head2 ABSTRACT
10813
10814 The CaCORE::CaBIO::Cytoband is a Perl object representation of the
10815 CaCORE Cytoband object.
10816
10817
10818 =head2 SYNOPSIS
10819
10820 See L<CaCORE::ApplicationService>.
10821
10822 =head2 DESCRIPTION
10823
10824
10825
10826 =head2 ATTRIBUTES of Cytoband
10827
10828 The following are all the attributes of the Cytoband object and their data types:
10829
10830 =over 4
10831
10832 =item bigid
10833  
10834 data type: C<string>
10835  
10836 =item id
10837  
10838 data type: C<long>
10839  
10840 =item name
10841  
10842 data type: C<string>
10843  
10844
10845 =back
10846
10847 Note: Although you can also use the corresponding setter methods to set the
10848 attribute values, it is not recommended to do so unless you absolutely have
10849 to change the object's attributes.
10850
10851 =head2 ASSOCIATIONS of Cytoband
10852
10853 The following are all the objects that are associated with the Cytoband:
10854
10855 =over 4
10856
10857 =item Collection of L</PhysicalLocation>:
10858  
10859 Many to one assoication, use C<getPhysicalLocation> to get the associated PhysicalLocation.
10860  
10861
10862 =back
10863
10864 =cut
10865
10866 # Below is module documentation for CytogeneticLocation
10867
10868 =pod
10869
10870 =head1 CytogeneticLocation
10871
10872 CaCORE::CaBIO::CytogeneticLocation - Perl extension for CytogeneticLocation.
10873
10874 =head2 ABSTRACT
10875
10876 The CaCORE::CaBIO::CytogeneticLocation is a Perl object representation of the
10877 CaCORE CytogeneticLocation object.
10878
10879 CytogeneticLocation extends from domain object L<"Location">.
10880
10881 =head2 SYNOPSIS
10882
10883 See L<CaCORE::ApplicationService>.
10884
10885 =head2 DESCRIPTION
10886
10887
10888
10889 =head2 ATTRIBUTES of CytogeneticLocation
10890
10891 The following are all the attributes of the CytogeneticLocation object and their data types:
10892
10893 =over 4
10894
10895 =item bigid
10896  
10897 data type: C<string>
10898  
10899 =item endCytobandLocId
10900  
10901 data type: C<long>
10902  
10903 =item startCytobandLocId
10904  
10905 data type: C<long>
10906  
10907
10908 =back
10909
10910 Note: Although you can also use the corresponding setter methods to set the
10911 attribute values, it is not recommended to do so unless you absolutely have
10912 to change the object's attributes.
10913
10914 =head2 ASSOCIATIONS of CytogeneticLocation
10915
10916 The following are all the objects that are associated with the CytogeneticLocation:
10917
10918 =over 4
10919
10920 =item Collection of L</EndCytoband>:
10921  
10922 Many to one assoication, use C<getEndCytoband> to get the associated EndCytoband.
10923  
10924 =item Collection of L</StartCytoband>:
10925  
10926 Many to one assoication, use C<getStartCytoband> to get the associated StartCytoband.
10927  
10928
10929 =back
10930
10931 =cut
10932
10933 # Below is module documentation for DiseaseOntology
10934
10935 =pod
10936
10937 =head1 DiseaseOntology
10938
10939 CaCORE::CaBIO::DiseaseOntology - Perl extension for DiseaseOntology.
10940
10941 =head2 ABSTRACT
10942
10943 The CaCORE::CaBIO::DiseaseOntology is a Perl object representation of the
10944 CaCORE DiseaseOntology object.
10945
10946
10947 =head2 SYNOPSIS
10948
10949 See L<CaCORE::ApplicationService>.
10950
10951 =head2 DESCRIPTION
10952
10953
10954
10955 =head2 ATTRIBUTES of DiseaseOntology
10956
10957 The following are all the attributes of the DiseaseOntology object and their data types:
10958
10959 =over 4
10960
10961 =item bigid
10962  
10963 data type: C<string>
10964  
10965 =item id
10966  
10967 data type: C<long>
10968  
10969 =item name
10970  
10971 data type: C<string>
10972  
10973
10974 =back
10975
10976 Note: Although you can also use the corresponding setter methods to set the
10977 attribute values, it is not recommended to do so unless you absolutely have
10978 to change the object's attributes.
10979
10980 =head2 ASSOCIATIONS of DiseaseOntology
10981
10982 The following are all the objects that are associated with the DiseaseOntology:
10983
10984 =over 4
10985
10986 =item Instance of L</ChildDiseaseOntologyRelationship>:
10987  
10988 One to many assoication, use C<getChildDiseaseOntologyRelationshipCollection> to get a collection of associated ChildDiseaseOntologyRelationship.
10989  
10990 =item Instance of L</ClinicalTrialProtocol>:
10991  
10992 One to many assoication, use C<getClinicalTrialProtocolCollection> to get a collection of associated ClinicalTrialProtocol.
10993  
10994 =item Instance of L</Histopathology>:
10995  
10996 One to many assoication, use C<getHistopathologyCollection> to get a collection of associated Histopathology.
10997  
10998 =item Instance of L</ParentDiseaseOntologyRelationship>:
10999  
11000 One to many assoication, use C<getParentDiseaseOntologyRelationshipCollection> to get a collection of associated ParentDiseaseOntologyRelationship.
11001  
11002
11003 =back
11004
11005 =cut
11006
11007 # Below is module documentation for DiseaseOntologyRelationship
11008
11009 =pod
11010
11011 =head1 DiseaseOntologyRelationship
11012
11013 CaCORE::CaBIO::DiseaseOntologyRelationship - Perl extension for DiseaseOntologyRelationship.
11014
11015 =head2 ABSTRACT
11016
11017 The CaCORE::CaBIO::DiseaseOntologyRelationship is a Perl object representation of the
11018 CaCORE DiseaseOntologyRelationship object.
11019
11020
11021 =head2 SYNOPSIS
11022
11023 See L<CaCORE::ApplicationService>.
11024
11025 =head2 DESCRIPTION
11026
11027
11028
11029 =head2 ATTRIBUTES of DiseaseOntologyRelationship
11030
11031 The following are all the attributes of the DiseaseOntologyRelationship object and their data types:
11032
11033 =over 4
11034
11035 =item bigid
11036  
11037 data type: C<string>
11038  
11039 =item id
11040  
11041 data type: C<long>
11042  
11043 =item type
11044  
11045 data type: C<string>
11046  
11047
11048 =back
11049
11050 Note: Although you can also use the corresponding setter methods to set the
11051 attribute values, it is not recommended to do so unless you absolutely have
11052 to change the object's attributes.
11053
11054 =head2 ASSOCIATIONS of DiseaseOntologyRelationship
11055
11056 The following are all the objects that are associated with the DiseaseOntologyRelationship:
11057
11058 =over 4
11059
11060 =item Collection of L</ChildDiseaseOntology>:
11061  
11062 Many to one assoication, use C<getChildDiseaseOntology> to get the associated ChildDiseaseOntology.
11063  
11064 =item Collection of L</ParentDiseaseOntology>:
11065  
11066 Many to one assoication, use C<getParentDiseaseOntology> to get the associated ParentDiseaseOntology.
11067  
11068
11069 =back
11070
11071 =cut
11072
11073 # Below is module documentation for Gene
11074
11075 =pod
11076
11077 =head1 Gene
11078
11079 CaCORE::CaBIO::Gene - Perl extension for Gene.
11080
11081 =head2 ABSTRACT
11082
11083 The CaCORE::CaBIO::Gene is a Perl object representation of the
11084 CaCORE Gene object.
11085
11086
11087 =head2 SYNOPSIS
11088
11089 See L<CaCORE::ApplicationService>.
11090
11091 =head2 DESCRIPTION
11092
11093
11094
11095 =head2 ATTRIBUTES of Gene
11096
11097 The following are all the attributes of the Gene object and their data types:
11098
11099 =over 4
11100
11101 =item bigid
11102  
11103 data type: C<string>
11104  
11105 =item clusterId
11106  
11107 data type: C<long>
11108  
11109 =item fullName
11110  
11111 data type: C<string>
11112  
11113 =item id
11114  
11115 data type: C<long>
11116  
11117 =item symbol
11118  
11119 data type: C<string>
11120  
11121
11122 =back
11123
11124 Note: Although you can also use the corresponding setter methods to set the
11125 attribute values, it is not recommended to do so unless you absolutely have
11126 to change the object's attributes.
11127
11128 =head2 ASSOCIATIONS of Gene
11129
11130 The following are all the objects that are associated with the Gene:
11131
11132 =over 4
11133
11134 =item Collection of L</Chromosome>:
11135  
11136 Many to one assoication, use C<getChromosome> to get the associated Chromosome.
11137  
11138 =item Instance of L</DatabaseCrossReference>:
11139  
11140 One to many assoication, use C<getDatabaseCrossReferenceCollection> to get a collection of associated DatabaseCrossReference.
11141  
11142 =item Instance of L</GeneAlias>:
11143  
11144 One to many assoication, use C<getGeneAliasCollection> to get a collection of associated GeneAlias.
11145  
11146 =item Instance of L</GeneOntology>:
11147  
11148 One to many assoication, use C<getGeneOntologyCollection> to get a collection of associated GeneOntology.
11149  
11150 =item Instance of L</GeneRelativeLocation>:
11151  
11152 One to many assoication, use C<getGeneRelativeLocationCollection> to get a collection of associated GeneRelativeLocation.
11153  
11154 =item Instance of L</GenericReporter>:
11155  
11156 One to many assoication, use C<getGenericReporterCollection> to get a collection of associated GenericReporter.
11157  
11158 =item Instance of L</Histopathology>:
11159  
11160 One to many assoication, use C<getHistopathologyCollection> to get a collection of associated Histopathology.
11161  
11162 =item Instance of L</HomologousAssociation>:
11163  
11164 One to many assoication, use C<getHomologousAssociationCollection> to get a collection of associated HomologousAssociation.
11165  
11166 =item Instance of L</Library>:
11167  
11168 One to many assoication, use C<getLibraryCollection> to get a collection of associated Library.
11169  
11170 =item Instance of L</Location>:
11171  
11172 One to many assoication, use C<getLocationCollection> to get a collection of associated Location.
11173  
11174 =item Instance of L</NucleicAcidSequence>:
11175  
11176 One to many assoication, use C<getNucleicAcidSequenceCollection> to get a collection of associated NucleicAcidSequence.
11177  
11178 =item Instance of L</OrganOntology>:
11179  
11180 One to many assoication, use C<getOrganOntologyCollection> to get a collection of associated OrganOntology.
11181  
11182 =item Instance of L</Pathway>:
11183  
11184 One to many assoication, use C<getPathwayCollection> to get a collection of associated Pathway.
11185  
11186 =item Instance of L</Protein>:
11187  
11188 One to many assoication, use C<getProteinCollection> to get a collection of associated Protein.
11189  
11190 =item Instance of L</Target>:
11191  
11192 One to many assoication, use C<getTargetCollection> to get a collection of associated Target.
11193  
11194 =item Collection of L</Taxon>:
11195  
11196 Many to one assoication, use C<getTaxon> to get the associated Taxon.
11197  
11198
11199 =back
11200
11201 =cut
11202
11203 # Below is module documentation for GeneAlias
11204
11205 =pod
11206
11207 =head1 GeneAlias
11208
11209 CaCORE::CaBIO::GeneAlias - Perl extension for GeneAlias.
11210
11211 =head2 ABSTRACT
11212
11213 The CaCORE::CaBIO::GeneAlias is a Perl object representation of the
11214 CaCORE GeneAlias object.
11215
11216
11217 =head2 SYNOPSIS
11218
11219 See L<CaCORE::ApplicationService>.
11220
11221 =head2 DESCRIPTION
11222
11223
11224
11225 =head2 ATTRIBUTES of GeneAlias
11226
11227 The following are all the attributes of the GeneAlias object and their data types:
11228
11229 =over 4
11230
11231 =item bigid
11232  
11233 data type: C<string>
11234  
11235 =item id
11236  
11237 data type: C<long>
11238  
11239 =item name
11240  
11241 data type: C<string>
11242  
11243 =item type
11244  
11245 data type: C<string>
11246  
11247
11248 =back
11249
11250 Note: Although you can also use the corresponding setter methods to set the
11251 attribute values, it is not recommended to do so unless you absolutely have
11252 to change the object's attributes.
11253
11254 =head2 ASSOCIATIONS of GeneAlias
11255
11256 The following are all the objects that are associated with the GeneAlias:
11257
11258 =over 4
11259
11260 =item Instance of L</Gene>:
11261  
11262 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
11263  
11264
11265 =back
11266
11267 =cut
11268
11269 # Below is module documentation for GeneOntology
11270
11271 =pod
11272
11273 =head1 GeneOntology
11274
11275 CaCORE::CaBIO::GeneOntology - Perl extension for GeneOntology.
11276
11277 =head2 ABSTRACT
11278
11279 The CaCORE::CaBIO::GeneOntology is a Perl object representation of the
11280 CaCORE GeneOntology object.
11281
11282
11283 =head2 SYNOPSIS
11284
11285 See L<CaCORE::ApplicationService>.
11286
11287 =head2 DESCRIPTION
11288
11289
11290
11291 =head2 ATTRIBUTES of GeneOntology
11292
11293 The following are all the attributes of the GeneOntology object and their data types:
11294
11295 =over 4
11296
11297 =item bigid
11298  
11299 data type: C<string>
11300  
11301 =item id
11302  
11303 data type: C<long>
11304  
11305 =item name
11306  
11307 data type: C<string>
11308  
11309
11310 =back
11311
11312 Note: Although you can also use the corresponding setter methods to set the
11313 attribute values, it is not recommended to do so unless you absolutely have
11314 to change the object's attributes.
11315
11316 =head2 ASSOCIATIONS of GeneOntology
11317
11318 The following are all the objects that are associated with the GeneOntology:
11319
11320 =over 4
11321
11322 =item Instance of L</ChildGeneOntologyRelationship>:
11323  
11324 One to many assoication, use C<getChildGeneOntologyRelationshipCollection> to get a collection of associated ChildGeneOntologyRelationship.
11325  
11326 =item Instance of L</Gene>:
11327  
11328 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
11329  
11330 =item Instance of L</ParentGeneOntologyRelationship>:
11331  
11332 One to many assoication, use C<getParentGeneOntologyRelationshipCollection> to get a collection of associated ParentGeneOntologyRelationship.
11333  
11334
11335 =back
11336
11337 =cut
11338
11339 # Below is module documentation for GeneOntologyRelationship
11340
11341 =pod
11342
11343 =head1 GeneOntologyRelationship
11344
11345 CaCORE::CaBIO::GeneOntologyRelationship - Perl extension for GeneOntologyRelationship.
11346
11347 =head2 ABSTRACT
11348
11349 The CaCORE::CaBIO::GeneOntologyRelationship is a Perl object representation of the
11350 CaCORE GeneOntologyRelationship object.
11351
11352
11353 =head2 SYNOPSIS
11354
11355 See L<CaCORE::ApplicationService>.
11356
11357 =head2 DESCRIPTION
11358
11359
11360
11361 =head2 ATTRIBUTES of GeneOntologyRelationship
11362
11363 The following are all the attributes of the GeneOntologyRelationship object and their data types:
11364
11365 =over 4
11366
11367 =item bigid
11368  
11369 data type: C<string>
11370  
11371 =item id
11372  
11373 data type: C<long>
11374  
11375 =item relationshipType
11376  
11377 data type: C<string>
11378  
11379
11380 =back
11381
11382 Note: Although you can also use the corresponding setter methods to set the
11383 attribute values, it is not recommended to do so unless you absolutely have
11384 to change the object's attributes.
11385
11386 =head2 ASSOCIATIONS of GeneOntologyRelationship
11387
11388 The following are all the objects that are associated with the GeneOntologyRelationship:
11389
11390 =over 4
11391
11392 =item Collection of L</ChildGeneOntology>:
11393  
11394 Many to one assoication, use C<getChildGeneOntology> to get the associated ChildGeneOntology.
11395  
11396 =item Collection of L</ParentGeneOntology>:
11397  
11398 Many to one assoication, use C<getParentGeneOntology> to get the associated ParentGeneOntology.
11399  
11400
11401 =back
11402
11403 =cut
11404
11405 # Below is module documentation for GeneRelativeLocation
11406
11407 =pod
11408
11409 =head1 GeneRelativeLocation
11410
11411 CaCORE::CaBIO::GeneRelativeLocation - Perl extension for GeneRelativeLocation.
11412
11413 =head2 ABSTRACT
11414
11415 The CaCORE::CaBIO::GeneRelativeLocation is a Perl object representation of the
11416 CaCORE GeneRelativeLocation object.
11417
11418
11419 =head2 SYNOPSIS
11420
11421 See L<CaCORE::ApplicationService>.
11422
11423 =head2 DESCRIPTION
11424
11425
11426
11427 =head2 ATTRIBUTES of GeneRelativeLocation
11428
11429 The following are all the attributes of the GeneRelativeLocation object and their data types:
11430
11431 =over 4
11432
11433 =item bigid
11434  
11435 data type: C<string>
11436  
11437 =item id
11438  
11439 data type: C<long>
11440  
11441 =item type
11442  
11443 data type: C<string>
11444  
11445
11446 =back
11447
11448 Note: Although you can also use the corresponding setter methods to set the
11449 attribute values, it is not recommended to do so unless you absolutely have
11450 to change the object's attributes.
11451
11452 =head2 ASSOCIATIONS of GeneRelativeLocation
11453
11454 The following are all the objects that are associated with the GeneRelativeLocation:
11455
11456 =over 4
11457
11458
11459 =back
11460
11461 =cut
11462
11463 # Below is module documentation for GenericArray
11464
11465 =pod
11466
11467 =head1 GenericArray
11468
11469 CaCORE::CaBIO::GenericArray - Perl extension for GenericArray.
11470
11471 =head2 ABSTRACT
11472
11473 The CaCORE::CaBIO::GenericArray is a Perl object representation of the
11474 CaCORE GenericArray object.
11475
11476
11477 =head2 SYNOPSIS
11478
11479 See L<CaCORE::ApplicationService>.
11480
11481 =head2 DESCRIPTION
11482
11483
11484
11485 =head2 ATTRIBUTES of GenericArray
11486
11487 The following are all the attributes of the GenericArray object and their data types:
11488
11489 =over 4
11490
11491 =item arrayName
11492  
11493 data type: C<string>
11494  
11495 =item bigid
11496  
11497 data type: C<string>
11498  
11499 =item id
11500  
11501 data type: C<long>
11502  
11503 =item platform
11504  
11505 data type: C<string>
11506  
11507 =item type
11508  
11509 data type: C<string>
11510  
11511
11512 =back
11513
11514 Note: Although you can also use the corresponding setter methods to set the
11515 attribute values, it is not recommended to do so unless you absolutely have
11516 to change the object's attributes.
11517
11518 =head2 ASSOCIATIONS of GenericArray
11519
11520 The following are all the objects that are associated with the GenericArray:
11521
11522 =over 4
11523
11524 =item Instance of L</GenericReporter>:
11525  
11526 One to many assoication, use C<getGenericReporterCollection> to get a collection of associated GenericReporter.
11527  
11528
11529 =back
11530
11531 =cut
11532
11533 # Below is module documentation for GenericReporter
11534
11535 =pod
11536
11537 =head1 GenericReporter
11538
11539 CaCORE::CaBIO::GenericReporter - Perl extension for GenericReporter.
11540
11541 =head2 ABSTRACT
11542
11543 The CaCORE::CaBIO::GenericReporter is a Perl object representation of the
11544 CaCORE GenericReporter object.
11545
11546
11547 =head2 SYNOPSIS
11548
11549 See L<CaCORE::ApplicationService>.
11550
11551 =head2 DESCRIPTION
11552
11553
11554
11555 =head2 ATTRIBUTES of GenericReporter
11556
11557 The following are all the attributes of the GenericReporter object and their data types:
11558
11559 =over 4
11560
11561 =item bigid
11562  
11563 data type: C<string>
11564  
11565 =item id
11566  
11567 data type: C<long>
11568  
11569 =item name
11570  
11571 data type: C<string>
11572  
11573 =item type
11574  
11575 data type: C<string>
11576  
11577
11578 =back
11579
11580 Note: Although you can also use the corresponding setter methods to set the
11581 attribute values, it is not recommended to do so unless you absolutely have
11582 to change the object's attributes.
11583
11584 =head2 ASSOCIATIONS of GenericReporter
11585
11586 The following are all the objects that are associated with the GenericReporter:
11587
11588 =over 4
11589
11590 =item Collection of L</Gene>:
11591  
11592 Many to one assoication, use C<getGene> to get the associated Gene.
11593  
11594 =item Instance of L</GenericArray>:
11595  
11596 One to many assoication, use C<getGenericArrayCollection> to get a collection of associated GenericArray.
11597  
11598
11599 =back
11600
11601 =cut
11602
11603 # Below is module documentation for Histopathology
11604
11605 =pod
11606
11607 =head1 Histopathology
11608
11609 CaCORE::CaBIO::Histopathology - Perl extension for Histopathology.
11610
11611 =head2 ABSTRACT
11612
11613 The CaCORE::CaBIO::Histopathology is a Perl object representation of the
11614 CaCORE Histopathology object.
11615
11616
11617 =head2 SYNOPSIS
11618
11619 See L<CaCORE::ApplicationService>.
11620
11621 =head2 DESCRIPTION
11622
11623
11624
11625 =head2 ATTRIBUTES of Histopathology
11626
11627 The following are all the attributes of the Histopathology object and their data types:
11628
11629 =over 4
11630
11631 =item ageOfOnset
11632  
11633 data type: C<string>
11634  
11635 =item comments
11636  
11637 data type: C<string>
11638  
11639 =item grossDescription
11640  
11641 data type: C<string>
11642  
11643 =item id
11644  
11645 data type: C<long>
11646  
11647 =item microscopicDescription
11648  
11649 data type: C<string>
11650  
11651 =item relationalOperation
11652  
11653 data type: C<string>
11654  
11655 =item survivalInfo
11656  
11657 data type: C<string>
11658  
11659 =item tumorIncidenceRate
11660  
11661 data type: C<float>
11662  
11663
11664 =back
11665
11666 Note: Although you can also use the corresponding setter methods to set the
11667 attribute values, it is not recommended to do so unless you absolutely have
11668 to change the object's attributes.
11669
11670 =head2 ASSOCIATIONS of Histopathology
11671
11672 The following are all the objects that are associated with the Histopathology:
11673
11674 =over 4
11675
11676 =item Instance of L</Anomaly>:
11677  
11678 One to many assoication, use C<getAnomalyCollection> to get a collection of associated Anomaly.
11679  
11680 =item Instance of L</ClinicalTrialProtocol>:
11681  
11682 One to many assoication, use C<getClinicalTrialProtocolCollection> to get a collection of associated ClinicalTrialProtocol.
11683  
11684 =item Collection of L</DiseaseOntology>:
11685  
11686 Many to one assoication, use C<getDiseaseOntology> to get the associated DiseaseOntology.
11687  
11688 =item Instance of L</Gene>:
11689  
11690 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
11691  
11692 =item Instance of L</Library>:
11693  
11694 One to many assoication, use C<getLibraryCollection> to get a collection of associated Library.
11695  
11696 =item Instance of L</Metastasis>:
11697  
11698 One to many assoication, use C<getMetastasisCollection> to get a collection of associated Metastasis.
11699  
11700 =item Collection of L</OrganOntology>:
11701  
11702 Many to one assoication, use C<getOrganOntology> to get the associated OrganOntology.
11703  
11704
11705 =back
11706
11707 =cut
11708
11709 # Below is module documentation for HomologousAssociation
11710
11711 =pod
11712
11713 =head1 HomologousAssociation
11714
11715 CaCORE::CaBIO::HomologousAssociation - Perl extension for HomologousAssociation.
11716
11717 =head2 ABSTRACT
11718
11719 The CaCORE::CaBIO::HomologousAssociation is a Perl object representation of the
11720 CaCORE HomologousAssociation object.
11721
11722
11723 =head2 SYNOPSIS
11724
11725 See L<CaCORE::ApplicationService>.
11726
11727 =head2 DESCRIPTION
11728
11729
11730
11731 =head2 ATTRIBUTES of HomologousAssociation
11732
11733 The following are all the attributes of the HomologousAssociation object and their data types:
11734
11735 =over 4
11736
11737 =item bigid
11738  
11739 data type: C<string>
11740  
11741 =item homologousId
11742  
11743 data type: C<long>
11744  
11745 =item id
11746  
11747 data type: C<long>
11748  
11749 =item similarityPercentage
11750  
11751 data type: C<float>
11752  
11753
11754 =back
11755
11756 Note: Although you can also use the corresponding setter methods to set the
11757 attribute values, it is not recommended to do so unless you absolutely have
11758 to change the object's attributes.
11759
11760 =head2 ASSOCIATIONS of HomologousAssociation
11761
11762 The following are all the objects that are associated with the HomologousAssociation:
11763
11764 =over 4
11765
11766 =item Collection of L</HomologousGene>:
11767  
11768 Many to one assoication, use C<getHomologousGene> to get the associated HomologousGene.
11769  
11770
11771 =back
11772
11773 =cut
11774
11775 # Below is module documentation for Library
11776
11777 =pod
11778
11779 =head1 Library
11780
11781 CaCORE::CaBIO::Library - Perl extension for Library.
11782
11783 =head2 ABSTRACT
11784
11785 The CaCORE::CaBIO::Library is a Perl object representation of the
11786 CaCORE Library object.
11787
11788
11789 =head2 SYNOPSIS
11790
11791 See L<CaCORE::ApplicationService>.
11792
11793 =head2 DESCRIPTION
11794
11795
11796
11797 =head2 ATTRIBUTES of Library
11798
11799 The following are all the attributes of the Library object and their data types:
11800
11801 =over 4
11802
11803 =item bigid
11804  
11805 data type: C<string>
11806  
11807 =item cloneProducer
11808  
11809 data type: C<string>
11810  
11811 =item cloneVector
11812  
11813 data type: C<string>
11814  
11815 =item cloneVectorType
11816  
11817 data type: C<string>
11818  
11819 =item clonesToDate
11820  
11821 data type: C<long>
11822  
11823 =item creationDate
11824  
11825 data type: C<dateTime>
11826  
11827 =item description
11828  
11829 data type: C<string>
11830  
11831 =item id
11832  
11833 data type: C<long>
11834  
11835 =item keyword
11836  
11837 data type: C<string>
11838  
11839 =item labHost
11840  
11841 data type: C<string>
11842  
11843 =item name
11844  
11845 data type: C<string>
11846  
11847 =item rsite1
11848  
11849 data type: C<string>
11850  
11851 =item rsite2
11852  
11853 data type: C<string>
11854  
11855 =item sequencesToDate
11856  
11857 data type: C<long>
11858  
11859 =item type
11860  
11861 data type: C<string>
11862  
11863 =item uniGeneId
11864  
11865 data type: C<long>
11866  
11867
11868 =back
11869
11870 Note: Although you can also use the corresponding setter methods to set the
11871 attribute values, it is not recommended to do so unless you absolutely have
11872 to change the object's attributes.
11873
11874 =head2 ASSOCIATIONS of Library
11875
11876 The following are all the objects that are associated with the Library:
11877
11878 =over 4
11879
11880 =item Instance of L</Clone>:
11881  
11882 One to many assoication, use C<getCloneCollection> to get a collection of associated Clone.
11883  
11884 =item Instance of L</Gene>:
11885  
11886 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
11887  
11888 =item Instance of L</Histopathology>:
11889  
11890 One to many assoication, use C<getHistopathologyCollection> to get a collection of associated Histopathology.
11891  
11892 =item Collection of L</Protocol>:
11893  
11894 Many to one assoication, use C<getProtocol> to get the associated Protocol.
11895  
11896 =item Collection of L</Tissue>:
11897  
11898 Many to one assoication, use C<getTissue> to get the associated Tissue.
11899  
11900
11901 =back
11902
11903 =cut
11904
11905 # Below is module documentation for Location
11906
11907 =pod
11908
11909 =head1 Location
11910
11911 CaCORE::CaBIO::Location - Perl extension for Location.
11912
11913 =head2 ABSTRACT
11914
11915 The CaCORE::CaBIO::Location is a Perl object representation of the
11916 CaCORE Location object.
11917
11918
11919 =head2 SYNOPSIS
11920
11921 See L<CaCORE::ApplicationService>.
11922
11923 =head2 DESCRIPTION
11924
11925
11926
11927 =head2 ATTRIBUTES of Location
11928
11929 The following are all the attributes of the Location object and their data types:
11930
11931 =over 4
11932
11933 =item id
11934  
11935 data type: C<long>
11936  
11937
11938 =back
11939
11940 Note: Although you can also use the corresponding setter methods to set the
11941 attribute values, it is not recommended to do so unless you absolutely have
11942 to change the object's attributes.
11943
11944 =head2 ASSOCIATIONS of Location
11945
11946 The following are all the objects that are associated with the Location:
11947
11948 =over 4
11949
11950 =item Collection of L</SNP>:
11951  
11952 Many to one assoication, use C<getSNP> to get the associated SNP.
11953  
11954 =item Collection of L</Chromosome>:
11955  
11956 Many to one assoication, use C<getChromosome> to get the associated Chromosome.
11957  
11958 =item Collection of L</Gene>:
11959  
11960 Many to one assoication, use C<getGene> to get the associated Gene.
11961  
11962 =item Collection of L</NucleicAcidSequence>:
11963  
11964 Many to one assoication, use C<getNucleicAcidSequence> to get the associated NucleicAcidSequence.
11965  
11966
11967 =back
11968
11969 =cut
11970
11971 # Below is module documentation for NucleicAcidSequence
11972
11973 =pod
11974
11975 =head1 NucleicAcidSequence
11976
11977 CaCORE::CaBIO::NucleicAcidSequence - Perl extension for NucleicAcidSequence.
11978
11979 =head2 ABSTRACT
11980
11981 The CaCORE::CaBIO::NucleicAcidSequence is a Perl object representation of the
11982 CaCORE NucleicAcidSequence object.
11983
11984
11985 =head2 SYNOPSIS
11986
11987 See L<CaCORE::ApplicationService>.
11988
11989 =head2 DESCRIPTION
11990
11991
11992
11993 =head2 ATTRIBUTES of NucleicAcidSequence
11994
11995 The following are all the attributes of the NucleicAcidSequence object and their data types:
11996
11997 =over 4
11998
11999 =item accessionNumber
12000  
12001 data type: C<string>
12002  
12003 =item accessionNumberVersion
12004  
12005 data type: C<string>
12006  
12007 =item bigid
12008  
12009 data type: C<string>
12010  
12011 =item id
12012  
12013 data type: C<long>
12014  
12015 =item length
12016  
12017 data type: C<long>
12018  
12019 =item type
12020  
12021 data type: C<string>
12022  
12023 =item value
12024  
12025 data type: C<string>
12026  
12027
12028 =back
12029
12030 Note: Although you can also use the corresponding setter methods to set the
12031 attribute values, it is not recommended to do so unless you absolutely have
12032 to change the object's attributes.
12033
12034 =head2 ASSOCIATIONS of NucleicAcidSequence
12035
12036 The following are all the objects that are associated with the NucleicAcidSequence:
12037
12038 =over 4
12039
12040 =item Collection of L</CloneRelativeLocation>:
12041  
12042 Many to one assoication, use C<getCloneRelativeLocation> to get the associated CloneRelativeLocation.
12043  
12044 =item Instance of L</DatabaseCrossReference>:
12045  
12046 One to many assoication, use C<getDatabaseCrossReferenceCollection> to get a collection of associated DatabaseCrossReference.
12047  
12048 =item Instance of L</Gene>:
12049  
12050 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
12051  
12052 =item Instance of L</Location>:
12053  
12054 One to many assoication, use C<getLocationCollection> to get a collection of associated Location.
12055  
12056
12057 =back
12058
12059 =cut
12060
12061 # Below is module documentation for OrganOntology
12062
12063 =pod
12064
12065 =head1 OrganOntology
12066
12067 CaCORE::CaBIO::OrganOntology - Perl extension for OrganOntology.
12068
12069 =head2 ABSTRACT
12070
12071 The CaCORE::CaBIO::OrganOntology is a Perl object representation of the
12072 CaCORE OrganOntology object.
12073
12074
12075 =head2 SYNOPSIS
12076
12077 See L<CaCORE::ApplicationService>.
12078
12079 =head2 DESCRIPTION
12080
12081
12082
12083 =head2 ATTRIBUTES of OrganOntology
12084
12085 The following are all the attributes of the OrganOntology object and their data types:
12086
12087 =over 4
12088
12089 =item bigid
12090  
12091 data type: C<string>
12092  
12093 =item id
12094  
12095 data type: C<long>
12096  
12097 =item name
12098  
12099 data type: C<string>
12100  
12101
12102 =back
12103
12104 Note: Although you can also use the corresponding setter methods to set the
12105 attribute values, it is not recommended to do so unless you absolutely have
12106 to change the object's attributes.
12107
12108 =head2 ASSOCIATIONS of OrganOntology
12109
12110 The following are all the objects that are associated with the OrganOntology:
12111
12112 =over 4
12113
12114 =item Instance of L</Anomaly>:
12115  
12116 One to many assoication, use C<getAnomalyCollection> to get a collection of associated Anomaly.
12117  
12118 =item Instance of L</ChildOrganOntologyRelationship>:
12119  
12120 One to many assoication, use C<getChildOrganOntologyRelationshipCollection> to get a collection of associated ChildOrganOntologyRelationship.
12121  
12122 =item Instance of L</Gene>:
12123  
12124 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
12125  
12126 =item Instance of L</Histopathology>:
12127  
12128 One to many assoication, use C<getHistopathologyCollection> to get a collection of associated Histopathology.
12129  
12130 =item Instance of L</ParentOrganOntologyRelationship>:
12131  
12132 One to many assoication, use C<getParentOrganOntologyRelationshipCollection> to get a collection of associated ParentOrganOntologyRelationship.
12133  
12134
12135 =back
12136
12137 =cut
12138
12139 # Below is module documentation for OrganOntologyRelationship
12140
12141 =pod
12142
12143 =head1 OrganOntologyRelationship
12144
12145 CaCORE::CaBIO::OrganOntologyRelationship - Perl extension for OrganOntologyRelationship.
12146
12147 =head2 ABSTRACT
12148
12149 The CaCORE::CaBIO::OrganOntologyRelationship is a Perl object representation of the
12150 CaCORE OrganOntologyRelationship object.
12151
12152
12153 =head2 SYNOPSIS
12154
12155 See L<CaCORE::ApplicationService>.
12156
12157 =head2 DESCRIPTION
12158
12159
12160
12161 =head2 ATTRIBUTES of OrganOntologyRelationship
12162
12163 The following are all the attributes of the OrganOntologyRelationship object and their data types:
12164
12165 =over 4
12166
12167 =item bigid
12168  
12169 data type: C<string>
12170  
12171 =item id
12172  
12173 data type: C<long>
12174  
12175 =item type
12176  
12177 data type: C<string>
12178  
12179
12180 =back
12181
12182 Note: Although you can also use the corresponding setter methods to set the
12183 attribute values, it is not recommended to do so unless you absolutely have
12184 to change the object's attributes.
12185
12186 =head2 ASSOCIATIONS of OrganOntologyRelationship
12187
12188 The following are all the objects that are associated with the OrganOntologyRelationship:
12189
12190 =over 4
12191
12192 =item Collection of L</ChildOrganOntology>:
12193  
12194 Many to one assoication, use C<getChildOrganOntology> to get the associated ChildOrganOntology.
12195  
12196 =item Collection of L</ParentOrganOntology>:
12197  
12198 Many to one assoication, use C<getParentOrganOntology> to get the associated ParentOrganOntology.
12199  
12200
12201 =back
12202
12203 =cut
12204
12205 # Below is module documentation for Pathway
12206
12207 =pod
12208
12209 =head1 Pathway
12210
12211 CaCORE::CaBIO::Pathway - Perl extension for Pathway.
12212
12213 =head2 ABSTRACT
12214
12215 The CaCORE::CaBIO::Pathway is a Perl object representation of the
12216 CaCORE Pathway object.
12217
12218
12219 =head2 SYNOPSIS
12220
12221 See L<CaCORE::ApplicationService>.
12222
12223 =head2 DESCRIPTION
12224
12225
12226
12227 =head2 ATTRIBUTES of Pathway
12228
12229 The following are all the attributes of the Pathway object and their data types:
12230
12231 =over 4
12232
12233 =item bigid
12234  
12235 data type: C<string>
12236  
12237 =item description
12238  
12239 data type: C<string>
12240  
12241 =item diagram
12242  
12243 data type: C<string>
12244  
12245 =item displayValue
12246  
12247 data type: C<string>
12248  
12249 =item id
12250  
12251 data type: C<long>
12252  
12253 =item name
12254  
12255 data type: C<string>
12256  
12257
12258 =back
12259
12260 Note: Although you can also use the corresponding setter methods to set the
12261 attribute values, it is not recommended to do so unless you absolutely have
12262 to change the object's attributes.
12263
12264 =head2 ASSOCIATIONS of Pathway
12265
12266 The following are all the objects that are associated with the Pathway:
12267
12268 =over 4
12269
12270 =item Instance of L</Gene>:
12271  
12272 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
12273  
12274 =item Instance of L</Histopathology>:
12275  
12276 One to many assoication, use C<getHistopathologyCollection> to get a collection of associated Histopathology.
12277  
12278 =item Collection of L</Taxon>:
12279  
12280 Many to one assoication, use C<getTaxon> to get the associated Taxon.
12281  
12282
12283 =back
12284
12285 =cut
12286
12287 # Below is module documentation for PhysicalLocation
12288
12289 =pod
12290
12291 =head1 PhysicalLocation
12292
12293 CaCORE::CaBIO::PhysicalLocation - Perl extension for PhysicalLocation.
12294
12295 =head2 ABSTRACT
12296
12297 The CaCORE::CaBIO::PhysicalLocation is a Perl object representation of the
12298 CaCORE PhysicalLocation object.
12299
12300 PhysicalLocation extends from domain object L<"Location">.
12301
12302 =head2 SYNOPSIS
12303
12304 See L<CaCORE::ApplicationService>.
12305
12306 =head2 DESCRIPTION
12307
12308
12309
12310 =head2 ATTRIBUTES of PhysicalLocation
12311
12312 The following are all the attributes of the PhysicalLocation object and their data types:
12313
12314 =over 4
12315
12316 =item chromosomalEndPosition
12317  
12318 data type: C<long>
12319  
12320 =item chromosomalStartPosition
12321  
12322 data type: C<long>
12323  
12324
12325 =back
12326
12327 Note: Although you can also use the corresponding setter methods to set the
12328 attribute values, it is not recommended to do so unless you absolutely have
12329 to change the object's attributes.
12330
12331 =head2 ASSOCIATIONS of PhysicalLocation
12332
12333 The following are all the objects that are associated with the PhysicalLocation:
12334
12335 =over 4
12336
12337 =item Instance of L</Cytoband>:
12338  
12339 One to many assoication, use C<getCytobandCollection> to get a collection of associated Cytoband.
12340  
12341
12342 =back
12343
12344 =cut
12345
12346 # Below is module documentation for PopulationFrequency
12347
12348 =pod
12349
12350 =head1 PopulationFrequency
12351
12352 CaCORE::CaBIO::PopulationFrequency - Perl extension for PopulationFrequency.
12353
12354 =head2 ABSTRACT
12355
12356 The CaCORE::CaBIO::PopulationFrequency is a Perl object representation of the
12357 CaCORE PopulationFrequency object.
12358
12359
12360 =head2 SYNOPSIS
12361
12362 See L<CaCORE::ApplicationService>.
12363
12364 =head2 DESCRIPTION
12365
12366
12367
12368 =head2 ATTRIBUTES of PopulationFrequency
12369
12370 The following are all the attributes of the PopulationFrequency object and their data types:
12371
12372 =over 4
12373
12374 =item bigid
12375  
12376 data type: C<string>
12377  
12378 =item ethnicity
12379  
12380 data type: C<string>
12381  
12382 =item id
12383  
12384 data type: C<long>
12385  
12386 =item majorAllele
12387  
12388 data type: C<string>
12389  
12390 =item majorFrequency
12391  
12392 data type: C<double>
12393  
12394 =item minorAllele
12395  
12396 data type: C<string>
12397  
12398 =item minorFrequency
12399  
12400 data type: C<double>
12401  
12402 =item type
12403  
12404 data type: C<string>
12405  
12406
12407 =back
12408
12409 Note: Although you can also use the corresponding setter methods to set the
12410 attribute values, it is not recommended to do so unless you absolutely have
12411 to change the object's attributes.
12412
12413 =head2 ASSOCIATIONS of PopulationFrequency
12414
12415 The following are all the objects that are associated with the PopulationFrequency:
12416
12417 =over 4
12418
12419 =item Collection of L</SNP>:
12420  
12421 Many to one assoication, use C<getSNP> to get the associated SNP.
12422  
12423
12424 =back
12425
12426 =cut
12427
12428 # Below is module documentation for Protein
12429
12430 =pod
12431
12432 =head1 Protein
12433
12434 CaCORE::CaBIO::Protein - Perl extension for Protein.
12435
12436 =head2 ABSTRACT
12437
12438 The CaCORE::CaBIO::Protein is a Perl object representation of the
12439 CaCORE Protein object.
12440
12441
12442 =head2 SYNOPSIS
12443
12444 See L<CaCORE::ApplicationService>.
12445
12446 =head2 DESCRIPTION
12447
12448
12449
12450 =head2 ATTRIBUTES of Protein
12451
12452 The following are all the attributes of the Protein object and their data types:
12453
12454 =over 4
12455
12456 =item bigid
12457  
12458 data type: C<string>
12459  
12460 =item copyrightStatement
12461  
12462 data type: C<string>
12463  
12464 =item id
12465  
12466 data type: C<long>
12467  
12468 =item name
12469  
12470 data type: C<string>
12471  
12472 =item primaryAccession
12473  
12474 data type: C<string>
12475  
12476 =item uniProtCode
12477  
12478 data type: C<string>
12479  
12480
12481 =back
12482
12483 Note: Although you can also use the corresponding setter methods to set the
12484 attribute values, it is not recommended to do so unless you absolutely have
12485 to change the object's attributes.
12486
12487 =head2 ASSOCIATIONS of Protein
12488
12489 The following are all the objects that are associated with the Protein:
12490
12491 =over 4
12492
12493 =item Instance of L</Gene>:
12494  
12495 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
12496  
12497 =item Instance of L</Keywords>:
12498  
12499 One to many assoication, use C<getKeywordsCollection> to get a collection of associated Keywords.
12500  
12501 =item Instance of L</ProteinAlias>:
12502  
12503 One to many assoication, use C<getProteinAliasCollection> to get a collection of associated ProteinAlias.
12504  
12505 =item Collection of L</ProteinSequence>:
12506  
12507 Many to one assoication, use C<getProteinSequence> to get the associated ProteinSequence.
12508  
12509 =item Instance of L</SecondaryAccession>:
12510  
12511 One to many assoication, use C<getSecondaryAccessionCollection> to get a collection of associated SecondaryAccession.
12512  
12513 =item Instance of L</Taxon>:
12514  
12515 One to many assoication, use C<getTaxonCollection> to get a collection of associated Taxon.
12516  
12517
12518 =back
12519
12520 =cut
12521
12522 # Below is module documentation for ProteinAlias
12523
12524 =pod
12525
12526 =head1 ProteinAlias
12527
12528 CaCORE::CaBIO::ProteinAlias - Perl extension for ProteinAlias.
12529
12530 =head2 ABSTRACT
12531
12532 The CaCORE::CaBIO::ProteinAlias is a Perl object representation of the
12533 CaCORE ProteinAlias object.
12534
12535
12536 =head2 SYNOPSIS
12537
12538 See L<CaCORE::ApplicationService>.
12539
12540 =head2 DESCRIPTION
12541
12542
12543
12544 =head2 ATTRIBUTES of ProteinAlias
12545
12546 The following are all the attributes of the ProteinAlias object and their data types:
12547
12548 =over 4
12549
12550 =item bigid
12551  
12552 data type: C<string>
12553  
12554 =item id
12555  
12556 data type: C<long>
12557  
12558 =item name
12559  
12560 data type: C<string>
12561  
12562
12563 =back
12564
12565 Note: Although you can also use the corresponding setter methods to set the
12566 attribute values, it is not recommended to do so unless you absolutely have
12567 to change the object's attributes.
12568
12569 =head2 ASSOCIATIONS of ProteinAlias
12570
12571 The following are all the objects that are associated with the ProteinAlias:
12572
12573 =over 4
12574
12575 =item Instance of L</Protein>:
12576  
12577 One to many assoication, use C<getProteinCollection> to get a collection of associated Protein.
12578  
12579
12580 =back
12581
12582 =cut
12583
12584 # Below is module documentation for ProteinSequence
12585
12586 =pod
12587
12588 =head1 ProteinSequence
12589
12590 CaCORE::CaBIO::ProteinSequence - Perl extension for ProteinSequence.
12591
12592 =head2 ABSTRACT
12593
12594 The CaCORE::CaBIO::ProteinSequence is a Perl object representation of the
12595 CaCORE ProteinSequence object.
12596
12597
12598 =head2 SYNOPSIS
12599
12600 See L<CaCORE::ApplicationService>.
12601
12602 =head2 DESCRIPTION
12603
12604
12605
12606 =head2 ATTRIBUTES of ProteinSequence
12607
12608 The following are all the attributes of the ProteinSequence object and their data types:
12609
12610 =over 4
12611
12612 =item bigid
12613  
12614 data type: C<string>
12615  
12616 =item checkSum
12617  
12618 data type: C<string>
12619  
12620 =item id
12621  
12622 data type: C<long>
12623  
12624 =item length
12625  
12626 data type: C<long>
12627  
12628 =item molecularWeightInDaltons
12629  
12630 data type: C<double>
12631  
12632 =item value
12633  
12634 data type: C<string>
12635  
12636
12637 =back
12638
12639 Note: Although you can also use the corresponding setter methods to set the
12640 attribute values, it is not recommended to do so unless you absolutely have
12641 to change the object's attributes.
12642
12643 =head2 ASSOCIATIONS of ProteinSequence
12644
12645 The following are all the objects that are associated with the ProteinSequence:
12646
12647 =over 4
12648
12649 =item Collection of L</Protein>:
12650  
12651 Many to one assoication, use C<getProtein> to get the associated Protein.
12652  
12653
12654 =back
12655
12656 =cut
12657
12658 # Below is module documentation for Protocol
12659
12660 =pod
12661
12662 =head1 Protocol
12663
12664 CaCORE::CaBIO::Protocol - Perl extension for Protocol.
12665
12666 =head2 ABSTRACT
12667
12668 The CaCORE::CaBIO::Protocol is a Perl object representation of the
12669 CaCORE Protocol object.
12670
12671
12672 =head2 SYNOPSIS
12673
12674 See L<CaCORE::ApplicationService>.
12675
12676 =head2 DESCRIPTION
12677
12678
12679
12680 =head2 ATTRIBUTES of Protocol
12681
12682 The following are all the attributes of the Protocol object and their data types:
12683
12684 =over 4
12685
12686 =item bigid
12687  
12688 data type: C<string>
12689  
12690 =item description
12691  
12692 data type: C<string>
12693  
12694 =item id
12695  
12696 data type: C<long>
12697  
12698 =item name
12699  
12700 data type: C<string>
12701  
12702 =item type
12703  
12704 data type: C<string>
12705  
12706
12707 =back
12708
12709 Note: Although you can also use the corresponding setter methods to set the
12710 attribute values, it is not recommended to do so unless you absolutely have
12711 to change the object's attributes.
12712
12713 =head2 ASSOCIATIONS of Protocol
12714
12715 The following are all the objects that are associated with the Protocol:
12716
12717 =over 4
12718
12719 =item Instance of L</Library>:
12720  
12721 One to many assoication, use C<getLibraryCollection> to get a collection of associated Library.
12722  
12723 =item Instance of L</Tissue>:
12724  
12725 One to many assoication, use C<getTissueCollection> to get a collection of associated Tissue.
12726  
12727
12728 =back
12729
12730 =cut
12731
12732 # Below is module documentation for ProtocolAssociation
12733
12734 =pod
12735
12736 =head1 ProtocolAssociation
12737
12738 CaCORE::CaBIO::ProtocolAssociation - Perl extension for ProtocolAssociation.
12739
12740 =head2 ABSTRACT
12741
12742 The CaCORE::CaBIO::ProtocolAssociation is a Perl object representation of the
12743 CaCORE ProtocolAssociation object.
12744
12745
12746 =head2 SYNOPSIS
12747
12748 See L<CaCORE::ApplicationService>.
12749
12750 =head2 DESCRIPTION
12751
12752
12753
12754 =head2 ATTRIBUTES of ProtocolAssociation
12755
12756 The following are all the attributes of the ProtocolAssociation object and their data types:
12757
12758 =over 4
12759
12760 =item CTEPNAME
12761  
12762 data type: C<string>
12763  
12764 =item IMTCODE
12765  
12766 data type: C<long>
12767  
12768 =item bigid
12769  
12770 data type: C<string>
12771  
12772 =item diseaseCategory
12773  
12774 data type: C<string>
12775  
12776 =item diseaseSubCategory
12777  
12778 data type: C<string>
12779  
12780 =item id
12781  
12782 data type: C<long>
12783  
12784
12785 =back
12786
12787 Note: Although you can also use the corresponding setter methods to set the
12788 attribute values, it is not recommended to do so unless you absolutely have
12789 to change the object's attributes.
12790
12791 =head2 ASSOCIATIONS of ProtocolAssociation
12792
12793 The following are all the objects that are associated with the ProtocolAssociation:
12794
12795 =over 4
12796
12797 =item Collection of L</ClinicalTrialProtocol>:
12798  
12799 Many to one assoication, use C<getClinicalTrialProtocol> to get the associated ClinicalTrialProtocol.
12800  
12801 =item Collection of L</DiseaseOntology>:
12802  
12803 Many to one assoication, use C<getDiseaseOntology> to get the associated DiseaseOntology.
12804  
12805
12806 =back
12807
12808 =cut
12809
12810 # Below is module documentation for SNP
12811
12812 =pod
12813
12814 =head1 SNP
12815
12816 CaCORE::CaBIO::SNP - Perl extension for SNP.
12817
12818 =head2 ABSTRACT
12819
12820 The CaCORE::CaBIO::SNP is a Perl object representation of the
12821 CaCORE SNP object.
12822
12823
12824 =head2 SYNOPSIS
12825
12826 See L<CaCORE::ApplicationService>.
12827
12828 =head2 DESCRIPTION
12829
12830
12831
12832 =head2 ATTRIBUTES of SNP
12833
12834 The following are all the attributes of the SNP object and their data types:
12835
12836 =over 4
12837
12838 =item DBSNPID
12839  
12840 data type: C<string>
12841  
12842 =item alleleA
12843  
12844 data type: C<string>
12845  
12846 =item alleleB
12847  
12848 data type: C<string>
12849  
12850 =item bigid
12851  
12852 data type: C<string>
12853  
12854 =item id
12855  
12856 data type: C<long>
12857  
12858 =item validationStatus
12859  
12860 data type: C<string>
12861  
12862
12863 =back
12864
12865 Note: Although you can also use the corresponding setter methods to set the
12866 attribute values, it is not recommended to do so unless you absolutely have
12867 to change the object's attributes.
12868
12869 =head2 ASSOCIATIONS of SNP
12870
12871 The following are all the objects that are associated with the SNP:
12872
12873 =over 4
12874
12875 =item Instance of L</DatabaseCrossReference>:
12876  
12877 One to many assoication, use C<getDatabaseCrossReferenceCollection> to get a collection of associated DatabaseCrossReference.
12878  
12879 =item Instance of L</GeneRelativeLocation>:
12880  
12881 One to many assoication, use C<getGeneRelativeLocationCollection> to get a collection of associated GeneRelativeLocation.
12882  
12883 =item Instance of L</Location>:
12884  
12885 One to many assoication, use C<getLocationCollection> to get a collection of associated Location.
12886  
12887 =item Instance of L</PopulationFrequency>:
12888  
12889 One to many assoication, use C<getPopulationFrequencyCollection> to get a collection of associated PopulationFrequency.
12890  
12891
12892 =back
12893
12894 =cut
12895
12896 # Below is module documentation for Target
12897
12898 =pod
12899
12900 =head1 Target
12901
12902 CaCORE::CaBIO::Target - Perl extension for Target.
12903
12904 =head2 ABSTRACT
12905
12906 The CaCORE::CaBIO::Target is a Perl object representation of the
12907 CaCORE Target object.
12908
12909
12910 =head2 SYNOPSIS
12911
12912 See L<CaCORE::ApplicationService>.
12913
12914 =head2 DESCRIPTION
12915
12916
12917
12918 =head2 ATTRIBUTES of Target
12919
12920 The following are all the attributes of the Target object and their data types:
12921
12922 =over 4
12923
12924 =item bigid
12925  
12926 data type: C<string>
12927  
12928 =item id
12929  
12930 data type: C<long>
12931  
12932 =item name
12933  
12934 data type: C<string>
12935  
12936 =item type
12937  
12938 data type: C<string>
12939  
12940
12941 =back
12942
12943 Note: Although you can also use the corresponding setter methods to set the
12944 attribute values, it is not recommended to do so unless you absolutely have
12945 to change the object's attributes.
12946
12947 =head2 ASSOCIATIONS of Target
12948
12949 The following are all the objects that are associated with the Target:
12950
12951 =over 4
12952
12953 =item Instance of L</Agent>:
12954  
12955 One to many assoication, use C<getAgentCollection> to get a collection of associated Agent.
12956  
12957 =item Instance of L</Anomaly>:
12958  
12959 One to many assoication, use C<getAnomalyCollection> to get a collection of associated Anomaly.
12960  
12961 =item Instance of L</Gene>:
12962  
12963 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
12964  
12965
12966 =back
12967
12968 =cut
12969
12970 # Below is module documentation for Taxon
12971
12972 =pod
12973
12974 =head1 Taxon
12975
12976 CaCORE::CaBIO::Taxon - Perl extension for Taxon.
12977
12978 =head2 ABSTRACT
12979
12980 The CaCORE::CaBIO::Taxon is a Perl object representation of the
12981 CaCORE Taxon object.
12982
12983
12984 =head2 SYNOPSIS
12985
12986 See L<CaCORE::ApplicationService>.
12987
12988 =head2 DESCRIPTION
12989
12990
12991
12992 =head2 ATTRIBUTES of Taxon
12993
12994 The following are all the attributes of the Taxon object and their data types:
12995
12996 =over 4
12997
12998 =item abbreviation
12999  
13000 data type: C<string>
13001  
13002 =item bigid
13003  
13004 data type: C<string>
13005  
13006 =item commonName
13007  
13008 data type: C<string>
13009  
13010 =item ethnicityStrain
13011  
13012 data type: C<string>
13013  
13014 =item id
13015  
13016 data type: C<long>
13017  
13018 =item scientificName
13019  
13020 data type: C<string>
13021  
13022
13023 =back
13024
13025 Note: Although you can also use the corresponding setter methods to set the
13026 attribute values, it is not recommended to do so unless you absolutely have
13027 to change the object's attributes.
13028
13029 =head2 ASSOCIATIONS of Taxon
13030
13031 The following are all the objects that are associated with the Taxon:
13032
13033 =over 4
13034
13035 =item Instance of L</Chromosome>:
13036  
13037 One to many assoication, use C<getChromosomeCollection> to get a collection of associated Chromosome.
13038  
13039 =item Instance of L</Clone>:
13040  
13041 One to many assoication, use C<getCloneCollection> to get a collection of associated Clone.
13042  
13043 =item Instance of L</Gene>:
13044  
13045 One to many assoication, use C<getGeneCollection> to get a collection of associated Gene.
13046  
13047 =item Instance of L</Pathway>:
13048  
13049 One to many assoication, use C<getPathwayCollection> to get a collection of associated Pathway.
13050  
13051 =item Instance of L</Protein>:
13052  
13053 One to many assoication, use C<getProteinCollection> to get a collection of associated Protein.
13054  
13055 =item Instance of L</Tissue>:
13056  
13057 One to many assoication, use C<getTissueCollection> to get a collection of associated Tissue.
13058  
13059
13060 =back
13061
13062 =cut
13063
13064 # Below is module documentation for Tissue
13065
13066 =pod
13067
13068 =head1 Tissue
13069
13070 CaCORE::CaBIO::Tissue - Perl extension for Tissue.
13071
13072 =head2 ABSTRACT
13073
13074 The CaCORE::CaBIO::Tissue is a Perl object representation of the
13075 CaCORE Tissue object.
13076
13077
13078 =head2 SYNOPSIS
13079
13080 See L<CaCORE::ApplicationService>.
13081
13082 =head2 DESCRIPTION
13083
13084
13085
13086 =head2 ATTRIBUTES of Tissue
13087
13088 The following are all the attributes of the Tissue object and their data types:
13089
13090 =over 4
13091
13092 =item cellLine
13093  
13094 data type: C<string>
13095  
13096 =item cellType
13097  
13098 data type: C<string>
13099  
13100 =item description
13101  
13102 data type: C<string>
13103  
13104 =item developmentalStage
13105  
13106 data type: C<string>
13107  
13108 =item histology
13109  
13110 data type: C<string>
13111  
13112 =item id
13113  
13114 data type: C<long>
13115  
13116 =item name
13117  
13118 data type: C<string>
13119  
13120 =item organ
13121  
13122 data type: C<string>
13123  
13124 =item sex
13125  
13126 data type: C<string>
13127  
13128 =item supplier
13129  
13130 data type: C<string>
13131  
13132 =item type
13133  
13134 data type: C<string>
13135  
13136
13137 =back
13138
13139 Note: Although you can also use the corresponding setter methods to set the
13140 attribute values, it is not recommended to do so unless you absolutely have
13141 to change the object's attributes.
13142
13143 =head2 ASSOCIATIONS of Tissue
13144
13145 The following are all the objects that are associated with the Tissue:
13146
13147 =over 4
13148
13149 =item Instance of L</Library>:
13150  
13151 One to many assoication, use C<getLibraryCollection> to get a collection of associated Library.
13152  
13153 =item Collection of L</Protocol>:
13154  
13155 Many to one assoication, use C<getProtocol> to get the associated Protocol.
13156  
13157 =item Collection of L</Taxon>:
13158  
13159 Many to one assoication, use C<getTaxon> to get the associated Taxon.
13160  
13161
13162 =back
13163
13164 =cut
13165
13166 # Below is module documentation for Vocabulary
13167
13168 =pod
13169
13170 =head1 Vocabulary
13171
13172 CaCORE::CaBIO::Vocabulary - Perl extension for Vocabulary.
13173
13174 =head2 ABSTRACT
13175
13176 The CaCORE::CaBIO::Vocabulary is a Perl object representation of the
13177 CaCORE Vocabulary object.
13178
13179
13180 =head2 SYNOPSIS
13181
13182 See L<CaCORE::ApplicationService>.
13183
13184 =head2 DESCRIPTION
13185
13186
13187
13188 =head2 ATTRIBUTES of Vocabulary
13189
13190 The following are all the attributes of the Vocabulary object and their data types:
13191
13192 =over 4
13193
13194 =item bigid
13195  
13196 data type: C<string>
13197  
13198 =item coreTerm
13199  
13200 data type: C<string>
13201  
13202 =item generalTerm
13203  
13204 data type: C<string>
13205  
13206 =item id
13207  
13208 data type: C<long>
13209  
13210
13211 =back
13212
13213 Note: Although you can also use the corresponding setter methods to set the
13214 attribute values, it is not recommended to do so unless you absolutely have
13215 to change the object's attributes.
13216
13217 =head2 ASSOCIATIONS of Vocabulary
13218
13219 The following are all the objects that are associated with the Vocabulary:
13220
13221 =over 4
13222
13223 =item Instance of L</Anomaly>:
13224  
13225 One to many assoication, use C<getAnomalyCollection> to get a collection of associated Anomaly.
13226  
13227
13228 =back
13229
13230 =cut
13231
13232
13233 =pod
13234
13235 =head1 SUPPORT
13236
13237 Please do not contact author directly. Send email to ncicb@pop.nci.nih.gov to request
13238 support or report a bug.
13239
13240 =head1 AUTHOR
13241
13242 Shan Jiang <jiangs@mail.nih.gov>
13243
13244 =head1 COPYRIGHT AND LICENSE
13245
13246 The CaCORE Software License, Version 1.0
13247
13248 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:
13249
13250 =over 1
13251
13252 =item 1
13253
13254 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.
13255
13256 =item 2
13257
13258 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.
13259
13260 =item 3
13261
13262 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.
13263
13264 =item 4
13265
13266 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.
13267
13268 =item 5
13269
13270 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.
13271
13272 =back
13273
13274 =cut
13275
13276