Module de.edgesoft.edgeutils
Package de.edgesoft.edgeutils.javafx
Class SimpleObjectPropertyLocalDateAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javafx.beans.property.SimpleObjectProperty<java.time.LocalDate>>
de.edgesoft.edgeutils.javafx.SimpleObjectPropertyLocalDateAdapter
public class SimpleObjectPropertyLocalDateAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javafx.beans.property.SimpleObjectProperty<java.time.LocalDate>>
Adapter for
SimpleObjectProperty.
Legal stuff
Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de
This file is part of edgeutils.
edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.
- Since:
- 0.9.4
- Author:
- Ekkart Kleinod
-
Constructor Summary
Constructors Constructor Description SimpleObjectPropertyLocalDateAdapter() -
Method Summary
Modifier and Type Method Description java.lang.Stringmarshal(javafx.beans.property.SimpleObjectProperty<java.time.LocalDate> theProperty)Marshal local date property.javafx.beans.property.SimpleObjectProperty<java.time.LocalDate>unmarshal(java.lang.String theString)Unmarshal local date property.
-
Constructor Details
-
SimpleObjectPropertyLocalDateAdapter
public SimpleObjectPropertyLocalDateAdapter()
-
-
Method Details
-
marshal
public java.lang.String marshal(javafx.beans.property.SimpleObjectProperty<java.time.LocalDate> theProperty) throws java.lang.ExceptionMarshal local date property.- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javafx.beans.property.SimpleObjectProperty<java.time.LocalDate>>- Parameters:
theProperty- local date property- Returns:
- marshaled string
- Throws:
java.lang.Exception
-
unmarshal
public javafx.beans.property.SimpleObjectProperty<java.time.LocalDate> unmarshal(java.lang.String theString) throws java.lang.ExceptionUnmarshal local date property.- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,javafx.beans.property.SimpleObjectProperty<java.time.LocalDate>>- Parameters:
theString- string- Returns:
- local date property
- Throws:
java.lang.Exception
-