//現在行保持用Dictに、1つのコンテキストを追加 public static void setContextToDict(Context cxt, long rowsMaxNumber) { if (!ContextNoHelper.dictOfNoClass.Keys.Contains(cxt)) { ContextNoHelper.dictOfNoClass.Add(cxt, new ContextNo(1, rowsMaxNumber)); } }
//次の行 public static long getNextRowNo(Context cxt) { if (ContextNoHelper.dictOfNoClass.Keys.Contains(cxt)) { ContextNo objNo = ContextNoHelper.dictOfNoClass[cxt]; return objNo.Increment(); } else { return 1; } }
/* * 基底クラスを引数にしない public void Visit(Context cxt) { } */ public INode Create(Context cxt) { NotImplementedException excep = new NotImplementedException("このメソッドの引数クラスは抽象クラスです。"); throw excep; //return null; }