This kind of bundle is constructed with a Modeled class and the
corresponding namespace URI and local name. Elements are expected to have
a xlink:href attribute pointing to the references item inside the
bundle's package.
|
|
__init__(self,
parent,
element,
namespaceUri,
localName,
source)
The parameter element is the DOM model of this object. |
source code
|
|
|
|
|
|
|
|
|
|
| _make_item(self,
parent=None,
element=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from unreachable.ViewableWithClass:
getViewableType
Inherited from unreachable.ViewableWithClass (private):
_get_viewable_class
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popitem(self)
Pops the first element of this bundle, and returns both its URI and
the item itself. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__getslice__(b,
i,
j)
b[i:j] Note that the slice is a copy of this bundle. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
getQName(self,
key,
namespaces,
default=None)
Resolve the given key as a QName with regard to the given namespaces. |
source code
|
|
|
|
get_by_id(self,
id_)
Inefficient but helpful method. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getChild(self,
match=None,
before=None,
after=None)
Looks for the first Element child matching the parameters. |
source code
|
|
|
|
_getDocument(self)
Return this object's model owner document. |
source code
|
|
|
|
_getModel(self)
Return this objects's model (a DOM element). |
source code
|
|
|
|
|
|
|
_getParent(self)
Return this objects's parent (a Modeled instance, or None). |
source code
|
|
|
|
getAccessPath(self)
Modeled which are not Importable rely on their parent for the access
path. |
source code
|
|
|
|
|
|
|
getRootPackage(self)
Modeled which are not Importable rely on their parent for the access
path. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
view(self,
view_id=None,
context=None)
Apply the specified view (or the best appliable view, cf
findDefaultView) on the object, with optional parameters given in
dico. |
source code
|
|