public abstract class NamedEntityAdapter<T> extends XmlAdapter<Element,NamedEntity<T>>
which is particularly useful when you're supposed to marshall/unmarshall lists formatted like:
For more explanation see UT for
NamedEntity
class.Constructor and Description |
---|
NamedEntityAdapter() |
Modifier and Type | Method and Description |
---|---|
abstract NamedEntity<T> |
createNamedEntity(@NotNull String name,
T value) |
abstract Class<T> |
getEntityType() |
Element |
marshal(@Nullable NamedEntity<T> entity) |
NamedEntity<T> |
unmarshal(@Nullable Element element) |
public abstract NamedEntity<T> createNamedEntity(@NotNull @NotNull String name, @NotNull T value)
public Element marshal(@Nullable @Nullable NamedEntity<T> entity) throws Exception
marshal
in class XmlAdapter<Element,NamedEntity<T>>
Exception
public NamedEntity<T> unmarshal(@Nullable @Nullable Element element) throws Exception
unmarshal
in class XmlAdapter<Element,NamedEntity<T>>
Exception
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.