//- 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._sequenceSetList.size())
{
- throw new IndexOutOfBoundsException("getSequenceSet: Index value '"
- + index + "' not in range [0.."
- + (this._sequenceSetList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "getSequenceSet",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._sequenceSetList.size() - 1)).toString()
+ }));
}
return (jalview.schemabinding.version2.SequenceSet) _sequenceSetList
// check bounds for index
if (index < 0 || index >= this._treeList.size())
{
- throw new IndexOutOfBoundsException("getTree: Index value '" + index
- + "' not in range [0.." + (this._treeList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "getTree",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._treeList.size() - 1)).toString()
+ }));
}
return (java.lang.String) _treeList.get(index);
// check bounds for index
if (index < 0 || index >= this._sequenceSetList.size())
{
- throw new IndexOutOfBoundsException("setSequenceSet: Index value '"
- + index + "' not in range [0.."
- + (this._sequenceSetList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "setSequenceSet",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._sequenceSetList.size() - 1)).toString()
+ }));
}
this._sequenceSetList.set(index, vSequenceSet);
// check bounds for index
if (index < 0 || index >= this._treeList.size())
{
- throw new IndexOutOfBoundsException("setTree: Index value '" + index
- + "' not in range [0.." + (this._treeList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
+ "setTree",
+ Integer.valueOf(index).toString(),
+ Integer.valueOf((this._treeList.size() - 1)).toString()
+ }));
}
this._treeList.set(index, vTree);