com.atlassian.confluence.content.render.xhtml.migration
Class ExceptionTolerantMigrator.MigrationResult

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.ExceptionTolerantMigrator.MigrationResult
Enclosing interface:
ExceptionTolerantMigrator

public static class ExceptionTolerantMigrator.MigrationResult
extends java.lang.Object

Represents the results of an attempted migration.

Since:
5.3

Constructor Summary
ExceptionTolerantMigrator.MigrationResult(java.lang.String content, boolean migrationPerformed)
           
ExceptionTolerantMigrator.MigrationResult(java.lang.String content, boolean migrationPerformed, java.util.List<java.lang.RuntimeException> exceptions)
           
 
Method Summary
 java.lang.String getContent()
           
 java.util.List<java.lang.RuntimeException> getExceptions()
           
 boolean isMigrationPerformed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionTolerantMigrator.MigrationResult

public ExceptionTolerantMigrator.MigrationResult(java.lang.String content,
                                                 boolean migrationPerformed,
                                                 java.util.List<java.lang.RuntimeException> exceptions)

ExceptionTolerantMigrator.MigrationResult

public ExceptionTolerantMigrator.MigrationResult(java.lang.String content,
                                                 boolean migrationPerformed)
Method Detail

getContent

public java.lang.String getContent()
Returns:
The migrated content. Note that if the list of exceptions returned by getExceptions() is not empty, then the resulting content may not be complete or correct.

getExceptions

public java.util.List<java.lang.RuntimeException> getExceptions()
Returns:
A list of the exceptions raised during the migration process.

isMigrationPerformed

public boolean isMigrationPerformed()
Returns:
an indication of whether or not migration needed to be performed on the input.


Copyright © 2003-2014 Atlassian. All Rights Reserved.