Exemple #1
0
 /**
  * asDto.
  *
  * @param from a {@link net.sourceforge.seqware.common.model.Attribute} object.
  * @return a {@link net.sourceforge.seqware.webservice.dto.AttributeDto} object.
  */
 public static AttributeDto asDto(Attribute from) {
   AttributeDto dto = new AttributeDto();
   dto.setName(from.getTag());
   dto.setValue(from.getValue());
   dto.setUnit(from.getUnit());
   return dto;
 }
Exemple #2
0
 /**
  * sampleAttributeAsDto.
  *
  * @param from a {@link net.sourceforge.seqware.common.model.SampleAttribute} object.
  * @return a {@link net.sourceforge.seqware.webservice.dto.AttributeDto} object.
  */
 public static AttributeDto sampleAttributeAsDto(SampleAttribute from) {
   AttributeDto dto = new AttributeDto();
   dto.setName(from.getTag());
   dto.setValue(from.getValue());
   dto.setUnit(from.getUnits());
   return dto;
 }