class MarkScaleResourceConverter extends AbstractConverter<MarkScaleResource, MarkScale> {

	@Override
	public MarkScale convert(final MarkScaleResource source, final MarkScale target) {
		
		if (source.getMarkScaleTypeId() != null) {
			MarkScaleType markScaleType = new MarkScaleType();
			markScaleType.setId(source.getMarkScaleTypeId());
			target.setMarkScaleType(markScaleType);
		}
		
		target.setAbbrName(source.getAbbrName());
		target.setName(source.getName());
		target.setMarkMin(source.getMarkMin());
		target.setMarkMax(source.getMarkMax());
		
		return target;
	}

}