se.cambio.cm.model.util.TemplateMap Maven / Gradle / Ivy
The newest version!
package se.cambio.cm.model.util;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class TemplateMap {
private final String archetypeId;
private final String templateId;
private Map elementMaps;
public TemplateMap(String archetypeId, String templateId, Map elementMaps) {
this.archetypeId = archetypeId;
this.templateId = templateId;
this.elementMaps = elementMaps;
}
public String getArchetypeId() {
return archetypeId;
}
public String getTemplateId() {
return templateId;
}
public Map getElementMaps() {
if (elementMaps == null) {
elementMaps = new HashMap();
}
return Collections.unmodifiableMap(elementMaps);
}
}