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

Class CssParameters

source code


A collection of CssParameter nodes. This is a pythonic helper (list of nodes) that does not correspond to a true element in the SLD spec.

Instance Methods [hide private]
 
__init__(self, parent)
Create a new list of CssParameters from the specified parent node.
source code
integer
__len__(self)
Get the number of CssParameter nodes in this list.
source code
CssParameter
__getitem__(self, key)
Get one of the CssParameter nodes in the list.
source code
 
__setitem__(self, key, value)
Set one of the CssParameter nodes in the list with a new value.
source code
 
__delitem__(self, key)
Delete one of the CssParameter nodes from the list.
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)
(Constructor)

source code 

Create a new list of CssParameters from the specified parent node.

Parameters:
  • parent (StyleItem) - The parent class item.
Overrides: object.__init__

__len__(self)
(Length operator)

source code 

Get the number of CssParameter nodes in this list.

Returns: integer
The number of CssParameter nodes.

__getitem__(self, key)
(Indexing operator)

source code 

Get one of the CssParameter nodes in the list.

Parameters:
  • key (integer) - The index of the child node.
Returns: CssParameter
The specific CssParameter node.

__setitem__(self, key, value)
(Index assignment operator)

source code 

Set one of the CssParameter nodes in the list with a new value.

Parameters:
  • key (integer) - The index of the child node.
  • value (CssParameter, etree.Element) - The new value of the specific child node.

__delitem__(self, key)
(Index deletion operator)

source code 

Delete one of the CssParameter nodes from the list.

Parameters:
  • key (integer) - The index of the child node.