Selector that filters files based on whether they contain a particular string using regexp.
It provides support for gathering the parameters together as well as for assigning an error message and throwing a build exception if an error is detected.
author |
Hans Lellelid hans@xmpl.org (Phing) |
---|---|
author |
Bruce Atherton bruce@callenish.com (Ant) |
version |
$Id: 4d76ea894ce69f9a15386d64eb57c26bced0ba40 $ |
package |
phing.types.selectors |
circularReference()
dieOnCircularReference( &$stk, \Project $p)
If one is included, throw a BuildException created by circularReference
This implementation is appropriate only for a DataType that cannot hold other DataTypes as children.
The general contract of this method is that it shouldn't do anything if checked is true and set it to true on exit.
\Project
getCheckedRef( $requiredClass, $dataTypeName)
getDescription()
getError() : \the
\the
error condition
getParameters() : \the
\the
set of parameters defined for this selector
getProject() : \Project
isReference()
isSelected(\PhingFile $basedir, $filename, \PhingFile $file) : \whether
\PhingFile
\PhingFile
\whether
the file should be selected or not
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
noChildrenAllowed()
parsingComplete() : void
setCasesensitive(boolean $casesensitive)
boolean
whether to pay attention to case sensitivity
setDescription( $desc)
setError( $msg)
setExpression(string $exp)
string
the string that a file must contain to be selected.
setParameters( $parameters)
setProject(\Project $project)
setRefid(\Reference $r) : void
Subclasses may need to check whether any other attributes have been set as well or child elements have been created and thus override this method. if they do they must call parent::setRefid()
\Reference
tooManyAttributes()
toString()
validate()
verifySettings()
EXPRESSION_KEY
CASE_KEY
userProvidedExpression : string
var |
The expression set from XML. |
---|
string
casesensitive :
parameters :
errmsg :
description :
ref :
checked : boolean
Subclasses are responsible for setting this value to false if we'd need to investigate this condition (usually because a child element has been added that is a subclass of DataType).
var |
---|
boolean
project : \Project