|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.sequencer.SequencerPathExpression
@Immutable public class SequencerPathExpression
An expression that defines a selection of some change in the repository that signals a sequencing operation should be run, and the location where the sequencing output should be placed. Sequencer path expressions are used to determine whether information in the repository needs to be sequenced.
A simple example is the following:
/a/b/c@title => /d/e/fwhich 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
.
Nested Class Summary | |
---|---|
static class |
SequencerPathExpression.Matcher
|
Field Summary | |
---|---|
protected static String |
DEFAULT_OUTPUT_EXPRESSION
|
Constructor Summary | |
---|---|
protected |
SequencerPathExpression(PathExpression selectExpression,
String outputExpression)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String DEFAULT_OUTPUT_EXPRESSION
Constructor Detail |
---|
protected SequencerPathExpression(PathExpression selectExpression, String outputExpression)
Method Detail |
---|
public static final SequencerPathExpression compile(String expression) throws InvalidSequencerPathExpression
expression
- the expression
IllegalArgumentException
- if the expression is null
InvalidSequencerPathExpression
- if the expression is blank or is not a valid expressionpublic String getSelectExpression()
public String getOutputExpression()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public final boolean appliesToWorkspace(String workspaceName)
workspaceName
- the name of the workspace; may not be null
public SequencerPathExpression.Matcher matcher(String absolutePath)
absolutePath
- the path in the workspace; may not be null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |