view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/logger/LoggingNode.java @ 146:371b6ddb78f2

repair putAttributeIndex and deleteAttributeIndex
author one
date Fri, 21 Nov 2014 12:46:06 +0900
parents 74723b26ad96
children e26462a38ce0
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.logger;

import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode;


public class LoggingNode
{
	public LoggingNode(TreeNode _wrap)
	{
		this(_wrap,new DefaultOperationLog());
	}
	
	public LoggingNode(TreeNode _wrap,OperationLog _log)
	{
		wrap = _wrap;
		log = _log;
	}
	
	private final TreeNode wrap;
	private final OperationLog log;
	
	public LoggingAttributes getAttributes()
	{
		return new LoggingAttributes(wrap,log);
	}
	
	public LoggingChildren getChildren()
	{
		return new LoggingChildren(wrap,log);
	}
	

	public OperationLog getOperationLog()
	{
		return log;
	}
	
	public TreeNode getWrap()
	{
		return wrap;
	}

}