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

Class String

source code


A string field

Instance Methods [hide private]
 
__init__(self, name, parent) source code
 
getLength(self, inRaw=True)
Get the length of this element.
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]
  padCharacter
Value to pad string with, defaults to NULL '\0'
  type
Type of string, currently only char and wchar are supported.
  nullTerminated
Is string null terminated, defaults to false
  tokens
DEPRICATED, Use hint instead

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)