MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / Any

Class Any

suds/xsd/sxbasic.py:684–702  ·  view source on GitHub ↗

Represents an (xsd) node

Source from the content-addressed store, hash-verified

682
683
684class Any(Content):
685 """
686 Represents an (xsd) <any/> node
687 """
688
689 def get_child(self, name):
690 root = self.root.clone()
691 root.set('note', 'synthesized (any) child')
692 child = Any(self.schema, root)
693 return (child, [])
694
695 def get_attribute(self, name):
696 root = self.root.clone()
697 root.set('note', 'synthesized (any) attribute')
698 attribute = Any(self.schema, root)
699 return (attribute, [])
700
701 def any(self):
702 return True
703
704
705class Factory:

Callers 2

get_childMethod · 0.85
get_attributeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected