01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.context;
20:
21: import java.io.Serializable;
22:
23: /**
24: * This class holds the difference between two properties which are stored in the
25: * AbstractContext
26: */
27: public class PropertyDifference implements Serializable {
28:
29: private String key;
30: private Object value;
31: private boolean isRemoved;
32:
33: public PropertyDifference(String key, boolean isRemoved) {
34: this .key = key;
35: this .isRemoved = isRemoved;
36: }
37:
38: public PropertyDifference(String key, Object value,
39: boolean isRemoved) {
40: this .key = key;
41: this .value = value;
42: this .isRemoved = isRemoved;
43: }
44:
45: public String getKey() {
46: return key;
47: }
48:
49: public Object getValue() {
50: return value;
51: }
52:
53: public void setValue(Object value) {
54: this .value = value;
55: }
56:
57: public boolean isRemoved() {
58: return isRemoved;
59: }
60:
61: public void setRemoved(boolean removed) {
62: isRemoved = removed;
63: }
64: }
|