1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.layout;
18
19 import java.util.List;
20 import org.apache.jetspeed.om.page.Fragment;
21 import org.apache.jetspeed.om.page.psml.FragmentImpl;
22 import java.util.ArrayList;
23
24 /***
25 * Test for Fragment placement
26 *
27 * @author <a>David Gurney </a>
28 * @version $Id: $
29 */
30 public class LocalFragmentImpl extends FragmentImpl
31 {
32 private ArrayList m_oFragments = new ArrayList();
33
34 private String m_sName = null;
35
36 private String m_sType = null;
37
38 private String m_sID = null;
39
40 public LocalFragmentImpl()
41 {
42 }
43
44 public void addFragment(Fragment p_oFragment)
45 {
46 m_oFragments.add(p_oFragment);
47 }
48
49 public List getFragments()
50 {
51 return m_oFragments;
52 }
53
54 public String getId()
55 {
56 return m_sID;
57 }
58
59 public String getName()
60 {
61 return m_sName;
62 }
63
64 public String getType()
65 {
66 return m_sType;
67 }
68
69 public void setId(String p_sID)
70 {
71 m_sID = p_sID;
72 }
73
74 public void setName(String p_sName)
75 {
76 m_sName = p_sName;
77 }
78
79 public void setType(String p_sType)
80 {
81 m_sType = p_sType;
82 }
83 }