Package advene :: Package model :: Module package :: Class Import
[hide private]
[frames] | no frames]

Class Import

source code

     object --+    
              |    
modeled.Modeled --+
                  |
     object --+   |
              |   |
     _impl.Ased --+
                  |
                 Import

Import represents the different imported elements

Instance Methods [hide private]
 
__init__(self, parent, element=None, uri=None)
FIXME
source code
 
getUri(self, absolute=True)
Return the URI of the element.
source code
 
setUri(self, uri)
Set the URI of the element
source code
 
getSources(self)
Return the different sources of imported elements
source code
 
setSources(self, list)
Set the sources of imported elements
source code
 
getPackage(self)
Return the imported package
source code
 
getId(self)
The 'as' attribute is used as the import's ID, including when populating bundle.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from modeled.Modeled
 
_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
 
_getModelChildren(self)
Return a DOM NodeList of the element children of this object's model.
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
 
getOwnerPackage(self) source code
 
getRootPackage(self)
Modeled which are not Importable rely on their parent for the access path.
source code
    Inherited from _impl.Ased
 
delAs(self)
Unbind the 'as' attribute.
source code
 
getAs(self)
Return the 'as' attribute.
source code
 
setAs(self, value)
Set the 'as' attribute.
source code
Static Methods [hide private]
 
getNamespaceUri() source code
 
getLocalName() source code
Class Variables [hide private]
  __metaclass__ = auto_properties
Metaclass automatically defining properties.
  __loaded_package = None
Properties [hide private]
  id
The 'as' attribute is used as the import's ID, including when populating bundle.
  package
Return the imported package
  sources
Return the different sources of imported elements
  uri
Return the URI of the element.

Inherited from object: __class__

    Inherited from modeled.Modeled
  accessPath
Modeled which are not Importable rely on their parent for the access path.
  ownerPackage
  rootPackage
Modeled which are not Importable rely on their parent for the access path.
    Inherited from _impl.Ased
  as
Return the 'as' attribute.
Method Details [hide private]

__init__(self, parent, element=None, uri=None)
(Constructor)

source code 

FIXME

Overrides: object.__init__

getUri(self, absolute=True)

source code 

Return the URI of the element.

If parameter absolute is set to _true_, the URI will be forced absolute, else it will be returned in its stored form (which could be absolute or relative).

You would probably rather use the uri read-only property, unless you want to set the parameter _absolute_.


Property Details [hide private]

id

The 'as' attribute is used as the import's ID, including when populating bundle.

Get Method:
unreachable.getId(self) - The 'as' attribute is used as the import's ID, including when populating bundle.

package

Return the imported package

Get Method:
unreachable.getPackage(self) - Return the imported package

sources

Return the different sources of imported elements

Get Method:
unreachable.getSources(self) - Return the different sources of imported elements
Set Method:
unreachable.setSources(self, list) - Set the sources of imported elements

uri

Return the URI of the element.

If parameter absolute is set to _true_, the URI will be forced absolute, else it will be returned in its stored form (which could be absolute or relative).

You would probably rather use the uri read-only property, unless you want to set the parameter _absolute_.

Get Method:
unreachable.getUri(self, absolute=True) - Return the URI of the element.
Set Method:
unreachable.setUri(self, uri) - Set the URI of the element