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

Class Template

source code


Essentially a Block, but is the top level element in a data model.

TODO: Refactor this to DataModel

Instance Methods [hide private]
 
__init__(self, name) source code
 
getValue(self)
Get value for this data element.
source code
 
setValue(self, value)
Override value created via children.
source code
 
reset(self)
Reset current state.
source code

Inherited from DataElement: GetWhenRelation, HasWhenRelation, calcLength, find, findArrayByName, findDataElementByName, genAllChildDataElements, getArrayCount, getArrayElementAt, getCount, getFullnameInDataModel, getInternalValue, getRawValue, getRelationOfThisElement, getRelationValue, getRootOfDataMap, get_maxOccurs, get_minOccurs, isArray, resetDataModel, setDefaultValue, 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)
(Constructor)

source code 
Overrides: Element.__init__

getValue(self)

source code 

Get value for this data element.

Performs any needed transforms to produce value.

Overrides: DataElement.getValue

setValue(self, value)

source code 

Override value created via children.

Overrides: DataElement.setValue

reset(self)

source code 

Reset current state.

Overrides: DataElement.reset