class MarkScaleValueResourceConverter extends AbstractConverter<MarkScaleValueResource, MarkScaleValue> {

	@Override
	public MarkScaleValue convert(final MarkScaleValueResource source, final MarkScaleValue target) {
		
		if (source.getMarkScaleId() != null) {
			MarkScale markScale = new MarkScale();
			markScale.setId(source.getMarkScaleId());
			target.setMarkScale(markScale);
		}
		
		target.setStrValue(source.getStrValue());
		
		return target;
	}

}