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

Class CssParameter

source code


A css styling parameter. May be a child of Fill, Font, and Stroke.

Instance Methods [hide private]
 
__init__(self, parent, index, descendant=True)
Create a new CssParameter from an existing StyleItem.
source code
string
get_name(self)
Get the name attribute.
source code
 
set_name(self, value)
Set the name attribute.
source code
 
del_name(self)
Delete the name attribute.
source code
string
get_value(self)
Get the text content.
source code
 
set_value(self, value)
Set the text content.
source code
 
del_value(self)
Delete the text content.
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]
  Name = property(get_name, set_name, del_name, "The value of th...
The value of the 'name' attribute.
  Value = property(get_value, set_value, del_value, "The value o...
The value of the parameter.

Inherited from SLDNode (private): _nsmap

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Create a new CssParameter from an existing StyleItem.

Parameters:
  • parent (StyleItem) - The parent class object.
  • index (integer) - The index of the node in the list of all CssParameters in the parent.
  • descendant (boolean) - Does this element descend from the parent, or is it a sibling?
Overrides: object.__init__

get_name(self)

source code 

Get the name attribute.

Returns: string
The value of the 'name' attribute.

set_name(self, value)

source code 

Set the name attribute.

Parameters:
  • value (string) - The value of the 'name' attribute.

get_value(self)

source code 

Get the text content.

Returns: string
The text content.

set_value(self, value)

source code 

Set the text content.

Parameters:
  • value (string) - The text content.

Class Variable Details [hide private]

Name

The value of the 'name' attribute.

Value:
property(get_name, set_name, del_name, "The value of the 'name' attrib\
ute.")

Value

The value of the parameter.

Value:
property(get_value, set_value, del_value, "The value of the parameter.\
")