@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2023-05-18T04:52:40.966Z") public class StringConstraints extends Constraints
Constructor and Description |
---|
StringConstraints() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getMaxLength()
The maximum number of characters that should be allowed.
|
Integer |
getMinLength()
The minimum number of characters that should be allowed.
|
String |
getPattern()
A regular expression pattern (omitting slashes) against with the input should be validated.
|
String |
getPatternErrorMessage()
If a pattern is provided, an error message is required, explaining the desired format if the data does not fit the pattern.
|
String |
getPatternPlaceholder()
An example of the data to be entered, usually shown in or next to the input control (e.g.
|
int |
hashCode() |
StringConstraints |
maxLength(Integer maxLength) |
StringConstraints |
minLength(Integer minLength) |
StringConstraints |
pattern(String pattern) |
StringConstraints |
patternErrorMessage(String patternErrorMessage) |
StringConstraints |
patternPlaceholder(String patternPlaceholder) |
void |
setMaxLength(Integer maxLength) |
void |
setMinLength(Integer minLength) |
void |
setPattern(String pattern) |
void |
setPatternErrorMessage(String patternErrorMessage) |
void |
setPatternPlaceholder(String patternPlaceholder) |
String |
toString() |
dataType, getDataType, getType, isRequired, required, setDataType, setRequired
public StringConstraints minLength(Integer minLength)
public Integer getMinLength()
public void setMinLength(Integer minLength)
public StringConstraints maxLength(Integer maxLength)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
public StringConstraints pattern(String pattern)
public String getPattern()
public void setPattern(String pattern)
public StringConstraints patternErrorMessage(String patternErrorMessage)
public String getPatternErrorMessage()
public void setPatternErrorMessage(String patternErrorMessage)
public StringConstraints patternPlaceholder(String patternPlaceholder)
public String getPatternPlaceholder()
public void setPatternPlaceholder(String patternPlaceholder)
public boolean equals(Object o)
equals
in class Constraints
public int hashCode()
hashCode
in class Constraints
public String toString()
toString
in class Constraints
Copyright © 2023 Sage Bionetworks. All rights reserved.