Revision 300 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dynobject/impl/MultiDynObjectSet.java

View differences:

MultiDynObjectSet.java
28 28
import org.gvsig.tools.dynobject.DynObject;
29 29
import org.gvsig.tools.dynobject.DynObjectSet;
30 30
import org.gvsig.tools.exception.BaseException;
31
import org.gvsig.tools.observer.Observer;
31 32
import org.gvsig.tools.visitor.Visitor;
32 33

  
33 34
/**
......
124 125
        public MultiDynObjectSetDisposableIterator(DynObjectSet[] innerSets)
125 126
            throws BaseException {
126 127
            this.innerSets = innerSets;
127
            if (currentIterator == null && currentSet < innerSets.length) {
128
            if ((currentIterator == null) && (currentSet < innerSets.length)) {
128 129
                currentIterator = innerSets[currentSet].iterator();
129 130
            }
130 131
        }
......
137 138

  
138 139
        private DisposableIterator getCurrentIterator() {
139 140
            while (!currentIterator.hasNext()
140
                && currentSet < innerSets.length - 1) {
141
                && (currentSet < innerSets.length - 1)) {
141 142
                currentSet++;
142 143
                try {
143 144
                    currentIterator = innerSets[currentSet].iterator();
......
166 167
        }
167 168
    }
168 169

  
170
    public void addObserver(Observer o) {
171
        throw new UnsupportedOperationException("This DynObjectSet "
172
            + "implementation does not support edition, so it doesn't "
173
            + "provide notifications");
174
    }
175

  
176
    public void deleteObserver(Observer o) {
177
        throw new UnsupportedOperationException("This DynObjectSet "
178
            + "implementation does not support edition, so it doesn't "
179
            + "provide notifications");
180
    }
181

  
182
    public void deleteObservers() {
183
        throw new UnsupportedOperationException("This DynObjectSet "
184
            + "implementation does not support edition, so it doesn't "
185
            + "provide notifications");
186
    }
187

  
188
    public boolean isDeleteEnabled() {
189
        return false;
190
    }
191

  
192
    public void delete(DynObject dynObject) throws BaseException {
193
        throw new UnsupportedOperationException("This DynObjectSet "
194
            + "implementation does not support DynObject deletion");
195
    }
196

  
197
    public boolean isUpdateEnabled() {
198
        return false;
199
    }
200

  
201
    public void update(DynObject dynObject) throws BaseException {
202
        throw new UnsupportedOperationException("This DynObjectSet "
203
            + "implementation does not support DynObject update");
204
    }
205

  
169 206
}

Also available in: Unified diff