public abstract class LayoutTemplate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
codeName |
protected java.lang.String |
country |
protected java.lang.String |
displayName |
protected java.util.Map<java.lang.String,java.lang.String> |
elementDefaults |
protected java.util.Map<java.lang.String,java.lang.String> |
elementRegex |
protected java.util.Map<java.lang.String,java.lang.String> |
elementRegexFormats |
protected java.lang.String |
endDate |
protected java.lang.String |
LAYOUT_TOKEN |
protected java.util.List<java.lang.String> |
lineByLineFormat |
protected int |
maxTokens |
protected java.util.Map<java.lang.String,java.lang.String> |
nameMappings |
protected java.util.Map<java.lang.String,java.lang.String> |
sizeMappings |
protected java.lang.String |
startDate |
Constructor and Description |
---|
LayoutTemplate() |
LayoutTemplate(java.lang.String simpleTemplate)
Very crude way of setting just one line of template.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCodeName() |
java.lang.String |
getCountry() |
java.lang.String |
getDisplayName() |
java.util.Map<java.lang.String,java.lang.String> |
getElementDefaults() |
java.util.Map<java.lang.String,java.lang.String> |
getElementRegex()
Get the element regular expressions.
|
java.util.Map<java.lang.String,java.lang.String> |
getElementRegexFormats()
Get the element formats.
|
abstract LayoutSupport<?> |
getLayoutSupportInstance() |
abstract java.lang.String |
getLayoutToken() |
java.util.List<java.lang.String> |
getLineByLineFormat() |
java.util.List<java.util.List<java.util.Map<java.lang.String,java.lang.String>>> |
getLines() |
int |
getMaxTokens() |
java.util.Map<java.lang.String,java.lang.String> |
getNameMappings() |
abstract java.lang.String |
getNonLayoutToken() |
java.util.Map<java.lang.String,java.lang.String> |
getSizeMappings() |
java.util.List<java.lang.String> |
nonUniqueStringsGoLast(java.util.List<java.lang.String> strListArg) |
void |
setCodeName(java.lang.String codeName) |
void |
setCountry(java.lang.String country) |
void |
setDisplayName(java.lang.String displayName) |
void |
setElementDefaults(java.util.Map<java.lang.String,java.lang.String> elementDefaults) |
void |
setElementRegex(java.util.Map<java.lang.String,java.lang.String> elementRegex)
Set the element regular expressions.
|
void |
setElementRegexFormats(java.util.Map<java.lang.String,java.lang.String> elementRegexFormats)
Set the element formats.
|
void |
setLineByLineFormat(java.util.List<java.lang.String> lineByLineFormat) |
void |
setMaxTokens(int maxTokens) |
void |
setNameMappings(java.util.Map<java.lang.String,java.lang.String> nameMappings) |
void |
setSizeMappings(java.util.Map<java.lang.String,java.lang.String> sizeMappings) |
protected final java.lang.String LAYOUT_TOKEN
protected java.lang.String displayName
protected java.lang.String codeName
protected java.lang.String country
protected java.util.Map<java.lang.String,java.lang.String> nameMappings
protected java.util.Map<java.lang.String,java.lang.String> sizeMappings
protected java.util.Map<java.lang.String,java.lang.String> elementDefaults
protected java.util.Map<java.lang.String,java.lang.String> elementRegex
protected java.util.Map<java.lang.String,java.lang.String> elementRegexFormats
protected java.util.List<java.lang.String> lineByLineFormat
protected int maxTokens
protected java.lang.String startDate
protected java.lang.String endDate
public LayoutTemplate()
public LayoutTemplate(java.lang.String simpleTemplate)
setLineByLineFormat(List)
with this stringsimpleTemplate
- first template linepublic abstract java.lang.String getLayoutToken()
public abstract java.lang.String getNonLayoutToken()
public java.util.List<java.util.List<java.util.Map<java.lang.String,java.lang.String>>> getLines()
public java.lang.String getCodeName()
public void setCodeName(java.lang.String codeName)
codeName
- the codeName to setpublic java.lang.String getCountry()
public void setCountry(java.lang.String country)
country
- the country to setpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- the displayName to setpublic java.util.Map<java.lang.String,java.lang.String> getElementDefaults()
public void setElementDefaults(java.util.Map<java.lang.String,java.lang.String> elementDefaults)
elementDefaults
- the elementDefaults to setpublic java.util.Map<java.lang.String,java.lang.String> getElementRegex()
public void setElementRegex(java.util.Map<java.lang.String,java.lang.String> elementRegex)
elementRegex
- the elementRegex to setpublic java.util.Map<java.lang.String,java.lang.String> getElementRegexFormats()
public void setElementRegexFormats(java.util.Map<java.lang.String,java.lang.String> elementRegexFormats)
elementFormats
- the elementFormats to setpublic java.util.List<java.lang.String> getLineByLineFormat()
public void setLineByLineFormat(java.util.List<java.lang.String> lineByLineFormat)
lineByLineFormat
- the lineByLineFormat to setpublic int getMaxTokens()
public void setMaxTokens(int maxTokens)
maxTokens
- the maxTokens to setpublic java.util.Map<java.lang.String,java.lang.String> getNameMappings()
public void setNameMappings(java.util.Map<java.lang.String,java.lang.String> nameMappings)
nameMappings
- the nameMappings to setpublic java.util.Map<java.lang.String,java.lang.String> getSizeMappings()
public void setSizeMappings(java.util.Map<java.lang.String,java.lang.String> sizeMappings)
sizeMappings
- the sizeMappings to setpublic abstract LayoutSupport<?> getLayoutSupportInstance()
public java.util.List<java.lang.String> nonUniqueStringsGoLast(java.util.List<java.lang.String> strListArg)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.