org.apache.cocoon.components.source
Interface TraversableSource

All Superinterfaces:
Source
All Known Subinterfaces:
ModifiableTraversableSource

Deprecated. use the one from excalibur sourceresolve instead

public interface TraversableSource
extends Source

A source, which can be a directory or collection of sources.

Version:
CVS $Id: TraversableSource.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Stephan Michels

Method Summary
 String getChildSource(int index)
          Deprecated. Return the system id of a child source.
 int getChildSourceCount()
          Deprecated. Returns the count of child sources.
 String getParentSource()
          Deprecated. Return the system id of the parent source.
 boolean isSourceCollection()
          Deprecated. If the source a directory or a collection
 
Methods inherited from interface org.apache.excalibur.source.Source
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh
 

Method Detail

isSourceCollection

boolean isSourceCollection()
                           throws SourceException
Deprecated. 
If the source a directory or a collection

Throws:
SourceException

getChildSourceCount

int getChildSourceCount()
                        throws SourceException
Deprecated. 
Returns the count of child sources.

Throws:
SourceException

getChildSource

String getChildSource(int index)
                      throws SourceException
Deprecated. 
Return the system id of a child source.

Parameters:
index - Index of the child
Throws:
SourceException

getParentSource

String getParentSource()
Deprecated. 
Return the system id of the parent source. The method should return null if the source has no parent.



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.