You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProjectTeam.java 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package embedding.model;
  18. import java.util.List;
  19. import javax.xml.transform.Source;
  20. import javax.xml.transform.sax.SAXSource;
  21. /**
  22. * This bean represents a ProjectTeam.
  23. */
  24. public class ProjectTeam {
  25. private String projectName;
  26. private List members = new java.util.ArrayList();
  27. /**
  28. * Returns a list of project members.
  29. * @return List a list of ProjectMember objects
  30. */
  31. public List getMembers() {
  32. return this.members;
  33. }
  34. /**
  35. * Adds a ProjectMember to this project team.
  36. * @param member the member to add
  37. */
  38. public void addMember(ProjectMember member) {
  39. this.members.add(member);
  40. }
  41. /**
  42. * Returns the name of the project
  43. * @return String the name of the project
  44. */
  45. public String getProjectName() {
  46. return projectName;
  47. }
  48. /**
  49. * Sets the name of the project.
  50. * @param projectName the project name to set
  51. */
  52. public void setProjectName(String projectName) {
  53. this.projectName = projectName;
  54. }
  55. /**
  56. * Resturns a Source object for this object so it can be used as input for
  57. * a JAXP transformation.
  58. * @return Source The Source object
  59. */
  60. public Source getSourceForProjectTeam() {
  61. return new SAXSource(new ProjectTeamXMLReader(),
  62. new ProjectTeamInputSource(this));
  63. }
  64. }