Package org.daisy.factory
Class AbstractFactory
- java.lang.Object
-
- org.daisy.factory.AbstractFactory
-
- Direct Known Subclasses:
AbstractEmbosser
,AbstractPaper
,AbstractTable
,PEFValidator
public abstract class AbstractFactory extends java.lang.Object implements Factory, java.io.Serializable
Provides an abstract class for Factories.- Author:
- Joel HÃ¥kansson
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractFactory(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier)
Creates a new AbstractFactory with the supplied valuesAbstractFactory(java.lang.String name, java.lang.String desc, java.lang.String identifier)
Creates a new AbstractFactory with the supplied values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Factory o)
java.lang.String
getDescription()
Gets the description for this Factoryjava.lang.String
getDisplayName()
Gets the display name for this Factoryjava.lang.String
getIdentifier()
Gets the identifier for this Factoryjava.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.daisy.factory.Factory
getFeature, getProperty, setFeature
-
-
-
-
Constructor Detail
-
AbstractFactory
public AbstractFactory(java.lang.String name, java.lang.String desc, java.lang.String identifier)
Creates a new AbstractFactory with the supplied values- Parameters:
name
- the factory namedesc
- the factory descriptionidentifier
- the factory identifier
-
AbstractFactory
public AbstractFactory(java.lang.String name, java.lang.String desc, java.lang.Enum<? extends java.lang.Enum<?>> identifier)
Creates a new AbstractFactory with the supplied values- Parameters:
name
- the factory namedesc
- the factory descriptionidentifier
- the factory identifier
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:Factory
Gets the description for this Factory- Specified by:
getDescription
in interfaceFactory
- Returns:
- returns the description for this Factory
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from interface:Factory
Gets the display name for this Factory- Specified by:
getDisplayName
in interfaceFactory
- Returns:
- returns the display name for this Factory
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:Factory
Gets the identifier for this Factory- Specified by:
getIdentifier
in interfaceFactory
- Returns:
- returns the identifier for this Factory
-
compareTo
public int compareTo(Factory o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Factory>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-