org.apache.cocoon.components.source.impl
Class BlockContextSource

java.lang.Object
  extended byorg.apache.excalibur.source.impl.AbstractSource
      extended byorg.apache.cocoon.components.source.impl.BlockContextSource
All Implemented Interfaces:
Source, TraversableSource

public class BlockContextSource
extends AbstractSource
implements TraversableSource

This source makes the immediate children to the blockcontext:/ uri traversable

Version:
$Id: BlockContextSource.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
BlockContextSource(String location, Map blockContexts, ServiceManager manager)
           
 
Method Summary
 boolean exists()
           
 Source getChild(String name)
           
 Collection getChildren()
           
 String getName()
           
 Source getParent()
           
 boolean isCollection()
           
 
Methods inherited from class org.apache.excalibur.source.impl.AbstractSource
checkInfos, getContentLength, getInfos, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh, setContentLength, setLastModified, setScheme, setSystemId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.excalibur.source.Source
getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh
 

Constructor Detail

BlockContextSource

public BlockContextSource(String location,
                          Map blockContexts,
                          ServiceManager manager)
                   throws MalformedURLException,
                          IOException
Throws:
IOException
MalformedURLException
Method Detail

exists

public boolean exists()
Specified by:
exists in interface Source

getChild

public Source getChild(String name)
                throws SourceException
Specified by:
getChild in interface TraversableSource
Throws:
SourceException

getChildren

public Collection getChildren()
                       throws SourceException
Specified by:
getChildren in interface TraversableSource
Throws:
SourceException

getName

public String getName()
Specified by:
getName in interface TraversableSource

getParent

public Source getParent()
                 throws SourceException
Specified by:
getParent in interface TraversableSource
Throws:
SourceException

isCollection

public boolean isCollection()
Specified by:
isCollection in interface TraversableSource


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