org.apache.tools.ant.types

Class Substitution

public class Substitution extends DataType

A regular expression substitution datatype. It is an expression that is meant to replace a regular expression.
   <substitition [ [id="id"] expression="expression" | refid="id" ]
   />
 

See Also: org.apache.oro.text.regex.Perl5Substitution

Field Summary
static StringDATA_TYPE_NAME
The name of this data type
Constructor Summary
Substitution()
Method Summary
StringgetExpression(Project p)
Gets the pattern string for this RegularExpression in the given project.
SubstitutiongetRef(Project p)
Get the RegularExpression this reference refers to in the given project.
voidsetExpression(String expression)

Field Detail

DATA_TYPE_NAME

public static final String DATA_TYPE_NAME
The name of this data type

Constructor Detail

Substitution

public Substitution()

Method Detail

getExpression

public String getExpression(Project p)
Gets the pattern string for this RegularExpression in the given project.

getRef

public Substitution getRef(Project p)
Get the RegularExpression this reference refers to in the given project. Check for circular references too

setExpression

public void setExpression(String expression)
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.