10.1.1.12.1. Objectivity¶
-
class
Patro.Common.Xml.Objectivity.
Attribute
(py_attribute, xml_attribute=None, default=None)[source]¶ Bases:
object
Class to define XML element attribtes
-
__init__
(py_attribute, xml_attribute=None, default=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
default
¶
-
get_attribute
(instance)[source]¶ Get an attribute of an
XmlObjectAdaptator
instance
-
py_attribute
¶
-
py_cls_attribute
¶ Return the private identifier used for
XmlObjectAdaptator
-
set_attribute
(instance, value)[source]¶ Set an attribute of an
XmlObjectAdaptator
instance
-
set_property
(cls)[source]¶ Define a property for this attribute in
XmlObjectAdaptator
-
xml_attribute
¶
-
-
class
Patro.Common.Xml.Objectivity.
BoolAttribute
(py_attribute, xml_attribute=None, default=None)[source]¶
-
class
Patro.Common.Xml.Objectivity.
FloatAttribute
(py_attribute, xml_attribute=None, default=None)[source]¶
-
class
Patro.Common.Xml.Objectivity.
FloatListAttribute
(py_attribute, xml_attribute=None, default=None)[source]¶
-
class
Patro.Common.Xml.Objectivity.
IntAttribute
(py_attribute, xml_attribute=None, default=None)[source]¶
-
class
Patro.Common.Xml.Objectivity.
StringAttribute
(py_attribute, xml_attribute=None, default=None)[source]¶
-
class
Patro.Common.Xml.Objectivity.
TextXmlObjectAdaptator
(*args, **kwargs)[source]¶ Bases:
Patro.Common.Xml.Objectivity.XmlObjectAdaptator
Class to implement an object oriented adaptor for text XML elements.
-
__attributes__
= []¶
-
-
class
Patro.Common.Xml.Objectivity.
XmlObjectAdaptator
(*args, **kwargs)[source]¶ Bases:
object
Class to implement an object oriented adaptor for XML elements.
-
__attributes__
= []¶
-
__tag__
= None¶
-
-
class
Patro.Common.Xml.Objectivity.
XmlObjectAdaptatorMetaClass
(class_name, super_classes, class_attribute_dict)[source]¶ Bases:
type
Metaclass to collect attributes from super-classes and define a property for each attribute
-
__init__
(class_name, super_classes, class_attribute_dict)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
_logger
= <Logger Patro.Common.Xml.Objectivity.XmlObjectAdaptatorMetaClass (WARNING)>¶
-