]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/RecordAccessor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / accessor / RecordAccessor.java
index 712a1790ca656a76527c7b1612413a83a961b187..9c164cc16e0ab3724b447f8e9bff7fcf1e369436 100644 (file)
@@ -1,20 +1,20 @@
-/*******************************************************************************\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 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.type.RecordType;\r
+import org.simantics.databoard.accessor.error.AccessorConstructionException;
+import org.simantics.databoard.accessor.error.AccessorException;
+import org.simantics.databoard.binding.Binding;
+import org.simantics.databoard.type.RecordType;
 
 /**
  * Accessor to a Record.
@@ -52,26 +52,26 @@ public interface RecordAccessor extends Accessor {
        <T extends Accessor> T getFieldAccessor(String fieldName) throws AccessorConstructionException;
        
        /**
-        * Get field value.\r
-        * \r
+        * Get field value.
+        * 
         * Note, use RecordAccessor#type().getComponentIndex( fieldName ) to get index. <p>
         * 
         * @param index field index
         * @return the value of the field
         * @throws AccessorException
         */
-       Object getFieldValue(int index, Binding fieldBinding) throws AccessorException;\r
-       \r
-       /**\r
-        * Get field value.\r
-        * \r
-        * Note, use RecordAccessor#type().getComponentIndex( fieldName ) to get index. <p>\r
-        * \r
-        * @param fieldName \r
-        * @return the value of the field\r
-        * @throws AccessorException\r
-        */\r
-       Object getFieldValue(String fieldName, Binding fieldBinding) throws AccessorException;\r
+       Object getFieldValue(int index, Binding fieldBinding) throws AccessorException;
+       
+       /**
+        * Get field value.
+        * 
+        * Note, use RecordAccessor#type().getComponentIndex( fieldName ) to get index. <p>
+        * 
+        * @param fieldName 
+        * @return the value of the field
+        * @throws AccessorException
+        */
+       Object getFieldValue(String fieldName, Binding fieldBinding) throws AccessorException;
                
        /**
         * Set field value. 
@@ -85,19 +85,19 @@ public interface RecordAccessor extends Accessor {
         * @throws AccessorException
         */
        void setFieldValue(int index, Binding fieldBinding, Object value) throws AccessorException;
-\r
-       /**\r
-        * Set field value. \r
-        *  \r
-        * Writing the current value again may not emit an event. This is implementation\r
-        * specific. <p>\r
-        * \r
-        * @param fieldName\r
-        * @param fieldBinding \r
-        * @param value\r
-        * @throws AccessorException\r
-        */\r
-       void setFieldValue(String fieldName, Binding fieldBinding, Object value) throws AccessorException;\r
+
+       /**
+        * Set field value. 
+        *  
+        * Writing the current value again may not emit an event. This is implementation
+        * specific. <p>
+        * 
+        * @param fieldName
+        * @param fieldBinding 
+        * @param value
+        * @throws AccessorException
+        */
+       void setFieldValue(String fieldName, Binding fieldBinding, Object value) throws AccessorException;
        
        RecordType type();