コード例 #1
0
 @Override
 public String getLabel() {
   return institute.getLabel();
 }
コード例 #2
0
 /**
  * This class will not have a name, instead it has a one-one relation to an {@link Institute} and
  * we will use the name of an Institute instead.
  *
  * @return Name of the related institute
  */
 public String getName() {
   return institute != null ? institute.getName() : null;
 }