Package org.daisy.dotify.api.paper
Interface Paper
-
- All Superinterfaces:
FactoryProperties
- All Known Implementing Classes:
AbstractPaper
,RollPaper
,SheetPaper
,TractorPaper
public interface Paper extends FactoryProperties
Provides an interface for a physical paper media. Implementations must be immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Paper.Type
Defines paper types.-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.factory.FactoryProperties
FactoryProperties.ComparatorBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RollPaper
asRollPaper()
Returns this Paper as a RollPaperSheetPaper
asSheetPaper()
Returns this Paper as a SheetPaperTractorPaper
asTractorPaper()
Returns this Paper as a TractorPaperPaper.Type
getType()
Gets the type of paper-
Methods inherited from interface org.daisy.dotify.api.factory.FactoryProperties
getDescription, getDisplayName, getIdentifier
-
-
-
-
Method Detail
-
getType
Paper.Type getType()
Gets the type of paper- Returns:
- returns the type of paper
-
asSheetPaper
SheetPaper asSheetPaper()
Returns this Paper as a SheetPaper- Returns:
- returns the SheetPaper
- Throws:
ClassCastException
- if the instance is not SheetPaper
-
asTractorPaper
TractorPaper asTractorPaper()
Returns this Paper as a TractorPaper- Returns:
- returns the TractorPaper
- Throws:
ClassCastException
- if the instance is not TractorPaper
-
asRollPaper
RollPaper asRollPaper()
Returns this Paper as a RollPaper- Returns:
- returns the RollPaper
- Throws:
ClassCastException
- if the instance is not RollPaper
-
-