org.apache.lenya.cms.publication.templating
Class AllExistingSourceResolver

java.lang.Object
  extended by org.apache.lenya.cms.publication.templating.AllExistingSourceResolver
All Implemented Interfaces:
SourceVisitor

public class AllExistingSourceResolver
extends java.lang.Object
implements SourceVisitor

Source visitor to obtain all existing sources.


Constructor Summary
AllExistingSourceResolver()
           
 
Method Summary
 java.lang.String[] getUris()
           
 void visit(org.apache.excalibur.source.SourceResolver resolver, java.lang.String sourceUri)
          Visits a source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllExistingSourceResolver

public AllExistingSourceResolver()
Method Detail

visit

public void visit(org.apache.excalibur.source.SourceResolver resolver,
                  java.lang.String sourceUri)
Description copied from interface: SourceVisitor
Visits a source. We pass the resolver and the URI so that the visitor can decide if it wants to resolve the source (mainly for performance reasons).

Specified by:
visit in interface SourceVisitor
Parameters:
resolver - The resolver.
sourceUri - The source URI.

getUris

public java.lang.String[] getUris()
Returns:
All existing source URIs.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.