Package pyfdt :: Module pyfdt :: Class FdtPropertyStrings
[hide private]
[frames] | no frames]

Class FdtPropertyStrings

source code

 object --+    
          |    
FdtProperty --+
              |
             FdtPropertyStrings

Property with strings as value

Instance Methods [hide private]
 
__init__(self, name, strings)
Init with strings
source code
 
dts_represent(self, depth=0)
Get dts string representation
source code
 
dtb_represent(self, string_store, pos=0, version=17)
Get blob representation
source code
 
json_represent(self, depth=0)
Ouput JSON
source code
 
to_raw(self)
Return RAW value representation
source code
 
__str__(self)
String representation
source code
 
__getitem__(self, index)
Get strings, returns a string
source code
 
__len__(self)
Get strings count
source code
 
__eq__(self, node)
Check node equality check properties are the same (same values)
source code

Inherited from FdtProperty: __ne__, get_name

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

Class Methods [hide private]
 
__extract_prop_strings(cls, value)
Extract strings from raw_value
source code
 
init_raw(cls, name, raw_value)
Init from raw
source code
Static Methods [hide private]

Inherited from FdtProperty: new_raw_property

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, strings)
(Constructor)

source code 

Init with strings

Overrides: object.__init__

dts_represent(self, depth=0)

source code 

Get dts string representation

Overrides: FdtProperty.dts_represent

dtb_represent(self, string_store, pos=0, version=17)

source code 

Get blob representation

Overrides: FdtProperty.dtb_represent

json_represent(self, depth=0)

source code 

Ouput JSON

Overrides: FdtProperty.json_represent

to_raw(self)

source code 

Return RAW value representation

Overrides: FdtProperty.to_raw

__str__(self)
(Informal representation operator)

source code 

String representation

Overrides: object.__str__

__getitem__(self, index)
(Indexing operator)

source code 

Get strings, returns a string

Overrides: FdtProperty.__getitem__

__eq__(self, node)
(Equality operator)

source code 

Check node equality check properties are the same (same values)

Overrides: FdtProperty.__eq__