public class TargetGroupsXmlSerializer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_TARGET_GROUP |
static java.lang.String |
XML_TARGET_GROUPS |
Constructor and Description |
---|
TargetGroupsXmlSerializer() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<TargetGroup> |
deserialize(Element targetGroups)
Deserialize a list of target groups
|
long |
getSize(java.util.List<TargetGroup> 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 genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
java.util.List<TargetGroup> |
readFrom(java.lang.Class<java.util.List<TargetGroup>> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
<any> httpHeaders,
java.io.InputStream entityStream) |
static Element |
serialize(java.util.List<TargetGroup> targetGroups)
Serialize a list of target groups
|
void |
writeTo(java.util.List<TargetGroup> t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
<any> httpHeaders,
java.io.OutputStream entityStream) |
public static final java.lang.String XML_TARGET_GROUP
public static final java.lang.String XML_TARGET_GROUPS
public boolean isReadable(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
public java.util.List<TargetGroup> readFrom(java.lang.Class<java.util.List<TargetGroup>> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, <any> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public boolean isWriteable(java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
public void writeTo(java.util.List<TargetGroup> t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, <any> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public static java.util.List<TargetGroup> deserialize(Element targetGroups) throws java.lang.Exception
targetGroups
- java.lang.Exception
public static Element serialize(java.util.List<TargetGroup> targetGroups) throws java.lang.Exception
targetGroups
- java.lang.Exception
public long getSize(java.util.List<TargetGroup> t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
Copyright © 2017. All Rights Reserved.