01: /**********************************************************************
02: Copyright (c) 2005 Erik Bengtson and others. All rights reserved.
03: Licensed under the Apache License, Version 2.0 (the "License");
04: you may not use this file except in compliance with the License.
05: You may obtain a copy of the License at
06:
07: http://www.apache.org/licenses/LICENSE-2.0
08:
09: Unless required by applicable law or agreed to in writing, software
10: distributed under the License is distributed on an "AS IS" BASIS,
11: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: See the License for the specific language governing permissions and
13: limitations under the License.
14:
15:
16: Contributors:
17: ...
18: **********************************************************************/package org.jpox.sco;
19:
20: import org.jpox.StateManager;
21:
22: /**
23: * A mutable second-class BitSet object.
24: *
25: * @version $Revision: 1.5 $
26: */
27: public class BitSetJDK14 extends BitSet {
28: /**
29: * Creates a <tt>BitSet</tt> object. Assigns owning object and field name.
30: *
31: * @param ownerSM the owning object
32: * @param fieldName the owning field name
33: */
34: public BitSetJDK14(StateManager ownerSM, String fieldName) {
35: super (ownerSM, fieldName);
36: }
37:
38: // ------------------------- BitSet Methods -----------------------------
39:
40: /* (non-Javadoc)
41: * @see java.util.BitSet#clear()
42: */
43: public void clear() {
44: super .clear();
45: makeDirty();
46: }
47:
48: /* (non-Javadoc)
49: * @see java.util.BitSet#clear(int, int)
50: */
51: public void clear(int fromIndex, int toIndex) {
52: super .clear(fromIndex, toIndex);
53: makeDirty();
54: }
55:
56: /* (non-Javadoc)
57: * @see java.util.BitSet#flip(int, int)
58: */
59: public void flip(int fromIndex, int toIndex) {
60: super .flip(fromIndex, toIndex);
61: makeDirty();
62: }
63:
64: /* (non-Javadoc)
65: * @see java.util.BitSet#flip(int)
66: */
67: public void flip(int bitIndex) {
68: super .flip(bitIndex);
69: makeDirty();
70: }
71:
72: /* (non-Javadoc)
73: * @see java.util.BitSet#set(int, boolean)
74: */
75: public void set(int bitIndex, boolean value) {
76: super .set(bitIndex, value);
77: makeDirty();
78: }
79:
80: /* (non-Javadoc)
81: * @see java.util.BitSet#set(int, int, boolean)
82: */
83: public void set(int fromIndex, int toIndex, boolean value) {
84: super .set(fromIndex, toIndex, value);
85: makeDirty();
86: }
87:
88: /* (non-Javadoc)
89: * @see java.util.BitSet#set(int, int)
90: */
91: public void set(int fromIndex, int toIndex) {
92: super.set(fromIndex, toIndex);
93: makeDirty();
94: }
95: }
|