lift_utils.header¶
Manipulate the header section.
Module Contents¶
Classes¶
Gives information about a particular field type. |
|
Gives information about a particular field type. |
|
This is a simple list of |
|
This is a simple list of |
|
The header information for a LIFT file. |
|
A set of |
|
A set of |
|
The description of a particular range element found in a |
|
The description of a particular range element found in a |
|
The root element in a Lift Ranges file. |
- class lift_utils.header.FieldDefinition(xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseGives information about a particular field type. It may be used by an application to add information not part of the LIFT standard.
- XML_TAG = 'field'¶
- class lift_utils.header.FieldDefn(tag: lift_utils.datatypes.Key = None, xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.MultitextGives information about a particular field type. It may be used by an application to add information not part of the LIFT standard.
Note
Used by LIFT v0.13 (FieldWorks) instead of
FieldDefinition.- XML_TAG = 'field'¶
- class lift_utils.header.FieldDefns(xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseThis is a simple list of
field-defnelements.Note
Used by LIFT v0.13 (FieldWorks) instead of
Fields.- XML_TAG = 'fields'¶
- class lift_utils.header.Fields(xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseThis is a simple list of
field-definitionelements.- XML_TAG¶
- class lift_utils.header.Header(xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseThe header information for a LIFT file. It includes range information and added field definitions.
- Variables:
description (Optional[Multitext]) – Contains a multilingual description of the lexicon for information purposes only.
ranges (Optional[Ranges]) – Contains all the
rangeinformation.field_items (Optional[FieldDefns]) – Used by LIFT v0.13 (FieldWorks). Contains definitions for all the
fieldtypes used in the document.fields (Optional[Fields]) – Contains definitions for all the
fieldtypes used in the document.
- XML_TAG = 'header'¶
- class lift_utils.header.Range(range_id: lift_utils.datatypes.Key = None, xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.ExtensibleA set of
range-elements. It is used to identify both the group ofrange-elementsbut also to some extent their type.- XML_TAG = 'range'¶
- class lift_utils.header.Range13(range_id: lift_utils.datatypes.Key = None, xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseA set of
range-elements. It is used to identify both the group ofrange-elementsbut also to some extent their type.- XML_TAG = 'range'¶
- class lift_utils.header.RangeElement(elem_id: lift_utils.datatypes.Key = None, xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.ExtensibleThe description of a particular range element found in a
range.Note
Does not inherit from Extensible in LIFT v0.13 (FieldWorks).
- XML_TAG = 'range-element'¶
- class lift_utils.header.RangeElement13(elem_id: lift_utils.datatypes.Key = None, xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseThe description of a particular range element found in a
range.- XML_TAG = 'range-element'¶
- class lift_utils.header.Ranges(xml_tree: lxml.etree._Element | None = None, **kwargs)¶
Bases:
lift_utils.base.LIFTUtilsBaseThe root element in a Lift Ranges file.
- XML_TAG = 'ranges'¶