Package sld :: Class StyleItem
[hide private]
[frames] | no frames]

Class StyleItem

source code


Abstract base class for all nodes that contain a list of CssParameter nodes.

Instance Methods [hide private]
 
__init__(self, parent, name, descendant=True)
Create a new StyleItem.
source code
CssParameters
CssParameters(self)
Get the list of CssParameter nodes in a friendly CssParameters helper list.
source code
CssParameter
create_cssparameter(self, name=None, value=None)
Create a new CssParameter node as a child of this element, and attach it to the DOM.
source code

Inherited from SLDNode: create_element, get_or_create_element

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from SLDNode: makeproperty

Class Variables [hide private]

Inherited from SLDNode (private): _nsmap

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, name, descendant=True)
(Constructor)

source code 

Create a new StyleItem.

Parameters:
  • parent (Symbolizer) - The parent class object.
  • name (string) - The name of the node.
  • descendant (boolean) - Does this element descend from the parent, or is it a sibling?
Overrides: object.__init__

CssParameters(self)

source code 

Get the list of CssParameter nodes in a friendly CssParameters helper list.

Returns: CssParameters
A pythonic list of CssParameter children.
Decorators:
  • @property

create_cssparameter(self, name=None, value=None)

source code 

Create a new CssParameter node as a child of this element, and attach it to the DOM. Optionally set the name and value of the parameter, if they are both provided.

Parameters:
Returns: CssParameter
A new style parameter, set to the name and value.