-/*******************************************************************************\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.
<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.
* @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();