public class MetaDataMergeStrategyResolver extends Object implements DescriptorMergeStrategyResolver
DescriptorMergeStrategy to use for a given descriptor, based on the value of an element in
the descriptor document.| Constructor and Description |
|---|
MetaDataMergeStrategyResolver() |
| Modifier and Type | Method and Description |
|---|---|
DescriptorMergeStrategy |
getStrategy(String descriptorUrl,
org.dom4j.Document descriptorDom)
Returns a
DescriptorMergeStrategy for a given descriptor. |
void |
setElementValueToStrategyMappings(Map<String,DescriptorMergeStrategy> elementValueToStrategyMappings) |
void |
setMergeStrategyElementXPathQuery(String mergeStrategyElementXPathQuery) |
public void setMergeStrategyElementXPathQuery(String mergeStrategyElementXPathQuery)
public void setElementValueToStrategyMappings(Map<String,DescriptorMergeStrategy> elementValueToStrategyMappings)
public DescriptorMergeStrategy getStrategy(String descriptorUrl, org.dom4j.Document descriptorDom) throws XmlException
DescriptorMergeStrategy for a given descriptor. The strategy chosen is the one defined
in the descriptor document.getStrategy in interface DescriptorMergeStrategyResolverdescriptorUrl - the URL that identifies the descriptordescriptorDom - the XML DOM of the descriptorDescriptorMergeStrategy for the descriptor, or null if the DOM is null or if there's no
element in the DOM that defines the merge strategy to use.XmlException - if the element value doesn't refer to an existing strategyCopyright © 2018 CrafterCMS. All rights reserved.