-/*******************************************************************************\r
- * Copyright (c) 2010 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * Copyright (c) 2010 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
package org.simantics.databoard.accessor;
-import java.util.Collection;\r
-\r
-import org.simantics.databoard.accessor.error.AccessorConstructionException;\r
-import org.simantics.databoard.accessor.error.AccessorException;\r
-import org.simantics.databoard.binding.Binding;\r
-import org.simantics.databoard.binding.error.BindingException;\r
-import org.simantics.databoard.type.ArrayType;\r
+import java.util.Collection;
+
+import org.simantics.databoard.accessor.error.AccessorConstructionException;
+import org.simantics.databoard.accessor.error.AccessorException;
+import org.simantics.databoard.binding.Binding;
+import org.simantics.databoard.binding.error.BindingException;
+import org.simantics.databoard.type.ArrayType;
public interface ArrayAccessor extends Accessor {
*/
<T extends Accessor> T getAccessor(int index) throws AccessorConstructionException;
- /**\r
- * Get a copy of the element \r
- * \r
- * @param index\r
- * @param valueBinding\r
- * @return the element\r
- * @throws AccessorException\r
- */\r
- Object get(int index, Binding valueBinding) throws AccessorException;\r
- \r
- /**\r
- * Read the element to an object\r
- * \r
- * @param index\r
- * @param valueBinding\r
- * @param dest\r
- * @throws AccessorException\r
- */\r
- void get(int index, Binding valueBinding, Object dest) throws AccessorException;\r
- \r
+ /**
+ * Get a copy of the element
+ *
+ * @param index
+ * @param valueBinding
+ * @return the element
+ * @throws AccessorException
+ */
+ Object get(int index, Binding valueBinding) throws AccessorException;
+
+ /**
+ * Read the element to an object
+ *
+ * @param index
+ * @param valueBinding
+ * @param dest
+ * @throws AccessorException
+ */
+ void get(int index, Binding valueBinding, Object dest) throws AccessorException;
+
/**
* Get all elements and place them to an <code>array</code>.
* Exception is thrown if Array length is too short.
* @param values
* @throws AccessorException
*/
- void getAll(Binding valueBinding, Collection<Object> values) throws AccessorException;\r
- \r
+ void getAll(Binding valueBinding, Collection<Object> values) throws AccessorException;
+
// /**
// * Get a partial array
// *
// * @throws AccessorException
// */
// Object getPartial(ArrayBinding binding, int index, int count) throws AccessorException;
- \r
- void setSize(int newSize) throws AccessorException;\r
+
+ void setSize(int newSize) throws AccessorException;
/**
* Return the number of elements in the array.
int size() throws AccessorException;
ArrayType type();
-\r
- public interface CloseableArrayAccessor extends ArrayAccessor, CloseableAccessor {}\r
+
+ public interface CloseableArrayAccessor extends ArrayAccessor, CloseableAccessor {}
-}\r
-\r
+}
+