public abstract class LayoutTemplate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
codeName |
protected String |
country |
protected String |
displayName |
protected Map<String,String> |
elementDefaults |
protected Map<String,String> |
elementRegex |
protected Map<String,String> |
elementRegexFormats |
protected String |
endDate |
protected static String |
LAYOUT_TOKEN |
protected List<String> |
lineByLineFormat |
protected int |
maxTokens |
protected Map<String,String> |
nameMappings |
protected List<String> |
requiredElements |
protected Map<String,String> |
sizeMappings |
protected String |
startDate |
| Constructor and Description |
|---|
LayoutTemplate() |
LayoutTemplate(String simpleTemplate)
Very crude way of setting just one line of template.
|
protected static final String LAYOUT_TOKEN
protected String displayName
protected String codeName
protected String country
protected int maxTokens
protected String startDate
protected String endDate
public LayoutTemplate()
public LayoutTemplate(String simpleTemplate)
setLineByLineFormat(List) with this stringsimpleTemplate - first template linepublic abstract String getLayoutToken()
public abstract String getNonLayoutToken()
public String getCodeName()
public void setCodeName(String codeName)
codeName - the codeName to setpublic String getCountry()
public void setCountry(String country)
country - the country to setpublic String getDisplayName()
public void setDisplayName(String displayName)
displayName - the displayName to setpublic void setElementDefaults(Map<String,String> elementDefaults)
elementDefaults - the elementDefaults to setpublic Map<String,String> getElementRegex()
public void setElementRegex(Map<String,String> elementRegex)
elementRegex - the elementRegex to setpublic Map<String,String> getElementRegexFormats()
public void setElementRegexFormats(Map<String,String> elementRegexFormats)
elementRegexFormats - the elementFormats to setpublic void setLineByLineFormat(List<String> lineByLineFormat)
lineByLineFormat - the lineByLineFormat to setpublic void setRequiredElements(List<String> requiredElements)
requiredElements - the requiredElements to setpublic int getMaxTokens()
public void setMaxTokens(int maxTokens)
maxTokens - the maxTokens to setpublic void setNameMappings(Map<String,String> nameMappings)
nameMappings - the nameMappings to setpublic void setSizeMappings(Map<String,String> sizeMappings)
sizeMappings - the sizeMappings to setpublic abstract LayoutSupport<?> getLayoutSupportInstance()
Copyright © 2024 OpenMRS Inc.. All rights reserved.