Class 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 Detail

      • NamedEntity

        protected NamedEntity()
      • NamedEntity

        public NamedEntity​(String name,
                           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)