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 java.lang.Object
Used for creating XML in form of:
which is particularly useful when you're supposed to marshall/unmarshall lists formatted like:
For more explanation see UT for this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedEntity
protected NamedEntity()
NamedEntity
public NamedEntity(java.lang.String name,
T value)
extract
public static <T> com.google.common.base.Function<NamedEntity<? extends T>,T> extract()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getValue
public T getValue()
setValue
public void setValue(T value)
Copyright © 2012 Atlassian. All Rights Reserved.