Class of objects representing 'group' elements of CAF dataset index
file.
|
__init__(self,
**kwargs)
Accepted keyword arguments: |
|
|
str
|
__getName(self)
Returns:
value of the 'name' attribute of represented XML element |
|
|
|
__setName(self,
newName)
Set the value of the 'name' attribute of represented XML element. |
|
|
int
|
__getGID(self)
Returns:
value of the 'id' attribute of represented XML element |
|
|
|
__setGID(self,
newID)
Set value of the 'id' attribute of represented XML element. |
|
|
str
|
__getFill(self)
Returns:
value of the 'fill' attribute of represented XML element |
|
|
|
__setFill(self,
newFill)
Set value of the 'fill' attribute of represented XML element. |
|
|
str
|
__getFullname(self)
Returns:
value of the 'fullname' attribute of represented XML element |
|
|
|
__setFullname(self,
newFullName)
Set value of the 'fullname' attribute of represented XML element. |
|
|
int
|
__getUID(self)
Returns:
value of the 'uid' attribute of represented XML element |
|
|
|
__setUID(self,
newUID)
Set value of the 'uid' attribute of represented XML element. |
|
|
barIndexerStructureElement
|
__getStructure(self)
Returns:
object representing the 'structure' element related to represented
element |
|
|
|
__setStructure(self,
newStructure)
Assign _structure an object
representing the 'structure' element related to represented element. |
|
|
[int, ...]
|
__getUidList(self)
Return list of 'uid' attributes of 'structure' elements assigned to
the represented element. |
|
|
|
__setUidList(self,
newValues)
Raise ValueError. |
|
|
|
getXMLelement(self)
Returns:
dom XML object describing the object |
|
|
generator
|
getStructureNameIterator(self,
depth=999)
Returns:
iterator over names of structures composing the group in the
hierarchy tree deep up to the given depth |
|
|
generator
|
getVisibleGroupIterator(self,
depth=999,
leavesOnly=False)
Returns:
iterator over groups ascendant to any structure included in CAF
slides in the hierarchy tree deep up to the given depth |
|
|
|
|
|
|
|
getNameFullNameUid(self,
depth=1)
An alias for self.__getMappedChildList(depth, ('name',
'fullname', 'id')) |
|
|
str
|
printHierarchyTree(self,
depth=0)
Print hierarchy tree of 'group' elements rooted in the represented
element. |
|
|
|
|
|
|
barIndexerGroupElement
|
_getSibling(self,
direction=-1)
Returns:
next (if direction = +1 ) or
previous (if direction = -1 )
sibling of given group element. |
|
|
tuple
|
__getMappedChildList(self,
depth=1,
properties=( ' name ' , ' id ' ) )
Returns:
tuple-based hierarchy tree containing tuples with requested
attributes of 'group' elements rooted in the represented element |
|
|
Inherited from base.barObject :
__str__ ,
getElementById ,
writeXMLtoFile
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
str
|
_fill
value of the 'fill' attribute of represented XML element
|
str
|
_fullname
value of the 'fullname' attribute of represented XML element
|
int
|
_id
value of the 'id' attribute of represented XML element
|
str
|
_name
value of the 'name' attribute of represented XML element
|
barIndexerStructureElement
|
_structure
object handling manipulation of the 'structure' element related to
the represented element; its uid value overrides the _uid value if given
|
int
|
_uid
value of the 'uid' attribute of represented XML element
|
[barIndexerGroupElement, ...]
|
children
objects handling manipulations of the 'group' elements child to the
represented element
|
barIndexerGroupElement
|
parent
object handling manipulations of the 'group' element parental to the
represented element
|