public class Substitution extends DataType
<substitution [ [id="id"] expression="expression" | refid="id" ] />
Perl5Substitution
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_TYPE_NAME
The name of this data type
|
description, location, project
Constructor and Description |
---|
Substitution()
Constructor for Substitution.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression(Project p)
Gets the pattern string for this RegularExpression in the
given project.
|
Substitution |
getRef(Project p)
Get the RegularExpression this reference refers to in
the given project.
|
void |
setExpression(java.lang.String expression)
Set the pattern string for this regular expression substitution.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public static final java.lang.String DATA_TYPE_NAME
public void setExpression(java.lang.String expression)
expression
- the regular expression to usepublic java.lang.String getExpression(Project p)
p
- the project to look for the regular expression if this object is
a referencepublic Substitution getRef(Project p)
p
- the project to look for the regular expression reference