devdaily home | apple | java | perl | unix | directory | blog

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package com.efsol.friki;

import org.stringtree.util.tract.Tract;

public abstract class BasicDriver 
	implements RepositoryDriver
{
	public boolean isWritable(String name)
	{
		return true;
	}

	public boolean isReadable(String name)
	{
		return true;
	}

	public Object getObject(String name)
	{
		return get(name);
	}
	
	public void put(String name, Object obj)
	{
		if (obj instanceof Tract)
		{
			put(name, (Tract)obj);
		}
		else
		{
			System.out.println("Warning, attempt to put unknown object '" + obj + "' to Page repository");
		}
	}
	
	public String escape(String name)
	{
		return name;
	}
	
	public String unescape(String name)
	{
		return name;
	}
	
	public void remove(String arg0)
	{
		// do nothing
	}
	
	public void clear()
	{
		// do nothing
	}
}




Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
 
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com