def processXMLElement(xmlElement): "Process the xml element." geometryOutput = getGeometryOutput(xmlElement) if geometryOutput.__class__ == list: lineation.processXMLElementByGeometry(geometryOutput, xmlElement) else: xmlElement.getXMLProcessor().convertXMLElement(geometryOutput, xmlElement) xmlElement.getXMLProcessor().processXMLElement(xmlElement)
def processXMLElement(xmlElement): "Process the xml element." geometryOutput = getGeometryOutput(None, xmlElement) if geometryOutput.__class__ == list: lineation.processXMLElementByGeometry(geometryOutput, xmlElement) else: xmlElement.getXMLProcessor().convertXMLElement(geometryOutput, xmlElement) xmlElement.getXMLProcessor().processXMLElement(xmlElement)
def processXMLElementByFunction(manipulationFunction, xmlElement, xmlProcessor): "Process the xml element." if 'target' not in xmlElement.attributeDictionary: print('Warning, there was no target in processXMLElementByFunction in solid for:') print(xmlElement) return None target = evaluate.getEvaluatedLinkValue(str(xmlElement.attributeDictionary['target']).strip(), xmlElement) if target.__class__.__name__ == 'XMLElement': manipulationFunction(target, xmlElement, xmlProcessor) return lineation.processXMLElementByGeometry(target, xmlElement, xmlProcessor) manipulationFunction(xmlElement, xmlElement, xmlProcessor)
def processXMLElementByFunction(manipulationFunction, xmlElement): "Process the xml element." if "target" not in xmlElement.attributeDictionary: print("Warning, there was no target in processXMLElementByFunction in solid for:") print(xmlElement) return target = evaluate.getEvaluatedLinkValue(str(xmlElement.attributeDictionary["target"]).strip(), xmlElement) if target.__class__.__name__ == "XMLElement": manipulationFunction(target, xmlElement) return lineation.processXMLElementByGeometry(target, xmlElement) manipulationFunction(xmlElement, xmlElement)
def processXMLElementByFunction(manipulationFunction, xmlElement): "Process the xml element." if 'target' not in xmlElement.attributeDictionary: print('Warning, there was no target in processXMLElementByFunction in solid for:') print(xmlElement) return target = evaluate.getEvaluatedLinkValue(str(xmlElement.attributeDictionary['target']).strip(), xmlElement) if target.__class__.__name__ == 'XMLElement': manipulationFunction(target, xmlElement) return lineation.processXMLElementByGeometry(target, xmlElement) manipulationFunction(xmlElement, xmlElement)
def processXMLElement(xmlElement): "Process the xml element." lineation.processXMLElementByGeometry(getGeometryOutput(None, xmlElement), xmlElement)
def processXMLElement(xmlElement): "Process the xml element." lineation.processXMLElementByGeometry(getGeometryOutput(xmlElement), xmlElement)