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

Module interfaces

source code

Interfaces used in the tdi package

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


Copyright: Copyright 2007 - 2015 André Malo or his licensors, as applicable

License:

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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
  __doc__ = __doc__.encode('ascii').decode('unicode_escape')
  __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

__doc__

Value:
__doc__.encode('ascii').decode('unicode_escape')

__package__

hash(x)

Value:
None