public class DelegatingMigrationAwareFragmentTransformer extends Object implements MigrationAware, FragmentTransformer
MigrationAware
and FragmentTransformer
.MigrationAware.MigrationPerformedPredicate
Constructor and Description |
---|
DelegatingMigrationAwareFragmentTransformer(FragmentTransformer fragmentTransformer,
MigrationAware migrationAware) |
Modifier and Type | Method and Description |
---|---|
boolean |
handles(StartElement startElementEvent,
ConversionContext conversionContext) |
Streamable |
transform(XMLEventReader reader,
FragmentTransformer mainFragmentTransformer,
ConversionContext conversionContext) |
boolean |
wasMigrationPerformed(ConversionContext conversionContext)
Given a
ConversionContext that was previously used to perform a migration, determine if that context
contains information that indicates whether a "migration" was performed. |
public DelegatingMigrationAwareFragmentTransformer(FragmentTransformer fragmentTransformer, MigrationAware migrationAware)
public boolean wasMigrationPerformed(ConversionContext conversionContext)
MigrationAware
ConversionContext
that was previously used to perform a migration, determine if that context
contains information that indicates whether a "migration" was performed. What constitutes a migration is
implementation-dependent.wasMigrationPerformed
in interface MigrationAware
conversionContext
- the context used for the migrationpublic boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
handles
in interface FragmentTransformer
public Streamable transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException
transform
in interface FragmentTransformer
XhtmlException