Package tdi :: Module interfaces
[frames] | no frames]

Module interfaces

source code

The module provides all interfaces required or provided by the tdi package and a small function to check for them.


Author: André Malo

Classes
  ListenerInterface
Interface for a parser/lexer event listener.
  ParserInterface
Interface for template parsers
  DTDInterface
Interface for DTD query classes
  AttributeAnalyzerInterface
Interface for Attribute analyzers
  BuilderInterface
Interface for builders
  BuildingListenerInterface
Extensions to the listener interface
  FilterFactoryInterface
Interface for a factory returning a filter
  DecoderInterface
Decoder Interface
  EncoderInterface
Encoder Interface
  ModelAdapterInterface
Model Adapter Interface
  MemoizerInterface
Interface for factory memoizers
Functions
bool
implements(obj, *interfaces)
Check if obj implements one or more interfaces.
source code
Variables
  __package__ = None
hash(x)
Function Details

implements(obj, *interfaces)

source code 

Check if obj implements one or more interfaces.

The check looks for the __implements__ attribute of obj, which is expected to be an iterable containing the implemented interfaces.

Parameters:
  • obj (type or object) - The object to inspect
  • interfaces (tuple) - Interface classes to check
Returns: bool
Are all interfaces implemented?

Variables Details

__package__

hash(x)

Value:
None