com.atlassian.bamboo.rest.entity
Class NamedEntity<T>

java.lang.Object
  extended by 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.


Constructor Summary
protected NamedEntity()
           
  NamedEntity(java.lang.String name, T value)
           
 
Method Summary
static
<T> com.google.common.base.Function<NamedEntity<? extends T>,T>
extract()
           
 java.lang.String getName()
           
 T getValue()
           
 void setName(java.lang.String name)
           
 void setValue(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedEntity

protected NamedEntity()

NamedEntity

public NamedEntity(java.lang.String name,
                   T value)
Method Detail

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.