org.apache.avalon.excalibur.source.validity
Class NOPValidity

java.lang.Object
  |
  +--org.apache.avalon.excalibur.source.validity.NOPValidity
All Implemented Interfaces:
java.io.Serializable, SourceValidity

public final class NOPValidity
extends java.lang.Object
implements SourceValidity

A validation object which is always valid.

Version:
CVS $Revision: 1.2 $ $Date: 2001/12/17 13:20:57 $
Author:
Carsten Ziegeler
See Also:
Serialized Form

Field Summary
static SourceValidity SHARED_INSTANCE
           
 
Constructor Summary
NOPValidity()
           
 
Method Summary
 boolean isValid()
          Check if the component is still valid.
 boolean isValid(SourceValidity newValidity)
          Check if the component is still valid.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHARED_INSTANCE

public static final SourceValidity SHARED_INSTANCE
Constructor Detail

NOPValidity

public NOPValidity()
Method Detail

isValid

public boolean isValid()
Check if the component is still valid. If false is returned the isValid(SourceValidity) must be called afterwards!
Specified by:
isValid in interface SourceValidity

isValid

public boolean isValid(SourceValidity newValidity)
Description copied from interface: SourceValidity
Check if the component is still valid. This is only true, if the incoming Validity is of the same type and has the same values. The invocation order is that the isValid method of the old Validity object is called with the new one as a parameter
Specified by:
isValid in interface SourceValidity

toString

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


Copyright 2001 Apache Jakarta Project. All Rights Reserved.