|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
org.opennms.web.rest.ISO8601DateEditor
public class ISO8601DateEditor
PropertyEditor suitable for use by BeanWrapperImpl, so that we can accept xsd:datetime formatted dates in query strings. Also handles "epoch" style dates, if they exist. Could be extended to guess the date format and do something useful with it
| Constructor Summary | |
|---|---|
ISO8601DateEditor()
Constructor for ISO8601DateEditor. |
|
| Method Summary | |
|---|---|
String |
getAsText()
|
boolean |
isPaintable()
No, we don't do GUIs. |
void |
setAsText(String text)
|
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISO8601DateEditor()
Constructor for ISO8601DateEditor.
| Method Detail |
|---|
public String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport
public void setAsText(String text)
throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic boolean isPaintable()
isPaintable in interface PropertyEditorisPaintable in class PropertyEditorSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||