001 /*---------------- FILE HEADER ------------------------------------------ 002 Copyright (C) 2001-2008 by: 003 lat/lon GmbH 004 http://www.lat-lon.de 005 006 Contact: 007 008 Andreas Poth 009 lat/lon GmbH 010 Aennchenstr. 19 011 53177 Bonn 012 Germany 013 E-Mail: poth@lat-lon.de 014 015 ---------------------------------------------------------------------------*/ 016 package org.deegree.portal.cataloguemanager.model; 017 018 import java.util.List; 019 020 /** 021 * 022 * 023 * 024 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a> 025 * @author last edited by: $Author: buesching $ 026 * 027 * @version. $Revision: 1.5 $, $Date: 2009-01-06 09:24:01 $ 028 */ 029 public class MetadataBean { 030 031 private String identifier; 032 033 private String hlevel; 034 035 private String parentId; 036 037 private String contactIndividualName; 038 039 private String contactOrganisationName; 040 041 private String contactRole; 042 043 private String contactDeliveryPoint; 044 045 private String contactCity; 046 047 private String contactPostalCode; 048 049 private String contactCountry; 050 051 private String contactVoice; 052 053 private String contactFacsimile; 054 055 private String contactEmailAddress; 056 057 private String datasetTitle; 058 059 private String abstract_; 060 061 private String topCat; 062 063 private List keywords; 064 065 private String geogrDescription; 066 067 private String crs; 068 069 private String scale; 070 071 private String creation; 072 073 private String publication; 074 075 private String revision; 076 077 private String begin; 078 079 private String end; 080 081 private String pocIndividualName; 082 083 private String pocOrganisationName; 084 085 private String pocRole; 086 087 private String pocDeliveryPoint; 088 089 private String pocCity; 090 091 private String pocPostalCode; 092 093 private String pocCountry; 094 095 private String pocVoice; 096 097 private String pocFacsimile; 098 099 private String pocEmailAddress; 100 101 private String lineage; 102 103 private String inspireDataTheme; 104 105 private String transferOnline; 106 107 private String transferFormatName; 108 109 private String transferFormatVersion; 110 111 private String accessConstraints; 112 113 /** 114 * @return the abstract_ 115 */ 116 public String getAbstract_() { 117 return abstract_; 118 } 119 120 /** 121 * @param abstract_ 122 * the abstract_ to set 123 */ 124 public void setAbstract_( String abstract_ ) { 125 this.abstract_ = abstract_; 126 } 127 128 /** 129 * @return the begin 130 */ 131 public String getBegin() { 132 return begin; 133 } 134 135 /** 136 * @param begin 137 * the begin to set 138 */ 139 public void setBegin( String begin ) { 140 this.begin = begin; 141 } 142 143 /** 144 * @return the contactCity 145 */ 146 public String getContactCity() { 147 return contactCity; 148 } 149 150 /** 151 * @param contactCity 152 * the contactCity to set 153 */ 154 public void setContactCity( String contactCity ) { 155 this.contactCity = contactCity; 156 } 157 158 /** 159 * @return the contactCountry 160 */ 161 public String getContactCountry() { 162 return contactCountry; 163 } 164 165 /** 166 * @param contactCountry 167 * the contactCountry to set 168 */ 169 public void setContactCountry( String contactCountry ) { 170 this.contactCountry = contactCountry; 171 } 172 173 /** 174 * @return the contactDeliveryPoint 175 */ 176 public String getContactDeliveryPoint() { 177 return contactDeliveryPoint; 178 } 179 180 /** 181 * @param contactDeliveryPoint 182 * the contactDeliveryPoint to set 183 */ 184 public void setContactDeliveryPoint( String contactDeliveryPoint ) { 185 this.contactDeliveryPoint = contactDeliveryPoint; 186 } 187 188 /** 189 * @return the contactEmailAddress 190 */ 191 public String getContactEmailAddress() { 192 return contactEmailAddress; 193 } 194 195 /** 196 * @param contactEmailAddress 197 * the contactEmailAddress to set 198 */ 199 public void setContactEmailAddress( String contactEmailAddress ) { 200 this.contactEmailAddress = contactEmailAddress; 201 } 202 203 /** 204 * @return the contactFacsimile 205 */ 206 public String getContactFacsimile() { 207 return contactFacsimile; 208 } 209 210 /** 211 * @param contactFacsimile 212 * the contactFacsimile to set 213 */ 214 public void setContactFacsimile( String contactFacsimile ) { 215 this.contactFacsimile = contactFacsimile; 216 } 217 218 /** 219 * @return the contactIndividualName 220 */ 221 public String getContactIndividualName() { 222 return contactIndividualName; 223 } 224 225 /** 226 * @param contactIndividualName 227 * the contactIndividualName to set 228 */ 229 public void setContactIndividualName( String contactIndividualName ) { 230 this.contactIndividualName = contactIndividualName; 231 } 232 233 /** 234 * @return the contactOrganisationName 235 */ 236 public String getContactOrganisationName() { 237 return contactOrganisationName; 238 } 239 240 /** 241 * @param contactOrganisationName 242 * the contactOrganisationName to set 243 */ 244 public void setContactOrganisationName( String contactOrganisationName ) { 245 this.contactOrganisationName = contactOrganisationName; 246 } 247 248 /** 249 * @return the contactPostalCode 250 */ 251 public String getContactPostalCode() { 252 return contactPostalCode; 253 } 254 255 /** 256 * @param contactPostalCode 257 * the contactPostalCode to set 258 */ 259 public void setContactPostalCode( String contactPostalCode ) { 260 this.contactPostalCode = contactPostalCode; 261 } 262 263 /** 264 * @return the contactRole 265 */ 266 public String getContactRole() { 267 return contactRole; 268 } 269 270 /** 271 * @param contactRole 272 * the contactRole to set 273 */ 274 public void setContactRole( String contactRole ) { 275 this.contactRole = contactRole; 276 } 277 278 /** 279 * @return the contactVoice 280 */ 281 public String getContactVoice() { 282 return contactVoice; 283 } 284 285 /** 286 * @param contactVoice 287 * the contactVoice to set 288 */ 289 public void setContactVoice( String contactVoice ) { 290 this.contactVoice = contactVoice; 291 } 292 293 /** 294 * @return the creation 295 */ 296 public String getCreation() { 297 return creation; 298 } 299 300 /** 301 * @param creation 302 * the creation to set 303 */ 304 public void setCreation( String creation ) { 305 this.creation = creation; 306 } 307 308 /** 309 * @return the crs 310 */ 311 public String getCrs() { 312 return crs; 313 } 314 315 /** 316 * @param crs 317 * the crs to set 318 */ 319 public void setCrs( String crs ) { 320 this.crs = crs; 321 } 322 323 /** 324 * @return the datasetTitle 325 */ 326 public String getDatasetTitle() { 327 return datasetTitle; 328 } 329 330 /** 331 * @param datasetTitle 332 * the datasetTitle to set 333 */ 334 public void setDatasetTitle( String datasetTitle ) { 335 this.datasetTitle = datasetTitle; 336 } 337 338 /** 339 * @return the end 340 */ 341 public String getEnd() { 342 return end; 343 } 344 345 /** 346 * @param end 347 * the end to set 348 */ 349 public void setEnd( String end ) { 350 this.end = end; 351 } 352 353 /** 354 * @return the geogrDescription 355 */ 356 public String getGeogrDescription() { 357 return geogrDescription; 358 } 359 360 /** 361 * @param geogrDescription 362 * the geogrDescription to set 363 */ 364 public void setGeogrDescription( String geogrDescription ) { 365 this.geogrDescription = geogrDescription; 366 } 367 368 /** 369 * @return the hlevel 370 */ 371 public String getHlevel() { 372 return hlevel; 373 } 374 375 /** 376 * @param hlevel 377 * the hlevel to set 378 */ 379 public void setHlevel( String hlevel ) { 380 this.hlevel = hlevel; 381 } 382 383 /** 384 * @return the idendifier 385 */ 386 public String getIdentifier() { 387 return identifier; 388 } 389 390 /** 391 * @param identifier 392 * the idendifier to set 393 */ 394 public void setIdentifier( String identifier ) { 395 this.identifier = identifier; 396 } 397 398 /** 399 * @return the keywords 400 */ 401 @SuppressWarnings("unchecked") 402 public List getKeywords() { 403 return keywords; 404 } 405 406 /** 407 * @param keywords 408 * the keywords to set 409 */ 410 @SuppressWarnings("unchecked") 411 public void setKeywords( List keywords ) { 412 this.keywords = keywords; 413 } 414 415 /** 416 * @return the parentId 417 */ 418 public String getParentId() { 419 return parentId; 420 } 421 422 /** 423 * @param parentId 424 * the parentId to set 425 */ 426 public void setParentId( String parentId ) { 427 this.parentId = parentId; 428 } 429 430 /** 431 * @return the pocCity 432 */ 433 public String getPocCity() { 434 return pocCity; 435 } 436 437 /** 438 * @param pocCity 439 * the pocCity to set 440 */ 441 public void setPocCity( String pocCity ) { 442 this.pocCity = pocCity; 443 } 444 445 /** 446 * @return the pocCountry 447 */ 448 public String getPocCountry() { 449 return pocCountry; 450 } 451 452 /** 453 * @param pocCountry 454 * the pocCountry to set 455 */ 456 public void setPocCountry( String pocCountry ) { 457 this.pocCountry = pocCountry; 458 } 459 460 /** 461 * @return the pocDeliveryPoint 462 */ 463 public String getPocDeliveryPoint() { 464 return pocDeliveryPoint; 465 } 466 467 /** 468 * @param pocDeliveryPoint 469 * the pocDeliveryPoint to set 470 */ 471 public void setPocDeliveryPoint( String pocDeliveryPoint ) { 472 this.pocDeliveryPoint = pocDeliveryPoint; 473 } 474 475 /** 476 * @return the pocEmailAddress 477 */ 478 public String getPocEmailAddress() { 479 return pocEmailAddress; 480 } 481 482 /** 483 * @param pocEmailAddress 484 * the pocEmailAddress to set 485 */ 486 public void setPocEmailAddress( String pocEmailAddress ) { 487 this.pocEmailAddress = pocEmailAddress; 488 } 489 490 /** 491 * @return the pocFacsimile 492 */ 493 public String getPocFacsimile() { 494 return pocFacsimile; 495 } 496 497 /** 498 * @param pocFacsimile 499 * the pocFacsimile to set 500 */ 501 public void setPocFacsimile( String pocFacsimile ) { 502 this.pocFacsimile = pocFacsimile; 503 } 504 505 /** 506 * @return the pocIndividualName 507 */ 508 public String getPocIndividualName() { 509 return pocIndividualName; 510 } 511 512 /** 513 * @param pocIndividualName 514 * the pocIndividualName to set 515 */ 516 public void setPocIndividualName( String pocIndividualName ) { 517 this.pocIndividualName = pocIndividualName; 518 } 519 520 /** 521 * @return the pocOrganisationName 522 */ 523 public String getPocOrganisationName() { 524 return pocOrganisationName; 525 } 526 527 /** 528 * @param pocOrganisationName 529 * the pocOrganisationName to set 530 */ 531 public void setPocOrganisationName( String pocOrganisationName ) { 532 this.pocOrganisationName = pocOrganisationName; 533 } 534 535 /** 536 * @return the pocPostalCode 537 */ 538 public String getPocPostalCode() { 539 return pocPostalCode; 540 } 541 542 /** 543 * @param pocPostalCode 544 * the pocPostalCode to set 545 */ 546 public void setPocPostalCode( String pocPostalCode ) { 547 this.pocPostalCode = pocPostalCode; 548 } 549 550 /** 551 * @return the pocRole 552 */ 553 public String getPocRole() { 554 return pocRole; 555 } 556 557 /** 558 * @param pocRole 559 * the pocRole to set 560 */ 561 public void setPocRole( String pocRole ) { 562 this.pocRole = pocRole; 563 } 564 565 /** 566 * @return the pocVoice 567 */ 568 public String getPocVoice() { 569 return pocVoice; 570 } 571 572 /** 573 * @param pocVoice 574 * the pocVoice to set 575 */ 576 public void setPocVoice( String pocVoice ) { 577 this.pocVoice = pocVoice; 578 } 579 580 /** 581 * @return the publication 582 */ 583 public String getPublication() { 584 return publication; 585 } 586 587 /** 588 * @param publication 589 * the publication to set 590 */ 591 public void setPublication( String publication ) { 592 this.publication = publication; 593 } 594 595 /** 596 * @return the revision 597 */ 598 public String getRevision() { 599 return revision; 600 } 601 602 /** 603 * @param revision 604 * the revision to set 605 */ 606 public void setRevision( String revision ) { 607 this.revision = revision; 608 } 609 610 /** 611 * @return the scale 612 */ 613 public String getScale() { 614 return scale; 615 } 616 617 /** 618 * @param scale 619 * the scale to set 620 */ 621 public void setScale( String scale ) { 622 this.scale = scale; 623 } 624 625 /** 626 * @return the topCat 627 */ 628 public String getTopCat() { 629 return topCat; 630 } 631 632 /** 633 * @param topCat 634 * the topCat to set 635 */ 636 public void setTopCat( String topCat ) { 637 this.topCat = topCat; 638 } 639 640 /** 641 * @return the lineage 642 */ 643 public String getLineage() { 644 return lineage; 645 } 646 647 /** 648 * @param lineage 649 * the lineage to set 650 */ 651 public void setLineage( String linkage ) { 652 this.lineage = linkage; 653 } 654 655 /** 656 * @return the inspireDataTheme 657 */ 658 public String getInspireDataTheme() { 659 return inspireDataTheme; 660 } 661 662 /** 663 * @param inspireDataTheme 664 * the inspireDataTheme to set 665 */ 666 public void setInspireDataTheme( String inspireDataTheme ) { 667 this.inspireDataTheme = inspireDataTheme; 668 } 669 670 /** 671 * @return the transferOnline 672 */ 673 public String getTransferOnline() { 674 return transferOnline; 675 } 676 677 /** 678 * @param transferOnline 679 * the transferOnline to set 680 */ 681 public void setTransferOnline( String transferOnline ) { 682 this.transferOnline = transferOnline; 683 } 684 685 686 687 /** 688 * @return the transferFormatName 689 */ 690 public String getTransferFormatName() { 691 return transferFormatName; 692 } 693 694 /** 695 * @param transferFormatName the transferFormatName to set 696 */ 697 public void setTransferFormatName( String transferFormatName ) { 698 this.transferFormatName = transferFormatName; 699 } 700 701 /** 702 * @return the transferFormatVersion 703 */ 704 public String getTransferFormatVersion() { 705 return transferFormatVersion; 706 } 707 708 /** 709 * @param transferFormatVersion the transferFormatVersion to set 710 */ 711 public void setTransferFormatVersion( String transferFormatVersion ) { 712 this.transferFormatVersion = transferFormatVersion; 713 } 714 715 716 717 /** 718 * @return the accessConstraints 719 */ 720 public String getAccessConstraints() { 721 return accessConstraints; 722 } 723 724 /** 725 * @param accessConstraints the accessConstraints to set 726 */ 727 public void setAccessConstraints( String accessConstraints ) { 728 this.accessConstraints = accessConstraints; 729 } 730 731 @Override 732 public String toString() { 733 StringBuffer sb = new StringBuffer( 1000 ); 734 sb.append( identifier + "\n\r" ); 735 sb.append( hlevel + "\n\r" ); 736 sb.append( parentId + "\n\r" ); 737 sb.append( contactIndividualName + "\n\r" ); 738 sb.append( contactOrganisationName + "\n\r" ); 739 sb.append( contactRole + "\n\r" ); 740 sb.append( contactDeliveryPoint + "\n\r" ); 741 sb.append( contactCity + "\n\r" ); 742 sb.append( contactPostalCode + "\n\r" ); 743 sb.append( contactCountry + "\n\r" ); 744 sb.append( contactVoice + "\n\r" ); 745 sb.append( contactFacsimile + "\n\r" ); 746 sb.append( contactEmailAddress + "\n\r" ); 747 sb.append( datasetTitle + "\n\r" ); 748 sb.append( abstract_ + "\n\r" ); 749 sb.append( topCat + "\n\r" ); 750 sb.append( inspireDataTheme + "\n\r" ); 751 sb.append( "keywords: " + "\n\r" ); 752 if ( keywords != null ) { 753 for ( Object keyword : keywords ) { 754 sb.append( keyword + "\n\r" ); 755 } 756 } 757 sb.append( "\n\r" ); 758 sb.append( lineage + "\n\r" ); 759 sb.append( geogrDescription + "\n\r" ); 760 sb.append( crs + "\n\r" ); 761 sb.append( scale + "\n\r" ); 762 sb.append( creation + "\n\r" ); 763 sb.append( publication + "\n\r" ); 764 sb.append( revision + "\n\r" ); 765 sb.append( begin + "\n\r" ); 766 sb.append( end + "\n\r" ); 767 sb.append( pocIndividualName + "\n\r" ); 768 sb.append( pocOrganisationName + "\n\r" ); 769 sb.append( pocRole + "\n\r" ); 770 sb.append( pocDeliveryPoint + "\n\r" ); 771 sb.append( pocCity + "\n\r" ); 772 sb.append( pocPostalCode + "\n\r" ); 773 sb.append( pocCountry + "\n\r" ); 774 sb.append( pocVoice + "\n\r" ); 775 sb.append( pocFacsimile + "\n\r" ); 776 sb.append( pocEmailAddress + "\n\r" ); 777 sb.append( transferOnline + "\n\r" ); 778 sb.append( transferFormatName + "\n\r" ); 779 sb.append( transferFormatVersion + "\n\r" ); 780 sb.append( accessConstraints + "\n\r" ); 781 return sb.toString(); 782 } 783 784 }