public class ExplicitParentMergeStrategy extends Object implements DescriptorMergeStrategy
DescriptorMergeStrategy that merges the descriptor with an explicitly named parent. The
parent is also checked for any other descriptors to merge.| Constructor and Description |
|---|
ExplicitParentMergeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected org.dom4j.Document |
getDescriptorDom(Context context,
CachingOptions cachingOptions,
String url) |
List<MergeableDescriptor> |
getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom)
Returns the list of descriptors in the order they should be merged, given the URI of the primary descriptor.
|
List<MergeableDescriptor> |
getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom,
boolean mainDescriptorOptional)
Returns the list of descriptors in the order they should be merged, given the URI of the primary descriptor.
|
void |
setMergeStrategyResolver(DescriptorMergeStrategyResolver mergeStrategyResolver) |
void |
setParentDescriptorElementXPathQuery(String parentDescriptorElementXPathQuery) |
public void setMergeStrategyResolver(DescriptorMergeStrategyResolver mergeStrategyResolver)
public void setParentDescriptorElementXPathQuery(String parentDescriptorElementXPathQuery)
public List<MergeableDescriptor> getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) throws XmlMergeException
DescriptorMergeStrategygetDescriptors in interface DescriptorMergeStrategycontext - the current contextcachingOptions - caching options in case you need access to itemsmainDescriptorUrl - the URL of the main descriptormainDescriptorDom - the DOM of the main descriptorMergeableDescriptors representing the descriptors to mergeXmlMergeExceptionpublic List<MergeableDescriptor> getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) throws XmlMergeException
DescriptorMergeStrategygetDescriptors in interface DescriptorMergeStrategycontext - the current contextcachingOptions - caching options in case you need access to itemsmainDescriptorUrl - the URL of the primary descriptormainDescriptorDom - the DOM of the main descriptormainDescriptorOptional - if the primary descriptor should be marked as optionalMergeableDescriptors representing the descriptors to mergeXmlMergeExceptionprotected org.dom4j.Document getDescriptorDom(Context context, CachingOptions cachingOptions, String url)
Copyright © 2018 CrafterCMS. All rights reserved.