|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exist.fluent.Folder.ChildrenFacet
public class Folder.ChildrenFacet
The children (subfolders) facet of a collection. Permits operations on subfolders, both immediate and indirect.
Method Summary | |
---|---|
boolean |
contains(String descendantName)
Return whether this folder has a descendant folder with the given name. |
Folder |
create(String descendantName)
Get a descendant folder of this folder, or create it if it doesn't exist. |
void |
export(File destination)
Export these children folders to the given directory. |
Folder |
get(String descendantName)
Return an existing descendant this of this folder, inheriting this one's namespace mappings. |
Iterator<Folder> |
iterator()
Return an iterator over the immediate child subfolders. |
int |
size()
Return the number of immediate child folders of this folder. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Folder get(String descendantName)
descendantName
- the relative name of the child folder to get; must not start with '/'
public Folder create(String descendantName)
descendantName
- the relative name of the descendant folder to create; must not start with '/'
public int size()
public boolean contains(String descendantName)
descendantName
- the relative name of the descendant folder; must not start with '/'
true
if this folder has a descendant wich the given name, false
otherwisepublic void export(File destination) throws IOException
destination
- the destination folder to export into
IOException
- if the export failed due to an I/O errorpublic Iterator<Folder> iterator()
iterator
in interface Iterable<Folder>
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |