org.owasp.validator.html.model
Class AntiSamyPattern
java.lang.Object
org.owasp.validator.html.model.AntiSamyPattern
public class AntiSamyPattern
- extends Object
An extension of the Pattern to give it a "lookup name" that we can use from a
centralized store.
- Author:
- Arshan Dabirsiaghi
AntiSamyPattern
public AntiSamyPattern(String name,
Pattern pattern)
- Constructor for AntiSamyPattern. The "name" parameter is a lookup name for retrieving the Pattern parameter
passed in later.
- Parameters:
name - The lookup name by which we will retrieve this Pattern later.pattern - The Pattern to lookup based on the "name".
getName
public String getName()
- Returns:
- Return the name of the
AntiSamyPattern.
setName
public void setName(String name)
- Parameters:
name - Set the name of the AntiSamyPattern.
getPattern
public Pattern getPattern()
- Returns:
- Return the Pattern of the
AntiSamyPattern.
setPattern
public void setPattern(Pattern pattern)
- Parameters:
pattern - Set the Pattern of the AntiSamyPattern.