edu.udo.cs.wvtool.config
Class WVTConfigurationFact

java.lang.Object
  extended by edu.udo.cs.wvtool.config.WVTConfigurationFact
All Implemented Interfaces:
WVTConfigurationRule

public class WVTConfigurationFact
extends java.lang.Object
implements WVTConfigurationRule

Class used to simplify the process of creating rules, in cases, in which simply a constant value is returned.

Version:
$Id: WVTConfigurationFact.java,v 1.2 2006/06/06 11:45:24 mjwurst Exp $
Author:
Michael Wurst

Field Summary
private  java.lang.String className
          the name of the class from which to create an object as component
private  java.lang.Object component
          the object that represents the component
 
Constructor Summary
WVTConfigurationFact(java.lang.Object component)
          Constructor for a configuration fact.
WVTConfigurationFact(java.lang.String className)
          Constructor for a configuration fact.
 
Method Summary
 java.lang.Object getMatchingComponent(WVTDocumentInfo d)
          Get a component object for a given document info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

private java.lang.String className
the name of the class from which to create an object as component


component

private final java.lang.Object component
the object that represents the component

Constructor Detail

WVTConfigurationFact

public WVTConfigurationFact(java.lang.String className)
Constructor for a configuration fact.

Parameters:
className - the name of the class, which represents the component


WVTConfigurationFact

public WVTConfigurationFact(java.lang.Object component)
Constructor for a configuration fact.

Parameters:
component - the component to return

Method Detail

getMatchingComponent

public java.lang.Object getMatchingComponent(WVTDocumentInfo d)
Description copied from interface: WVTConfigurationRule
Get a component object for a given document info

Specified by:
getMatchingComponent in interface WVTConfigurationRule
Parameters:
d - information about a document
Returns:
the object to use for the document
See Also:
WVTConfigurationRule.getMatchingComponent(WVTDocumentInfo)