Package Peach :: Package Engine :: Module dom :: Class Block
[hide private]

Class Block

source code


Block or sequence of other data types.

Instance Methods [hide private]
 
__init__(self, name, parent)
Don't put too much logic here.
source code
 
getInternalValue(self)
Return the internal value of this date element.
source code
 
getRawValue(self)
Get value for this data element.
source code

Inherited from DataElement: GetWhenRelation, HasWhenRelation, calcLength, find, findArrayByName, findDataElementByName, genAllChildDataElements, getArrayCount, getArrayElementAt, getCount, getFullnameInDataModel, getRelationOfThisElement, getRelationValue, getRootOfDataMap, getValue, get_maxOccurs, get_minOccurs, isArray, reset, resetDataModel, setDefaultValue, setValue, set_maxOccurs, set_minOccurs

Inherited from ElementWithChildren: __contains__, __delitem__, __getitem__, __iter__, __len__, __setitem__, append, firstChild, genElementsByType, has_key, index, insert, lastChild, printDomMap, setDefaults, toXmlDom, updateFromXmlDom, verifyDomMap

Inherited from Element: copy, getFullDataName, getFullname, getRoot, hasChildNode, nextSibling, previousSibling

Static Methods [hide private]

Inherited from Element: getUniqueName

Class Variables [hide private]

Inherited from DataElement: maxOccurs, minOccurs

Inherited from Element: GuidRegex

Instance Variables [hide private]

Inherited from DataElement: array, arrayMaxOccurs, arrayMinOccurs, arrayPosition, currentValue, defaultValue, fixup, isStatic, onArrayNext, pos, rating, relationStringBuffer, relations, transformer, value, when

Inherited from DataElement (private): _inInternalValue, _maxOccurs, _minOccurs

Inherited from ElementWithChildren: children

Inherited from ElementWithChildren (private): _children, _childrenHash

Inherited from Element: elementType, hasChildren, name, node, parent, ref

Method Details [hide private]

__init__(self, name, parent)
(Constructor)

source code 

Don't put too much logic here. See HandleBlock in the parser.

Overrides: Element.__init__

getInternalValue(self)

source code 

Return the internal value of this date element. This value comes before any modifications such as packing, padding, truncating, etc.

For Numbers this is the python int value.

Overrides: DataElement.getInternalValue

getRawValue(self)

source code 

Get value for this data element.

Performs any needed transforms to produce value.

Overrides: DataElement.getRawValue