GeoEco.Metadata.PropertyMetadata
- class GeoEco.Metadata.PropertyMetadata(name, classMetadata, typeMetadata, shortDescription=None, longDescription=None, isExposedToPythonCallers=False)
Bases:
MetadataMetadata that describes a property of a Python class.
- Parameters:
name (
str) – Name of the property. Minimum length꞉ 1.classMetadata (
ClassMetadata) – TheClassMetadatafor the class that contains the property.typeMetadata (
TypeMetadata) – ATypeMetadatathat describes the data type and allowed values of the property.shortDescription (
str, optional) – One-line description, ideally as plain text (but reStructuredText is OK). Minimum length꞉ 1.longDescription (
str, optional) – Detailed description, formatted as reStructuredText. Minimum length꞉ 1.isExposedToPythonCallers (
bool, optional) – If True, the property should be part of GeoEco’s Public API.
- Returns:
New
PropertyMetadatainstance.- Return type:
Properties
- property Class
(
ClassMetadata) ClassMetadata for the class that contains this property. Read only.
- 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 IsExposedToPythonCallers
(
bool) If True, this property is part of GeoEco’s Public API. If False, the default, this property is considered part of GeoEco’s Internal API and not recommended for use by external callers.
- property IsReadOnly
(
bool) If True, this property is read only (you can get it but not set it). Read only.
- 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).
- property Type
(
TypeMetadata) ATypeMetadatathat describes the data type and allowed values of this property.
Methods