org.apache.cocoon.caching
Interface CacheValidity

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
NOPCacheValidity, IncludeCacheValidity, CompositeCacheValidity, TimeStampCacheValidity, ParametersCacheValidity, AggregatedCacheValidity, DeltaTimeCacheValidity

public interface CacheValidity
extends java.io.Serializable

A CacheValidity object contains all information for one pipeline component to check if it is still valid.
For example, the FileGenerator stores only the timestamp for the read xml file in this container.

Version:
CVS $Id: CacheValidity.java,v 1.5.2.1 2002/10/23 03:12:07 vgritsenko Exp $
Author:
Carsten Ziegeler

Method Summary
 boolean isValid(CacheValidity validity)
          Check if the component is still valid.
 java.lang.String toString()
          Creates text represenation of the validity object.
 

Method Detail

isValid

public boolean isValid(CacheValidity validity)
Check if the component is still valid. This is only true, if the incoming CacheValidity is of the same type and has the same values.

toString

public java.lang.String toString()
Creates text represenation of the validity object. This is used to create fake 'lastModificationDate' for cocoon: sources.

Due to changes in source API, this method is no longer needed, starting with Cocoon 2.1.

Overrides:
toString in class java.lang.Object


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.