Package pygeodesy :: Module named :: Class _NamedEnumItem |
[frames] | no frames]

# Class _NamedEnumItem

    object --+
             |
        _Named --+
                 |
        _NamedBase --+
                     |
                    _NamedEnumItem

Known Subclasses:
  - lcc.Conic
  - , datum.Datum
  - , datum.Ellipsoid
  - , trf.RefFrame
  - , datum.Transform

(INTERNAL) Base class for items in a `_NamedEnum` registery.

Instance Methods
__ne__(self, other) Compare this and an other item. |
unregister(self) Remove this instance from its `_NamedEnum` registry. |
Inherited from `_NamedBase`: `__repr__`, `__str__`, `others`, `toStr`, `toStr2` Inherited from `_Named`: `_dot_`, `attrs`, `classof`, `copy` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| name Property to get and set the registered name (`str`).
Inherited from `_Named`: `classname`, `classnaming`, `named`, `named2` Inherited from `object`: `__class__`

Method Details

### __ne__(self, other) |
Compare this and an other item. Returns: `True` if different, `False` otherwise.

### unregister(self) |
Remove this instance from its `_NamedEnum` registry. Raises: `AssertionError` - Mismatch of this and registered item. `NameError` - This item is unregistered.

Property Details

### name Property to get and set the registered name (`str`). Get Method: name(self) - Get the registered name (`str`). Set Method: name(self, name) - Set the name, unless already registered.