public class Mapper extends Object
Constructor and Description |
---|
Mapper() |
Modifier and Type | Method and Description |
---|---|
static <R,Z> Z |
map(Class<R> from,
Class<Z> to,
String xml,
HttpProxyBroker proxy)
Maps model object to defined decorator
|
static <F,T> T |
map(F from,
Class<T> to)
Maps model object to defined decorator
|
static <F,T> T |
map(F from,
Class<T> to,
HttpProxyBroker proxy)
Maps model object to defined decorator
|
public static <F,T> T map(F from, Class<T> to, HttpProxyBroker proxy)
from
- model objectto
- decorator objectproxy
- HttpProxyDecorator to injectpublic static <F,T> T map(F from, Class<T> to)
from
- model objectto
- decorator objectpublic static <R,Z> Z map(Class<R> from, Class<Z> to, String xml, HttpProxyBroker proxy) throws JAXBException
from
- model objectto
- decorator objectxml
- string to unmarshallproxy
- HttpProxyDecorator to injectJAXBException
Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0