|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.convert.StringToDateConverter
public class StringToDateConverter
A TypeConverter that converts String values (on the physical layer)
to interpreted Dates.
| Constructor Summary | |
|---|---|
StringToDateConverter()
Constructs a new StringToDateConverter which will use the
TimeComparator.toDate(Object) method for parsing dates and the
DateFormat.MEDIUM date time format for physical representation. |
|
StringToDateConverter(DateFormat dateFormat)
Constructs a new StringToDateConverter using a given
DateFormat. |
|
StringToDateConverter(String datePattern)
Constructs a new StringToDateConverter using a given date
pattern. |
|
| Method Summary | |
|---|---|
String |
toPhysicalValue(Date virtualValue)
Converts a virtual representation of a value into it's physical value. |
Date |
toVirtualValue(String physicalValue)
Converts a physical value into it's virtual representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringToDateConverter()
StringToDateConverter which will use the
TimeComparator.toDate(Object) method for parsing dates and the
DateFormat.MEDIUM date time format for physical representation.
public StringToDateConverter(String datePattern)
StringToDateConverter using a given date
pattern.
datePattern - a String date pattern, corresponding to the syntax of a
SimpleDateFormat.public StringToDateConverter(DateFormat dateFormat)
StringToDateConverter using a given
DateFormat.
dateFormat - the DateFormat to use for parsing and formatting
dates.| Method Detail |
|---|
public String toPhysicalValue(Date virtualValue)
toPhysicalValue in interface TypeConverter<String,Date>virtualValue - the virtual representation
public Date toVirtualValue(String physicalValue)
toVirtualValue in interface TypeConverter<String,Date>physicalValue - the physical value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||