Spring Data Commons

org.springframework.data.domain.jaxb
Class SortAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<SpringDataJaxb.SortDto,Sort>
      extended by org.springframework.data.domain.jaxb.SortAdapter

public class SortAdapter
extends XmlAdapter<SpringDataJaxb.SortDto,Sort>

XmlAdapter to convert Sort instances into SpringDataJaxb.SortDto instances and vice versa.

Author:
Oliver Gierke

Field Summary
static SortAdapter INSTANCE
           
 
Constructor Summary
SortAdapter()
           
 
Method Summary
 SpringDataJaxb.SortDto marshal(Sort source)
           
 Sort unmarshal(SpringDataJaxb.SortDto source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SortAdapter INSTANCE
Constructor Detail

SortAdapter

public SortAdapter()
Method Detail

marshal

public SpringDataJaxb.SortDto marshal(Sort source)
                               throws Exception
Specified by:
marshal in class XmlAdapter<SpringDataJaxb.SortDto,Sort>
Throws:
Exception

unmarshal

public Sort unmarshal(SpringDataJaxb.SortDto source)
               throws Exception
Specified by:
unmarshal in class XmlAdapter<SpringDataJaxb.SortDto,Sort>
Throws:
Exception

Spring Data Commons

Copyright © 2012. All Rights Reserved.