public class MailingXmlSerializer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_ID |
static java.lang.String |
XML_MAILING |
static java.lang.String |
XML_MAILING_FIELD |
static java.lang.String |
XML_MAILING_FIELDS |
Constructor and Description |
---|
MailingXmlSerializer() |
Modifier and Type | Method and Description |
---|---|
protected static Element |
addFieldElement(Element parent,
java.lang.String name,
java.lang.String value) |
protected static Element |
appendNullableChildElement(Element parent,
java.lang.String childName,
java.lang.Object value) |
static Mailing |
deserializeSingleElement(Element element)
Deserialize a mailing
|
long |
getSize(Mailing t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt) |
Mailing |
readFrom(java.lang.Class<Mailing> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt,
<any> mm,
java.io.InputStream in) |
static Element |
serialize(Mailing element)
Serialize a single filter
|
void |
writeTo(Mailing t,
java.lang.Class<?> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt,
<any> mm,
java.io.OutputStream out) |
public static final java.lang.String XML_ID
public static final java.lang.String XML_MAILING
public static final java.lang.String XML_MAILING_FIELD
public static final java.lang.String XML_MAILING_FIELDS
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt)
public Mailing readFrom(java.lang.Class<Mailing> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt, <any> mm, java.io.InputStream in) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt)
public void writeTo(Mailing t, java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt, <any> mm, java.io.OutputStream out) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public static Mailing deserializeSingleElement(Element element) throws java.lang.Exception
element
- java.lang.Exception
public static Element serialize(Mailing element) throws java.lang.Exception
element
- java.lang.Exception
protected static Element addFieldElement(Element parent, java.lang.String name, java.lang.String value)
protected static Element appendNullableChildElement(Element parent, java.lang.String childName, java.lang.Object value)
public long getSize(Mailing t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
Copyright © 2018. All Rights Reserved.