Package com.adobe.acs.commons.mcp.util
Class SyntheticResourceBuilder
- java.lang.Object
-
- com.adobe.acs.commons.mcp.util.SyntheticResourceBuilder
-
public class SyntheticResourceBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description SyntheticResourceBuilder(AbstractResourceImpl start)SyntheticResourceBuilder(String name, String resourceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractResourceImplbuild()SyntheticResourceBuildercreateChild(String name)SyntheticResourceBuildercreateChild(String name, String resourceType)SyntheticResourceBuildercreateSibling(String name)SyntheticResourceBuildercreateSibling(String name, String resourceType)SyntheticResourceBuilderup()SyntheticResourceBuilderup(int levels)SyntheticResourceBuilderup(String name)SyntheticResourceBuilderwithAttributes(Object... attrs)SyntheticResourceBuilderwithAttributes(Map<String,Object> attrs)SyntheticResourceBuilderwithChild(org.apache.sling.api.resource.Resource child)Note: this doesn't navigate to the child, it just adds it to the current resourceSyntheticResourceBuilderwithPath(String path)
-
-
-
Constructor Detail
-
SyntheticResourceBuilder
public SyntheticResourceBuilder(AbstractResourceImpl start)
-
-
Method Detail
-
createChild
public SyntheticResourceBuilder createChild(String name, String resourceType)
-
createChild
public SyntheticResourceBuilder createChild(String name)
-
createSibling
public SyntheticResourceBuilder createSibling(String name, String resourceType)
-
createSibling
public SyntheticResourceBuilder createSibling(String name)
-
withPath
public SyntheticResourceBuilder withPath(String path)
-
withChild
public SyntheticResourceBuilder withChild(org.apache.sling.api.resource.Resource child)
Note: this doesn't navigate to the child, it just adds it to the current resource
-
withAttributes
public SyntheticResourceBuilder withAttributes(Object... attrs)
-
withAttributes
public SyntheticResourceBuilder withAttributes(Map<String,Object> attrs)
-
up
public SyntheticResourceBuilder up(int levels)
-
up
public SyntheticResourceBuilder up(String name)
-
up
public SyntheticResourceBuilder up()
-
build
public AbstractResourceImpl build()
-
-