Package RDFMessage :: Module Writers
[show private | hide private]
[frames | no frames]

Module RDFMessage.Writers

Writer classes.

Copyright (C) 2006 Paul Boddie <paul@boddie.org.uk>

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
details.

You should have received a copy of the GNU Lesser General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.

Classes
Writer  

Function Summary
  get_document(store, main_node, qualifier, value_as_attribute)
Using the given 'store', return a new DOM document containing the resource rooted at the given 'main_node', configured using the optional 'qualifier' and 'value_as_attribute' parameters.
  get_document_for_nodes(store, label, nodes, qualifier, value_as_attribute)
Using the given 'store', make a new DOM document with the given 'label' on the root element containing the resources found at the given 'nodes', configured using the optional 'qualifier' and 'value_as_attribute' parameters.
  write_to_document(doc, root, store, main_node, nodes, qualifier, value_as_attribute)
Write to the document 'doc' within the given 'root' element, using the given 'store', the 'main_node' (if specified) or the given 'nodes' (if specified instead).
  write_to_stream(stream, store, main_node, nodes, *args, **kw)
Write to the given 'stream', using the given 'store', the 'main_node' (if specified) or the given 'nodes' (if specified instead).
  _make_document(label)
Make a document with the given 'label' and return it.
  _write_nodes(writer, store, main_node, nodes)
Write, using the given 'writer' and the given 'store', either the given 'main_node' or the given 'nodes'.

Function Details

get_document(store, main_node=None, qualifier=None, value_as_attribute=0)

Using the given 'store', return a new DOM document containing the resource
rooted at the given 'main_node', configured using the optional 'qualifier'
and 'value_as_attribute' parameters.

get_document_for_nodes(store, label, nodes, qualifier=None, value_as_attribute=0)

Using the given 'store', make a new DOM document with the given 'label' on
the root element containing the resources found at the given 'nodes',
configured using the optional 'qualifier' and 'value_as_attribute'
parameters.

write_to_document(doc, root, store, main_node=None, nodes=None, qualifier=None, value_as_attribute=0)

Write to the document 'doc' within the given 'root' element, using the given
'store', the 'main_node' (if specified) or the given 'nodes' (if specified
instead). The optional 'qualifier' and 'value_as_attribute' settings
configure the resulting DOM document.

write_to_stream(stream, store, main_node=None, nodes=None, *args, **kw)

Write to the given 'stream', using the given 'store', the 'main_node' (if
specified) or the given 'nodes' (if specified instead).

_make_document(label)

Make a document with the given 'label' and return it.

_write_nodes(writer, store, main_node, nodes)

Write, using the given 'writer' and the given 'store', either the given
'main_node' or the given 'nodes'.

Generated by Epydoc 2.1 on Tue Sep 18 23:32:37 2007 http://epydoc.sf.net