//- Imported classes and packages -/
//---------------------------------/
+import jalview.util.MessageManager;
+
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
// check bounds for index
if (index < 0 || index >= this._calcIdParamList.size())
{
- throw new IndexOutOfBoundsException("getCalcIdParam: Index value '"
- + index + "' not in range [0.."
- + (this._calcIdParamList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "getCalcIdParam",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._calcIdParamList.size() - 1)).toString()
+ }));
}
return (jalview.schemabinding.version2.CalcIdParam) _calcIdParamList
// check bounds for index
if (index < 0 || index >= this._hiddenColumnsList.size())
{
- throw new IndexOutOfBoundsException("getHiddenColumns: Index value '"
- + index + "' not in range [0.."
- + (this._hiddenColumnsList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "getHiddenColumns",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._hiddenColumnsList.size() - 1)).toString()
+ }));
}
return (jalview.schemabinding.version2.HiddenColumns) _hiddenColumnsList
// check bounds for index
if (index < 0 || index >= this._calcIdParamList.size())
{
- throw new IndexOutOfBoundsException("setCalcIdParam: Index value '"
- + index + "' not in range [0.."
- + (this._calcIdParamList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "setCalcIdParam",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._calcIdParamList.size() - 1)).toString()
+ }));
}
this._calcIdParamList.set(index, vCalcIdParam);
// check bounds for index
if (index < 0 || index >= this._hiddenColumnsList.size())
{
- throw new IndexOutOfBoundsException("setHiddenColumns: Index value '"
- + index + "' not in range [0.."
- + (this._hiddenColumnsList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "setHiddenColumns",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._hiddenColumnsList.size() - 1)).toString()
+ }));
}
this._hiddenColumnsList.set(index, vHiddenColumns);