1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      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  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  }