org.carrot2.core
Class CapabilityMatchVerifier

java.lang.Object
  extended by org.carrot2.core.CapabilityMatchVerifier

final class CapabilityMatchVerifier
extends Object

An implementation of capability match verifier. See LocalComponent class documentation for details.

Version:
$Revision: 2122 $
Author:
Dawid Weiss
See Also:
LocalComponent

Method Summary
static String explain(LocalComponent componentFrom, LocalComponent componentTo)
           
static boolean isCompatible(LocalComponent componentFrom, LocalComponent componentTo)
          Check if componentFrom is compatible with compatibleTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isCompatible

public static boolean isCompatible(LocalComponent componentFrom,
                                   LocalComponent componentTo)
Check if componentFrom is compatible with compatibleTo

Parameters:
componentFrom - The component to verify compatibility of.
componentTo - The component to verify compatibility against.
Returns:
true if componentFrom is compatible with componentTo.

explain

public static String explain(LocalComponent componentFrom,
                             LocalComponent componentTo)
Parameters:
componentFrom - The component to verify compatibility of.
componentTo - The component to verify compatibility against.
Returns:
A natural-language explanation of the nature of incompatibility between componentFrom and componentTo.


Copyright (c) Dawid Weiss, Stanislaw Osinski