public class FARForm extends OperationForm
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
LB_REGEX
A regular expression that, if put between the line end and line start matchers "$" and "^",
matches all unicode line break characters (except form feed).
|
protected java.util.regex.Pattern |
regexPattern
Cached generated regex.
|
BD_PROPERTY_NAME_SEARCH_STRING, groupReference, PROPERTY_NAME_BASEDIR
Modifier | Constructor and Description |
---|---|
protected |
FARForm(OperationType formType)
Protected constructor for inheriting classes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Only the base directory is taken into account for equals!
|
java.util.regex.Pattern |
getContentPatternAsRegex()
Returns the specified content pattern string as a java regex object.
|
java.lang.String |
getSearchStringContent()
Returns the content pattern.
|
int |
hashCode()
Only the base directory is taken into account for the hash code!
|
boolean |
isIgnoreCase()
Returns true if the
content pattern
should be interpreted as being not case sensitive. |
boolean |
isRegexContentPattern()
Returns true if the
content pattern
should be interpreted as regular expression. |
void |
reset()
Resets the search string to the empty string.
|
void |
setIgnoreCase(boolean ignore)
Set to true true if the
content pattern
should be interpreted as being not case sensitive. |
void |
setRegexContentPattern(boolean regexContentPattern)
Specify whether the
content pattern
should be interpreted as regular expression. |
void |
setSearchStringContent(java.lang.String searchRegexString)
Sets the content pattern.
|
protected void |
update(FARForm form)
Updates this form with the data from the "form" parameter.
|
addFormUpdateListener, addPropertyChangeListener, clone, firePropertyChangeEvent, getBaseDirectory, getGroupReference, getType, removeFormUpdateListener, removePropertyChangeListener, setBaseDirectory, setGroupReference, update
protected static final java.lang.String LB_REGEX
protected transient java.util.regex.Pattern regexPattern
protected FARForm(OperationType formType)
formType
- inheritors specify their type (one of the constants of this interface)public java.util.regex.Pattern getContentPatternAsRegex()
java.util.regex.PatternSyntaxException
- if the pattern can not be
compiled into a regular expression.public boolean isRegexContentPattern()
content pattern
should be interpreted as regular expression.public void setRegexContentPattern(boolean regexContentPattern)
content pattern
should be interpreted as regular expression.regexContentPattern
- is content pattern a regular expressionpublic boolean isIgnoreCase()
content pattern
should be interpreted as being not case sensitive.public void setIgnoreCase(boolean ignore)
content pattern
should be interpreted as being not case sensitive.ignore
- is content pattern case insensitivepublic java.lang.String getSearchStringContent()
public void setSearchStringContent(java.lang.String searchRegexString)
searchRegexString
- content pattern (ignores null)public void reset()
protected void update(FARForm form)
form
- data to replace the content of this formpublic boolean equals(java.lang.Object o)
equals
in class OperationForm
public int hashCode()
hashCode
in class OperationForm