|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tridas.io.defaults.AbstractDefaultValue<String>
org.tridas.io.defaults.values.SheffieldStringDefaultValue
public class SheffieldStringDefaultValue
| Constructor Summary | |
|---|---|
SheffieldStringDefaultValue()
|
|
SheffieldStringDefaultValue(String argValue)
|
|
SheffieldStringDefaultValue(String argValue,
int argMinLength,
int argMaxLength)
|
|
| Method Summary | |
|---|---|
String |
getStringValue()
Gets the string representation of the value. |
String |
getValue()
Gets the value. |
void |
setMaxLength(int argMaxLength)
Sets the maximum string length. |
void |
setMinLength(int argMinLength)
Sets the minimum string length. |
protected boolean |
validateAndSetValue(String argValue)
Validate and set the value. |
| Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue |
|---|
clone, getKey, getMaxLength, getMinLength, getParent, isOverriding, isPadRight, setKey, setOverriding, setOverridingValue, setPadRight, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SheffieldStringDefaultValue()
public SheffieldStringDefaultValue(String argValue)
public SheffieldStringDefaultValue(String argValue,
int argMinLength,
int argMaxLength)
| Method Detail |
|---|
public String getValue()
AbstractDefaultValue
getValue in class AbstractDefaultValue<String>org.tridas.io.defaults.IDefaultValue#getValue()public String getStringValue()
AbstractDefaultValueAbstractDefaultValue.setMinLength(int) is set,
then the string will be padded. If AbstractDefaultValue.getValue() is null, an empty string is
returned (if minLength is set, then it is padded as well).
getStringValue in class AbstractDefaultValue<String>protected boolean validateAndSetValue(String argValue)
AbstractDefaultValue
validateAndSetValue in class AbstractDefaultValue<String>argValue - the value, can be null.
AbstractDefaultValue.validateAndSetValue(java.lang.Object)public void setMaxLength(int argMaxLength)
AbstractDefaultValue
setMaxLength in class AbstractDefaultValue<String>AbstractDefaultValue.setMaxLength(int)public void setMinLength(int argMinLength)
AbstractDefaultValue
setMinLength in class AbstractDefaultValue<String>AbstractDefaultValue.setMinLength(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||