com.atlassian.confluence.content.render.xhtml.transformers
Class DefaultFragmentTransformerFactoryImpl
java.lang.Object
com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformerFactoryImpl
- All Implemented Interfaces:
- DefaultFragmentTransformerFactory
public class DefaultFragmentTransformerFactoryImpl
- extends java.lang.Object
- implements DefaultFragmentTransformerFactory
A factory class that can be used to construct a DefaultFragmentTransformer
configured in a particular
way. You are also able to customise the constructed DefaultFragmentTransformer
in certain ways.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFragmentTransformerFactoryImpl
public DefaultFragmentTransformerFactoryImpl(java.util.List<ElementTransformer> defaultElementTransformers,
java.util.List<? extends FragmentTransformer> defaultFragmentTransformers,
XmlOutputFactory xmlFragmentOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory,
FragmentTransformationErrorHandler fragmentTransformationErrorHandler,
com.atlassian.event.api.EventPublisher eventPublisher)
createDefault
public DefaultFragmentTransformer createDefault()
- Specified by:
createDefault
in interface DefaultFragmentTransformerFactory
- Returns:
- a default configuration of transformer
createWithCustomFragmentTransformers
public DefaultFragmentTransformer createWithCustomFragmentTransformers(java.util.List<? extends FragmentTransformer> additional)
- Description copied from interface:
DefaultFragmentTransformerFactory
- Create a
DefaultFragmentTransformer
with an extended set of FragmentTransformers
. You can specify additional FragmentTransformers to
be applied before the default one which effectively provides a mechanism to override the default FragmentTransformers
since once a Fragment has been transformed it will no longer match the default FragmentTransformer that may otherwise have applied.
- Specified by:
createWithCustomFragmentTransformers
in interface DefaultFragmentTransformerFactory
- Parameters:
additional
- the List of FragmentTransformer to be applied before the default FragmentTransformers.
- Returns:
- an appropriately configured DefaultFragmentTransformer
Copyright © 2003-2013 Atlassian. All Rights Reserved.