]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/ArrayAccessor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / accessor / ArrayAccessor.java
index df300fbbfb4bdf7fa3d743486a688e828ea79b5a..3a54c98e697773f5d1db7f0c074bdd189f6bf41c 100644 (file)
@@ -1,23 +1,23 @@
-/*******************************************************************************\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 {
 
@@ -115,26 +115,26 @@ 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. 
@@ -152,8 +152,8 @@ public interface ArrayAccessor extends Accessor {
         * @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 
 //      * 
@@ -164,8 +164,8 @@ public interface ArrayAccessor extends Accessor {
 //      * @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.
@@ -176,9 +176,9 @@ public interface ArrayAccessor extends Accessor {
        int size() throws AccessorException;    
        
        ArrayType type();
-\r
-       public interface CloseableArrayAccessor extends ArrayAccessor, CloseableAccessor {}\r
+
+       public interface CloseableArrayAccessor extends ArrayAccessor, CloseableAccessor {}
        
-}\r
-\r
+}
+