Project

General

Profile

« Previous | Next » 

Revision 3e04d6ad

Added by Andreas Müller over 15 years ago

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/CdmSingleAttributeMapperBase.java
27 27
	
28 28
	private String sourceValue;
29 29
	private String destinationValue;
30
	protected Object defaultValue;
30 31

  
31
	protected CdmSingleAttributeMapperBase(String dbAttributString, String cdmAttributeString){
32
		this.sourceValue = dbAttributString;
33
		this.destinationValue = cdmAttributeString;
32
	protected CdmSingleAttributeMapperBase(String sourceAttributString, String destinationAttributeString){
33
		this(sourceAttributString,destinationAttributeString, null);
34 34
	}
35

  
36
	protected CdmSingleAttributeMapperBase(String sourceAttributString, String destinationAttributeString, Object defaultValue){
37
		this.sourceValue = sourceAttributString;
38
		this.destinationValue = destinationAttributeString;
39
		this.defaultValue = defaultValue;
40
	}
41

  
35 42
	
36 43
	public String getSourceAttribute(){
37 44
		return sourceValue;

Also available in: Unified diff