}
public void set(String value) {
if (arrayFS instanceof BooleanArrayFS) {
BooleanArrayFS array = (BooleanArrayFS) arrayFS;
array.set(slot, Boolean.parseBoolean(value));
} else if (arrayFS instanceof ByteArrayFS) {
ByteArrayFS array = (ByteArrayFS) arrayFS;
array.set(slot, Byte.parseByte(value));
} else if (arrayFS instanceof ShortArrayFS) {
ShortArrayFS array = (ShortArrayFS) arrayFS;
array.set(slot, Short.parseShort(value));
} else if (arrayFS instanceof IntArrayFS) {
IntArrayFS array = (IntArrayFS) arrayFS;
array.set(slot, Integer.parseInt(value));
} else if (arrayFS instanceof LongArrayFS) {
LongArrayFS array = (LongArrayFS) arrayFS;
array.set(slot, Long.parseLong(value));
} else if (arrayFS instanceof FloatArrayFS) {
FloatArrayFS array = (FloatArrayFS) arrayFS;
array.set(slot, Float.parseFloat(value));
} else if (arrayFS instanceof DoubleArrayFS) {
DoubleArrayFS array = (DoubleArrayFS) arrayFS;
array.set(slot, Double.parseDouble(value));
} else if (arrayFS instanceof StringArrayFS) {
StringArrayFS array = (StringArrayFS) arrayFS;
array.set(slot, value);
} else {
throw new CasEditorError("Unkown array type!");
}
}