public class Theme extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(String fromPattern,
String toPattern)
Add a single mapping to existing mappings.
|
String |
getName()
Returns the unique theme name.
|
protected void |
merge(Theme theme)
Merges URL pattern mappings from another like-named theme.
|
void |
setMappings(Map<String,String> mappings)
Merge a set of mappings into existing mappings.
|
String |
translatePath(String path)
If the input path matches one of the theme's mapped patterns, return the translated path.
|
public Theme(String name)
name - The unique theme name.public String getName()
protected void merge(Theme theme)
theme - Theme providing additional URL pattern mappings.public void setMappings(Map<String,String> mappings)
mappings - Mappings to merge.public void addMapping(String fromPattern, String toPattern)
fromPattern - The source pattern against which URL will be matched.toPattern - The target pattern to which the URL will be converted.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.