public class RegularExpression
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
RegularExpression()
Constructs a blank regular expression.
|
RegularExpression(int regularExpressionID,
java.lang.String name,
java.lang.String expression,
java.lang.String description)
Constructs an object with all of its fields.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the regular expression from the database.
|
java.lang.String |
getDescription()
Gets the description of the regular expression.
|
java.lang.String |
getExpression()
Gets the actual expression of the regular expression.
|
java.lang.String |
getName()
Gets the name used to identify the regular expression.
|
int |
getRegularExpressionID()
Gets the database ID of the regular expression.
|
void |
save()
Saves the regular expression to the database.
|
void |
setDescription(java.lang.String description)
Sets the description of the regular expression.
|
void |
setExpression(java.lang.String expression)
Sets the actual expression of the regular expression.
|
void |
setName(java.lang.String name)
Sets the name used to identify the regular expression.
|
void |
setRegularExpressionID(int regularExpressionID)
Sets the database ID of the regular expression.
|
java.lang.String |
toString()
Returns the name of the regular expression.
|
public RegularExpression()
public RegularExpression(int regularExpressionID, java.lang.String name, java.lang.String expression, java.lang.String description)
public int getRegularExpressionID()
public void setRegularExpressionID(int regularExpressionID)
regularExpressionID
- The ID.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name.public java.lang.String getExpression()
public void setExpression(java.lang.String expression)
expression
- The expression.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description.public java.lang.String toString()
toString
in class java.lang.Object
public void save()
public void delete()