public class BasePipe extends Object implements Pipe
| Modifier and Type | Field and Description |
|---|---|
protected PipeBindings |
bindings |
protected String |
distributionAgent |
protected static String |
DRYRUN_EXPR |
static String |
DRYRUN_KEY |
protected Boolean |
dryRunObject |
static Iterator<org.apache.sling.api.resource.Resource> |
EMPTY_ITERATOR
Empty resource iterator
|
static List<String> |
IGNORED_PROPERTIES |
protected ContainerPipe |
parent |
protected Plumber |
plumber |
static String |
PN_STATUS |
static String |
PN_STATUS_MODIFIED |
protected org.apache.sling.api.resource.ValueMap |
properties |
static String |
READ_ONLY |
protected ReferencePipe |
referrer |
protected org.apache.sling.api.resource.ResourceResolver |
resolver |
protected org.apache.sling.api.resource.Resource |
resource |
static String |
RESOURCE_TYPE |
static String |
RT_PREFIX |
static String |
STATUS_FINISHED |
static String |
STATUS_STARTED |
| Constructor and Description |
|---|
BasePipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource)
Pipe Constructor
|
| Modifier and Type | Method and Description |
|---|---|
PipeBindings |
getBindings()
returns the pipe's bindings
|
org.apache.sling.api.resource.Resource |
getConfiguration()
Get configuration node
|
org.apache.sling.api.resource.Resource |
getConfiguredInput()
Get the pipe's optional configured resource or null
|
String |
getDistributionAgent()
Get Distribution agent
|
String |
getExpr()
Get pipe's expression, instanciated or not
|
org.apache.sling.api.resource.Resource |
getInput()
Get pipe current's resource *before* next execution, meaning either the
configured resource, either previous' pipe output resource
|
String |
getName()
Return the name of that pipe
|
Iterator<org.apache.sling.api.resource.Resource> |
getOutput()
default execution, just returns current resource
|
Object |
getOutputBinding()
returns the binding output used in container pipe's expression
|
ContainerPipe |
getParent()
Return parent's pipe (can be null)
|
String |
getPath()
Get pipe's path, instanciated or not
|
protected Pipe |
getPreviousPipe()
Retrieves previous pipe if contained by a parent, or referrer's
|
org.apache.sling.api.resource.Resource |
getResource()
get the pipe configuration resource
|
boolean |
isDryRun()
returns true if that pipe is set not to write content
|
boolean |
modifiesContent()
returns true if that pipe modifies content during its execution
|
void |
setBindings(PipeBindings bindings)
set the pipe's bindings
|
void |
setParent(ContainerPipe parent)
set the pipe parent
|
void |
setReferrer(ReferencePipe pipe)
sets the reference pipe this pipe is referred by
|
String |
toString() |
public static final String RT_PREFIX
public static final String RESOURCE_TYPE
public static final String DRYRUN_KEY
public static final String READ_ONLY
public static final String PN_STATUS
public static final String PN_STATUS_MODIFIED
public static final String STATUS_STARTED
public static final String STATUS_FINISHED
protected static final String DRYRUN_EXPR
protected org.apache.sling.api.resource.ResourceResolver resolver
protected org.apache.sling.api.resource.ValueMap properties
protected org.apache.sling.api.resource.Resource resource
protected ContainerPipe parent
protected String distributionAgent
protected PipeBindings bindings
protected ReferencePipe referrer
protected Boolean dryRunObject
protected Plumber plumber
public static final Iterator<org.apache.sling.api.resource.Resource> EMPTY_ITERATOR
public ContainerPipe getParent()
Pipepublic void setParent(ContainerPipe parent)
Pipepublic org.apache.sling.api.resource.Resource getResource()
PipegetResource in interface Pipepublic boolean isDryRun()
Pipepublic boolean modifiesContent()
PipemodifiesContent in interface Pipepublic String getName()
Pipepublic String getExpr()
public String getPath()
public org.apache.sling.api.resource.Resource getConfiguredInput()
PipegetConfiguredInput in interface Pipeprotected Pipe getPreviousPipe()
public org.apache.sling.api.resource.Resource getInput()
Pipepublic Object getOutputBinding()
PipegetOutputBinding in interface Pipepublic PipeBindings getBindings()
PipegetBindings in interface Pipepublic void setBindings(PipeBindings bindings)
PipesetBindings in interface Pipebindings - bindings to setpublic Iterator<org.apache.sling.api.resource.Resource> getOutput()
public org.apache.sling.api.resource.Resource getConfiguration()
public String getDistributionAgent()
PipegetDistributionAgent in interface Pipepublic void setReferrer(ReferencePipe pipe)
PipesetReferrer in interface Pipepipe - referrer that refers to this instanceCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.