Class NamedEntityAdapter<T>
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<Element,NamedEntity<T>>
-
- com.atlassian.bamboo.rest.adapter.NamedEntityAdapter<T>
-
- Direct Known Subclasses:
BitbucketNodeEntityAdapter
,FieldErrorsEntityAdapter
public abstract class NamedEntityAdapter<T> extends javax.xml.bind.annotation.adapters.XmlAdapter<Element,NamedEntity<T>>
Used for creating XML in form of:NamedEntity
class.
-
-
Constructor Summary
Constructors Constructor Description NamedEntityAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
createNamedEntity
public abstract NamedEntity<T> createNamedEntity(@NotNull @NotNull String name, @NotNull T value)
-
marshal
public Element marshal(@Nullable @Nullable NamedEntity<T> entity) throws Exception
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<Element,NamedEntity<T>>
- Throws:
Exception
-
unmarshal
public NamedEntity<T> unmarshal(@Nullable @Nullable Element element) throws Exception
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<Element,NamedEntity<T>>
- Throws:
Exception
-
-