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

Class Choice

source code


Choice, chooses one or emore sub-elements

Instance Methods [hide private]
 
__init__(self, name, parent)
Don't put too much logic here.
source code
 
SelectedElement(self, value=None) source code
 
getInternalValue(self)
Return the internal value of this date element.
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]

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

Overrides: DataElement.getRawValue
(inherited documentation)