it.haefelinger.flaka
Class Switch

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by it.haefelinger.flaka.Task
              extended by it.haefelinger.flaka.Switch
All Implemented Interfaces:
Cloneable

public class Switch
extends Task

Since:
1.0
Author:
merzedes

Nested Class Summary
protected static class Switch.Match
          Case class
static class Switch.MatcherBean
          The sole purpose of this class is to answer questions on properties asked by a resolver, usually a bean resolver (hence the name BeanMatcher).
 
Field Summary
protected  List cases
           
protected  Sequential defaultcase
           
protected  int flags
           
protected  String value
           
protected  String var
           
 
Fields inherited from class it.haefelinger.flaka.Task
debug, el
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Switch()
           
 
Method Summary
 void addDefault(Sequential res)
           
 void addOtherwise(Sequential res)
           
 Switch.Match createMatches()
           
 void execute()
           
 void setComments(boolean b)
           
 void setDotAll(boolean b)
           
 void setIgnoreCase(boolean b)
           
 void setMultiLine(boolean b)
           
 void setUnixLines(boolean b)
           
 void setValue(String value)
           
 void setVar(String s)
           
 
Methods inherited from class it.haefelinger.flaka.Task
debug, debug, error, error, getProperty, getref, info, log, setDebug, setEl, throwbx, throwbx, toFile, verbose, warn, warn
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected String value

cases

protected List cases

defaultcase

protected Sequential defaultcase

var

protected String var

flags

protected int flags
Constructor Detail

Switch

public Switch()
Method Detail

setVar

public void setVar(String s)

setIgnoreCase

public void setIgnoreCase(boolean b)

setDotAll

public void setDotAll(boolean b)

setUnixLines

public void setUnixLines(boolean b)

setComments

public void setComments(boolean b)

setMultiLine

public void setMultiLine(boolean b)

setValue

public void setValue(String value)

createMatches

public Switch.Match createMatches()
                           throws BuildException
Throws:
BuildException

addDefault

public void addDefault(Sequential res)
                throws BuildException
Parameters:
res -
Throws:
BuildException

addOtherwise

public void addOtherwise(Sequential res)
                  throws BuildException
Parameters:
res -
Throws:
BuildException

execute

public void execute()
             throws BuildException
Overrides:
execute in class Task
Throws:
BuildException