org.apache.cocoon.components.search.utils
Class SourceHelper

java.lang.Object
  extended by org.apache.cocoon.components.search.utils.SourceHelper

public class SourceHelper
extends java.lang.Object


Constructor Summary
SourceHelper()
           
 
Method Summary
static org.apache.avalon.framework.configuration.Configuration build(org.apache.excalibur.source.Source source)
           
static boolean checkSourceValidity(org.apache.excalibur.source.Source source)
          Check the validity of the source with the registered source
static boolean checkSourceValidity(org.apache.excalibur.source.SourceValidity s1Validity, org.apache.excalibur.source.SourceValidity s2Validity)
          Compare two sources
static void registerSource(org.apache.excalibur.source.Source source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceHelper

public SourceHelper()
Method Detail

registerSource

public static final void registerSource(org.apache.excalibur.source.Source source)

checkSourceValidity

public static final boolean checkSourceValidity(org.apache.excalibur.source.Source source)
Check the validity of the source with the registered source

Returns:
true if the source didn't changed

checkSourceValidity

public static final boolean checkSourceValidity(org.apache.excalibur.source.SourceValidity s1Validity,
                                                org.apache.excalibur.source.SourceValidity s2Validity)
Compare two sources

Returns:
true if the source didn't changed

build

public static final org.apache.avalon.framework.configuration.Configuration build(org.apache.excalibur.source.Source source)
                                                                           throws org.apache.avalon.framework.configuration.ConfigurationException
Throws:
org.apache.avalon.framework.configuration.ConfigurationException


Copyright $ Apache Software Foundation. All Rights Reserved.