Class AbstractFactory

java.lang.Object
org.daisy.factory.AbstractFactory
All Implemented Interfaces:
Serializable, Comparable<Factory>, Factory
Direct Known Subclasses:
AbstractEmbosser, AbstractPaper, AbstractTable, PEFValidator

public abstract class AbstractFactory extends Object implements Factory, Serializable
Provides an abstract class for Factories.
Author:
Joel HÃ¥kansson
See Also:
  • Constructor Details

    • AbstractFactory

      public AbstractFactory(String name, String desc, String identifier)
      Creates a new AbstractFactory with the supplied values
      Parameters:
      name - the factory name
      desc - the factory description
      identifier - the factory identifier
    • AbstractFactory

      public AbstractFactory(String name, String desc, Enum<? extends Enum<?>> identifier)
      Creates a new AbstractFactory with the supplied values
      Parameters:
      name - the factory name
      desc - the factory description
      identifier - the factory identifier
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: Factory
      Gets the description for this Factory
      Specified by:
      getDescription in interface Factory
      Returns:
      returns the description for this Factory
    • getDisplayName

      public String getDisplayName()
      Description copied from interface: Factory
      Gets the display name for this Factory
      Specified by:
      getDisplayName in interface Factory
      Returns:
      returns the display name for this Factory
    • getIdentifier

      public String getIdentifier()
      Description copied from interface: Factory
      Gets the identifier for this Factory
      Specified by:
      getIdentifier in interface Factory
      Returns:
      returns the identifier for this Factory
    • compareTo

      public int compareTo(Factory o)
      Specified by:
      compareTo in interface Comparable<Factory>
    • toString

      public String toString()
      Overrides:
      toString in class Object