Gelatin.generator package¶
Gelatin.generator.Builder module¶
-
class
Gelatin.generator.Builder.Builder[source]¶ Bases:
objectAbstract base class for all generators.
-
add(path, data=None, replace=False)[source]¶ Creates the given node if it does not exist. Returns the (new or existing) node.
-
add_attribute(path, name, value)[source]¶ Creates the given attribute and sets it to the given value. Returns the (new or existing) node to which the attribute was added.
-
create(path, data=None)[source]¶ Creates the given node, regardless of whether or not it already exists. Returns the new node.
-
leave()[source]¶ Returns to the node that was selected before the last call to enter(). The history is a stack, to the method may be called multiple times.
-
-
class
Gelatin.generator.Builder.Node(name, attribs=None)[source]¶ Bases:
object
-
class
Gelatin.generator.Builder.OrderedDefaultDict(default_factory=None, *a, **kw)[source]¶ Bases:
collections.OrderedDict
Gelatin.generator.Dummy module¶
-
class
Gelatin.generator.Dummy.Dummy[source]¶ Bases:
Gelatin.generator.Builder.Builder-
add(path, data=None, replace=False)[source]¶ Creates the given node if it does not exist. Returns the (new or existing) node.
-
add_attribute(path, name, value)[source]¶ Creates the given attribute and sets it to the given value. Returns the (new or existing) node to which the attribute was added.
-
leave()[source]¶ Returns to the node that was selected before the last call to enter(). The history is a stack, to the method may be called multiple times.
-