Package org.daisy.paper
Interface Paper
- All Superinterfaces:
Comparable<Factory>,Factory
- All Known Implementing Classes:
AbstractPaper,RollPaper,SheetPaper,TractorPaper
Provides an interface for a physical paper media.
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns this Paper as a RollPaperReturns this Paper as a SheetPaperReturns this Paper as a TractorPapergetType()Gets the type of paperMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.daisy.factory.Factory
getDescription, getDisplayName, getFeature, getIdentifier, getProperty, setFeature
-
Method Details
-
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
-