public class ValidationRules
extends java.lang.Object
implements com.technia.common.xml.XMLReadable, com.technia.tvc.core.util.json.JSONWriteable
| Constructor and Description |
|---|
ValidationRules() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBadCharacters() |
int |
getMaxLength() |
int |
getMinLength() |
java.lang.String |
getPattern() |
void |
initFrom(ValidationRules other) |
void |
initialize(com.technia.common.xml.XMLReader reader) |
boolean |
isRequired() |
void |
setBadCharacter(java.lang.String badCharacters) |
void |
setMaxLength(int maxLength) |
void |
setMinLength(int minLength) |
void |
setPattern(java.lang.String pattern) |
void |
setRequired(boolean required) |
void |
toJSON(com.technia.tvc.core.util.json.JSONWriter writer) |
public boolean isRequired()
public void initFrom(ValidationRules other)
public void setRequired(boolean required)
public void setMinLength(int minLength)
public void setMaxLength(int maxLength)
public void setPattern(java.lang.String pattern)
public void setBadCharacter(java.lang.String badCharacters)
public int getMaxLength()
public int getMinLength()
public java.lang.String getPattern()
public java.lang.String getBadCharacters()
public void initialize(com.technia.common.xml.XMLReader reader)
throws com.technia.common.xml.XMLException
initialize in interface com.technia.common.xml.XMLReadablecom.technia.common.xml.XMLExceptionpublic void toJSON(com.technia.tvc.core.util.json.JSONWriter writer)
toJSON in interface com.technia.tvc.core.util.json.JSONWriteable