Package org.daisy.dotify.api.paper
Class AbstractPaper
- java.lang.Object
-
- org.daisy.dotify.api.paper.AbstractPaper
-
- All Implemented Interfaces:
Serializable,FactoryProperties,Paper
- Direct Known Subclasses:
RollPaper,SheetPaper,TractorPaper
public abstract class AbstractPaper extends Object implements Paper, Serializable
Provides a default implementation for Paper.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.factory.FactoryProperties
FactoryProperties.ComparatorBuilder
-
Nested classes/interfaces inherited from interface org.daisy.dotify.api.paper.Paper
Paper.Type
-
-
Constructor Summary
Constructors Constructor Description AbstractPaper(String name, String desc, String identifier)Creates a new paper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RollPaperasRollPaper()Returns this Paper as a RollPaperSheetPaperasSheetPaper()Returns this Paper as a SheetPaperTractorPaperasTractorPaper()Returns this Paper as a TractorPaperStringgetDescription()Gets the description for this FactoryStringgetDisplayName()Gets the display name for this FactoryStringgetIdentifier()Gets the identifier for this Factory
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:FactoryPropertiesGets the description for this Factory- Specified by:
getDescriptionin interfaceFactoryProperties- Returns:
- returns the description for this Factory
-
getDisplayName
public String getDisplayName()
Description copied from interface:FactoryPropertiesGets the display name for this Factory- Specified by:
getDisplayNamein interfaceFactoryProperties- Returns:
- returns the display name for this Factory
-
getIdentifier
public String getIdentifier()
Description copied from interface:FactoryPropertiesGets the identifier for this Factory- Specified by:
getIdentifierin interfaceFactoryProperties- Returns:
- returns the identifier for this Factory
-
asSheetPaper
public SheetPaper asSheetPaper()
Description copied from interface:PaperReturns this Paper as a SheetPaper- Specified by:
asSheetPaperin interfacePaper- Returns:
- returns the SheetPaper
-
asTractorPaper
public TractorPaper asTractorPaper()
Description copied from interface:PaperReturns this Paper as a TractorPaper- Specified by:
asTractorPaperin interfacePaper- Returns:
- returns the TractorPaper
-
asRollPaper
public RollPaper asRollPaper()
Description copied from interface:PaperReturns this Paper as a RollPaper- Specified by:
asRollPaperin interfacePaper- Returns:
- returns the RollPaper
-
-