// ===================================================================
// Class for storing data of one parol pair.
// $Id: Pair.js 3967 2009-11-16 20:47:29Z helmut $

var Bible20;
if (!Bible20) {
  Bible20 = {};
}
else if (typeof Bible20 != "object") {
  throw new Error("Bible20 already exists and is not an object");
}

if (!Bible20.Pair) {
  Bible20.Pair = {};
}
else if (typeof Bible20.Pair != "object") {
  throw new Error("Bible20.Pair already exists and is not an object");
}

Bible20.Pair.Pair = function(First, Second)
{
  try {
    this._First   = First;
    this._Second  = Second;
    this._Order   = null;
    this._Type    = null;
  }
  catch (e) {
    alert("Pair: " + e);
  }
}

Bible20.Pair.Pair.prototype =
{
  toString: function()
  {
    return "Pair(" + this._First + ", " + this._Second + ")";
  },


  // --- getter ---

  getFirst: function()
  {
    return this._First;
  },

  getSecond: function()
  {
    return this._Second;
  },

  getOrder: function()
  {
    return this._Order;
  },

  getType: function()
  {
    return this._Type;
  }

}