Package com.atlassian.bamboo.rest.entity
Class NamedEntity<T>
- java.lang.Object
-
- com.atlassian.bamboo.rest.entity.NamedEntity<T>
-
- Direct Known Subclasses:
BitbucketNodeNamedEntity
,FieldErrorsNamedEntity
public class NamedEntity<T> extends Object
Used for creating XML in form of:
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NamedEntity()
NamedEntity(String name, T value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> com.google.common.base.Function<NamedEntity<? extends T>,T>
extract()
String
getName()
T
getValue()
void
setName(String name)
void
setValue(T value)
-
-
-
Method Detail
-
extract
public static <T> com.google.common.base.Function<NamedEntity<? extends T>,T> extract()
-
getName
public String getName()
-
setName
public void setName(String name)
-
getValue
public T getValue()
-
setValue
public void setValue(T value)
-
-