edu.internet2.middleware.ant.util
Class RegexSplit

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by edu.internet2.middleware.ant.util.RegexSplit
All Implemented Interfaces:
Cloneable

public class RegexSplit
extends org.apache.tools.ant.Task

A task that splits a string based on a regular expression. This ant task requires three attributes:


Field Summary
private  String addProperty
          The name of the property that will receive the split string.
private  String input
          The input string to be split.
private  String regex
          The regular expression used to split the input string.
 
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
RegexSplit()
           
 
Method Summary
 void execute()
          
 void setAddProperty(String prop)
          Sets the name of the property that will receive the split string.
 void setInput(String s)
          Sets the input string to be split.
 void setRegex(String exp)
          Sets the regular expression used to split the input string.
 
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, 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

input

private String input
The input string to be split.


regex

private String regex
The regular expression used to split the input string.


addProperty

private String addProperty
The name of the property that will receive the split string.

Constructor Detail

RegexSplit

public RegexSplit()
Method Detail

execute

public void execute()

Overrides:
execute in class org.apache.tools.ant.Task

setInput

public void setInput(String s)
Sets the input string to be split.

Parameters:
s - input string to be split

setRegex

public void setRegex(String exp)
Sets the regular expression used to split the input string.

Parameters:
exp - regular expression used to split the input string

setAddProperty

public void setAddProperty(String prop)
Sets the name of the property that will receive the split string.

Parameters:
prop - name of the property that will receive the split string


Copyright © 1999-2014. All Rights Reserved.