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: package org.apache.jetspeed.om.page.psml;
19:
20: /**
21: * Bean like implementation of the Parameter interface suitable for
22: * Castor serialization.
23: *
24: * @see org.apache.jetspeed.om.registry.PsmlParameter
25: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
26: * @version $Id: PropertyImpl.java 516448 2007-03-09 16:25:47Z ate $
27: */
28: public class PropertyImpl implements java.io.Serializable {
29: private String name;
30: private String value;
31:
32: public PropertyImpl() {
33: }
34:
35: public String getLayout() {
36: // property layout name deprecated
37: return null;
38: }
39:
40: public void setLayout(String layout) {
41: // property layout name deprecated
42: }
43:
44: public String getName() {
45: return this .name;
46: }
47:
48: public void setName(String name) {
49: this .name = name;
50: }
51:
52: public String getValue() {
53: return this .value;
54: }
55:
56: public void setValue(String value) {
57: this .value = value;
58: }
59:
60: /**
61: * <p>
62: * getIntValue
63: * </p>
64: *
65: * @see org.apache.jetspeed.om.page.Property#getIntValue()
66: * @return
67: */
68: public int getIntValue() {
69: return Integer.parseInt(value);
70: }
71: }
|