01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: ProjectTeam.java 426576 2006-07-28 15:44:37Z jeremias $ */
19:
20: package embedding.model;
21:
22: import java.util.List;
23:
24: import javax.xml.transform.Source;
25: import javax.xml.transform.sax.SAXSource;
26:
27: /**
28: * This bean represents a ProjectTeam.
29: */
30: public class ProjectTeam {
31:
32: private String projectName;
33: private List members = new java.util.ArrayList();
34:
35: /**
36: * Returns a list of project members.
37: * @return List a list of ProjectMember objects
38: */
39: public List getMembers() {
40: return this .members;
41: }
42:
43: /**
44: * Adds a ProjectMember to this project team.
45: * @param member the member to add
46: */
47: public void addMember(ProjectMember member) {
48: this .members.add(member);
49: }
50:
51: /**
52: * Returns the name of the project
53: * @return String the name of the project
54: */
55: public String getProjectName() {
56: return projectName;
57: }
58:
59: /**
60: * Sets the name of the project.
61: * @param projectName the project name to set
62: */
63: public void setProjectName(String projectName) {
64: this .projectName = projectName;
65: }
66:
67: /**
68: * Resturns a Source object for this object so it can be used as input for
69: * a JAXP transformation.
70: * @return Source The Source object
71: */
72: public Source getSourceForProjectTeam() {
73: return new SAXSource(new ProjectTeamXMLReader(),
74: new ProjectTeamInputSource(this));
75: }
76:
77: }
|