// PlainMobyText.java
//
// Created: February 2006
//
// This file is a component of the BioMoby project.
// Copyright Martin Senger (martin.senger@gmail.com).
//

package org.biomoby.service.dashboard.renderers;


/**
 * Display a MobyObject in its internal simple string
 * representation. <p>
 *
 * @author <A HREF="mailto:martin.senger@gmail.com">Martin Senger</A>
 * @version $Id: PlainMobyText.java,v 1.3 2006/02/20 05:51:11 senger Exp $
 */

public class PlainMobyText
    extends PlainText {

    /*********************************************************************
     *
     ********************************************************************/
    public PlainMobyText() {
        super ("Simple Moby Text", "images/mobytext.gif");
    }

    /*********************************************************************
     * Takes any Moby object (even the 'envelope' objects, such as
     * MobyPackage, MobyJob, MobySimple and MobyCollection).
     ********************************************************************/
    public boolean canHandle (String criterion, Object value) {
	return (
	    criterion.equals (MOBY_TYPE)
	    );
    }

}
