|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.jpalm.mobiledb.field.definition.TimeDefinition
public class TimeDefinition
A time field in a MobileDB record.
Use Time with this field.
| Constructor Summary | |
|---|---|
TimeDefinition()
Creates a new time field that does not default to the current time. |
|
TimeDefinition(boolean defaultToCurrentTime)
Creates a new time field. |
|
TimeDefinition(java.lang.String indicator)
Creates a new time field from the string representation for this type. |
|
| Method Summary | |
|---|---|
java.lang.String |
getIndicator()
Gets the string representation for this definition. |
java.lang.String |
getRegex()
Gets the regular expression for this definition. |
boolean |
isDefaultToCurrentTime()
Gets the defaultToCurrentTime property. |
void |
setDefaultToCurrentTime(boolean defaultToCurrentDate)
Sets the defaultToCurrentTime property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeDefinition()
public TimeDefinition(boolean defaultToCurrentTime)
defaultToCurrentTime - true if the field should default to the current time;
false otherwisepublic TimeDefinition(java.lang.String indicator)
indicator - the string representation| Method Detail |
|---|
public java.lang.String getIndicator()
Definition
getIndicator in interface Definitionpublic java.lang.String getRegex()
Definition
getRegex in interface Definitionpublic boolean isDefaultToCurrentTime()
defaultToCurrentTime property.
true if the time should default to the current time;
false if it should default to nullpublic void setDefaultToCurrentTime(boolean defaultToCurrentDate)
defaultToCurrentTime property.
defaultToCurrentDate - true if the time should default to the current time;
false if it should default to null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||