|  |  | 
abc.ABC(builtins.object)
Attribute
SimpleAttribute
 
 
| class Attribute(abc.ABC)
 |  |  | An interface for an XML-style attribute. 
 |  |  | Method resolution order:Attributeabc.ABCbuiltins.object
 Methods defined here:
 
 __eq__(self, other: object) -> boolDetermine if two attributes are the same.
 encode(self, quote: str = '"', force: bool = False) -> strConvert this attribute to a string.
 Class methods defined here:
 
 decode(key: str, value: str) -> ~T from abc.ABCMetaCreate this attribute from a string.
 Readonly properties defined here:
 
 keyGet the string key for this attribute.
 valueGet the string value for this attribute.
 Data descriptors defined here:
 
 __dict__dictionary for instance variables
 __weakref__list of weak references to the object
 Data and other attributes defined here:
 
 __abstractmethods__ = frozenset({'decode', 'value'})
 __hash__ = None
 |  
 
| class SimpleAttribute(Attribute)
 |  |  | SimpleAttribute(name: str, value: Union[str, int, float, bool]) -> None 
 A simple, concrete implementation for attribute.
 
 |  |  | Method resolution order:SimpleAttributeAttributeabc.ABCbuiltins.object
 Methods defined here:
 
 __init__(self, name: str, value: Union[str, int, float, bool]) -> NoneConstruct a simple attribute, one with just a key (name) and value.
 Class methods defined here:
 
 decode(key: str, value: str) -> 'SimpleAttribute' from abc.ABCMetaCreate this attribute from a string.
 Static methods defined here:
 
 from_dict(data: Dict[str, Union[str, int, float]]) -> List[svgen.attribute.Attribute]Get a list of attributes from dictionary data.
 Readonly properties defined here:
 
 valueGet the string value for this attribute.
 Data and other attributes defined here:
 
 __abstractmethods__ = frozenset()
 Methods inherited from Attribute:
 
 __eq__(self, other: object) -> boolDetermine if two attributes are the same.
 encode(self, quote: str = '"', force: bool = False) -> strConvert this attribute to a string.
 Readonly properties inherited from Attribute:
 
 keyGet the string key for this attribute.
 Data descriptors inherited from Attribute:
 
 __dict__dictionary for instance variables
 __weakref__list of weak references to the object
 Data and other attributes inherited from Attribute:
 
 __hash__ = None
 |  |