All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.okapi.steps.scopingreport.ScopingReportAnnotation Maven / Gradle / Ivy

There is a newer version: 1.47.0
Show newest version
package net.sf.okapi.steps.scopingreport;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import net.sf.okapi.common.Util;
import net.sf.okapi.common.annotation.IAnnotation;

public class ScopingReportAnnotation  implements IAnnotation, Serializable {
	
	private static final long serialVersionUID = -1566108918173044555L;
	private Map fields = new HashMap<>();
	
	public void put(String fieldName, String fieldValue) {
		if (Util.isEmpty(fieldValue)) fieldValue = "0"; 
		fields.put(fieldName, fieldValue);
	}

	public Map getFields() {
		return fields;
	}
	
	public void setFields(Map fields) {
		this.fields = fields;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy