| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | class IGSN_GFZ_Descriptive_Metadata_Representation extends IGSN_Metadata_Base_Representation { |
| 9: | |
| 10: | const IGSN = 'igsn'; |
| 11: | const USERCODE = 'user_code'; |
| 12: | const COLLECTORDETAIL = 'collector_detail'; |
| 13: | const METHODS = 'methods'; |
| 14: | const METHOD = 'method'; |
| 15: | const SCHEMEURI = 'schemeURI'; |
| 16: | const METHODSCHEME = 'methodScheme'; |
| 17: | const EXTERNAL_URLS = 'external_urls'; |
| 18: | const EXTERNAL_URL = 'external_url'; |
| 19: | const SAMPLE_OTHER_NAMES = 'sample_other_names'; |
| 20: | const SAMPLE_OTHER_NAME = 'sample_other_name'; |
| 21: | const ORIGINAL_ARCHIVE_CONTACT = 'original_archive_contact'; |
| 22: | const PURPOSE = 'purpose'; |
| 23: | const VERTICAL_DATUM = 'vertical_datum'; |
| 24: | const NORTHING = 'northing'; |
| 25: | const EASTING = 'easting'; |
| 26: | const ZONE = 'zone'; |
| 27: | const NAVIGATION_TYPE = 'navigation_type'; |
| 28: | const ORIGINAL_ARCHIVE = 'original_archive'; |
| 29: | const LAUNCH_PLATFORM_NAME = 'launch_platform_name'; |
| 30: | const LAUNCH_ID = 'launch_id'; |
| 31: | const LAUNCH_TYPE_NAME = 'launch_type_name'; |
| 32: | const RELATEDMETADATASCHEME = 'relatedMetadataScheme'; |
| 33: | const SAMPLE_TYPE = 'sample_type'; |
| 34: | const PARENT_IGSN = 'parent_igsn'; |
| 35: | const IS_PRIVATE = 'is_private'; |
| 36: | const SCHEMETYPE = 'schemeType'; |
| 37: | const URL = 'URL'; |
| 38: | const URLTYPE = 'url_type'; |
| 39: | const DESCRIPTIONS = 'descriptions'; |
| 40: | const DESCRIPTIONSCHEME = 'schemeURI'; |
| 41: | |
| 42: | public Element $usercode; |
| 43: | public Element $sample_type; |
| 44: | public Element $name; |
| 45: | public Element $igsn; |
| 46: | public Element $parent_igsn; |
| 47: | public Element $is_private; |
| 48: | public Element $sample_request; |
| 49: | public Element $sampled_by; |
| 50: | public Element $sample_purpose; |
| 51: | public Element $publish_date; |
| 52: | public Element $latitude; |
| 53: | public Element $longitude; |
| 54: | public Element $latitude_end; |
| 55: | public Element $longitude_end; |
| 56: | public Element $coordinate_system; |
| 57: | public Element $elevation; |
| 58: | public Element $elevation_end; |
| 59: | public Element $elevation_unit; |
| 60: | public Element $elevation_end_unit; |
| 61: | public Element $sampling_date; |
| 62: | public Element $primary_location_type; |
| 63: | public Element $primary_location_name; |
| 64: | public Element $location_description; |
| 65: | public Element $locality; |
| 66: | public Element $locality_description; |
| 67: | public Element $country; |
| 68: | public Element $province; |
| 69: | public Element $county; |
| 70: | public Element $city; |
| 71: | public Element $material; |
| 72: | public Element $classification; |
| 73: | public Element $classification_comment; |
| 74: | public Element $field_name; |
| 75: | public Element $depth_min; |
| 76: | public Element $depth_max; |
| 77: | public Element $depth_scale; |
| 78: | public Element $size; |
| 79: | public Element $size_unit; |
| 80: | public Element $age_min; |
| 81: | public Element $age_max; |
| 82: | public Element $age_unit; |
| 83: | public Element $geological_age; |
| 84: | public Element $geological_unit; |
| 85: | |
| 86: | public Element $descriptions; |
| 87: | public Element $sample_image; |
| 88: | public Element $sample_image_path; |
| 89: | public Element $methods; |
| 90: | public Element $collection_method; |
| 91: | public Element $collection_method_descr; |
| 92: | public Element $length; |
| 93: | public Element $length_unit; |
| 94: | public Element $sample_comment; |
| 95: | public Element $cruise_field_prgrm; |
| 96: | public Element $platform_type; |
| 97: | public Element $platform_name; |
| 98: | public Element $platform_descr; |
| 99: | |
| 100: | public Element $operators; |
| 101: | public Element $funding_agency; |
| 102: | public Element $collector; |
| 103: | public Element $collector_detail; |
| 104: | public Element $collection_start_date; |
| 105: | public Element $collection_end_date; |
| 106: | public Element $collection_date_precision; |
| 107: | public Element $current_archive; |
| 108: | public Element $current_archive_contact; |
| 109: | public Element $original_archive; |
| 110: | public Element $original_archive_contact; |
| 111: | public Element $purpose; |
| 112: | public Element $vertical_datum; |
| 113: | public Element $northing; |
| 114: | public Element $easting; |
| 115: | public Element $zone; |
| 116: | public Element $navigation_type; |
| 117: | public Element $launch_platform_name; |
| 118: | public Element $launch_id; |
| 119: | public Element $launch_type_name; |
| 120: | public Element $sample_other_names; |
| 121: | public Element $relatedIdentifiers; |
| 122: | public Element $external_urls; |
| 123: | |
| 124: | public function __construct() { |
| 125: | |
| 126: | } |
| 127: | |
| 128: | public function setUsercode($usercode): void { |
| 129: | $this->usercode = $this->setbasicElement($usercode, self:: USERCODE); |
| 130: | } |
| 131: | |
| 132: | public function setSample_type($sample_type): void { |
| 133: | $this->sample_type = $this->setbasicElement($sample_type, self::SAMPLE_TYPE); |
| 134: | } |
| 135: | |
| 136: | public function setName($name): void { |
| 137: | $this->name = $this->setbasicElement($name, self::TNAME); |
| 138: | } |
| 139: | |
| 140: | public function setIgsn($igsn): void { |
| 141: | $this->igsn = $this->setbasicElement($igsn, self::IGSN); |
| 142: | } |
| 143: | |
| 144: | public function setParent_igsn($parent_igsn): void { |
| 145: | $this->parent_igsn = $this->setbasicElement($parent_igsn, self::PARENT_IGSN); |
| 146: | } |
| 147: | |
| 148: | public function setIs_private($is_private): void { |
| 149: | $this->is_private = $this->setbasicElement($is_private, self::IS_PRIVATE); |
| 150: | } |
| 151: | |
| 152: | public function setSample_request($sample_request): void { |
| 153: | $this->sample_request = $this->setbasicElement($sample_request, 'sample_request'); |
| 154: | } |
| 155: | |
| 156: | public function setSampled_by($sampled_by): void { |
| 157: | $this->sampled_by = $this->setbasicElement($sampled_by, 'sampled_by'); |
| 158: | } |
| 159: | |
| 160: | public function setSample_purpose($sample_purpose): void { |
| 161: | $this->sample_purpose = $this->setbasicElement($sample_purpose, 'sample_purpose'); |
| 162: | } |
| 163: | |
| 164: | public function setPublish_date($publish_date): void { |
| 165: | $this->publish_date = $this->setbasicElement($publish_date, 'publish_date'); |
| 166: | } |
| 167: | |
| 168: | public function setLatitude($latitude): void { |
| 169: | $this->latitude = $this->setbasicElement($latitude, 'latitude'); |
| 170: | } |
| 171: | |
| 172: | public function setLongitude($longitude): void { |
| 173: | $this->longitude = $this->setbasicElement($longitude, 'longitude'); |
| 174: | } |
| 175: | |
| 176: | public function setLatitude_end($latitude_end): void { |
| 177: | $this->latitude_end = $this->setbasicElement($latitude_end, 'latitude_end'); |
| 178: | } |
| 179: | |
| 180: | public function setLongitude_end($longitude_end): void { |
| 181: | $this->longitude_end = $this->setbasicElement($longitude_end, 'longitude_end'); |
| 182: | } |
| 183: | |
| 184: | public function setCoordinate_system($coordinate_system): void { |
| 185: | $this->coordinate_system = $this->setbasicElement($coordinate_system, 'coordinate_system'); |
| 186: | } |
| 187: | |
| 188: | public function setElevation($elevation): void { |
| 189: | $this->elevation = $this->setbasicElement($elevation, 'elevation'); |
| 190: | } |
| 191: | |
| 192: | public function setElevation_end($elevation_end): void { |
| 193: | $this->elevation_end = $this->setbasicElement($elevation_end, 'elevation_end'); |
| 194: | } |
| 195: | |
| 196: | public function setElevation_unit($elevation_unit): void { |
| 197: | $this->elevation_unit = $this->setbasicElement($elevation_unit, 'elevation_unit'); |
| 198: | } |
| 199: | |
| 200: | public function setElevation_end_unit($elevation_end_unit): void { |
| 201: | $this->elevation_end_unit = $this->setbasicElement($elevation_end_unit, 'elevation_end_unit'); |
| 202: | } |
| 203: | |
| 204: | public function setSampling_date($sampling_date): void { |
| 205: | $this->sampling_date = $this->setbasicElement($sampling_date, 'sampling_date'); |
| 206: | } |
| 207: | |
| 208: | public function setPrimary_location_type($primary_location_type): void { |
| 209: | $this->primary_location_type = $this->setbasicElement($primary_location_type, 'primary_location_type'); |
| 210: | } |
| 211: | |
| 212: | public function setPrimary_location_name($primary_location_name): void { |
| 213: | $this->primary_location_name = $this->setbasicElement($primary_location_name, 'primary_location_name'); |
| 214: | } |
| 215: | |
| 216: | public function setLocation_description($location_description): void { |
| 217: | $this->location_description = $this->setbasicElement($location_description, 'location_description'); |
| 218: | } |
| 219: | |
| 220: | public function setLocality($locality): void { |
| 221: | $this->locality = $this->setbasicElement($locality, 'locality'); |
| 222: | } |
| 223: | |
| 224: | public function setLocality_description($locality_description): void { |
| 225: | $this->locality_description = $this->setbasicElement($locality_description, 'locality_description'); |
| 226: | } |
| 227: | |
| 228: | public function setCountry($country): void { |
| 229: | $this->country = $this->setbasicElement($country, 'country'); |
| 230: | } |
| 231: | |
| 232: | public function setProvince($province): void { |
| 233: | $this->province = $this->setbasicElement($province, 'province'); |
| 234: | } |
| 235: | |
| 236: | public function setCounty($county): void { |
| 237: | $this->county = $this->setbasicElement($county, 'county'); |
| 238: | } |
| 239: | |
| 240: | public function setCity($city): void { |
| 241: | $this->city = $this->setbasicElement($city, 'city'); |
| 242: | } |
| 243: | |
| 244: | public function setMaterial($material): void { |
| 245: | |
| 246: | $materialb = rtrim($material, "/"); |
| 247: | $pieces = explode('/', $materialb); |
| 248: | $last_word = array_pop($pieces); |
| 249: | |
| 250: | $materialenum = ucfirst($last_word); |
| 251: | |
| 252: | if (strcmp($last_word, 'liquidAqueous') === 0) { |
| 253: | |
| 254: | $materialenum = "Liquid>aqueous"; |
| 255: | } |
| 256: | if (strcmp($last_word, 'liquidOrganic') === 0) { |
| 257: | $materialenum = 'Liquid>organic'; |
| 258: | } |
| 259: | if (strcmp($last_word, 'notApplicable') === 0) { |
| 260: | $materialenum = 'Not applicable'; |
| 261: | } |
| 262: | |
| 263: | |
| 264: | $this->material = $this->setbasicElement($materialenum, 'material'); |
| 265: | } |
| 266: | |
| 267: | public function setClassification($classification): void { |
| 268: | |
| 269: | if (filter_var($classification, FILTER_VALIDATE_URL)) { |
| 270: | $$classificationb = rtrim($classification, "/"); |
| 271: | $pieces = explode('/', $$classificationb); |
| 272: | $last_word = array_pop($pieces); |
| 273: | |
| 274: | $classificationenum = ucfirst($last_word); |
| 275: | |
| 276: | $this->setClassification_comment($classification); |
| 277: | } else { |
| 278: | $classificationenum = $classification; |
| 279: | } |
| 280: | $this->classification = $this->setbasicElement($classificationenum, 'classification'); |
| 281: | } |
| 282: | |
| 283: | public function setClassification_comment($classification_comment): void { |
| 284: | $this->classification_comment = $this->setbasicElement($classification_comment, 'classification_comment'); |
| 285: | } |
| 286: | |
| 287: | public function setField_name($field_name): void { |
| 288: | $this->field_name = $this->setbasicElement($field_name, 'field_name'); |
| 289: | } |
| 290: | |
| 291: | public function setDepth_min($depth_min): void { |
| 292: | if (strcmp($depth_min, '') === 0) { |
| 293: | |
| 294: | } else { |
| 295: | $this->depth_min = $this->setbasicElement($depth_min, 'depth_min'); |
| 296: | } |
| 297: | } |
| 298: | |
| 299: | public function setDepth_max($depth_max): void { |
| 300: | if (strcmp($depth_max, '') === 0) { |
| 301: | |
| 302: | } else { |
| 303: | $this->depth_max = $this->setbasicElement($depth_max, 'depth_max'); |
| 304: | } |
| 305: | } |
| 306: | |
| 307: | public function setDepth_scale($depth_scale): void { |
| 308: | $this->depth_scale = $this->setbasicElement($depth_scale, 'depth_scale'); |
| 309: | } |
| 310: | |
| 311: | public function setSize($size): void { |
| 312: | $this->size = $this->setbasicElement($size, 'size'); |
| 313: | } |
| 314: | |
| 315: | public function setSize_unit($size_unit): void { |
| 316: | $this->size_unit = $this->setbasicElement($size_unit, 'size_unit'); |
| 317: | } |
| 318: | |
| 319: | public function setAge_min($age_min): void { |
| 320: | $this->age_min = $this->setbasicElement($age_min, 'age_min'); |
| 321: | } |
| 322: | |
| 323: | public function setAge_max($age_max): void { |
| 324: | $this->age_max = $this->setbasicElement($age_max, 'age_max'); |
| 325: | } |
| 326: | |
| 327: | public function setAge_unit($age_unit): void { |
| 328: | $this->age_unit = $this->setbasicElement($age_unit, 'age_unit'); |
| 329: | } |
| 330: | |
| 331: | public function setGeological_age($geological_age): void { |
| 332: | $this->geological_age = $this->setbasicElement($geological_age, 'geological_age'); |
| 333: | } |
| 334: | |
| 335: | public function setGeological_unit($geological_unit): void { |
| 336: | $this->geological_unit = $this->setbasicElement($geological_unit, 'geological_unit'); |
| 337: | } |
| 338: | |
| 339: | public function setDescriptions($description): void { |
| 340: | |
| 341: | if (isset($this->descriptions)) { |
| 342: | $this->descriptions->insertChild($description); |
| 343: | } else { |
| 344: | $this->descriptions = $this->setParentElement(self::DESCRIPTIONS); |
| 345: | $this->descriptions->insertChild($description); |
| 346: | } |
| 347: | } |
| 348: | |
| 349: | public function setDescription($description): void { |
| 350: | if (strcmp($description, '') === 0) { |
| 351: | $this->descriptions = $this->setParentElement(self::DESCRIPTIONS); |
| 352: | } else { |
| 353: | $descriptionele = $this->setbasicElement($description, self::DESCRIPTION); |
| 354: | $this->setDescriptions($descriptionele); |
| 355: | } |
| 356: | } |
| 357: | |
| 358: | public function setDescription_Scheme($description, $schema): void { |
| 359: | if (strcmp($description, '') === 0) { |
| 360: | $this->descriptions = $this->setParentElement(self::DESCRIPTIONS); |
| 361: | } else { |
| 362: | $descriptionele = $this->setbasicElement($description, self::DESCRIPTION); |
| 363: | $schemaele = $this->setAttribute(self::DESCRIPTIONSCHEME, $schema); |
| 364: | $descriptionele->insertAttributes($schemaele); |
| 365: | $this->setDescriptions($descriptionele); |
| 366: | } |
| 367: | } |
| 368: | |
| 369: | public function setDescription_SchemeURI($description, $schemaURI): void { |
| 370: | if (strcmp($description, '') === 0) { |
| 371: | $this->descriptions = $this->setParentElement(self::DESCRIPTIONS); |
| 372: | } else { |
| 373: | $descriptionele = $this->setbasicElement($description, self::DESCRIPTION); |
| 374: | $schemaURIele = $this->setAttribute(self::SCHEMEURI, $schemaURI); |
| 375: | $descriptionele->insertAttributes($schemaURIele); |
| 376: | $this->setDescriptions($descriptionele); |
| 377: | } |
| 378: | } |
| 379: | |
| 380: | public function setDescription_Scheme_SchemeURI($description,$schema, $schemaURI): void { |
| 381: | if (strcmp($description, '') === 0) { |
| 382: | $this->descriptions = $this->setParentElement(self::DESCRIPTIONS); |
| 383: | } else { |
| 384: | $descriptionele = $this->setbasicElement($description, self::DESCRIPTION); |
| 385: | $schemaele = $this->setAttribute(self::DESCRIPTIONSCHEME, $schema); |
| 386: | $descriptionele->insertAttributes($schemaele); |
| 387: | $schemaURIele = $this->setAttribute(self::SCHEMEURI, $schemaURI); |
| 388: | $descriptionele->insertAttributes($schemaURIele); |
| 389: | $this->setDescriptions($descriptionele); |
| 390: | } |
| 391: | } |
| 392: | |
| 393: | public function setSample_image($sample_image): void { |
| 394: | $this->sample_image = $this->setbasicElement($sample_image, 'sample_image'); |
| 395: | } |
| 396: | |
| 397: | public function setSample_image_path($sample_image_path): void { |
| 398: | $this->sample_image_path = $this->setbasicElement($sample_image_path, 'sample_image_path'); |
| 399: | } |
| 400: | |
| 401: | public function setMethods(Element $methods): void { |
| 402: | if (isset($this->methods)) { |
| 403: | $this->methods->insertChild($methods); |
| 404: | } else { |
| 405: | $this->methods = $this->setParentElement(self::METHODS); |
| 406: | $this->methods->insertChild($methods); |
| 407: | } |
| 408: | } |
| 409: | |
| 410: | public function setMethod($method): void { |
| 411: | $methodele = $this->setbasicElement($method, self::METHOD); |
| 412: | $this->setMethods($methodele); |
| 413: | } |
| 414: | |
| 415: | public function setMethod_scheme($method, $scheme): void { |
| 416: | $methodele = $this->setbasicElement($method, self::METHOD); |
| 417: | |
| 418: | $typeele = $this->setAttribute(self::METHODSCHEME, $scheme); |
| 419: | $methodele->insertAttributes($typeele); |
| 420: | |
| 421: | $this->setMethods($methodele); |
| 422: | } |
| 423: | |
| 424: | public function setMethod_scheme_schemeuri($method, $scheme, $uri): void { |
| 425: | $methodele = $this->setbasicElement($method, self::METHOD); |
| 426: | $typeele = $this->setAttribute(self::METHODSCHEME, $scheme); |
| 427: | $methodele->insertAttributes($typeele); |
| 428: | $uriele = $this->setAttribute(self::SCHEMEURI, $uri); |
| 429: | $methodele->insertAttributes($uriele); |
| 430: | $this->setMethods($methodele); |
| 431: | } |
| 432: | |
| 433: | public function setMethod_schemeuri($method, $uri): void { |
| 434: | $methodele = $this->setbasicElement($method, self::METHOD); |
| 435: | $uriele = $this->setAttribute(self::SCHEMEURI, $uri); |
| 436: | $methodele->insertAttributes($uriele); |
| 437: | $this->setMethods($methodele); |
| 438: | } |
| 439: | |
| 440: | |
| 441: | public function setCollection_method($collection_method): void { |
| 442: | $this->collection_method = $this->setbasicElement($collection_method, 'collection_method'); |
| 443: | } |
| 444: | |
| 445: | public function setCollection_method_descr($collection_method_descr): void { |
| 446: | $this->collection_method_descr = $this->setbasicElement($collection_method_descr, 'collection_method_descr'); |
| 447: | } |
| 448: | |
| 449: | public function setLength($length): void { |
| 450: | $this->length = $this->setbasicElement($length, 'length'); |
| 451: | } |
| 452: | |
| 453: | public function setLength_unit($length_unit): void { |
| 454: | $this->length_unit = $this->setbasicElement($length_unit, 'length_unit'); |
| 455: | } |
| 456: | |
| 457: | public function setSample_comment($sample_comment): void { |
| 458: | $this->sample_comment -= $this->setbasicElement($sample_comment, 'sample_comment'); |
| 459: | } |
| 460: | |
| 461: | public function setOperators(Element $operators): void { |
| 462: | if (isset($this->operators)) { |
| 463: | $this->operators->insertChild($operators); |
| 464: | } else { |
| 465: | $this->operators = $this->setParentElement('operators'); |
| 466: | $this->operators->insertChild($operators); |
| 467: | } |
| 468: | } |
| 469: | |
| 470: | public function setOperator($operator): void { |
| 471: | |
| 472: | $operatorele = $this->setbasicElement($operator, 'operator'); |
| 473: | $this->setOperators($operatorele); |
| 474: | } |
| 475: | |
| 476: | public function setCruise_field_prgrm($cruise_field_prgrm): void { |
| 477: | $this->cruise_field_prgrm = $this->setbasicElement($cruise_field_prgrm, 'cruise_field_prgrm'); |
| 478: | } |
| 479: | |
| 480: | public function setPlatform_type($platform_type) { |
| 481: | $this->platform_type = $this->setbasicElement($platform_type, 'platform_type'); |
| 482: | } |
| 483: | |
| 484: | public function setPlatform_name($platform_name) { |
| 485: | $this->platform_name = $this->setbasicElement($platform_name, 'platform_name'); |
| 486: | } |
| 487: | |
| 488: | public function setPlatform_descr($platform_descr) { |
| 489: | $this->platform_descr = $this->setbasicElement($platform_descr, 'platform_descr'); |
| 490: | } |
| 491: | |
| 492: | public function setFunding_agency($funding_agency) { |
| 493: | $this->funding_agency = $this->setbasicElement($funding_agency, 'funding_agency'); |
| 494: | } |
| 495: | |
| 496: | public function setCollector($collector) { |
| 497: | $this->collector = $this->setbasicElement($collector, self::COLLECTOR); |
| 498: | return $this; |
| 499: | } |
| 500: | |
| 501: | public function setCollector_detail($collector_detail) { |
| 502: | $this->collector_detail = $this->setbasicElement($collector_detail, self::COLLECTORDETAIL); |
| 503: | return $this; |
| 504: | } |
| 505: | |
| 506: | public function setCollection_start_date($collection_start_date) { |
| 507: | $this->collection_start_date = $this->setbasicElement($collection_start_date, 'collection_start_date'); |
| 508: | } |
| 509: | |
| 510: | public function setCollection_end_date($collection_end_date) { |
| 511: | $this->collection_end_date = $this->setbasicElement($collection_end_date, 'collection_end_date'); |
| 512: | } |
| 513: | |
| 514: | public function setCollection_date_precision($collection_date_precision) { |
| 515: | $this->collection_date_precision = $this->setbasicElement($collection_date_precision, 'collection_date_precision'); |
| 516: | } |
| 517: | |
| 518: | public function setCurrent_archive($current_archive) { |
| 519: | $this->current_archive = $this->setbasicElement($current_archive, 'current_archive'); |
| 520: | return $this; |
| 521: | } |
| 522: | |
| 523: | public function setCurrent_archive_contact($current_archive_contact) { |
| 524: | $this->current_archive_contact = $this->setbasicElement($current_archive_contact, 'current_archive_contact'); |
| 525: | return $this; |
| 526: | } |
| 527: | |
| 528: | public function setOriginal_archive($original_archive) { |
| 529: | $this->original_archive = $this->setbasicElement($original_archive, self::ORIGINAL_ARCHIVE); |
| 530: | return $this; |
| 531: | } |
| 532: | |
| 533: | public function setOriginal_archive_contact($original_archive_contact) { |
| 534: | $this->original_archive_contact = $this->setbasicElement($original_archive_contact, self::ORIGINAL_ARCHIVE_CONTACT); |
| 535: | return $this; |
| 536: | } |
| 537: | |
| 538: | public function setPurpose($purpose) { |
| 539: | $this->purpose = $this->setbasicElement($purpose, self::PURPOSE); |
| 540: | return $this; |
| 541: | } |
| 542: | |
| 543: | public function setVertical_datum($vertical_datum) { |
| 544: | $this->vertical_datum = $this->setbasicElement($vertical_datum, self::VERTICAL_DATUM); |
| 545: | return $this; |
| 546: | } |
| 547: | |
| 548: | public function setNorthing($northing) { |
| 549: | $this->northing = $this->setbasicElement($northing, self::NORTHING); |
| 550: | return $this; |
| 551: | } |
| 552: | |
| 553: | public function setEasting($easting) { |
| 554: | $this->easting = $this->setbasicElement($easting, self::EASTING); |
| 555: | return $this; |
| 556: | } |
| 557: | |
| 558: | public function setZone($zone) { |
| 559: | $this->zone = $this->setbasicElement($zone, self::ZONE); |
| 560: | return $this; |
| 561: | } |
| 562: | |
| 563: | public function setNavigation_type($navigation_type) { |
| 564: | $this->navigation_type = $this->setbasicElement($navigation_type, self::NAVIGATION_TYPE); |
| 565: | return $this; |
| 566: | } |
| 567: | |
| 568: | public function setLaunch_platform_name($launch_platform_name) { |
| 569: | $this->launch_platform_name = $this->setbasicElement($launch_platform_name, self::LAUNCH_PLATFORM_NAME); |
| 570: | return $this; |
| 571: | } |
| 572: | |
| 573: | public function setLaunch_id($launch_id) { |
| 574: | $this->launch_id = $this->setbasicElement($launch_id, self::LAUNCH_ID); |
| 575: | return $this; |
| 576: | } |
| 577: | |
| 578: | public function setLaunch_type_name($launch_type_name) { |
| 579: | $this->launch_type_name = $this->setbasicElement($launch_id, self::LAUNCH_TYPE_NAME); |
| 580: | return $this; |
| 581: | } |
| 582: | |
| 583: | public function setSample_other_names($sample_other_name) { |
| 584: | if (!isset($this->sample_other_names)) { |
| 585: | $this->sample_other_names = $this->setParentElement(self::SAMPLE_OTHER_NAMES); |
| 586: | $this->sample_other_names->insertChild($sample_other_name); |
| 587: | return; |
| 588: | } else { |
| 589: | $this->sample_other_names->insertChild($sample_other_name); |
| 590: | return; |
| 591: | } |
| 592: | } |
| 593: | |
| 594: | public function setSample_other_name($sample_other_name) { |
| 595: | $othername = $this->setbasicElement($sample_other_name, self::SAMPLE_OTHER_NAME); |
| 596: | $this->setSample_other_names($othername); |
| 597: | } |
| 598: | |
| 599: | public function setRelatedIdentifiers($relatedIdentifiers): void { |
| 600: | if (isset($this->relatedIdentifiers)) { |
| 601: | $this->relatedIdentifiers->insertChild($relatedIdentifiers); |
| 602: | } else { |
| 603: | $this->relatedIdentifiers = $this->setParentElement(self::RELATEDIDENTIFIERS); |
| 604: | $this->relatedIdentifiers->insertChild($relatedIdentifiers); |
| 605: | } |
| 606: | } |
| 607: | |
| 608: | public function setRelatedIdentifier($relatedIdentifier): void { |
| 609: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 610: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 611: | } |
| 612: | |
| 613: | public function setRelatedIdentifier_type($relatedIdentifier, $type): void { |
| 614: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 615: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 616: | $relatedIdentifierele->insertAttributes($typeele); |
| 617: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 618: | } |
| 619: | |
| 620: | public function setRelatedIdentifier_relation($relatedIdentifier, $relation): void { |
| 621: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 622: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 623: | $relatedIdentifierele->insertAttributes($relationele); |
| 624: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 625: | } |
| 626: | |
| 627: | public function setRelatedIdentifier_type_relation($relatedIdentifier, $type, $relation): void { |
| 628: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 629: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 630: | $relatedIdentifierele->insertAttributes($typeele); |
| 631: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 632: | $relatedIdentifierele->insertAttributes($relationele); |
| 633: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 634: | } |
| 635: | |
| 636: | public function setRelatedIdentifier_type_relation_scheme($relatedIdentifier, $type, $relation, $scheme): void { |
| 637: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 638: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 639: | $relatedIdentifierele->insertAttributes($typeele); |
| 640: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 641: | $relatedIdentifierele->insertAttributes($relationele); |
| 642: | $schemeele = $this->setAttribute(self::RELATEDMETADATASCHEME, $scheme); |
| 643: | $relatedIdentifierele->insertAttributes($schemeele); |
| 644: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 645: | } |
| 646: | |
| 647: | public function setRelatedIdentifier_type_relation_scheme_uri($relatedIdentifier, $type, $relation, $scheme, $uri): void { |
| 648: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 649: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 650: | $relatedIdentifierele->insertAttributes($typeele); |
| 651: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 652: | $relatedIdentifierele->insertAttributes($relationele); |
| 653: | $schemeele = $this->setAttribute(self::RELATEDMETADATASCHEME, $scheme); |
| 654: | $relatedIdentifierele->insertAttributes($schemeele); |
| 655: | |
| 656: | $schemeuriele = $this->setAttribute(self::SCHEMEURI, $uri); |
| 657: | $relatedIdentifierele->insertAttributes($schemeuriele); |
| 658: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 659: | } |
| 660: | |
| 661: | public function setRelatedIdentifier_type_relation_uri($relatedIdentifier, $type, $relation, $uri): void { |
| 662: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 663: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 664: | $relatedIdentifierele->insertAttributes($typeele); |
| 665: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 666: | $relatedIdentifierele->insertAttributes($relationele); |
| 667: | $schemeuriele = $this->setAttribute(self::SCHEMEURI, $uri); |
| 668: | $relatedIdentifierele->insertAttributes($schemeuriele); |
| 669: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 670: | } |
| 671: | |
| 672: | public function setRelatedIdentifier_type_relation_scheme_uri_schemetype($relatedIdentifier, $type, $relation, $scheme, $uri, $schemetype): void { |
| 673: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 674: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 675: | $relatedIdentifierele->insertAttributes($typeele); |
| 676: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 677: | $relatedIdentifierele->insertAttributes($relationele); |
| 678: | $schemeele = $this->setAttribute(self::RELATEDMETADATASCHEME, $scheme); |
| 679: | $relatedIdentifierele->insertAttributes($schemeele); |
| 680: | |
| 681: | $schemeuriele = $this->setAttribute(self::SCHEMEURI, $uri); |
| 682: | $relatedIdentifierele->insertAttributes($schemeuriele); |
| 683: | $schemetypeele = $this->setAttribute(self::SCHEMETYPE, $schemetypeele); |
| 684: | $relatedIdentifierele->insertAttributes($schemetypeele); |
| 685: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 686: | } |
| 687: | |
| 688: | public function setRelatedIdentifier_type_relation_uri_schemetype($relatedIdentifier, $type, $relation, $uri, $schemetype): void { |
| 689: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 690: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 691: | $relatedIdentifierele->insertAttributes($typeele); |
| 692: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 693: | $relatedIdentifierele->insertAttributes($relationele); |
| 694: | |
| 695: | $schemeuriele = $this->setAttribute(self::SCHEMEURI, $uri); |
| 696: | $relatedIdentifierele->insertAttributes($schemeuriele); |
| 697: | $schemetypeele = $this->setAttribute(self::SCHEMETYPE, $schemetypeele); |
| 698: | $relatedIdentifierele->insertAttributes($schemetypeele); |
| 699: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 700: | } |
| 701: | |
| 702: | public function setRelatedIdentifier_type_relation_scheme_schemetype($relatedIdentifier, $type, $relation, $scheme, $schemetype): void { |
| 703: | $relatedIdentifierele = $this->setbasicElement($relatedIdentifier, self::RELATEDIDENTIFIER); |
| 704: | $typeele = $this->setAttribute(self::RELATEDIDENTIFIERTYPE, $type); |
| 705: | $relatedIdentifierele->insertAttributes($typeele); |
| 706: | $relationele = $this->setAttribute(self::RELATIONSTYPE, $relation); |
| 707: | $relatedIdentifierele->insertAttributes($relationele); |
| 708: | $schemeele = $this->setAttribute(self::RELATEDMETADATASCHEME, $scheme); |
| 709: | $relatedIdentifierele->insertAttributes($schemeele); |
| 710: | $relatedIdentifierele->insertAttributes($relationele); |
| 711: | $schemetypeele = $this->setAttribute(self::SCHEMETYPE, $schemetypeele); |
| 712: | $relatedIdentifierele->insertAttributes($schemetypeele); |
| 713: | $this->setRelatedIdentifiers($relatedIdentifierele); |
| 714: | } |
| 715: | |
| 716: | public function setExternal_urls($external_urls) { |
| 717: | if (!isset($this->external_urls)) { |
| 718: | $this->external_urls = $this->setParentElement(self::EXTERNAL_URLS); |
| 719: | $this->external_urls->insertChild($external_urls); |
| 720: | } else { |
| 721: | $this->external_urls->insertChild($external_urls); |
| 722: | } |
| 723: | return; |
| 724: | } |
| 725: | |
| 726: | public function setExternal_urlParent($external_url) { |
| 727: | $exturl = $this->setbasicElement($external_url, self::EXTERNAL_URL); |
| 728: | $this->setExternal_urls($exturl); |
| 729: | } |
| 730: | |
| 731: | public function setExternal_url($external_url) { |
| 732: | $exturl = $this->setbasicElement($external_url, self::URL); |
| 733: | $this->setExternal_urls($exturl); |
| 734: | } |
| 735: | |
| 736: | public function setExternal_url_description($external_url, $description) { |
| 737: | $exturl = $this->setbasicElement($external_url, self::URL); |
| 738: | $exturl2 = $this->setbasicElement($description, self::DESCRIPTION); |
| 739: | $this->setExternal_urls($exturl); |
| 740: | $this->setExternal_urls($exturl2); |
| 741: | } |
| 742: | |
| 743: | public function setExternal_url_description_type($external_url, $description, $type) { |
| 744: | $exturl = $this->setbasicElement($external_url, self::URL); |
| 745: | $exturl2 = $this->setbasicElement($description, self::DESCRIPTION); |
| 746: | $exturl3 = $this->setbasicElement($type, self::URLTYPE); |
| 747: | $this->setExternal_urls($exturl); |
| 748: | $this->setExternal_urls($exturl2); |
| 749: | $this->setExternal_urls($exturl3); |
| 750: | } |
| 751: | |
| 752: | public function setExternal_url_type($external_url, $type) { |
| 753: | $exturl = $this->setbasicElement($external_url, self::URL); |
| 754: | $exturl3 = $this->setbasicElement($type, self::URLTYPE); |
| 755: | $this->setExternal_urls($exturl); |
| 756: | $this->setExternal_urls($exturl3); |
| 757: | } |
| 758: | |
| 759: | public function getUsercode(): Element { |
| 760: | return $this->usercode; |
| 761: | } |
| 762: | |
| 763: | public function getSample_type(): Element { |
| 764: | return $this->sample_type; |
| 765: | } |
| 766: | |
| 767: | public function getName(): Element { |
| 768: | return $this->name; |
| 769: | } |
| 770: | |
| 771: | public function getIgsn(): Element { |
| 772: | return $this->igsn; |
| 773: | } |
| 774: | |
| 775: | public function getParent_igsn(): Element { |
| 776: | return $this->parent_igsn; |
| 777: | } |
| 778: | |
| 779: | public function getIs_private(): Element { |
| 780: | return $this->is_private; |
| 781: | } |
| 782: | |
| 783: | public function getSample_request(): Element { |
| 784: | return $this->sample_request; |
| 785: | } |
| 786: | |
| 787: | public function getSampled_by(): Element { |
| 788: | return $this->sampled_by; |
| 789: | } |
| 790: | |
| 791: | public function getSample_purpose(): Element { |
| 792: | return $this->sample_purpose; |
| 793: | } |
| 794: | |
| 795: | public function getPublish_date(): Element { |
| 796: | return $this->publish_date; |
| 797: | } |
| 798: | |
| 799: | public function getLatitude(): Element { |
| 800: | return $this->latitude; |
| 801: | } |
| 802: | |
| 803: | public function getLongitude(): Element { |
| 804: | return $this->longitude; |
| 805: | } |
| 806: | |
| 807: | public function getLatitude_end(): Element { |
| 808: | return $this->latitude_end; |
| 809: | } |
| 810: | |
| 811: | public function getLongitude_end(): Element { |
| 812: | return $this->longitude_end; |
| 813: | } |
| 814: | |
| 815: | public function getCoordinate_system(): Element { |
| 816: | return $this->coordinate_system; |
| 817: | } |
| 818: | |
| 819: | public function getElevation(): Element { |
| 820: | return $this->elevation; |
| 821: | } |
| 822: | |
| 823: | public function getElevation_end(): Element { |
| 824: | return $this->elevation_end; |
| 825: | } |
| 826: | |
| 827: | public function getElevation_unit(): Element { |
| 828: | return $this->elevation_unit; |
| 829: | } |
| 830: | |
| 831: | public function getElevation_end_unit(): Element { |
| 832: | return $this->elevation_end_unit; |
| 833: | } |
| 834: | |
| 835: | public function getSampling_date(): Element { |
| 836: | return $this->sampling_date; |
| 837: | } |
| 838: | |
| 839: | public function getPrimary_location_type(): Element { |
| 840: | return $this->primary_location_type; |
| 841: | } |
| 842: | |
| 843: | public function getPrimary_location_name(): Element { |
| 844: | return $this->primary_location_name; |
| 845: | } |
| 846: | |
| 847: | public function getLocation_description(): Element { |
| 848: | return $this->location_description; |
| 849: | } |
| 850: | |
| 851: | public function getLocality(): Element { |
| 852: | return $this->locality; |
| 853: | } |
| 854: | |
| 855: | public function getLocality_description(): Element { |
| 856: | return $this->locality_description; |
| 857: | } |
| 858: | |
| 859: | public function getCountry(): Element { |
| 860: | return $this->country; |
| 861: | } |
| 862: | |
| 863: | public function getProvince(): Element { |
| 864: | return $this->province; |
| 865: | } |
| 866: | |
| 867: | public function getCounty(): Element { |
| 868: | return $this->county; |
| 869: | } |
| 870: | |
| 871: | public function getCity(): Element { |
| 872: | return $this->city; |
| 873: | } |
| 874: | |
| 875: | public function getMaterial(): Element { |
| 876: | return $this->material; |
| 877: | } |
| 878: | |
| 879: | public function getClassification(): Element { |
| 880: | return $this->classification; |
| 881: | } |
| 882: | |
| 883: | public function getClassification_comment(): Element { |
| 884: | return $this->classification_comment; |
| 885: | } |
| 886: | |
| 887: | public function getField_name(): Element { |
| 888: | return $this->field_name; |
| 889: | } |
| 890: | |
| 891: | public function getDepth_min(): Element { |
| 892: | return $this->depth_min; |
| 893: | } |
| 894: | |
| 895: | public function getDepth_max(): Element { |
| 896: | return $this->depth_max; |
| 897: | } |
| 898: | |
| 899: | public function getDepth_scale(): Element { |
| 900: | return $this->depth_scale; |
| 901: | } |
| 902: | |
| 903: | public function getSize(): Element { |
| 904: | return $this->size; |
| 905: | } |
| 906: | |
| 907: | public function getSize_unit(): Element { |
| 908: | return $this->size_unit; |
| 909: | } |
| 910: | |
| 911: | public function getAge_min(): Element { |
| 912: | return $this->age_min; |
| 913: | } |
| 914: | |
| 915: | public function getAge_max(): Element { |
| 916: | return $this->age_max; |
| 917: | } |
| 918: | |
| 919: | public function getAge_unit(): Element { |
| 920: | return $this->age_unit; |
| 921: | } |
| 922: | |
| 923: | public function getGeological_age(): Element { |
| 924: | return $this->geological_age; |
| 925: | } |
| 926: | |
| 927: | public function getGeological_unit(): Element { |
| 928: | return $this->geological_unit; |
| 929: | } |
| 930: | |
| 931: | public function getDescription(): Element { |
| 932: | return $this->description; |
| 933: | } |
| 934: | |
| 935: | public function getSample_image(): Element { |
| 936: | return $this->sample_image; |
| 937: | } |
| 938: | |
| 939: | public function getSample_image_path(): Element { |
| 940: | return $this->sample_image_path; |
| 941: | } |
| 942: | |
| 943: | public function getCollection_method(): Element { |
| 944: | return $this->collection_method; |
| 945: | } |
| 946: | |
| 947: | public function getCollection_method_descr(): Element { |
| 948: | return $this->collection_method_descr; |
| 949: | } |
| 950: | |
| 951: | public function getLength(): Element { |
| 952: | return $this->length; |
| 953: | } |
| 954: | |
| 955: | public function getLength_unit(): Element { |
| 956: | return $this->length_unit; |
| 957: | } |
| 958: | |
| 959: | public function getSample_comment(): Element { |
| 960: | return $this->sample_comment; |
| 961: | } |
| 962: | |
| 963: | public function getCruise_field_prgrm(): Element { |
| 964: | return $this->cruise_field_prgrm; |
| 965: | } |
| 966: | |
| 967: | public function getPlatform_type(): Element { |
| 968: | return $this->platform_type; |
| 969: | } |
| 970: | |
| 971: | public function getPlatform_name(): Element { |
| 972: | return $this->platform_name; |
| 973: | } |
| 974: | |
| 975: | public function getPlatform_descr(): Element { |
| 976: | return $this->platform_descr; |
| 977: | } |
| 978: | |
| 979: | public function getFunding_agency(): Element { |
| 980: | return $this->funding_agency; |
| 981: | } |
| 982: | |
| 983: | public function getCollector(): Element { |
| 984: | return $this->collector; |
| 985: | } |
| 986: | |
| 987: | public function getCollector_detail(): Element { |
| 988: | return $this->collector_detail; |
| 989: | } |
| 990: | |
| 991: | public function getCollection_start_date(): Element { |
| 992: | return $this->collection_start_date; |
| 993: | } |
| 994: | |
| 995: | public function getCollection_end_date(): Element { |
| 996: | return $this->collection_end_date; |
| 997: | } |
| 998: | |
| 999: | public function getCollection_date_precision(): Element { |
| 1000: | return $this->collection_date_precision; |
| 1001: | } |
| 1002: | |
| 1003: | public function getCurrent_archive(): Element { |
| 1004: | return $this->current_archive; |
| 1005: | } |
| 1006: | |
| 1007: | public function getCurrent_archive_contact(): Element { |
| 1008: | return $this->current_archive_contact; |
| 1009: | } |
| 1010: | |
| 1011: | public function getOriginal_archive(): Element { |
| 1012: | return $this->original_archive; |
| 1013: | } |
| 1014: | |
| 1015: | public function getOriginal_archive_contact(): Element { |
| 1016: | return $this->original_archive_contact; |
| 1017: | } |
| 1018: | |
| 1019: | public function getPurpose(): Element { |
| 1020: | return $this->purpose; |
| 1021: | } |
| 1022: | |
| 1023: | public function getVertical_datum(): Element { |
| 1024: | return $this->vertical_datum; |
| 1025: | } |
| 1026: | |
| 1027: | public function getNorthing(): Element { |
| 1028: | return $this->northing; |
| 1029: | } |
| 1030: | |
| 1031: | public function getEasting(): Element { |
| 1032: | return $this->easting; |
| 1033: | } |
| 1034: | |
| 1035: | public function getZone(): Element { |
| 1036: | return $this->zone; |
| 1037: | } |
| 1038: | |
| 1039: | public function getNavigation_type(): Element { |
| 1040: | return $this->navigation_type; |
| 1041: | } |
| 1042: | |
| 1043: | public function getLaunch_platform_name(): Element { |
| 1044: | return $this->launch_platform_name; |
| 1045: | } |
| 1046: | |
| 1047: | public function getLaunch_id(): Element { |
| 1048: | return $this->launch_id; |
| 1049: | } |
| 1050: | |
| 1051: | public function getLaunch_type_name(): Element { |
| 1052: | return $this->launch_type_name; |
| 1053: | } |
| 1054: | |
| 1055: | } |
| 1056: | |