public interface TraversableSource extends Source
| Modifier and Type | Method and Description |
|---|---|
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.
|
exists, getContentLength, getInputStream, getLastModified, getMimeType, getScheme, getURI, getValidity, refreshboolean isCollection()
java.util.Collection getChildren()
throws SourceException
Note: only those sources actually fetched from the
collection need to be released using the SourceResolver.
Sources (actually most probably TraversableSources).SourceException - this source is not traversable, or if some problem occurs.isCollection()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.java.lang.String getName()
Source getParent() throws SourceException
Source object.null if this source has no parent.SourceException - if some problem occurs.