Kelly Downey

Importing Java Business Object Model with Java Generics and missing attribute

Discussion created by Kelly Downey on Nov 19, 2009
Latest reply on Nov 20, 2009 by Jostein Ulseth

I'm trying to import the following class, but the "value" attribute does not appear:

 

import java.io.Serializable;

/**
 * Represents an attribute.
 *
  *
 * @param <T>
 */
public class Attribute<T extends Serializable> implements Serializable
{
 /**
  *
  */
 private static final long serialVersionUID = 1719054484952710453L;
 private final String name;
 private final T value;
 
 public Attribute(String name, T value)
  throws UnderwritingServiceException
 {
  if(name == null)
   throw new UnderwritingServiceException( "Attribute name is required" );
  this.name = name;
  this.value = value;
 }
 
 public String getName(){return this.name;}
 public T get(){ return value; } 
}

 

Any ideas?

Outcomes