summaryrefslogtreecommitdiffstats
path: root/src/org/uic/barcode/ticket/api/impl/SimpleTravelerDetail.java
blob: d76f742f048e37ddbfa56f16fe34bee51cc1b4c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 * 
 */
package org.uic.barcode.ticket.api.impl;

import java.util.LinkedHashSet;
import java.util.Set;

import org.uic.barcode.ticket.api.spec.ITraveler;
import org.uic.barcode.ticket.api.spec.ITravelerDetail;

// TODO: Auto-generated Javadoc
/**
 * The Class SimpleTravelerDetail.
 */
public class SimpleTravelerDetail implements ITravelerDetail{
	
	/** The group name. */
	String groupName;

	/** The preferred language. */
	String preferredLanguage;	
	
	/** The travelers. */
	LinkedHashSet<ITraveler> travelers = new LinkedHashSet<ITraveler>();

	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.ITravelerDetail#getGroupName()
	 */
	public String getGroupName() {
		return groupName;
	}

	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.ITravelerDetail#setGroupName(java.lang.String)
	 */
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.ITravelerDetail#addTraveler(org.uic.ticket.api.ITravelerData)
	 */
	public void addTraveler (ITraveler traveler) {
		travelers.add(traveler);
	}

	
	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.ITravelerDetail#getTravelers()
	 */
	public Set<ITraveler> getTravelers() {
		return travelers;
	}	

	/* (nicht-Javadoc)
	 * @see org.uic.ticket.api.ITravelerDetail#setTravelers(java.util.LinkedHashSet)
	 */
	/**
	 * Sets the travelers.
	 *
	 * @param travelers the new travelers
	 */
	public void setTravelers(LinkedHashSet<ITraveler> travelers) {
		this.travelers = travelers;
	}


	@Override
	public String getPreferredLanguage() {
		return preferredLanguage;
	}

	@Override
	public void setPreferredLanguage(String language) {
		this.preferredLanguage = language;		
	}



	
	
}