Package gavo :: Package base :: Module meta :: Class VotLinkMeta
[frames] | no frames]

Class VotLinkMeta

source code

object --+        
         |        
 MetaMixin --+    
             |    
     MetaValue --+
                 |
                VotLinkMeta

A MetaValue serialized into VOTable links (or, ideally, analoguous constructs).

This exposes the various attributes of VOTable LINKs as href linkname, contentType, and role. You cannot set ID here; if this ever needs referencing, we'll need to think about it again. The href attribute is simply the content of our meta (since there's no link without href), and there's never any content in VOTable LINKs).

You could thus say:

       votlink: http://docs.g-vo.org/DaCHS
       votlink.role: doc
       votlink.contentType: text/html
       votlink.linkname: GAVO DaCHS documentation
Instance Methods
 
__init__(self, href, format='plain', linkname=None, contentType=None, role=None)
is a constructor for standalone use.
source code

Inherited from MetaValue: __str__, __unicode__, copy, encode, getContent, getExpandedContent

Inherited from MetaMixin: addMeta, buildRepr, copyMetaFrom, delMeta, getAllMetaPairs, getMeta, getMetaKeys, getMetaParent, isEmpty, iterMeta, keys, makeOriginal, setMeta, setMetaParent, traverse

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables

Inherited from MetaValue: consecutiveWSPat, knownFormats, paragraphPat, plainWrapper

Properties

Inherited from object: __class__

Method Details

__init__(self, href, format='plain', linkname=None, contentType=None, role=None)
(Constructor)

source code 

is a constructor for standalone use. You do *not* want to call this when mixing into a Structure.

Overrides: object.__init__
(inherited documentation)