@ThreadSafe
public class PropertyType
extends java.lang.Object
| Constructor and Description |
|---|
PropertyType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Default implementation of equals.
|
java.lang.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(java.lang.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(java.lang.String value)
Sets the value of the value property.
|
java.lang.String |
toString()
Default implementation of toString().
|
public java.lang.String getValue()
public void setValue(java.lang.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(java.lang.String text)
text - the String to validatepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to comparepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright© 2012-21 Jeremy Long. All Rights Reserved.