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: 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: private ArrayList m_oFragments = new ArrayList();
32:
33: private String m_sName = null;
34:
35: private String m_sType = null;
36:
37: private String m_sID = null;
38:
39: public LocalFragmentImpl() {
40: }
41:
42: public void addFragment(Fragment p_oFragment) {
43: m_oFragments.add(p_oFragment);
44: }
45:
46: public List getFragments() {
47: return m_oFragments;
48: }
49:
50: public String getId() {
51: return m_sID;
52: }
53:
54: public String getName() {
55: return m_sName;
56: }
57:
58: public String getType() {
59: return m_sType;
60: }
61:
62: public void setId(String p_sID) {
63: m_sID = p_sID;
64: }
65:
66: public void setName(String p_sName) {
67: m_sName = p_sName;
68: }
69:
70: public void setType(String p_sType) {
71: m_sType = p_sType;
72: }
73: }
|