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

Class Number

source code


A numerical field

Instance Methods [hide private]
 
__init__(self, name, parent) source code
 
getMinValue(self)
Get the minimum value this number can have.
source code
 
getMaxValue(self)
Get the maximum value for this number.
source code
 
getInternalValue(self)
Return the internal value of this date element.
source code
 
pack(self, num)
Pack a number into proper format for this Number
source code
 
unpack(self, buff)
Unpack a number from proper format fo this Number
source code
 
getRawValue(self)
Get the value of this data element pre-transformers.
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]
  _allowedSizes = [8, 16, 24, 32, 64]

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 
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 the value of this data element pre-transformers.

Overrides: DataElement.getRawValue
(inherited documentation)