Modifier and Type | Method and Description |
---|---|
static Resource |
copy(Resource src,
Resource dstParent,
String name,
int depth)
Copies the
resource into the destinationParent . |
static int |
getSize(Iterator<Resource> children,
Filter<Resource> filter)
Returns the number of child resources for the specified
Resource . |
public static int getSize(Iterator<Resource> children, Filter<Resource> filter)
Resource
.children
- Iterator to get size fromfilter
- A Filter
implementation or null
children
public static Resource copy(Resource src, Resource dstParent, String name, int depth) throws PersistenceException
resource
into the destinationParent
. The
name of the newly created item is set to name
.src
- The resource to copy to the new locationdstParent
- The resource into which the resource
is to be
copied.name
- The name of the newly created item. If this is
null
the new item gets the same name as the
src
item.depth
- Traversal depth of copy. 0 indicates that only the source
and its properties are copied. A value > 0 indicates the depth
of childs to be copied.Resource
PersistenceException
- May be thrown in case of any problem copying
the content."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"