| | |
- AttributeGroupMarker
- AttributeMarker
- ComplexMarker
- DOMAdapterInterface
-
- DOMAdapter
- DeclarationMarker
- DefinitionMarker
- ElementMarker
- exceptions.Exception
-
- NoSchemaLocationWarning
- SchemaError
- ExtensionMarker
- ListMarker
- LocalMarker
- MarkerInterface
- ModelGroupMarker
-
- AllMarker
- ChoiceMarker
- SequenceMarker
- Redefine
- ReferenceMarker
- RestrictionMarker
- SchemaReader
- SimpleMarker
- UnionMarker
- WildCardMarker
- XMLBase
-
- XMLSchemaComponent(XMLBase, MarkerInterface)
-
- All(XMLSchemaComponent, AllMarker)
- Annotation
- AttributeDeclaration(XMLSchemaComponent, AttributeMarker, DeclarationMarker)
-
- LocalAttributeDeclaration(AttributeDeclaration, AttributeMarker, LocalMarker, DeclarationMarker)
- AttributeGroupDefinition(XMLSchemaComponent, AttributeGroupMarker, DefinitionMarker)
- AttributeGroupReference(XMLSchemaComponent, AttributeGroupMarker, ReferenceMarker)
- AttributeReference(XMLSchemaComponent, AttributeMarker, ReferenceMarker)
- AttributeWildCard(XMLSchemaComponent, AttributeMarker, DeclarationMarker, WildCardMarker)
- Choice(XMLSchemaComponent, ChoiceMarker)
- ComplexType(XMLSchemaComponent, DefinitionMarker, ComplexMarker)
-
- LocalComplexType(ComplexType, LocalMarker)
- ElementDeclaration(XMLSchemaComponent, ElementMarker, DeclarationMarker)
-
- LocalElementDeclaration(ElementDeclaration, LocalMarker)
-
- ElementWildCard(LocalElementDeclaration, WildCardMarker)
- ElementReference(XMLSchemaComponent, ElementMarker, ReferenceMarker)
- IdentityConstrants
-
- Key
- KeyRef
- Unique
- ModelGroupDefinition(XMLSchemaComponent, ModelGroupMarker, DefinitionMarker)
- ModelGroupReference(XMLSchemaComponent, ModelGroupMarker, ReferenceMarker)
- Notation
- Sequence(XMLSchemaComponent, SequenceMarker)
- SimpleType(XMLSchemaComponent, DefinitionMarker, SimpleMarker)
-
- AnonymousSimpleType(SimpleType, SimpleMarker, LocalMarker)
- WSDLToolsAdapter
- XMLSchema
- XMLSchemaFake
- __builtin__.tuple(__builtin__.object)
-
- TypeDescriptionComponent
class All(XMLSchemaComponent, AllMarker) |
| |
<all>
parents:
complexType, extension, restriction, group
attributes:
id -- ID
minOccurs -- '0' | '1', 1
maxOccurs -- '1', 1
contents:
annotation?, element* |
| |
- Method resolution order:
- All
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AllMarker
- ModelGroupMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1'}
- contents = {'xsd': ['annotation', 'element']}
- tag = 'all'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class Annotation(XMLSchemaComponent) |
| |
<annotation>
parent:
all,any,anyAttribute,attribute,attributeGroup,choice,complexContent,
complexType,element,extension,field,group,import,include,key,keyref,
list,notation,redefine,restriction,schema,selector,simpleContent,
simpleType,union,unique
attributes:
id -- ID
contents:
(documentation | appinfo)* |
| |
- Method resolution order:
- Annotation
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- Appinfo = <class wstools.XMLSchema.Appinfo>
- <appinfo>
parent:
annotation
attributes:
source, anyURI
contents:
mixed, any
- Documentation = <class wstools.XMLSchema.Documentation>
- <documentation>
parent:
annotation
attributes:
source, anyURI
xml:lang, language
contents:
mixed, any
- attributes = {'id': None}
- contents = {'xsd': ('documentation', 'appinfo')}
- tag = 'annotation'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class AnonymousSimpleType(SimpleType, SimpleMarker, LocalMarker) |
| |
<simpleType>
parents:
attribute, element, list, restriction, union
attributes:
id -- ID
contents:
annotation?, (restriction | list | union) |
| |
- Method resolution order:
- AnonymousSimpleType
- SimpleType
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- DefinitionMarker
- SimpleMarker
- LocalMarker
Data and other attributes defined here:
- attributes = {'id': None}
- required = []
- tag = 'simpleType'
Methods inherited from SimpleType:
- __init__(self, parent)
- fromDom(self, node)
- getElementDeclaration(self, attribute)
- getTypeDefinition(self, attribute)
Data and other attributes inherited from SimpleType:
- List = <class wstools.XMLSchema.List>
- <list>
parents:
simpleType
attributes:
id -- ID
itemType -- QName, required or simpleType child.
contents:
annotation?, simpleType?
- Restriction = <class wstools.XMLSchema.Restriction>
- <restriction base>
parents:
simpleType
attributes:
id -- ID
base -- QName, required or simpleType child
contents:
annotation?, simpleType?, (enumeration | length |
maxExclusive | maxInclusive | maxLength | minExclusive |
minInclusive | minLength | pattern | fractionDigits |
totalDigits | whiteSpace)*
- Union = <class wstools.XMLSchema.Union>
- <union>
parents:
simpleType
attributes:
id -- ID
memberTypes -- list of QNames, required or simpleType child.
contents:
annotation?, simpleType*
- contents = {'xsd': ['annotation', 'restriction', 'list', 'union']}
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class AttributeDeclaration(XMLSchemaComponent, AttributeMarker, DeclarationMarker) |
| |
<attribute name>
parent:
schema
attributes:
id -- ID
name -- NCName, required
type -- QName
default -- string
fixed -- string
contents:
annotation?, simpleType? |
| |
- Method resolution order:
- AttributeDeclaration
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AttributeMarker
- DeclarationMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- No list or union support
Data and other attributes defined here:
- attributes = {'default': None, 'fixed': None, 'id': None, 'name': None, 'type': None}
- contents = {'xsd': ['annotation', 'simpleType']}
- required = ['name']
- tag = 'attribute'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class AttributeGroupDefinition(XMLSchemaComponent, AttributeGroupMarker, DefinitionMarker) |
| |
<attributeGroup name>
parents:
schema, redefine
attributes:
id -- ID
name -- NCName, required
contents:
annotation?, (attribute | attributeGroup)*, anyAttribute? |
| |
- Method resolution order:
- AttributeGroupDefinition
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AttributeGroupMarker
- DefinitionMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getAttributeContent(self)
Data and other attributes defined here:
- attributes = {'id': None, 'name': None}
- contents = {'xsd': ['annotation', 'attribute', 'attributeGroup', 'anyAttribute']}
- required = ['name']
- tag = 'attributeGroup'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class AttributeGroupReference(XMLSchemaComponent, AttributeGroupMarker, ReferenceMarker) |
| |
<attributeGroup ref>
parents:
complexType, restriction, extension, attributeGroup
attributes:
id -- ID
ref -- QName, required
contents:
annotation? |
| |
- Method resolution order:
- AttributeGroupReference
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AttributeGroupMarker
- ReferenceMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getAttributeGroup(self, attribute='ref')
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
Data and other attributes defined here:
- attributes = {'id': None, 'ref': None}
- contents = {'xsd': ['annotation']}
- required = ['ref']
- tag = 'attributeGroup'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class AttributeReference(XMLSchemaComponent, AttributeMarker, ReferenceMarker) |
| |
<attribute ref>
parents:
complexType, restriction, extension, attributeGroup
attributes:
id -- ID
ref -- QName, required
use -- ('optional' | 'prohibited' | 'required'), optional
default -- string
fixed -- string
contents:
annotation? |
| |
- Method resolution order:
- AttributeReference
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AttributeMarker
- ReferenceMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getAttributeDeclaration(self, attribute='ref')
Data and other attributes defined here:
- attributes = {'default': None, 'fixed': None, 'id': None, 'ref': None, 'use': 'optional'}
- contents = {'xsd': ['annotation']}
- required = ['ref']
- tag = 'attribute'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class AttributeWildCard(XMLSchemaComponent, AttributeMarker, DeclarationMarker, WildCardMarker) |
| |
<anyAttribute>
parents:
complexType, restriction, extension, attributeGroup
attributes:
id -- ID
namespace -- '##any' | '##other' |
(anyURI* | '##targetNamespace' | '##local'), ##any
processContents -- 'lax' | 'skip' | 'strict', strict
contents:
annotation? |
| |
- Method resolution order:
- AttributeWildCard
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AttributeMarker
- DeclarationMarker
- WildCardMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'id': None, 'namespace': '##any', 'processContents': 'strict'}
- contents = {'xsd': ['annotation']}
- tag = 'anyAttribute'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class Choice(XMLSchemaComponent, ChoiceMarker) |
| |
<choice>
parents:
complexType, extension, restriction, group, choice, sequence
attributes:
id -- ID
minOccurs -- Whole Number, 1
maxOccurs -- (Whole Number | 'unbounded'), 1
contents:
annotation?, (element | group | choice | sequence | any)* |
| |
- Method resolution order:
- Choice
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ChoiceMarker
- ModelGroupMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1'}
- contents = {'xsd': ['annotation', 'element', 'group', 'choice', 'sequence', 'any']}
- tag = 'choice'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class ComplexType(XMLSchemaComponent, DefinitionMarker, ComplexMarker) |
| |
<complexType name>
parents:
redefine, schema
attributes:
id -- ID
name -- NCName, required
mixed -- boolean, false
abstract -- boolean, false
block -- ('#all' | ('extension' | 'restriction')*), schema.blockDefault
final -- ('#all' | ('extension' | 'restriction')*), schema.finalDefault
contents:
annotation?, (simpleContent | complexContent |
((group | all | choice | sequence)?, (attribute | attributeGroup)*, anyAttribute?)) |
| |
- Method resolution order:
- ComplexType
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- DefinitionMarker
- ComplexMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getAttributeContent(self)
- getElementDeclaration(self, attribute)
- getTypeDefinition(self, attribute)
- isMixed(self)
Data and other attributes defined here:
- ComplexContent = <class wstools.XMLSchema.ComplexContent>
- <complexContent>
parents:
complexType
attributes:
id -- ID
mixed -- boolean, false
contents:
annotation?, (restriction | extension)
- SimpleContent = <class wstools.XMLSchema.SimpleContent>
- <simpleContent>
parents:
complexType
attributes:
id -- ID
contents:
annotation?, (restriction | extension)
- attributes = {'abstract': 0, 'block': <function <lambda>>, 'final': <function <lambda>>, 'id': None, 'mixed': 0, 'name': None}
- contents = {'xsd': ['annotation', 'simpleContent', 'complexContent', 'group', 'all', 'choice', 'sequence', 'attribute', 'attributeGroup', 'anyAttribute', 'any']}
- required = ['name']
- tag = 'complexType'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class DOMAdapter(DOMAdapterInterface) |
| |
Adapter for ZSI.Utility.DOM |
| |
Methods defined here:
- __init__(self, node=None)
- Reset all instance variables.
element -- DOM document, node, or None
- getAttributeDictionary(self)
- getContentList(self, *contents)
- getNamespace(self, prefix)
- prefix -- deference namespace prefix in node's context.
Ascends parent nodes until found.
- getNode(self)
- getParentNode(self)
- getTagName(self)
- hasattr(self, attr, ns=None)
- attr -- attribute
ns -- optional namespace, None means unprefixed attribute.
- loadDocument(self, file)
- loadFromURL(self, url)
- setAttributeDictionary(self)
|
class DOMAdapterInterface |
| |
###########################
# DOM Utility Adapters
########################## |
| |
Methods defined here:
- getAttributeDictionary(self)
- returns a dict of node's attributes
- getContentList(self, *contents)
- returns an ordered list of child nodes
*contents -- list of node names to return
- getNamespace(self, prefix)
- returns namespace referenced by prefix.
- getParentNode(self)
- returns parent element in DOMAdapter or None
- getTagName(self)
- returns tagName of node
- hasattr(self, attr, ns=None)
- return true if node has attribute
attr -- attribute to check for
ns -- namespace of attribute, by default None
- loadDocument(self, file)
- load a Document from a file object
file --
- loadFromURL(self, url)
- load a Document from an url
url -- URL to dereference
- setAttributeDictionary(self, attributes)
- set attribute dictionary
|
class ElementDeclaration(XMLSchemaComponent, ElementMarker, DeclarationMarker) |
| |
<element name>
parents:
schema
attributes:
id -- ID
name -- NCName, required
type -- QName
default -- string
fixed -- string
nillable -- boolean, false
abstract -- boolean, false
substitutionGroup -- QName
block -- ('#all' | ('substition' | 'extension' | 'restriction')*),
schema.blockDefault
final -- ('#all' | ('extension' | 'restriction')*),
schema.finalDefault
contents:
annotation?, (simpleType,complexType)?, (key | keyref | unique)* |
| |
- Method resolution order:
- ElementDeclaration
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ElementMarker
- DeclarationMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getAttribute(self, attribute)
- return attribute.
If attribute is type and it's None, and no simple or complex content,
return the default type "xsd:anyType"
- getConstraints(self)
- getElementDeclaration(self, attribute)
- getTypeDefinition(self, attribute=None)
- If attribute is None, "type" is assumed, return the corresponding
representation of the global type definition (TypeDefinition),
or the local definition if don't find "type". To maintain backwards
compat, if attribute is provided call base class method.
- isQualified(self)
- Global elements are always qualified.
- setConstraints(self, constraints)
Properties defined here:
- constraints
- tuple of key, keyref, unique constraints
- get = getConstraints(self)
- set = setConstraints(self, constraints)
Data and other attributes defined here:
- attributes = {'abstract': 0, 'block': <function <lambda>>, 'default': None, 'final': <function <lambda>>, 'fixed': None, 'id': None, 'name': None, 'nillable': 0, 'substitutionGroup': None, 'type': None}
- contents = {'xsd': ['annotation', 'simpleType', 'complexType', 'key', 'keyref', 'unique']}
- required = ['name']
- tag = 'element'
Methods inherited from XMLSchemaComponent:
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class ElementReference(XMLSchemaComponent, ElementMarker, ReferenceMarker) |
| |
<element ref>
parents:
all, choice, sequence
attributes:
id -- ID
ref -- QName, required
minOccurs -- Whole Number, 1
maxOccurs -- (Whole Number | 'unbounded'), 1
contents:
annotation? |
| |
- Method resolution order:
- ElementReference
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ElementMarker
- ReferenceMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getElementDeclaration(self, attribute=None)
- If attribute is None, "ref" is assumed, return the corresponding
representation of the global element declaration (ElementDeclaration),
To maintain backwards compat, if attribute is provided call base class method.
Data and other attributes defined here:
- attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'ref': None}
- contents = {'xsd': ['annotation']}
- required = ['ref']
- tag = 'element'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class ElementWildCard(LocalElementDeclaration, WildCardMarker) |
| |
<any>
parents:
choice, sequence
attributes:
id -- ID
minOccurs -- Whole Number, 1
maxOccurs -- (Whole Number | 'unbounded'), 1
namespace -- '##any' | '##other' |
(anyURI* | '##targetNamespace' | '##local'), ##any
processContents -- 'lax' | 'skip' | 'strict', strict
contents:
annotation? |
| |
- Method resolution order:
- ElementWildCard
- LocalElementDeclaration
- ElementDeclaration
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ElementMarker
- DeclarationMarker
- LocalMarker
- WildCardMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getAttribute(self, attribute)
- return attribute.
- getTypeDefinition(self, attribute)
- isQualified(self)
- Global elements are always qualified, but if processContents
are not strict could have dynamically generated local elements.
Data and other attributes defined here:
- attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'namespace': '##any', 'processContents': 'strict'}
- contents = {'xsd': ['annotation']}
- required = []
- tag = 'any'
Methods inherited from ElementDeclaration:
- getConstraints(self)
- getElementDeclaration(self, attribute)
- setConstraints(self, constraints)
Properties inherited from ElementDeclaration:
- constraints
- tuple of key, keyref, unique constraints
- get = getConstraints(self)
- set = setConstraints(self, constraints)
Methods inherited from XMLSchemaComponent:
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class IdentityConstrants(XMLSchemaComponent) |
| |
Allow one to uniquely identify nodes in a document and ensure the
integrity of references between them.
attributes -- dictionary of attributes
selector -- XPath to selected nodes
fields -- list of XPath to key field |
| |
- Method resolution order:
- IdentityConstrants
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- Constraint = <class wstools.XMLSchema.Constraint>
- Field = <class wstools.XMLSchema.Field>
- <field xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
- Selector = <class wstools.XMLSchema.Selector>
- <selector xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- attributes = {}
- contents = {}
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Data and other attributes inherited from XMLBase:
- tag = None
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class Key(IdentityConstrants) |
| |
<key name> Enforce fields are unique w/i a specified scope, and all
field values are present w/i document. Fields cannot
be nillable.
parent:
element
attributes:
id -- ID
name -- NCName, required
contents:
annotation?, selector, field+ |
| |
- Method resolution order:
- Key
- IdentityConstrants
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Data and other attributes defined here:
- attributes = {'id': None, 'name': None}
- contents = {'xsd': ['annotation', 'selector', 'field']}
- required = ['name']
- tag = 'key'
Methods inherited from IdentityConstrants:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes inherited from IdentityConstrants:
- Constraint = <class wstools.XMLSchema.Constraint>
- Field = <class wstools.XMLSchema.Field>
- <field xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
- Selector = <class wstools.XMLSchema.Selector>
- <selector xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class KeyRef(IdentityConstrants) |
| |
<keyref name refer> Ensure a match between two sets of values in an
instance.
parent:
element
attributes:
id -- ID
name -- NCName, required
refer -- QName, required
contents:
annotation?, selector, field+ |
| |
- Method resolution order:
- KeyRef
- IdentityConstrants
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Data and other attributes defined here:
- attributes = {'id': None, 'name': None, 'refer': None}
- contents = {'xsd': ['annotation', 'selector', 'field']}
- required = ['name', 'refer']
- tag = 'keyref'
Methods inherited from IdentityConstrants:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes inherited from IdentityConstrants:
- Constraint = <class wstools.XMLSchema.Constraint>
- Field = <class wstools.XMLSchema.Field>
- <field xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
- Selector = <class wstools.XMLSchema.Selector>
- <selector xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class LocalAttributeDeclaration(AttributeDeclaration, AttributeMarker, LocalMarker, DeclarationMarker) |
| |
<attribute name>
parent:
complexType, restriction, extension, attributeGroup
attributes:
id -- ID
name -- NCName, required
type -- QName
form -- ('qualified' | 'unqualified'), schema.attributeFormDefault
use -- ('optional' | 'prohibited' | 'required'), optional
default -- string
fixed -- string
contents:
annotation?, simpleType? |
| |
- Method resolution order:
- LocalAttributeDeclaration
- AttributeDeclaration
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- AttributeMarker
- DeclarationMarker
- LocalMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'default': None, 'fixed': None, 'form': <function <lambda>>, 'id': None, 'name': None, 'type': None, 'use': 'optional'}
- contents = {'xsd': ['annotation', 'simpleType']}
- required = ['name']
Data and other attributes inherited from AttributeDeclaration:
- tag = 'attribute'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class LocalComplexType(ComplexType, LocalMarker) |
| |
<complexType>
parents:
element
attributes:
id -- ID
mixed -- boolean, false
contents:
annotation?, (simpleContent | complexContent |
((group | all | choice | sequence)?, (attribute | attributeGroup)*, anyAttribute?)) |
| |
- Method resolution order:
- LocalComplexType
- ComplexType
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- DefinitionMarker
- ComplexMarker
- LocalMarker
Data and other attributes defined here:
- attributes = {'id': None, 'mixed': 0}
- required = []
- tag = 'complexType'
Methods inherited from ComplexType:
- __init__(self, parent)
- fromDom(self, node)
- getAttributeContent(self)
- getElementDeclaration(self, attribute)
- getTypeDefinition(self, attribute)
- isMixed(self)
Data and other attributes inherited from ComplexType:
- ComplexContent = <class wstools.XMLSchema.ComplexContent>
- <complexContent>
parents:
complexType
attributes:
id -- ID
mixed -- boolean, false
contents:
annotation?, (restriction | extension)
- SimpleContent = <class wstools.XMLSchema.SimpleContent>
- <simpleContent>
parents:
complexType
attributes:
id -- ID
contents:
annotation?, (restriction | extension)
- contents = {'xsd': ['annotation', 'simpleContent', 'complexContent', 'group', 'all', 'choice', 'sequence', 'attribute', 'attributeGroup', 'anyAttribute', 'any']}
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class LocalElementDeclaration(ElementDeclaration, LocalMarker) |
| |
<element>
parents:
all, choice, sequence
attributes:
id -- ID
name -- NCName, required
form -- ('qualified' | 'unqualified'), schema.elementFormDefault
type -- QName
minOccurs -- Whole Number, 1
maxOccurs -- (Whole Number | 'unbounded'), 1
default -- string
fixed -- string
nillable -- boolean, false
block -- ('#all' | ('extension' | 'restriction')*), schema.blockDefault
contents:
annotation?, (simpleType,complexType)?, (key | keyref | unique)* |
| |
- Method resolution order:
- LocalElementDeclaration
- ElementDeclaration
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ElementMarker
- DeclarationMarker
- LocalMarker
Methods defined here:
- isQualified(self)
- Local elements can be qualified or unqualifed according
to the attribute form, or the elementFormDefault. By default
local elements are unqualified.
Data and other attributes defined here:
- attributes = {'abstract': 0, 'block': <function <lambda>>, 'default': None, 'fixed': None, 'form': <function <lambda>>, 'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'name': None, 'nillable': 0, ...}
- contents = {'xsd': ['annotation', 'simpleType', 'complexType', 'key', 'keyref', 'unique']}
- required = ['name']
Methods inherited from ElementDeclaration:
- __init__(self, parent)
- fromDom(self, node)
- getAttribute(self, attribute)
- return attribute.
If attribute is type and it's None, and no simple or complex content,
return the default type "xsd:anyType"
- getConstraints(self)
- getElementDeclaration(self, attribute)
- getTypeDefinition(self, attribute=None)
- If attribute is None, "type" is assumed, return the corresponding
representation of the global type definition (TypeDefinition),
or the local definition if don't find "type". To maintain backwards
compat, if attribute is provided call base class method.
- setConstraints(self, constraints)
Properties inherited from ElementDeclaration:
- constraints
- tuple of key, keyref, unique constraints
- get = getConstraints(self)
- set = setConstraints(self, constraints)
Data and other attributes inherited from ElementDeclaration:
- tag = 'element'
Methods inherited from XMLSchemaComponent:
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class ModelGroupDefinition(XMLSchemaComponent, ModelGroupMarker, DefinitionMarker) |
| |
<group name>
parents:
redefine, schema
attributes:
id -- ID
name -- NCName, required
contents:
annotation?, (all | choice | sequence)? |
| |
- Method resolution order:
- ModelGroupDefinition
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ModelGroupMarker
- DefinitionMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'id': None, 'name': None}
- contents = {'xsd': ['annotation', 'all', 'choice', 'sequence']}
- required = ['name']
- tag = 'group'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class ModelGroupReference(XMLSchemaComponent, ModelGroupMarker, ReferenceMarker) |
| |
<group ref>
parents:
choice, complexType, extension, restriction, sequence
attributes:
id -- ID
ref -- NCName, required
minOccurs -- Whole Number, 1
maxOccurs -- (Whole Number | 'unbounded'), 1
contents:
annotation? |
| |
- Method resolution order:
- ModelGroupReference
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- ModelGroupMarker
- ReferenceMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getModelGroupReference(self)
Data and other attributes defined here:
- attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1', 'ref': None}
- contents = {'xsd': ['annotation']}
- required = ['ref']
- tag = 'group'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class Notation(XMLSchemaComponent) |
| |
<notation>
parent:
schema
attributes:
id -- ID
name -- NCName, Required
public -- token, Required
system -- anyURI
contents:
annotation? |
| |
- Method resolution order:
- Notation
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'id': None, 'name': None, 'public': None, 'system': None}
- contents = {'xsd': 'annotation'}
- required = ['name', 'public']
- tag = 'notation'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class Redefine |
| |
<redefine>
parents:
attributes:
contents: |
| |
Data and other attributes defined here:
- tag = 'redefine'
|
class RestrictionMarker |
| |
marker for restrictions |
| |
Data and other attributes defined here:
- facets = ['enumeration', 'length', 'maxExclusive', 'maxInclusive', 'maxLength', 'minExclusive', 'minInclusive', 'minLength', 'pattern', 'fractionDigits', 'totalDigits', 'whiteSpace']
|
class SchemaReader |
| |
A SchemaReader creates XMLSchema objects from urls and xml data. |
| |
Methods defined here:
- __init__(self, domReader=None, base_url=None)
- domReader -- class must implement DOMAdapterInterface
base_url -- base url string
- addSchemaByLocation(self, location, schema)
- provide reader with schema document for a location.
- addSchemaByNamespace(self, schema)
- provide reader with schema document for a targetNamespace.
- loadFromFile(self, filename)
- Return an XMLSchema instance loaded from the given file.
filename -- name of file to open
- loadFromNode(self, parent, element)
- element -- DOM node or document
parent -- WSDLAdapter instance
- loadFromStream(self, file, url=None)
- Return an XMLSchema instance loaded from a file object.
file -- file object
url -- base location for resolving imports/includes.
- loadFromString(self, data)
- Return an XMLSchema instance loaded from an XML string.
data -- XML string
- loadFromURL(self, url, schema=None)
- Return an XMLSchema instance loaded from the given url.
url -- URL to dereference
schema -- Optional XMLSchema instance.
Data and other attributes defined here:
- namespaceToSchema = {}
|
class Sequence(XMLSchemaComponent, SequenceMarker) |
| |
<sequence>
parents:
complexType, extension, restriction, group, choice, sequence
attributes:
id -- ID
minOccurs -- Whole Number, 1
maxOccurs -- (Whole Number | 'unbounded'), 1
contents:
annotation?, (element | group | choice | sequence | any)* |
| |
- Method resolution order:
- Sequence
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- SequenceMarker
- ModelGroupMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes defined here:
- attributes = {'id': None, 'maxOccurs': '1', 'minOccurs': '1'}
- contents = {'xsd': ['annotation', 'element', 'group', 'choice', 'sequence', 'any']}
- tag = 'sequence'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class SimpleType(XMLSchemaComponent, DefinitionMarker, SimpleMarker) |
| |
<simpleType name>
parents:
redefine, schema
attributes:
id -- ID
name -- NCName, required
final -- ('#all' | ('extension' | 'restriction' | 'list' | 'union')*),
schema.finalDefault
contents:
annotation?, (restriction | list | union) |
| |
- Method resolution order:
- SimpleType
- XMLSchemaComponent
- XMLBase
- MarkerInterface
- DefinitionMarker
- SimpleMarker
Methods defined here:
- __init__(self, parent)
- fromDom(self, node)
- getElementDeclaration(self, attribute)
- getTypeDefinition(self, attribute)
Data and other attributes defined here:
- List = <class wstools.XMLSchema.List>
- <list>
parents:
simpleType
attributes:
id -- ID
itemType -- QName, required or simpleType child.
contents:
annotation?, simpleType?
- Restriction = <class wstools.XMLSchema.Restriction>
- <restriction base>
parents:
simpleType
attributes:
id -- ID
base -- QName, required or simpleType child
contents:
annotation?, simpleType?, (enumeration | length |
maxExclusive | maxInclusive | maxLength | minExclusive |
minInclusive | minLength | pattern | fractionDigits |
totalDigits | whiteSpace)*
- Union = <class wstools.XMLSchema.Union>
- <union>
parents:
simpleType
attributes:
id -- ID
memberTypes -- list of QNames, required or simpleType child.
contents:
annotation?, simpleType*
- attributes = {'final': <function <lambda>>, 'id': None, 'name': None}
- contents = {'xsd': ['annotation', 'restriction', 'list', 'union']}
- required = ['name']
- tag = 'simpleType'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class Unique(IdentityConstrants) |
| |
<unique name> Enforce fields are unique w/i a specified scope.
parent:
element
attributes:
id -- ID
name -- NCName, required
contents:
annotation?, selector, field+ |
| |
- Method resolution order:
- Unique
- IdentityConstrants
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Data and other attributes defined here:
- attributes = {'id': None, 'name': None}
- contents = {'xsd': ['annotation', 'selector', 'field']}
- required = ['name']
- tag = 'unique'
Methods inherited from IdentityConstrants:
- __init__(self, parent)
- fromDom(self, node)
Data and other attributes inherited from IdentityConstrants:
- Constraint = <class wstools.XMLSchema.Constraint>
- Field = <class wstools.XMLSchema.Field>
- <field xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
- Selector = <class wstools.XMLSchema.Selector>
- <selector xpath>
parent:
unique, key, keyref
attributes:
id -- ID
xpath -- XPath subset, required
contents:
annotation?
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class WSDLToolsAdapter(XMLSchemaComponent) |
| |
WSDL Adapter to grab the attributes from the wsdl document node. |
| |
- Method resolution order:
- WSDLToolsAdapter
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Methods defined here:
- __init__(self, wsdl)
- getImportSchemas(self)
- returns WSDLTools.WSDL types Collection
Data and other attributes defined here:
- attributes = {'name': None, 'targetNamespace': None}
- tag = 'definitions'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- contents = {}
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class XMLBase |
| |
These class variables are for string indentation. |
| |
Methods defined here:
- __str__(self)
Data and other attributes defined here:
- tag = None
|
class XMLSchema(XMLSchemaComponent) |
| |
A schema is a collection of schema components derived from one
or more schema documents, that is, one or more <schema> element
information items. It represents the abstract notion of a schema
rather than a single schema document (or other representation).
<schema>
parent:
ROOT
attributes:
id -- ID
version -- token
xml:lang -- language
targetNamespace -- anyURI
attributeFormDefault -- 'qualified' | 'unqualified', 'unqualified'
elementFormDefault -- 'qualified' | 'unqualified', 'unqualified'
blockDefault -- '#all' | list of
('substitution | 'extension' | 'restriction')
finalDefault -- '#all' | list of
('extension' | 'restriction' | 'list' | 'union')
contents:
((include | import | redefine | annotation)*,
(attribute, attributeGroup, complexType, element, group,
notation, simpleType)*, annotation*)*
attributes -- schema attributes
imports -- import statements
includes -- include statements
redefines --
types -- global simpleType, complexType definitions
elements -- global element declarations
attr_decl -- global attribute declarations
attr_groups -- attribute Groups
model_groups -- model Groups
notations -- global notations |
| |
- Method resolution order:
- XMLSchema
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Methods defined here:
- __init__(self, parent=None)
- parent --
instance variables:
targetNamespace -- schema's declared targetNamespace, or empty string.
_imported_schemas -- namespace keyed dict of schema dependencies, if
a schema is provided instance will not resolve import statement.
_included_schemas -- schemaLocation keyed dict of component schemas,
if schema is provided instance will not resolve include statement.
_base_url -- needed for relative URLs support, only works with URLs
relative to initial document.
includes -- collection of include statements
imports -- collection of import statements
elements -- collection of global element declarations
types -- collection of global type definitions
attr_decl -- collection of global attribute declarations
attr_groups -- collection of global attribute group definitions
model_groups -- collection of model group definitions
notations -- collection of notations
- addImportSchema(self, schema)
- for resolving import statements in Schema instance
schema -- schema instance
_imported_schemas
- addIncludeSchema(self, schemaLocation, schema)
- for resolving include statements in Schema instance
schemaLocation -- schema location
schema -- schema instance
_included_schemas
- getAttributeFormDefault(self)
- return attributeFormDefault attribute
- getBaseUrl(self)
- get base url, used for normalizing all relative uri's
- getBlockDefault(self)
- return blockDefault attribute
- getElementFormDefault(self)
- return elementFormDefault attribute
- getFinalDefault(self)
- return finalDefault attribute
- getImportSchemas(self)
- get the import schema dictionary, which is used to
reference depedent schemas.
- getIncludeSchemas(self)
- get the include schema dictionary, which is keyed with
schemaLocation (uri).
- getNode(self)
- Interacting with the underlying DOM tree.
- getSchemaNamespacesToImport(self)
- returns tuple of namespaces the schema instance has declared
itself to be depedent upon.
- isElementFormDefaultQualified(self)
- load(self, node, location=None)
- setBaseUrl(self, url)
- set base url, used for normalizing all relative uri's
- setImportSchemas(self, schema_dict)
- set the import schema dictionary, which is used to
reference depedent schemas.
- setIncludeSchemas(self, schema_dict)
- set the include schema dictionary, which is keyed with
schemaLocation (uri).
This is a means of providing
schemas to the current schema for content inclusion.
Data and other attributes defined here:
- Import = <class wstools.XMLSchema.Import>
- <import>
parent:
schema
attributes:
id -- ID
namespace -- anyURI
schemaLocation -- anyURI
contents:
annotation?
- Include = <class wstools.XMLSchema.Include>
- <include schemaLocation>
parent:
schema
attributes:
id -- ID
schemaLocation -- anyURI, required
contents:
annotation?
- attributes = {'attributeFormDefault': 'unqualified', 'blockDefault': None, 'elementFormDefault': 'unqualified', 'finalDefault': None, 'id': None, 'targetNamespace': None, 'version': None, 'xml:lang': None}
- contents = {'xsd': ('include', 'import', 'redefine', 'annotation', 'attribute', 'attributeGroup', 'complexType', 'element', 'group', 'notation', 'simpleType', 'annotation')}
- empty_namespace = ''
- tag = 'schema'
Methods inherited from XMLSchemaComponent:
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes inherited from XMLSchemaComponent:
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class XMLSchemaComponent(XMLBase, MarkerInterface) |
| |
class variables:
required -- list of required attributes
attributes -- dict of default attribute values, including None.
Value can be a function for runtime dependencies.
contents -- dict of namespace keyed content lists.
'xsd' content of xsd namespace.
xmlns_key -- key for declared xmlns namespace.
xmlns -- xmlns is special prefix for namespace dictionary
xml -- special xml prefix for xml namespace. |
| |
- Method resolution order:
- XMLSchemaComponent
- XMLBase
- MarkerInterface
Methods defined here:
- __init__(self, parent=None)
- parent -- parent instance
instance variables:
attributes -- dictionary of node's attributes
- getAttribute(self, attribute)
- return requested attribute value or None
- getAttributeDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeGroup(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getAttributeName(self)
- return attribute name or None
- getAttributeQName(self, attribute)
- return requested attribute value as (namespace,name) or None
- getContents(self, node)
- retrieve xsd contents
- getElementDeclaration(self, attribute)
- attribute -- attribute with a QName value (eg. element).
collection -- check elements collection in parent Schema instance.
- getItemTrace(self)
- Returns a node trace up to the <schema> item.
- getModelGroup(self, attribute)
- attribute -- attribute with a QName value (eg. ref).
collection -- check model_group collection in parent Schema instance.
- getQNameAttribute(self, collection, attribute)
- returns object instance representing QName --> (namespace,name),
or if does not exist return None.
attribute -- an information item attribute, with a QName value.
collection -- collection in parent Schema instance to search.
- getSchemaItem(self, collection, namespace, name)
- returns object instance representing namespace, name,
or if does not exist return None if built-in, else
raise SchemaError.
namespace -- namespace item defined in.
name -- name of item.
collection -- collection in parent Schema instance to search.
- getTargetNamespace(self)
- return targetNamespace
- getTypeDefinition(self, attribute)
- attribute -- attribute with a QName value (eg. type).
collection -- check types collection in parent Schema instance
- getXMLNS(self, prefix=None)
- deference prefix or by default xmlns, returns namespace.
- setAttributes(self, node)
- Sets up attribute dictionary, checks for required attributes and
sets default attribute values. attr is for default attribute values
determined at runtime.
structure of attributes dictionary
['xmlns'][xmlns_key] -- xmlns namespace
['xmlns'][prefix] -- declared namespace prefix
[namespace][prefix] -- attributes declared in a namespace
[attribute] -- attributes w/o prefix, default namespaces do
not directly apply to attributes, ie Name can't collide
with QName.
Data and other attributes defined here:
- attributes = {}
- contents = {}
- required = []
- xml = 'xml'
- xmlns = 'xmlns'
- xmlns_key = ''
Methods inherited from XMLBase:
- __str__(self)
Data and other attributes inherited from XMLBase:
- tag = None
Methods inherited from MarkerInterface:
- isAll(self)
- isAttribute(self)
- isAttributeGroup(self)
- isChoice(self)
- isComplex(self)
- isDeclaration(self)
- isDefinition(self)
- isElement(self)
- isExtension(self)
- isList(self)
- isLocal(self)
- isModelGroup(self)
- isReference(self)
- isRestriction(self)
- isSequence(self)
- isSimple(self)
- isUnion(self)
- isWildCard(self)
|
class XMLSchemaFake |
| | |
Methods defined here:
- __init__(self, element)
- # This is temporary, for the benefit of WSDL until the real thing works.
| |