|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A traversable source is a source that can have children and a parent, like a file system.
Method Summary | |
Source |
getChild(java.lang.String name)
Get a child of this source, given its name. |
java.util.Collection |
getChildren()
Get the children of this source if this source is traversable. |
java.lang.String |
getName()
Return the name of this source relative to its parent. |
Source |
getParent()
Get the parent of this source as a Source object. |
boolean |
isCollection()
Is this source a collection, i.e. |
Methods inherited from interface org.apache.excalibur.source.Source |
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh |
Method Detail |
public boolean isCollection()
public java.util.Collection getChildren() throws SourceException
Note: only those sources actually fetched from the
collection need to be released using the SourceResolver
.
Source
s (actually most probably TraversableSource
s).
SourceException
- this source is not traversable, or if some problem occurs.isCollection()
public Source getChild(java.lang.String name) throws SourceException
Source.exists()
.
name
- the child name.
SourceException
- if this source is not traversable or if some other
error occurs.public java.lang.String getName()
public Source getParent() throws SourceException
Source
object.
null
if this source has no parent.
SourceException
- if some problem occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |