Package spade :: Module content :: Class ContentObject
[hide private]
[frames] | no frames]

Class ContentObject

source code


WARNING: copy.copy() does NOT work for this class :-?

Instance Methods [hide private]
new empty dictionary

__init__(self, namespaces={})
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__setitem__(self, key, value)
x[i]=y
source code
 
DEACTIVATED__setattr__(self, key, value)
Overloader of __setattr__ allows for entering keys in prefix:tag format without worry.
source code
 
__getattr__(self, name) source code
 
addNamespace(self, uri, abv) source code
 
pprint(self, ind=0) source code
 
asRDFXML(self) source code
 
__str__(self)
str(x)
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, namespaces={})
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

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

source code 

x[i]=y

Overrides: dict.__setitem__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)