X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2FArrayAccessor.java;h=3a54c98e697773f5d1db7f0c074bdd189f6bf41c;hb=refs%2Fchanges%2F38%2F238%2F2;hp=df300fbbfb4bdf7fa3d743486a688e828ea79b5a;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/ArrayAccessor.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/ArrayAccessor.java index df300fbbf..3a54c98e6 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/ArrayAccessor.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/ArrayAccessor.java @@ -1,23 +1,23 @@ -/******************************************************************************* - * 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 - *******************************************************************************/ +/******************************************************************************* + * 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; - -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; +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 getAccessor(int index) throws AccessorConstructionException; - /** - * 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 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 array. * 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 values) throws AccessorException; - + void getAll(Binding valueBinding, Collection 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; - - void setSize(int newSize) throws AccessorException; + + 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(); - - public interface CloseableArrayAccessor extends ArrayAccessor, CloseableAccessor {} + + public interface CloseableArrayAccessor extends ArrayAccessor, CloseableAccessor {} -} - +} +