|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tridas.io.defaults.AbstractDefaultValue<org.tridas.schema.DateTime>
org.tridas.io.defaults.values.DateTimeDefaultValue
public class DateTimeDefaultValue
| Constructor Summary | |
|---|---|
DateTimeDefaultValue()
|
|
DateTimeDefaultValue(org.tridas.schema.DateTime argValue)
|
|
DateTimeDefaultValue(org.tridas.schema.DateTime argValue,
SimpleDateFormat format)
|
|
| Method Summary | |
|---|---|
SimpleDateFormat |
getSimpleDateFormat(SimpleDateFormat format)
Get the formatter used for saving this DateTime to string |
String |
getStringValue()
Gets the string representation of the value. |
org.tridas.schema.DateTime |
getValue()
Gets the value. |
void |
setSimpleDateFormat(SimpleDateFormat format)
Set the formatter that should be used by the toStringValue function |
protected boolean |
validateAndSetValue(org.tridas.schema.DateTime argValue)
Validate and set the value. |
protected boolean |
validateAndSetValue(Integer day,
Integer month,
Integer year)
|
| Methods inherited from class org.tridas.io.defaults.AbstractDefaultValue |
|---|
clone, getKey, getMaxLength, getMinLength, getParent, isOverriding, isPadRight, setKey, setMaxLength, setMinLength, 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 DateTimeDefaultValue()
public DateTimeDefaultValue(org.tridas.schema.DateTime argValue)
public DateTimeDefaultValue(org.tridas.schema.DateTime argValue,
SimpleDateFormat format)
| Method Detail |
|---|
public void setSimpleDateFormat(SimpleDateFormat format)
format - public SimpleDateFormat getSimpleDateFormat(SimpleDateFormat format)
format -
public org.tridas.schema.DateTime getValue()
AbstractDefaultValue
getValue in class AbstractDefaultValue<org.tridas.schema.DateTime>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<org.tridas.schema.DateTime>protected boolean validateAndSetValue(org.tridas.schema.DateTime argValue)
AbstractDefaultValue
validateAndSetValue in class AbstractDefaultValue<org.tridas.schema.DateTime>argValue - the value, can be null.
protected boolean validateAndSetValue(Integer day,
Integer month,
Integer year)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||