Table of Contents

Class: RuleData daxfi/RuleBuilder.py

Manage data representing a firewall rule.

Methods   
__cmp__
__init__
__len__
__xor__
_getAttributes
copy
get
getData
getDataFlat
getNode
has
hasNode
intersection
list
listNodes
pop
popNode
reset
set
setData
setNode
  __cmp__ 
__cmp__ ( self,  other )

Compare two RuleData objects.

  __init__ 
__init__ ( self )

Initialize the RuleData object.

  __len__ 
__len__ ( self )

Return how many nodes are in the data set.

  __xor__ 
__xor__ ( self,  other )

Merge two RuleData objects.

  _getAttributes 
_getAttributes (
        self,
        node,
        attributes,
        default,
        delete,
        )

Get/pop an attribute.

  copy 
copy ( self )

Return a copy of this object.

  get 
get (
        self,
        node,
        attributes,
        default='',
        )

Return the given attribute(s) or default if not present.

  getData 
getData ( self )

Return a copy of the data dictionary.

  getDataFlat 
getDataFlat ( self )

Return a string with every attribute-name value couple.

  getNode 
getNode ( self,  node )

Return the given node.

  has 
has (
        self,
        node,
        attribute,
        )

Return true if the object has the given attribute.

  hasNode 
hasNode ( self,  node )

Return true if the object has the given node.

  intersection 
intersection (
        self,
        dictionary,
        node=None,
        )

Return a list that is the intersection between this object's data and a dictionary.

  list 
list ( self,  node )

List available attributes in the given node.

  listNodes 
listNodes ( self )

List available nodes.

  pop 
pop (
        self,
        node,
        attributes,
        default='',
        )

Return the given attribute(s) or default if not present in the data set, and remove it.

  popNode 
popNode ( self,  node )

Return a given node, and delete it from the data set.

  reset 
reset ( self )

Reset a RuleData object.

  set 
set (
        self,
        node,
        attribute,
        value,
        )

Set a given attribute.

  setData 
setData ( self,  data )

Set the data dictionary.

  setNode 
setNode (
        self,
        node,
        data,
        )

Set a given node.


Table of Contents

This document was automatically generated on Tue Dec 17 17:48:18 2002 by HappyDoc version r1_5