Package org.daisy.dotify.api.formatter
Interface FallbackRule
-
- All Known Implementing Classes:
RenameFallbackRule
public interface FallbackRule
Provides a common interface for fallback rules. Note that the action of a fallback rule is defined by the implementing class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
applyToCollection()
Gets the identifier of the collection that this rule should be applied to.boolean
mustBeContextCollection()
Returns true of the rule can only be applied to the context collection, in other words the collection that triggers the fallback actions.
-
-
-
Method Detail
-
applyToCollection
String applyToCollection()
Gets the identifier of the collection that this rule should be applied to.- Returns:
- returns the identifier
-
mustBeContextCollection
boolean mustBeContextCollection()
Returns true of the rule can only be applied to the context collection, in other words the collection that triggers the fallback actions.- Returns:
- returns true if the rule can only be applied to the context collection, false otherwise
-
-