Package gavo :: Package base :: Module attrdef :: Class NWUnicodeAttribute
[frames] | no frames]

Class NWUnicodeAttribute

source code

  object --+            
           |            
AttributeDef --+        
               |        
 AtomicAttribute --+    
                   |    
    UnicodeAttribute --+
                       |
                      NWUnicodeAttribute

A UnicodeAttribute that has its whitespace normalized.

Normalization consists of stripping whitespace at the ends and replacing any runs or internal whitespace by a single blank. The whitespace will not be added back on unparsing.

Instance Methods
 
parse(self, value)
returns a typed python value for the string representation value.
source code

Inherited from UnicodeAttribute: __init__, feed, unparse

Inherited from AtomicAttribute: feedObject, getCopy, makeUserDoc

Inherited from AttributeDef: doCallbacks, iterParentMethods

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

Class Variables
  typeDesc_ = 'whitespace normalized unicode string'
Properties

Inherited from object: __class__

Method Details

parse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: AtomicAttribute.parse
(inherited documentation)