Table of Contents

Module: elements ./src/peak/model/elements.py

Basic implementation of a domain metamodel (minus enumerations)

This module implements base classes for "Elements" and "Features" in the sense of the "Service-Element-Feature" pattern. By subclassing from them, you get a wide variety of services automatically provided, ranging from automatic generation of getter/setter/mutator methods, metadata such as ordered lists of features provided by a class, well-defined hookpoints for "event" trapping, persistence support, and more.

Imported modules   
from interfaces import *
from peak.api import *
from peak.binding.components import _Base
from peak.persistence import Persistent
from peak.storage.lazy_loader import LazyLoader
from peak.util import fmtparse
from peak.util.hashcmp import HashAndCompare
from types import FunctionType
Functions   
getComponentName
getParentComponent
suggest_nothing
  getComponentName 
getComponentName ( component )

  getParentComponent 
getParentComponent ( component )

  suggest_nothing 
suggest_nothing (
        parent,
        name,
        child,
        )

Classes   

Element

A persistent domain element

ElementClass

Immutable

ImmutableClass

Namespace

Abstract base class for packages and types
DEPRECATED

PrimitiveType

A primitive type (e.g. Boolean, String, etc.)

PrimitiveTypeClass

Struct

An immutable data structure type

Type

TypeClass

Basis for all flavors


Table of Contents

This document was automatically generated on Mon May 5 01:11:04 2025 by HappyDoc version 2.1