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:
     
         
     
 
which is particularly useful when you're supposed to marshall/unmarshall lists formatted like:
     
         
             
             
         
         
             
             
         
     
 
For more explanation see UT for this class.
  • Constructor Details

    • NamedEntity

      protected NamedEntity()
    • NamedEntity

      public NamedEntity(String name, T value)
  • Method Details

    • extract

      public static <T> 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)