adams.ml.requirement
Class ReqStringValue

java.lang.Object
  extended by adams.ml.requirement.ReqString
      extended by adams.ml.requirement.ReqStringValue
All Implemented Interfaces:
Requirement

public class ReqStringValue
extends ReqString


Field Summary
protected  String[] m_regex_arr
           
 
Constructor Summary
ReqStringValue(String regex)
           
ReqStringValue(String[] regex)
          Match any one of
 
Method Summary
 String checkRequirement(BaseData bd)
          Checks if cell is ok.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_regex_arr

protected String[] m_regex_arr
Constructor Detail

ReqStringValue

public ReqStringValue(String regex)

ReqStringValue

public ReqStringValue(String[] regex)
Match any one of

Parameters:
regex -
Method Detail

checkRequirement

public String checkRequirement(BaseData bd)
Description copied from interface: Requirement
Checks if cell is ok. If ok, return null else return error String Sets cell if possible (i.e string representation of int->int

Specified by:
checkRequirement in interface Requirement
Overrides:
checkRequirement in class ReqString
Parameters:
bd - cell
Returns:
error string, or null


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.