Klasse OutletTypes

java.lang.Object
org.apache.torque.generator.configuration.OutletTypes

public class OutletTypes extends Object
Manages the types of known Outlets. This include information about how to read the configuration of each outlet type.
  • Konstruktordetails

    • OutletTypes

      public OutletTypes()
      Constructor. Creates a new instance containing the mappings to the default outlet types.
  • Methodendetails

    • registerTypedOutletHandlerFactory

      public void registerTypedOutletHandlerFactory(TypedOutletSaxHandlerFactory factory) throws ConfigurationException
      Registers a handler for a new type of outlets.
      Parameter:
      factory - the factory which handles the outlets of the given type.
      Löst aus:
      NullPointerException - if factory is null.
      ConfigurationException - if a factory already exists for the type of the outlet.
    • registerUntypedOutletHandlerFactory

      public void registerUntypedOutletHandlerFactory(UntypedOutletSaxHandlerFactory factory) throws ConfigurationException
      Registers a untyped handler.
      Parameter:
      factory - the factory which can handle outlets of different types
      Löst aus:
      NullPointerException - if factory is null.
      ConfigurationException - if a factory already exists for the type of the outlet.
    • getTypedOutletHandlerFactories

      public Map<String,TypedOutletSaxHandlerFactory> getTypedOutletHandlerFactories()
      Returns an unmodifiable map containing all typed outlet handler factories, keyed by their type.
      Gibt zurück:
      all typed outlet handler factories, not null.
    • getUntypedOutletHandlerFactories

      public List<UntypedOutletSaxHandlerFactory> getUntypedOutletHandlerFactories()
      Returns an unmodifiable list containing all untyped outlet handler factories.
      Gibt zurück:
      all untyped outlet handler factories, not null.