@ThreadSafe public class PropertyType extends Object
| Constructor and Description |
|---|
PropertyType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Default implementation of equals.
|
String |
getValue()
Gets the value of the value property.
|
int |
hashCode()
Default implementation of hashCode.
|
boolean |
isCaseSensitive()
Gets the value of the caseSensitive property.
|
boolean |
isRegex()
Returns whether or not the value is a regex.
|
boolean |
matches(String text)
Uses the object's properties to determine if the supplied string matches
the value of this property.
|
void |
setCaseSensitive(boolean value)
Sets the value of the caseSensitive property.
|
void |
setRegex(boolean value)
Sets whether the value property is a regex.
|
void |
setValue(String value)
Sets the value of the value property.
|
String |
toString()
Default implementation of toString().
|
public String getValue()
public void setValue(String value)
value - the value of the value propertypublic boolean isRegex()
public void setRegex(boolean value)
value - true if the value is a regex, otherwise falsepublic boolean isCaseSensitive()
public void setCaseSensitive(boolean value)
value - whether the value is case sensitivepublic boolean matches(String text)
text - the String to validatepublic int hashCode()
public boolean equals(Object obj)
Copyright © 2012–2020 OWASP. All rights reserved.