Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
pymavlink.generator.lib.minixsv.xsvalBase.XsValBase Class Reference

Validator class for validating one input file against one XML schema file. More...

List of all members.

Public Member Functions

def __init__
def unlink
def validate
 validate inputTree against xsdTree

Public Attributes

 checkKeyrefList
 errorHandler
 idAttributeForType
 inputNsPrefix
 inputNsPrefixString
 inputNsURI
 inputRoot
 inputTree
 simpleTypeVal
 verbose
 xmlIf
 xsdAttrGroupDict
 xsdAttributeDict
 xsdElementDict
 xsdGroupDict
 xsdIdDict
 xsdIdentityConstrDict
 xsdIdRefDict
 xsdIncludeDict
 xsdLookupDict
 xsdNsURI
 xsdTypeDict

Private Member Functions

def _checkAllTag
 validate inputNode against all node
def _checkAnyTag
 validate inputNode against any node
def _checkAttributeTag
 validate one attribute (defined by xsdNode) of inputNode
def _checkAttributeTags
 validate attributes of inputNode against complexType node
def _checkChoiceTag
 validate inputNode against choice node
def _checkComplexContentTag
def _checkComplexTypeContent
def _checkComplexTypeTag
 validate inputNode against complexType node
def _checkElementSimpleType
 validate element inputNode against simple type definition
def _checkElementTag
 validate inputNode against element node
def _checkElementValue
 validate inputNode against simple type definition
def _checkExtensionComplexContent
def _checkExtensionSimpleContent
def _checkGroupTag
 validate inputNode against group node
def _checkIdentityConstraint
 validate unique and key definition
def _checkInputElementForm
 check input element form
def _checkInputNamespace
 validate wildcard specification of anyElement/anyAttribute
def _checkKeyRefConstraint
 validate unique and key definition
def _checkList
 validate inputNodeList against xsdNode
def _checkMixed
 validate mixed content (1)
def _checkParticle
 validate inputNode against particle
def _checkRestrictionComplexContent
def _checkRestrictionSimpleContent
def _checkSequenceTag
 validate inputNode against sequence node
def _checkSimpleContentTag
def _checkSimpleType
 validate inputNode against simple type definition
def _checkSimpleTypeContent
def _checkUrType
 check ur-type
def _checkWildcardAttribute
 validate wildcard specification of anyElement/anyAttribute
def _checkWildcardElement
 validate wildcard specification of anyElement
def _expandImports
 expand import directives
def _expandIncludes
 expand include directives
def _expandRedefines
 expand redefine directives
def _getAttributeFormDefault
 retrieve element form default attribute for given node
def _getElementFormDefault
 retrieve element form default attribute for given node
def _getOrderedValue
 retrieve ordered value and base types of given typeNsName
def _getTargetNamespace
 retrieve target namespace attribute for given node
def _getXPath
 retrieve nodes/attributes specified by given xPath
def _importWellknownSchemas
 import well-known schema files
def _includeAndImport
 include/import all files specified in the schema file import well-known schemas
def _includeSchemaFile
 include/import a schema file
def _initInternalAttributes
 validate inputNode against complexType node
def _parseIncludeSchemaFile
def _setBaseTypes
 retrieve basetypes from XML attribute (string format)
def _updateAttributeDict
 update dictionary of valid attributes
def _updateLookupTables
 update lookup dictionaries used during validation

Private Attributes

 _addError
 _addInfo
 _addWarning
 _raiseError

Detailed Description

Validator class for validating one input file against one XML schema file.

Definition at line 56 of file xsvalBase.py.


Constructor & Destructor Documentation

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase.__init__ (   self,
  xmlIf,
  errorHandler,
  verbose 
)

Definition at line 58 of file xsvalBase.py.


Member Function Documentation

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkAllTag (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against all node

Definition at line 779 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkAnyTag (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against any node

Definition at line 814 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkAttributeTag (   self,
  qAttrName,
  xsdAttrNode,
  xsdAttrRefNode,
  inputNode,
  inputAttrDict 
) [private]

validate one attribute (defined by xsdNode) of inputNode

Definition at line 899 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkAttributeTags (   self,
  parentNode,
  xsdNode,
  inputNode,
  validAttrDict 
) [private]

validate attributes of inputNode against complexType node

Definition at line 854 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkChoiceTag (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against choice node

Definition at line 736 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkComplexContentTag (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 395 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkComplexTypeContent (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 462 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkComplexTypeTag (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType = None 
) [private]

validate inputNode against complexType node

Definition at line 380 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkElementSimpleType (   self,
  xsdNode,
  xsdTypeAttr,
  inputNode 
) [private]

validate element inputNode against simple type definition

Definition at line 639 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkElementTag (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against element node

Definition at line 561 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkElementValue (   self,
  xsdNode,
  xsdTypeAttr,
  inputNode 
) [private]

validate inputNode against simple type definition

Definition at line 651 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkExtensionComplexContent (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 424 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkExtensionSimpleContent (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 435 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkGroupTag (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against group node

Definition at line 766 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkIdentityConstraint (   self,
  identityConstrNode,
  inputNode 
) [private]

validate unique and key definition

Definition at line 1063 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkInputElementForm (   self,
  xsdNode,
  xsdNodeNameAttr,
  inputNode 
) [private]

check input element form

Definition at line 1184 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkInputNamespace (   self,
  xsdNode,
  inputNode,
  inputNamespace 
) [private]

validate wildcard specification of anyElement/anyAttribute

Definition at line 1040 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkKeyRefConstraint (   self,
  keyrefNode,
  inputNode 
) [private]

validate unique and key definition

Definition at line 1128 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkList (   self,
  elementMethod,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNodeList against xsdNode

Definition at line 528 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkMixed (   self,
  xsdParentNode,
  xsdNode,
  inputNode 
) [private]

validate mixed content (1)

Definition at line 504 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkParticle (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against particle

Definition at line 829 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkRestrictionComplexContent (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 442 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkRestrictionSimpleContent (   self,
  xsdParentNode,
  simpleContentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 451 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkSequenceTag (   self,
  xsdNode,
  inputParentNode,
  inputNodeList,
  currIndex 
) [private]

validate inputNode against sequence node

Definition at line 727 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkSimpleContentTag (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 410 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkSimpleType (   self,
  xsdNode,
  xsdTypeAttr,
  inputNode,
  attrName,
  attrValue,
  fixedValue,
  checkAttribute = 0,
  checkId = 1 
) [private]

validate inputNode against simple type definition

Definition at line 668 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkSimpleTypeContent (   self,
  xsdParentNode,
  xsdNode,
  inputNode,
  inputChildIndex,
  usedAsBaseType,
  baseTypeAttributes 
) [private]

Definition at line 488 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkUrType (   self,
  xsdNode,
  inputNode 
) [private]

check ur-type

Definition at line 515 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkWildcardAttribute (   self,
  xsdNode,
  inputNode,
  qAttrName,
  inputNamespace,
  inputAttrDict 
) [private]

validate wildcard specification of anyElement/anyAttribute

Definition at line 1018 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._checkWildcardElement (   self,
  xsdNode,
  inputNode,
  inputNamespace 
) [private]

validate wildcard specification of anyElement

Definition at line 980 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._expandImports (   self,
  baseTree,
  tree,
  includeDict,
  lookupDict 
) [private]

expand import directives

Definition at line 232 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._expandIncludes (   self,
  baseTree,
  tree,
  includeDict,
  lookupDict 
) [private]

expand include directives

Definition at line 165 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._expandRedefines (   self,
  baseTree,
  tree,
  includeDict,
  lookupDict 
) [private]

expand redefine directives

Definition at line 179 of file xsvalBase.py.

retrieve element form default attribute for given node

Definition at line 1266 of file xsvalBase.py.

retrieve element form default attribute for given node

Definition at line 1259 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._getOrderedValue (   self,
  inputNode,
  attrName,
  typeNsName,
  attrValue 
) [private]

retrieve ordered value and base types of given typeNsName

Definition at line 1204 of file xsvalBase.py.

retrieve target namespace attribute for given node

Definition at line 1251 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._getXPath (   self,
  node,
  xPathNode,
  identityConstraint = None 
) [private]

retrieve nodes/attributes specified by given xPath

Definition at line 1215 of file xsvalBase.py.

import well-known schema files

Definition at line 256 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._includeAndImport (   self,
  baseTree,
  tree,
  includeDict,
  lookupDict 
) [private]

include/import all files specified in the schema file import well-known schemas

Definition at line 156 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._includeSchemaFile (   self,
  baseTree,
  tree,
  nextSibling,
  expNamespace,
  includeUrl,
  baseUrl,
  includeDict,
  lookupDict,
  adaptTargetNamespace = 0 
) [private]

include/import a schema file

Definition at line 272 of file xsvalBase.py.

validate inputNode against complexType node

Definition at line 370 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._parseIncludeSchemaFile (   self,
  baseTree,
  tree,
  nextSibling,
  includeUrl,
  baseUrl 
) [private]

Definition at line 314 of file xsvalBase.py.

retrieve basetypes from XML attribute (string format)

Definition at line 1237 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._updateAttributeDict (   self,
  xsdNode,
  validAttrDict,
  checkForDuplicateAttr = 0,
  recursionKeys = None 
) [private]

update dictionary of valid attributes

Definition at line 944 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase._updateLookupTables (   self,
  rootNode,
  lookupDict 
) [private]

update lookup dictionaries used during validation

Definition at line 338 of file xsvalBase.py.

Definition at line 71 of file xsvalBase.py.

def pymavlink.generator.lib.minixsv.xsvalBase.XsValBase.validate (   self,
  inputTree,
  xsdTreeList 
)

validate inputTree against xsdTree

Definition at line 78 of file xsvalBase.py.


Member Data Documentation

Definition at line 58 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 58 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.

Definition at line 78 of file xsvalBase.py.


The documentation for this class was generated from the following file:


mavlink
Author(s): Lorenz Meier
autogenerated on Thu Jun 6 2019 19:01:57