01: /*
02: * Copyright 2001-2007 Hippo (www.hippo.nl)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: package nl.hippo.cms.editor.flow;
17:
18: public class Property {
19:
20: private String name, namespace, value;
21:
22: public Property(String name, String namespace, String value) {
23: this .name = name;
24: this .namespace = namespace;
25: this .value = value;
26: }
27:
28: public String getName() {
29: return name;
30: }
31:
32: public void setName(String name) {
33: this .name = name;
34: }
35:
36: public String getNamespace() {
37: return namespace;
38: }
39:
40: public void setNamespace(String namespace) {
41: this .namespace = namespace;
42: }
43:
44: public String getValue() {
45: return value;
46: }
47:
48: public void setValue(String value) {
49: this .value = value;
50: }
51:
52: public static String getHashKey(String name, String namespace) {
53: return namespace + ":" + name;
54: }
55:
56: }
|