@Immutable public class SequencerPathExpression extends Object implements Serializable
A simple example is the following:
/a/b/c@title => /d/e/f
which means that a sequencer (that uses this expression in its configuration) should be run any time there is a new or modified
title property on the /a/b/c node, and that the output of the sequencing should be placed at
/d/e/f.
| Modifier and Type | Class and Description |
|---|---|
static class |
SequencerPathExpression.Matcher |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_OUTPUT_EXPRESSION |
| Modifier | Constructor and Description |
|---|---|
protected |
SequencerPathExpression(PathExpression selectExpression,
String outputExpression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesToWorkspace(String workspaceName)
Determine if this path expression applies to content within the supplied workspace name.
|
static SequencerPathExpression |
compile(String expression)
Compile the supplied expression and return the resulting SequencerPathExpression instance.
|
boolean |
equals(Object obj) |
String |
getOutputExpression() |
String |
getSelectExpression() |
int |
hashCode() |
SequencerPathExpression.Matcher |
matcher(String absolutePath)
Obtain a Matcher that can be used to convert the supplied workspace key and absolute path into an output workspace name and
and output path.
|
String |
toString() |
protected static final String DEFAULT_OUTPUT_EXPRESSION
protected SequencerPathExpression(PathExpression selectExpression, String outputExpression)
public static final SequencerPathExpression compile(String expression) throws InvalidSequencerPathExpression
expression - the expressionIllegalArgumentException - if the expression is nullInvalidSequencerPathExpression - if the expression is blank or is not a valid expressionpublic String getSelectExpression()
public String getOutputExpression()
public final boolean appliesToWorkspace(String workspaceName)
workspaceName - the name of the workspace; may not be nullpublic SequencerPathExpression.Matcher matcher(String absolutePath)
absolutePath - the path in the workspace; may not be nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.