Home | Trees | Indices | Help |
|
---|
|
object --+ | cscRoot --+ | utils.utility.Locatable_mixin --+ | _TypeBinding_mixin --+ | object --+ | | | utils.utility._DeconflictSymbols_mixin --+ | object --+ | | | cscRoot --+ | | | _DynamicCreate_mixin --+ | simpleTypeDefinition
simpleTypeDefinition is a base class that is part of the hierarchy of any class that represents the Python datatype for a SimpleTypeDefinition.
Note: This class, or a descendent of it, must be the first class in the method resolution order when a subclass has multiple parents. Otherwise, constructor keyword arguments may not be removed before passing them on to Python classes that do not accept them.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
a new object with type S, a subtype of T |
|
|
|||
__FacetMap =
|
|||
_ReservedSymbols =
Symbols that remain the responsibility of this class. |
|||
__FacetMapAttributeNameMap =
|
|||
__ClassFacetSequence =
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Return a reference to the facet map for this datatype. The facet map is a map from leaf facet classes to instances of those classes that constrain or otherwise apply to the lexical or value space of the datatype. Classes may inherit their facet map from their superclass, or may create a new class instance if the class adds a new constraint type.
|
Initialize the facet map for this datatype. This must be called exactly once, after all facets belonging to the datatype have been created.
|
Pre-process the arguments. This is used before invoking the parent constructor. One application is to apply the whitespace facet processing; if such a request is in the keywords, it is removed so it does not propagate to the superclass. Another application is to convert the arguments from a string to a list. Binding-specific applications are performed in the overloaded _ConvertArguments_vx method. |
|
Initialize a newly created STD instance. Usually there is one positional argument, which is a value that can be converted to the underlying Python type.
|
Return the SimpleTypeDefinition instance for the given class. This should only be invoked when generating bindings. An STD must have been associated with the class using _SimpleTypeDefinition. |
Convert from a python value to a string usable in an XML document. This should be implemented in the subclass. |
Return text suitable for representing the value of this instance in an XML document. The base class implementation delegates to the object class's XsdLiteral method. |
Find the nearest parent class in the PST hierarchy. The value for anySimpleType is None; for all others, it's a primitive or derived PST descendent (including anySimpleType). |
Pre-extended class method to verify other things before checking constraints. This is used for list types, to verify that the values in the list are acceptable, and for token descendents, to check the lexical/value space conformance of the input. |
Validate the given value against the constraints on this class.
|
Override in subclasses for type-specific validation of instance content.
|
Return the length of the given value. The length is calculated by a subclass implementation of _XsdValueLength_vx in accordance with http://www.w3.org/TR/xmlschema-2/#rf-length. The return value is a non-negative integer, or
|
Return the length of this instance within its value space. See XsdValueLength. |
|
STDs have simple type content.
|
NB: Invoking this on a value that is a list will, if necessary, replace the members of the list with new values that are of the correct item type. This is permitted because only with lists is it possible to bypass the normal content validation (by invoking append/extend on the list instance). |
|
_ReservedSymbolsSymbols that remain the responsibility of this class. Any public symbols in generated binding subclasses are deconflicted by providing an alternative name in the subclass. (There currently are no public symbols in generated SimpleTypeDefinion bindings.
|
__FacetMapAttributeNameMap
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Apr 17 03:13:53 2013 | http://epydoc.sourceforge.net |