1 /*******************************************************************************
\r
2 * Copyright (c) 2010 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.databoard.accessor.file;
14 import java.util.Map;
\r
16 import org.simantics.databoard.accessor.MapAccessor;
\r
17 import org.simantics.databoard.accessor.error.AccessorException;
\r
18 import org.simantics.databoard.binding.Binding;
\r
19 import org.simantics.databoard.binding.error.BindingException;
\r
21 public interface FileMapAccessor extends MapAccessor, FileAccessor {
24 * Set & copy all entries from a Map Value.
26 * If entries are removed and they have accessors, the accessors are invalidated.
30 * @throws BindingException binding error
31 * @throws UnsupportedOperationException cannot set a new value
33 void setValueNoflush(Binding mapBinding, Object newMap) throws AccessorException;
37 * Put an entry to the map. If previous entry exists for the key, it is removed.
43 * @throws AccessorException
45 void putNoflush(Binding keyBinding, Object key, Binding valueBinding, Object value) throws AccessorException;
47 void removeNoflush(Binding keyBinding, Object key) throws AccessorException;
49 void putAllNoflush(Binding keyBinding, Binding valueBinding, Map<Object, Object> from) throws AccessorException;
50 void putAllNoflush(Binding keyBinding, Binding valueBinding, Object[] keys, Object[] values) throws AccessorException;
51 void clearNoflush() throws AccessorException;