Module nafparserpy.layers.locations_dates
Expand source code
from typing import Union
from nafparserpy.layers.utils import create_node
class Locations:
text: Union[str, None] = None
def node(self):
"""Create etree node from object"""
return create_node('locations', self.text, [], {})
@staticmethod
def object(node):
"""Create object from etree node"""
return Locations(node.text)
class Dates:
text: Union[str, None] = None
def node(self):
"""Create etree node from object"""
return create_node('dates', self.text, [], {})
@staticmethod
def object(node):
"""Create object from etree node"""
return Dates(node.text)
Classes
class Dates
-
Expand source code
class Dates: text: Union[str, None] = None def node(self): """Create etree node from object""" return create_node('dates', self.text, [], {}) @staticmethod def object(node): """Create object from etree node""" return Dates(node.text)
Class variables
var text : Optional[str]
Static methods
def object(node)
-
Create object from etree node
Expand source code
@staticmethod def object(node): """Create object from etree node""" return Dates(node.text)
Methods
def node(self)
-
Create etree node from object
Expand source code
def node(self): """Create etree node from object""" return create_node('dates', self.text, [], {})
class Locations
-
Expand source code
class Locations: text: Union[str, None] = None def node(self): """Create etree node from object""" return create_node('locations', self.text, [], {}) @staticmethod def object(node): """Create object from etree node""" return Locations(node.text)
Class variables
var text : Optional[str]
Static methods
def object(node)
-
Create object from etree node
Expand source code
@staticmethod def object(node): """Create object from etree node""" return Locations(node.text)
Methods
def node(self)
-
Create etree node from object
Expand source code
def node(self): """Create etree node from object""" return create_node('locations', self.text, [], {})