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 RollPaper
asRollPaper()
Returns this Paper as a RollPaper.SheetPaper
asSheetPaper()
Returns this Paper as a SheetPaper.TractorPaper
asTractorPaper()
Returns this Paper as a TractorPaper.String
getDescription()
Gets the description for this Factory.String
getDisplayName()
Gets the display name for this Factory.String
getIdentifier()
Gets the identifier for this Factory.
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:FactoryProperties
Gets the description for this Factory.- Specified by:
getDescription
in interfaceFactoryProperties
- Returns:
- returns the description for this Factory
-
getDisplayName
public String getDisplayName()
Description copied from interface:FactoryProperties
Gets the display name for this Factory.- Specified by:
getDisplayName
in interfaceFactoryProperties
- Returns:
- returns the display name for this Factory
-
getIdentifier
public String getIdentifier()
Description copied from interface:FactoryProperties
Gets the identifier for this Factory.- Specified by:
getIdentifier
in interfaceFactoryProperties
- Returns:
- returns the identifier for this Factory
-
asSheetPaper
public SheetPaper asSheetPaper()
Description copied from interface:Paper
Returns this Paper as a SheetPaper.- Specified by:
asSheetPaper
in interfacePaper
- Returns:
- returns the SheetPaper
-
asTractorPaper
public TractorPaper asTractorPaper()
Description copied from interface:Paper
Returns this Paper as a TractorPaper.- Specified by:
asTractorPaper
in interfacePaper
- Returns:
- returns the TractorPaper
-
asRollPaper
public RollPaper asRollPaper()
Description copied from interface:Paper
Returns this Paper as a RollPaper.- Specified by:
asRollPaper
in interfacePaper
- Returns:
- returns the RollPaper
-
-