edu.udo.cs.yale.tools.plugin
Class Dependency

java.lang.Object
  extended by edu.udo.cs.yale.tools.plugin.Dependency

public class Dependency
extends java.lang.Object

A plugin dependency defines the name and version of a desired plugin.

Version:
$Id: Dependency.java,v 1.8 2006/08/03 14:39:30 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  java.lang.String name
          The name of the desired plugin.
private  java.lang.String version
          The version of the desired plugin.
 
Constructor Summary
Dependency(java.lang.String name, java.lang.String version)
          Create a new plugin dependency.
 
Method Summary
 java.lang.String getPluginName()
           
 java.lang.String getPluginVersion()
           
 boolean isFulfilled(java.util.List plugins)
          Returns true if the list contains a plugin with the desired name and version.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The name of the desired plugin.


version

private java.lang.String version
The version of the desired plugin.

Constructor Detail

Dependency

public Dependency(java.lang.String name,
                  java.lang.String version)
Create a new plugin dependency.

Method Detail

isFulfilled

public boolean isFulfilled(java.util.List plugins)
Returns true if the list contains a plugin with the desired name and version.


getPluginName

public java.lang.String getPluginName()

getPluginVersion

public java.lang.String getPluginVersion()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2006