@Override public String getAttributeValue(SOAPElement element, QName name) throws SOAPException { return element.getAttributeValue(name); }
@Override public String getAttributeValue(QName name) { return element.getAttributeValue(name); }
public String getAttributeValue(Name arg0) { return delegateElement.getAttributeValue(arg0); }
public String getId() { return delegateElement.getAttributeValue(idAttributeName); }
public String getAttributeValue(Name name) { return delegateElement.getAttributeValue(name); }
@Override public String getAttributeValue(QName name) { return element.getAttributeValue(name); }
@Override public String getAttributeValue(QName name) { return element.getAttributeValue(name); }
public String getAttributeValue(Name arg0) { return delegateHeader.getAttributeValue(arg0); }
public String getAttributeValue(Name arg0) { return delegateElement.getAttributeValue(arg0); }
@Override public String getAttributeValue(SOAPElement element, QName name) throws SOAPException { Name attributeName = SaajUtils.toName(name, element); return element.getAttributeValue(attributeName); }
@Override public String getAttributeValue(SOAPElement element, QName name) throws SOAPException { Name attributeName = SaajUtils.toName(name, element); return element.getAttributeValue(attributeName); }
private static Locale getLocale(SOAPElement reasonText) { return xmlLangToLocale(reasonText.getAttributeValue(getXmlLangName())); }
private Attributes getAttributes(SOAPElement element) { AttributesImpl attributes = new AttributesImpl(); for (Iterator<?> iterator = element.getAllAttributes(); iterator.hasNext();) { Name attributeName = (Name) iterator.next(); String namespace = attributeName.getURI(); if (namespace == null || !namespacesFeature) { namespace = ""; } String attributeValue = element.getAttributeValue(attributeName); attributes.addAttribute(namespace, attributeName.getLocalName(), attributeName.getQualifiedName(), "CDATA", attributeValue); } if (namespacePrefixesFeature) { for (Iterator<?> iterator = element.getNamespacePrefixes(); iterator.hasNext();) { String prefix = (String) iterator.next(); String namespaceUri = element.getNamespaceURI(prefix); String qName; if (StringUtils.hasLength(prefix)) { qName = "xmlns:" + prefix; } else { qName = "xmlns"; } attributes.addAttribute("", "", qName, "CDATA", namespaceUri); } } return attributes; }
private Attributes getAttributes(SOAPElement element) { AttributesImpl attributes = new AttributesImpl(); for (Iterator<?> iterator = element.getAllAttributes(); iterator.hasNext();) { Name attributeName = (Name) iterator.next(); String namespace = attributeName.getURI(); if (namespace == null || !namespacesFeature) { namespace = ""; } String attributeValue = element.getAttributeValue(attributeName); attributes.addAttribute(namespace, attributeName.getLocalName(), attributeName.getQualifiedName(), "CDATA", attributeValue); } if (namespacePrefixesFeature) { for (Iterator<?> iterator = element.getNamespacePrefixes(); iterator.hasNext();) { String prefix = (String) iterator.next(); String namespaceUri = element.getNamespaceURI(prefix); String qName; if (StringUtils.hasLength(prefix)) { qName = "xmlns:" + prefix; } else { qName = "xmlns"; } attributes.addAttribute("", "", qName, "CDATA", namespaceUri); } } return attributes; }
private Attributes getAttributes(SOAPElement element) { AttributesImpl attributes = new AttributesImpl(); for (Iterator<?> iterator = element.getAllAttributes(); iterator.hasNext();) { Name attributeName = (Name) iterator.next(); String namespace = attributeName.getURI(); if (namespace == null || !namespacesFeature) { namespace = ""; } String attributeValue = element.getAttributeValue(attributeName); attributes.addAttribute(namespace, attributeName.getLocalName(), attributeName.getQualifiedName(), "CDATA", attributeValue); } if (namespacePrefixesFeature) { for (Iterator<?> iterator = element.getNamespacePrefixes(); iterator.hasNext();) { String prefix = (String) iterator.next(); String namespaceUri = element.getNamespaceURI(prefix); String qName; if (StringUtils.hasLength(prefix)) { qName = "xmlns:" + prefix; } else { qName = "xmlns"; } attributes.addAttribute("", "", qName, "CDATA", namespaceUri); } } return attributes; }
protected void handleHierInfo(JRXmlaResultAxis axis, SOAPElement hierInfoElement) throws SOAPException { Name name = sf.createName("name"); String dimName = hierInfoElement.getAttributeValue(name); // Get the Dimension Name JRXmlaHierarchy hier = new JRXmlaHierarchy(dimName); axis.addHierarchy(hier); }
childEle.addAttribute(name, soapElement.getAttributeValue(name));
protected void parseAxesElement(SOAPElement axesElement) throws SOAPException { // Cycle over Axis-Elements Name aName = sf.createName("Axis", "", MDD_URI); Iterator itAxis = axesElement.getChildElements(aName); while (itAxis.hasNext()) { SOAPElement axisElement = (SOAPElement) itAxis.next(); Name name = sf.createName("name"); String axisName = axisElement.getAttributeValue(name); if (axisName.equals(SLICER_AXIS_NAME)) { continue; } // LookUp for the Axis JRXmlaResultAxis axis = xmlaResult.getAxisByName(axisName); // retrieve the tuples by <Tuples> name = sf.createName("Tuples", "", MDD_URI); Iterator itTuples = axisElement.getChildElements(name); if (itTuples.hasNext()) { SOAPElement eTuples = (SOAPElement) itTuples.next(); handleTuplesElement(axis, eTuples); } } }
childEle.addAttribute(name, soapElement.getAttributeValue(name));
protected void parseAxesInfoElement(SOAPElement axesInfoElement) throws SOAPException { // Cycle over AxisInfo-Elements Name axisInfoName = sf.createName("AxisInfo", "", MDD_URI); Iterator itAxis = axesInfoElement.getChildElements(axisInfoName); while (itAxis.hasNext()) { SOAPElement axisElement = (SOAPElement) itAxis.next(); Name name = sf.createName("name"); String axisName = axisElement.getAttributeValue(name); if (axisName.equals(SLICER_AXIS_NAME)) { continue; } JRXmlaResultAxis axis = new JRXmlaResultAxis(axisName); xmlaResult.addAxis(axis); // retrieve the hierarchies by <HierarchyInfo> name = sf.createName("HierarchyInfo", "", MDD_URI); Iterator itHierInfo = axisElement.getChildElements(name); while (itHierInfo.hasNext()) { SOAPElement eHierInfo = (SOAPElement) itHierInfo.next(); handleHierInfo(axis, eHierInfo); } } }