GeoEco.Metadata.Metadata
- class GeoEco.Metadata.Metadata(name, shortDescription=None, longDescription=None)
Bases:
objectBase class for most metadata classes.
- Parameters:
- Returns:
New
Metadatainstance.- Return type:
Properties
- property DocString
(
str) Python docstring (the value used for the__doc__attribute). Read only. Minimum length꞉ 1. The docstring is constructed dynamically from metadata. It uses the format described in Google’s Python Style Guide.
- property LongDescription
(
strorNone) Detailed description, formatted as reStructuredText. Minimum length꞉ 1. LongDescription is optional; if detailed information is not needed, you need only write a ShortDescription.
- property Object
(
object) Python object to which this metadata applies. Read only. The type the Python object depends on which type of metadata is involved:Type of metadata
Type of the
Objectproperty
- property ShortDescription
(
strorNone) One-line description, ideally as plain text (but reStructuredText is OK). Minimum length꞉ 1. Keep the ShortDescription as concise as possible, ideally just one sentence. Do not include newline characters in the ShortDescription. Put detailed information in LongDescription (which can contain newlines).
Methods
Appends the specified property to the specified xml.dom.Node object as a child element, first running it through the docutils processor to translate reStructuredText into docutils XML.
Appends the specified property to the specified xml.dom.Node object as a child element.
Appends the metadata to the specified xml.dom.Node object as child nodes.
Initializes
Metadata's internal cache of docutils XML from the specified file.Writes
Metadata's internal cache of docutils XML to the specified file.