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