com.atlassian.confluence.content.render.xhtml.migration
Class XhtmlRoundTripMigrator
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.AbstractExceptionTolerantMigrator
com.atlassian.confluence.content.render.xhtml.migration.XhtmlRoundTripMigrator
- All Implemented Interfaces:
- ExceptionTolerantMigrator
public class XhtmlRoundTripMigrator
- extends AbstractExceptionTolerantMigrator
Migrate content to the current storage format using a simple storage to storage fragment transformer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XhtmlRoundTripMigrator
public XhtmlRoundTripMigrator(FragmentTransformer storageRoundTripFragmentTransformer,
XmlEventReaderFactory xmlEventReaderFactory,
com.google.common.base.Predicate<ConversionContext> migrationPerformedPredicate)
createMigratorWithMigrationAwareTransformer
public static XhtmlRoundTripMigrator createMigratorWithMigrationAwareTransformer(FragmentTransformer storageRoundTripFragmentTransformer,
XmlEventReaderFactory xmlEventReaderFactory)
migrate
public ExceptionTolerantMigrator.MigrationResult migrate(java.lang.String inputStorageFormat,
ConversionContext conversionContext)
- Description copied from interface:
ExceptionTolerantMigrator
- Migrate the supplied content.
- Parameters:
inputStorageFormat
- the comtent to be migratedconversionContext
- the context to be applied for this migration
- Returns:
- a
ExceptionTolerantMigrator.MigrationResult
containing the migrated content (if any), as well as indications of failures.
Copyright © 2003-2013 Atlassian. All Rights Reserved.