public class ContentHandlerConfigMapTable<T extends ContentHandler> extends Object
ContentHandlerConfigMap lists against a selector string.| Constructor and Description |
|---|
ContentHandlerConfigMapTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(ContentHandlerConfigMapTable<T> configMap)
Add all the content handlers defined in the supplied configMap.
|
void |
addMapping(String elementName,
SmooksResourceConfiguration resourceConfig,
T contentHandler)
Add a delivery unit mapping for the specified selector.
|
List<ContentHandlerConfigMap<T>> |
getAllMappings() |
int |
getCount()
Get the total number of mappings on this table.
|
List<ContentHandlerConfigMap<T>> |
getMappings(String selector)
Get the
ContentHandlerConfigMap list for the supplied selector string. |
List<ContentHandlerConfigMap<T>> |
getMappings(String[] selectors)
Get the combined
ContentHandlerConfigMap list for the supplied list of selector strings. |
Map<String,List<ContentHandlerConfigMap<T>>> |
getTable() |
int |
getUserConfiguredCount()
Get the total number of user configured mappings on this table.
|
boolean |
isEmpty()
Is the table empty.
|
void |
sort(Sorter.SortOrder sortOrder)
Sort the Table in the specified sort order.
|
public void addMapping(String elementName, SmooksResourceConfiguration resourceConfig, T contentHandler)
elementName - The target element for the content handler.resourceConfig - Resource configuration.contentHandler - The delivery unit.public void addAll(ContentHandlerConfigMapTable<T> configMap)
configMap - The config map.public Map<String,List<ContentHandlerConfigMap<T>>> getTable()
public List<ContentHandlerConfigMap<T>> getMappings(String selector)
ContentHandlerConfigMap list for the supplied selector string.selector - The lookup selector.ContentHandlerConfigMap instances, or null if there are none.public List<ContentHandlerConfigMap<T>> getMappings(String[] selectors)
ContentHandlerConfigMap list for the supplied list of selector strings.selectors - The lookup selectors.ContentHandlerConfigMap list for the supplied list of selector strings,
or an empty list if there are none.public List<ContentHandlerConfigMap<T>> getAllMappings()
public boolean isEmpty()
public int getCount()
public int getUserConfiguredCount()
public void sort(Sorter.SortOrder sortOrder)
sortOrder - The sort order.Copyright © 2020. All rights reserved.