org.appng.search.searcher

## Class DateAdapter

- java.lang.Object
- - javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
  - - org.appng.search.searcher.DateAdapter

-     public class DateAdapter
      extends XmlAdapter<String,Date>

  A `XmlAdapter` responsible for adapting a `String` to a `Date` and vice versa.
  Author:
    Matthias Müller

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DateAdapter(DateFormat dateFormat)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `marshal(Date date)`
    `Date` | `unmarshal(String date)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DateAdapter

          public DateAdapter(DateFormat dateFormat)

  - ### Method Detail

    - #### marshal

          public String marshal(Date date)
                         throws Exception

      Specified by:
        `marshal` in class `XmlAdapter<String,Date>`
      Throws:
        `Exception`

    - #### unmarshal

          public Date unmarshal(String date)
                         throws Exception

      Specified by:
        `unmarshal` in class `XmlAdapter<String,Date>`
      Throws:
        `Exception`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.