Modified: webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/Navigator.java.html URL: http://svn.apache.org/viewvc/webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/Navigator.java.html?rev=1765178&r1=1765177&r2=1765178&view=diff ============================================================================== --- webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/Navigator.java.html (original) +++ webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/Navigator.java.html Sun Oct 16 17:54:54 2016 @@ -348,18 +348,22 @@ import org.apache.commons.logging.LogFac <span class="fc bfc" id="L348" title="All 2 branches covered."> if (parent instanceof CoreElement) {</span> <span class="fc" id="L349"> element = (CoreElement)parent;</span> <span class="fc" id="L350"> attr = element.coreGetFirstAttribute();</span> -<span class="fc bfc" id="L351" title="All 2 branches covered."> decl: while (attr != null) {</span> +<span class="fc bfc" id="L351" title="All 2 branches covered."> while (attr != null) {</span> <span class="pc bpc" id="L352" title="1 of 2 branches missed."> if (attr instanceof CoreNamespaceDeclaration) {</span> <span class="fc" id="L353"> CoreNamespaceDeclaration ns = (CoreNamespaceDeclaration)attr;</span> <span class="fc" id="L354"> String prefix = ns.coreGetDeclaredPrefix();</span> -<span class="fc bfc" id="L355" title="All 2 branches covered."> for (int i=0; i<namespaceCount; i++) {</span> -<span class="pc bpc" id="L356" title="1 of 2 branches missed."> if (namespaces[i].coreGetDeclaredPrefix().equals(prefix)) {</span> -<span class="nc" id="L357"> continue decl;</span> +<span class="fc" id="L355"> boolean masked = false;</span> +<span class="fc bfc" id="L356" title="All 2 branches covered."> for (int i=0; i<namespaceCount; i++) {</span> +<span class="fc bfc" id="L357" title="All 2 branches covered."> if (namespaces[i].coreGetDeclaredPrefix().equals(prefix)) {</span> +<span class="fc" id="L358"> masked = true;</span> +<span class="fc" id="L359"> break;</span> } } -<span class="fc" id="L360"> addNamespace(ns);</span> +<span class="fc bfc" id="L362" title="All 2 branches covered."> if (!masked) {</span> +<span class="fc" id="L363"> addNamespace(ns);</span> + } } -<span class="fc" id="L362"> attr = attr.coreGetNextAttribute();</span> +<span class="fc" id="L366"> attr = attr.coreGetNextAttribute();</span> } } else { break; @@ -367,169 +371,169 @@ import org.apache.commons.logging.LogFac } } } -<span class="fc" id="L370"> }</span> +<span class="fc" id="L374"> }</span> private CoreNamespaceDeclaration getNamespace(int index) { -<span class="fc" id="L373"> loadNamespaces();</span> -<span class="fc" id="L374"> return namespaces[index];</span> +<span class="fc" id="L377"> loadNamespaces();</span> +<span class="fc" id="L378"> return namespaces[index];</span> } private void addNamespace(CoreNamespaceDeclaration ns) { // TODO: verify if this check is actually still necessary // Axiom internally creates an OMNamespace instance for the "xml" prefix, even // if it is not declared explicitly. Filter this instance out. -<span class="pc bpc" id="L381" title="1 of 2 branches missed."> if (!"xml".equals(ns.coreGetDeclaredPrefix())) {</span> -<span class="fc bfc" id="L382" title="All 2 branches covered."> if (namespaceCount == namespaces.length) {</span> -<span class="fc" id="L383"> CoreNamespaceDeclaration[] newNamespaces = new CoreNamespaceDeclaration[namespaces.length*2];</span> -<span class="fc" id="L384"> System.arraycopy(namespaces, 0, newNamespaces, 0, namespaces.length);</span> -<span class="fc" id="L385"> namespaces = newNamespaces;</span> +<span class="pc bpc" id="L385" title="1 of 2 branches missed."> if (!"xml".equals(ns.coreGetDeclaredPrefix())) {</span> +<span class="fc bfc" id="L386" title="All 2 branches covered."> if (namespaceCount == namespaces.length) {</span> +<span class="fc" id="L387"> CoreNamespaceDeclaration[] newNamespaces = new CoreNamespaceDeclaration[namespaces.length*2];</span> +<span class="fc" id="L388"> System.arraycopy(namespaces, 0, newNamespaces, 0, namespaces.length);</span> +<span class="fc" id="L389"> namespaces = newNamespaces;</span> } -<span class="fc" id="L387"> namespaces[namespaceCount] = ns;</span> -<span class="fc" id="L388"> namespaceCount++;</span> +<span class="fc" id="L391"> namespaces[namespaceCount] = ns;</span> +<span class="fc" id="L392"> namespaceCount++;</span> } -<span class="fc" id="L390"> }</span> +<span class="fc" id="L394"> }</span> String getNamespaceURI(int i) { -<span class="pc bpc" id="L393" title="1 of 4 branches missed."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> -<span class="fc" id="L394"> return getNamespace(i).coreGetCharacterData().toString();</span> +<span class="pc bpc" id="L397" title="1 of 4 branches missed."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> +<span class="fc" id="L398"> return getNamespace(i).coreGetCharacterData().toString();</span> } else { -<span class="nc" id="L396"> throw new IllegalStateException();</span> +<span class="nc" id="L400"> throw new IllegalStateException();</span> } } String getNamespacePrefix(int i) { -<span class="pc bpc" id="L401" title="1 of 4 branches missed."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> -<span class="fc" id="L402"> String prefix = getNamespace(i).coreGetDeclaredPrefix();</span> -<span class="fc bfc" id="L403" title="All 2 branches covered."> return prefix.length() == 0 ? null : prefix; </span> +<span class="pc bpc" id="L405" title="1 of 4 branches missed."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> +<span class="fc" id="L406"> String prefix = getNamespace(i).coreGetDeclaredPrefix();</span> +<span class="fc bfc" id="L407" title="All 2 branches covered."> return prefix.length() == 0 ? null : prefix; </span> } else { -<span class="nc" id="L405"> throw new IllegalStateException();</span> +<span class="nc" id="L409"> throw new IllegalStateException();</span> } } int getNamespaceCount() { -<span class="fc bfc" id="L410" title="All 4 branches covered."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> -<span class="fc" id="L411"> loadNamespaces();</span> -<span class="fc" id="L412"> return namespaceCount;</span> +<span class="fc bfc" id="L414" title="All 4 branches covered."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> +<span class="fc" id="L415"> loadNamespaces();</span> +<span class="fc" id="L416"> return namespaceCount;</span> } else { -<span class="fc" id="L414"> throw new IllegalStateException();</span> +<span class="fc" id="L418"> throw new IllegalStateException();</span> } } boolean isAttributeSpecified(int i) { -<span class="fc bfc" id="L419" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc bfc" id="L423" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> // The Axiom object model doesn't store this information, // but returning true is a reasonable default. -<span class="fc" id="L422"> return true;</span> +<span class="fc" id="L426"> return true;</span> } else { -<span class="fc" id="L424"> throw new IllegalStateException(</span> -<span class="fc" id="L425"> "attribute type accessed in illegal event!");</span> +<span class="fc" id="L428"> throw new IllegalStateException(</span> +<span class="fc" id="L429"> "attribute type accessed in illegal event!");</span> } } String getAttributeValue(int i) { -<span class="fc bfc" id="L430" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L431"> return getAttribute(i).coreGetCharacterData().toString();</span> +<span class="fc bfc" id="L434" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L435"> return getAttribute(i).coreGetCharacterData().toString();</span> } else { -<span class="fc" id="L433"> throw new IllegalStateException(</span> -<span class="fc" id="L434"> "attribute type accessed in illegal event!");</span> +<span class="fc" id="L437"> throw new IllegalStateException(</span> +<span class="fc" id="L438"> "attribute type accessed in illegal event!");</span> } } String getAttributeType(int i) { -<span class="fc bfc" id="L439" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L440"> return getAttribute(i).coreGetType();</span> +<span class="fc bfc" id="L443" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L444"> return getAttribute(i).coreGetType();</span> } else { -<span class="fc" id="L442"> throw new IllegalStateException(</span> -<span class="fc" id="L443"> "attribute type accessed in illegal event!");</span> +<span class="fc" id="L446"> throw new IllegalStateException(</span> +<span class="fc" id="L447"> "attribute type accessed in illegal event!");</span> } } String getAttributePrefix(int i) { -<span class="fc bfc" id="L448" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L449"> String prefix = getAttribute(i).coreGetPrefix();</span> -<span class="fc bfc" id="L450" title="All 2 branches covered."> return prefix.length() == 0 ? null : prefix;</span> +<span class="fc bfc" id="L452" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L453"> String prefix = getAttribute(i).coreGetPrefix();</span> +<span class="fc bfc" id="L454" title="All 2 branches covered."> return prefix.length() == 0 ? null : prefix;</span> } else { -<span class="fc" id="L452"> throw new IllegalStateException(</span> -<span class="fc" id="L453"> "attribute prefix accessed in illegal event!");</span> +<span class="fc" id="L456"> throw new IllegalStateException(</span> +<span class="fc" id="L457"> "attribute prefix accessed in illegal event!");</span> } } String getAttributeLocalName(int i) { -<span class="fc bfc" id="L458" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L459"> return getAttribute(i).coreGetLocalName();</span> +<span class="fc bfc" id="L462" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L463"> return getAttribute(i).coreGetLocalName();</span> } else { -<span class="fc" id="L461"> throw new IllegalStateException(</span> -<span class="fc" id="L462"> "attribute localName accessed in illegal event!");</span> +<span class="fc" id="L465"> throw new IllegalStateException(</span> +<span class="fc" id="L466"> "attribute localName accessed in illegal event!");</span> } } String getAttributeNamespace(int i) { -<span class="fc bfc" id="L467" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L468"> String namespaceURI = getAttribute(i).coreGetNamespaceURI();</span> -<span class="fc bfc" id="L469" title="All 2 branches covered."> return namespaceURI.length() == 0 ? null : namespaceURI;</span> +<span class="fc bfc" id="L471" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L472"> String namespaceURI = getAttribute(i).coreGetNamespaceURI();</span> +<span class="fc bfc" id="L473" title="All 2 branches covered."> return namespaceURI.length() == 0 ? null : namespaceURI;</span> } else { -<span class="fc" id="L471"> throw new IllegalStateException(</span> -<span class="fc" id="L472"> "attribute nameSpace accessed in illegal event!");</span> +<span class="fc" id="L475"> throw new IllegalStateException(</span> +<span class="fc" id="L476"> "attribute nameSpace accessed in illegal event!");</span> } } QName getAttributeName(int i) { -<span class="fc bfc" id="L477" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc bfc" id="L481" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> // TODO: use the core model without loosing the optimization -<span class="fc" id="L479"> return ((OMAttribute)getAttribute(i)).getQName();</span> +<span class="fc" id="L483"> return ((OMAttribute)getAttribute(i)).getQName();</span> } else { -<span class="fc" id="L481"> throw new IllegalStateException(</span> -<span class="fc" id="L482"> "attribute count accessed in illegal event!");</span> +<span class="fc" id="L485"> throw new IllegalStateException(</span> +<span class="fc" id="L486"> "attribute count accessed in illegal event!");</span> } } int getAttributeCount() { -<span class="fc bfc" id="L487" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L488"> loadAttributes();</span> -<span class="fc" id="L489"> return attributeCount;</span> - } else { -<span class="fc" id="L491"> throw new IllegalStateException(</span> -<span class="fc" id="L492"> "attribute count accessed in illegal event (" +</span> -<span class="fc" id="L493"> currentEvent + ")!");</span> +<span class="fc bfc" id="L491" title="All 2 branches covered."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L492"> loadAttributes();</span> +<span class="fc" id="L493"> return attributeCount;</span> + } else { +<span class="fc" id="L495"> throw new IllegalStateException(</span> +<span class="fc" id="L496"> "attribute count accessed in illegal event (" +</span> +<span class="fc" id="L497"> currentEvent + ")!");</span> } } String getAttributeValue(String s, String s1) { -<span class="pc bpc" id="L498" title="1 of 2 branches missed."> if (currentEvent == START_ELEMENT) {</span> -<span class="fc" id="L499"> QName qname = new QName(s, s1);</span> -<span class="fc" id="L500"> OMAttribute attr = ((OMElement)node).getAttribute(qname);</span> -<span class="pc bpc" id="L501" title="1 of 2 branches missed."> return attr == null ? null : attr.getAttributeValue();</span> +<span class="pc bpc" id="L502" title="1 of 2 branches missed."> if (currentEvent == START_ELEMENT) {</span> +<span class="fc" id="L503"> QName qname = new QName(s, s1);</span> +<span class="fc" id="L504"> OMAttribute attr = ((OMElement)node).getAttribute(qname);</span> +<span class="pc bpc" id="L505" title="1 of 2 branches missed."> return attr == null ? null : attr.getAttributeValue();</span> } else { -<span class="nc" id="L503"> throw new IllegalStateException(</span> -<span class="nc" id="L504"> "attribute type accessed in illegal event!");</span> +<span class="nc" id="L507"> throw new IllegalStateException(</span> +<span class="nc" id="L508"> "attribute type accessed in illegal event!");</span> } } Boolean isWhiteSpace() { -<span class="fc" id="L509"> return null;</span> +<span class="fc" id="L513"> return null;</span> } String getNamespaceURI(String prefix) { -<span class="pc bpc" id="L513" title="1 of 4 branches missed."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> +<span class="pc bpc" id="L517" title="1 of 4 branches missed."> if (currentEvent == START_ELEMENT || currentEvent == END_ELEMENT) {</span> -<span class="pc bpc" id="L515" title="1 of 2 branches missed."> if (node instanceof OMElement) {</span> -<span class="fc" id="L516"> OMNamespace namespaceURI =</span> -<span class="fc" id="L517"> ((OMElement) node).findNamespaceURI(prefix);</span> -<span class="fc bfc" id="L518" title="All 2 branches covered."> return namespaceURI != null ? namespaceURI.getNamespaceURI() : null;</span> +<span class="pc bpc" id="L519" title="1 of 2 branches missed."> if (node instanceof OMElement) {</span> +<span class="fc" id="L520"> OMNamespace namespaceURI =</span> +<span class="fc" id="L521"> ((OMElement) node).findNamespaceURI(prefix);</span> +<span class="fc bfc" id="L522" title="All 2 branches covered."> return namespaceURI != null ? namespaceURI.getNamespaceURI() : null;</span> } } -<span class="nc" id="L521"> return null;</span> +<span class="nc" id="L525"> return null;</span> } boolean hasNext() throws XMLStreamException { // When we reach the end of the document, we switch to EndDocumentState. // Therefore we can always return true here. -<span class="fc" id="L527"> return true;</span> +<span class="fc" id="L531"> return true;</span> } String getElementText() throws XMLStreamException { // Let PullSerializer handle this method -<span class="fc" id="L532"> return null;</span> +<span class="fc" id="L536"> return null;</span> } /** @@ -560,199 +564,199 @@ import org.apache.commons.logging.LogFac * mode */ private boolean nextNode() { -<span class="fc bfc" id="L563" title="All 2 branches covered."> if (node == null) {</span> +<span class="fc bfc" id="L567" title="All 2 branches covered."> if (node == null) {</span> // We get here if rootNode is an element and the current event is START_DOCUMENT -<span class="pc bpc" id="L565" title="2 of 4 branches missed."> assert !visited;</span> -<span class="fc" id="L566"> node = rootNode;</span> -<span class="fc" id="L567"> return true;</span> -<span class="fc bfc" id="L568" title="All 4 branches covered."> } else if (node instanceof OMContainer && !visited) {</span> -<span class="fc" id="L569"> CoreParentNode current = (CoreParentNode)node;</span> -<span class="fc bfc" id="L570" title="All 2 branches covered."> CoreChildNode firstChild = cache ? current.coreGetFirstChild() : current.coreGetFirstChildIfAvailable();</span> -<span class="fc bfc" id="L571" title="All 2 branches covered."> if (firstChild != null) {</span> -<span class="fc" id="L572"> node = firstChild;</span> -<span class="fc" id="L573"> visited = false;</span> -<span class="fc" id="L574"> return true;</span> -<span class="pc bpc" id="L575" title="1 of 4 branches missed."> } else if (current.getState() == CoreParentNode.COMPLETE || current.getState() == CoreParentNode.COMPACT) {</span> -<span class="fc" id="L576"> visited = true;</span> -<span class="fc" id="L577"> return true;</span> +<span class="pc bpc" id="L569" title="2 of 4 branches missed."> assert !visited;</span> +<span class="fc" id="L570"> node = rootNode;</span> +<span class="fc" id="L571"> return true;</span> +<span class="fc bfc" id="L572" title="All 4 branches covered."> } else if (node instanceof OMContainer && !visited) {</span> +<span class="fc" id="L573"> CoreParentNode current = (CoreParentNode)node;</span> +<span class="fc bfc" id="L574" title="All 2 branches covered."> CoreChildNode firstChild = cache ? current.coreGetFirstChild() : current.coreGetFirstChildIfAvailable();</span> +<span class="fc bfc" id="L575" title="All 2 branches covered."> if (firstChild != null) {</span> +<span class="fc" id="L576"> node = firstChild;</span> +<span class="fc" id="L577"> visited = false;</span> +<span class="fc" id="L578"> return true;</span> +<span class="pc bpc" id="L579" title="1 of 4 branches missed."> } else if (current.getState() == CoreParentNode.COMPLETE || current.getState() == CoreParentNode.COMPACT) {</span> +<span class="fc" id="L580"> visited = true;</span> +<span class="fc" id="L581"> return true;</span> } else { -<span class="fc" id="L579"> return false;</span> +<span class="fc" id="L583"> return false;</span> } -<span class="fc bfc" id="L581" title="All 2 branches covered."> } else if (node == rootNode) {</span> +<span class="fc bfc" id="L585" title="All 2 branches covered."> } else if (node == rootNode) {</span> // We get here if rootNode is an element and the next event is END_DOCUMENT -<span class="fc" id="L583"> node = null;</span> -<span class="fc" id="L584"> visited = true;</span> -<span class="fc" id="L585"> return true;</span> - } else { -<span class="fc" id="L587"> CoreChildNode current = (CoreChildNode)node;</span> -<span class="fc bfc" id="L588" title="All 2 branches covered."> CoreChildNode nextSibling = cache ? current.coreGetNextSibling() : current.coreGetNextSiblingIfAvailable();</span> -<span class="fc bfc" id="L589" title="All 2 branches covered."> if (nextSibling != null) {</span> -<span class="fc" id="L590"> node = nextSibling;</span> -<span class="fc" id="L591"> visited = false;</span> -<span class="fc" id="L592"> return true;</span> +<span class="fc" id="L587"> node = null;</span> +<span class="fc" id="L588"> visited = true;</span> +<span class="fc" id="L589"> return true;</span> + } else { +<span class="fc" id="L591"> CoreChildNode current = (CoreChildNode)node;</span> +<span class="fc bfc" id="L592" title="All 2 branches covered."> CoreChildNode nextSibling = cache ? current.coreGetNextSibling() : current.coreGetNextSiblingIfAvailable();</span> +<span class="fc bfc" id="L593" title="All 2 branches covered."> if (nextSibling != null) {</span> +<span class="fc" id="L594"> node = nextSibling;</span> +<span class="fc" id="L595"> visited = false;</span> +<span class="fc" id="L596"> return true;</span> } else { -<span class="fc" id="L594"> CoreParentNode parent = current.coreGetParent();</span> -<span class="fc" id="L595"> node = parent;</span> -<span class="pc bpc" id="L596" title="1 of 6 branches missed."> if (parent.getState() == CoreParentNode.COMPLETE || parent.getState() == CoreParentNode.COMPACT || parent.getBuilder() == null) { // TODO: review this condition</span> -<span class="fc" id="L597"> visited = true;</span> -<span class="fc" id="L598"> return true;</span> +<span class="fc" id="L598"> CoreParentNode parent = current.coreGetParent();</span> +<span class="fc" id="L599"> node = parent;</span> +<span class="pc bpc" id="L600" title="1 of 6 branches missed."> if (parent.getState() == CoreParentNode.COMPLETE || parent.getState() == CoreParentNode.COMPACT || parent.getBuilder() == null) { // TODO: review this condition</span> +<span class="fc" id="L601"> visited = true;</span> +<span class="fc" id="L602"> return true;</span> } else { -<span class="fc" id="L600"> return false;</span> +<span class="fc" id="L604"> return false;</span> } } } } void next() throws XMLStreamException { -<span class="fc bfc" id="L607" title="All 2 branches covered."> if (nextNode()) {</span> -<span class="fc bfc" id="L608" title="All 2 branches covered."> if (node instanceof OMSourcedElement) {</span> -<span class="fc" id="L609"> OMSourcedElement element = (OMSourcedElement)node;</span> -<span class="fc bfc" id="L610" title="All 2 branches covered."> if (!element.isExpanded()) {</span> -<span class="fc" id="L611"> OMDataSource ds = element.getDataSource();</span> -<span class="pc bpc" id="L612" title="1 of 2 branches missed."> if (ds != null) {</span> -<span class="fc bfc" id="L613" title="All 2 branches covered."> if (serializer.isDataSourceALeaf()) {</span> -<span class="fc" id="L614"> this.ds = ds;</span> -<span class="fc" id="L615"> currentEvent = -1;</span> +<span class="fc bfc" id="L611" title="All 2 branches covered."> if (nextNode()) {</span> +<span class="fc bfc" id="L612" title="All 2 branches covered."> if (node instanceof OMSourcedElement) {</span> +<span class="fc" id="L613"> OMSourcedElement element = (OMSourcedElement)node;</span> +<span class="fc bfc" id="L614" title="All 2 branches covered."> if (!element.isExpanded()) {</span> +<span class="fc" id="L615"> OMDataSource ds = element.getDataSource();</span> +<span class="pc bpc" id="L616" title="1 of 2 branches missed."> if (ds != null) {</span> +<span class="fc bfc" id="L617" title="All 2 branches covered."> if (serializer.isDataSourceALeaf()) {</span> +<span class="fc" id="L618"> this.ds = ds;</span> +<span class="fc" id="L619"> currentEvent = -1;</span> // Mark the node as visited so that we continue with the next sibling -<span class="fc" id="L617"> visited = true;</span> -<span class="fc" id="L618"> return;</span> +<span class="fc" id="L621"> visited = true;</span> +<span class="fc" id="L622"> return;</span> } -<span class="fc bfc" id="L620" title="All 2 branches covered."> if (!(OMDataSourceUtil.isPushDataSource(ds)</span> -<span class="fc bfc" id="L621" title="All 4 branches covered."> || (cache && OMDataSourceUtil.isDestructiveRead(ds)))) {</span> -<span class="fc" id="L622"> XMLStreamReader reader = ds.getReader();</span> -<span class="pc bpc" id="L623" title="1 of 2 branches missed."> while (reader.next() != START_ELEMENT) {</span> +<span class="fc bfc" id="L624" title="All 2 branches covered."> if (!(OMDataSourceUtil.isPushDataSource(ds)</span> +<span class="fc bfc" id="L625" title="All 4 branches covered."> || (cache && OMDataSourceUtil.isDestructiveRead(ds)))) {</span> +<span class="fc" id="L626"> XMLStreamReader reader = ds.getReader();</span> +<span class="pc bpc" id="L627" title="1 of 2 branches missed."> while (reader.next() != START_ELEMENT) {</span> // Just loop } -<span class="fc" id="L626"> serializer.pushState(new IncludeWrapper(serializer, reader));</span> -<span class="fc" id="L627"> visited = true;</span> -<span class="fc" id="L628"> return;</span> +<span class="fc" id="L630"> serializer.pushState(new IncludeWrapper(serializer, reader));</span> +<span class="fc" id="L631"> visited = true;</span> +<span class="fc" id="L632"> return;</span> } } } } -<span class="fc bfc" id="L633" title="All 4 branches covered."> if (node == null || node instanceof OMDocument) {</span> -<span class="pc bpc" id="L634" title="2 of 4 branches missed."> assert visited;</span> -<span class="fc" id="L635"> serializer.switchState(EndDocumentState.INSTANCE);</span> -<span class="fc" id="L636"> return;</span> -<span class="fc bfc" id="L637" title="All 2 branches covered."> } else if (node instanceof OMElement) {</span> -<span class="fc bfc" id="L638" title="All 2 branches covered."> currentEvent = visited ? END_ELEMENT : START_ELEMENT;</span> -<span class="fc" id="L639"> } else {</span> -<span class="fc" id="L640"> currentEvent = ((OMNode)node).getType();</span> - } -<span class="fc" id="L642"> ds = null;</span> -<span class="fc" id="L643"> attributeCount = -1;</span> -<span class="fc" id="L644"> namespaceCount = -1;</span> -<span class="fc" id="L645"> } else {</span> -<span class="fc" id="L646"> CoreParentNode container = (CoreParentNode)node;</span> -<span class="fc" id="L647"> StAXOMBuilder builder = (StAXOMBuilder)container.getBuilder();</span> -<span class="fc" id="L648"> int depth = 1;</span> +<span class="fc bfc" id="L637" title="All 4 branches covered."> if (node == null || node instanceof OMDocument) {</span> +<span class="pc bpc" id="L638" title="2 of 4 branches missed."> assert visited;</span> +<span class="fc" id="L639"> serializer.switchState(EndDocumentState.INSTANCE);</span> +<span class="fc" id="L640"> return;</span> +<span class="fc bfc" id="L641" title="All 2 branches covered."> } else if (node instanceof OMElement) {</span> +<span class="fc bfc" id="L642" title="All 2 branches covered."> currentEvent = visited ? END_ELEMENT : START_ELEMENT;</span> +<span class="fc" id="L643"> } else {</span> +<span class="fc" id="L644"> currentEvent = ((OMNode)node).getType();</span> + } +<span class="fc" id="L646"> ds = null;</span> +<span class="fc" id="L647"> attributeCount = -1;</span> +<span class="fc" id="L648"> namespaceCount = -1;</span> +<span class="fc" id="L649"> } else {</span> +<span class="fc" id="L650"> CoreParentNode container = (CoreParentNode)node;</span> +<span class="fc" id="L651"> StAXOMBuilder builder = (StAXOMBuilder)container.getBuilder();</span> +<span class="fc" id="L652"> int depth = 1;</span> // Find the root node for the builder (i.e. the topmost node having the same // builder as the current node) -<span class="pc bpc" id="L651" title="1 of 4 branches missed."> while (container != rootNode && container instanceof CoreElement) {</span> -<span class="fc" id="L652"> CoreParentNode parent = ((CoreElement)container).coreGetParent();</span> -<span class="fc bfc" id="L653" title="All 2 branches covered."> if (parent.getBuilder() != builder) {</span> -<span class="fc" id="L654"> break;</span> +<span class="pc bpc" id="L655" title="1 of 4 branches missed."> while (container != rootNode && container instanceof CoreElement) {</span> +<span class="fc" id="L656"> CoreParentNode parent = ((CoreElement)container).coreGetParent();</span> +<span class="fc bfc" id="L657" title="All 2 branches covered."> if (parent.getBuilder() != builder) {</span> +<span class="fc" id="L658"> break;</span> } -<span class="fc" id="L656"> container = parent;</span> -<span class="fc" id="L657"> depth++;</span> +<span class="fc" id="L660"> container = parent;</span> +<span class="fc" id="L661"> depth++;</span> } -<span class="fc" id="L659"> XMLStreamReader reader = builder.disableCaching();</span> -<span class="pc bpc" id="L660" title="1 of 2 branches missed."> if (log.isDebugEnabled()) {</span> -<span class="nc" id="L661"> log.debug("Switching to pull-through mode; first event is " + XMLEventUtils.getEventTypeString(reader.getEventType()) + "; depth is " + depth);</span> - } -<span class="fc" id="L663"> PullThroughWrapper wrapper = new PullThroughWrapper(serializer, builder, (OMContainer)container, reader, depth);</span> -<span class="fc" id="L664"> serializer.pushState(wrapper);</span> -<span class="fc" id="L665"> node = container;</span> -<span class="fc" id="L666"> visited = true;</span> +<span class="fc" id="L663"> XMLStreamReader reader = builder.disableCaching();</span> +<span class="pc bpc" id="L664" title="1 of 2 branches missed."> if (log.isDebugEnabled()) {</span> +<span class="nc" id="L665"> log.debug("Switching to pull-through mode; first event is " + XMLEventUtils.getEventTypeString(reader.getEventType()) + "; depth is " + depth);</span> + } +<span class="fc" id="L667"> PullThroughWrapper wrapper = new PullThroughWrapper(serializer, builder, (OMContainer)container, reader, depth);</span> +<span class="fc" id="L668"> serializer.pushState(wrapper);</span> +<span class="fc" id="L669"> node = container;</span> +<span class="fc" id="L670"> visited = true;</span> } -<span class="fc" id="L668"> }</span> +<span class="fc" id="L672"> }</span> int nextTag() throws XMLStreamException { // Let PullSerializer handle this method -<span class="fc" id="L672"> return -1;</span> +<span class="fc" id="L676"> return -1;</span> } Object getProperty(String s) throws IllegalArgumentException { CoreParentNode container; -<span class="fc bfc" id="L677" title="All 2 branches covered."> if (node == null) {</span> -<span class="fc" id="L678"> container = rootNode;</span> -<span class="pc bpc" id="L679" title="1 of 2 branches missed."> } else if (node instanceof OMContainer) {</span> -<span class="fc" id="L680"> container = (CoreParentNode)node;</span> -<span class="fc" id="L681"> } else {</span> -<span class="nc" id="L682"> container = ((CoreChildNode)node).coreGetParent();</span> +<span class="fc bfc" id="L681" title="All 2 branches covered."> if (node == null) {</span> +<span class="fc" id="L682"> container = rootNode;</span> +<span class="pc bpc" id="L683" title="1 of 2 branches missed."> } else if (node instanceof OMContainer) {</span> +<span class="fc" id="L684"> container = (CoreParentNode)node;</span> +<span class="fc" id="L685"> } else {</span> +<span class="nc" id="L686"> container = ((CoreChildNode)node).coreGetParent();</span> } -<span class="fc" id="L684"> OMXMLParserWrapper builder = container.getBuilder();</span> +<span class="fc" id="L688"> OMXMLParserWrapper builder = container.getBuilder();</span> // Delegate to the builder's parser. -<span class="pc bpc" id="L686" title="1 of 4 branches missed."> if (builder != null && builder instanceof StAXBuilder) {</span> -<span class="fc" id="L687"> StAXBuilder staxBuilder = (StAXBuilder) builder;</span> -<span class="pc bpc" id="L688" title="1 of 2 branches missed."> if (!staxBuilder.isClosed()) {</span> +<span class="pc bpc" id="L690" title="1 of 4 branches missed."> if (builder != null && builder instanceof StAXBuilder) {</span> +<span class="fc" id="L691"> StAXBuilder staxBuilder = (StAXBuilder) builder;</span> +<span class="pc bpc" id="L692" title="1 of 2 branches missed."> if (!staxBuilder.isClosed()) {</span> // If the parser was closed by something other // than the builder, an IllegalStateException is // thrown. For now, return null as this is unexpected // by the caller. try { -<span class="fc" id="L694"> return ((StAXBuilder) builder).getReaderProperty(s);</span> -<span class="nc" id="L695"> } catch (IllegalStateException ise) {</span> -<span class="nc" id="L696"> return null;</span> +<span class="fc" id="L698"> return ((StAXBuilder) builder).getReaderProperty(s);</span> +<span class="nc" id="L699"> } catch (IllegalStateException ise) {</span> +<span class="nc" id="L700"> return null;</span> } } } -<span class="fc" id="L700"> return null;</span> +<span class="fc" id="L704"> return null;</span> } NamespaceContext getNamespaceContext() { -<span class="fc" id="L704"> return new MapBasedNamespaceContext(getAllNamespaces((OMSerializable)node));</span> +<span class="fc" id="L708"> return new MapBasedNamespaceContext(getAllNamespaces((OMSerializable)node));</span> } String getEncoding() { -<span class="fc bfc" id="L708" title="All 2 branches covered."> if (currentEvent == START_DOCUMENT) {</span> -<span class="fc bfc" id="L709" title="All 2 branches covered."> if (node instanceof OMDocument) {</span> -<span class="fc" id="L710"> return ((OMDocument)node).getCharsetEncoding();</span> +<span class="fc bfc" id="L712" title="All 2 branches covered."> if (currentEvent == START_DOCUMENT) {</span> +<span class="fc bfc" id="L713" title="All 2 branches covered."> if (node instanceof OMDocument) {</span> +<span class="fc" id="L714"> return ((OMDocument)node).getCharsetEncoding();</span> } else { -<span class="fc" id="L712"> return null;</span> +<span class="fc" id="L716"> return null;</span> } } else { -<span class="fc" id="L715"> throw new IllegalStateException();</span> +<span class="fc" id="L719"> throw new IllegalStateException();</span> } } String getVersion() { -<span class="fc" id="L720"> return "1.0"; // todo put the constant</span> +<span class="fc" id="L724"> return "1.0"; // todo put the constant</span> } boolean isStandalone() { -<span class="fc" id="L724"> return true;</span> +<span class="fc" id="L728"> return true;</span> } boolean standaloneSet() { -<span class="fc" id="L728"> return false;</span> +<span class="fc" id="L732"> return false;</span> } String getCharacterEncodingScheme() { -<span class="fc bfc" id="L732" title="All 2 branches covered."> if (currentEvent == START_DOCUMENT) {</span> -<span class="fc bfc" id="L733" title="All 2 branches covered."> if (node instanceof OMDocument) {</span> -<span class="fc" id="L734"> return ((OMDocument)node).getXMLEncoding();</span> +<span class="fc bfc" id="L736" title="All 2 branches covered."> if (currentEvent == START_DOCUMENT) {</span> +<span class="fc bfc" id="L737" title="All 2 branches covered."> if (node instanceof OMDocument) {</span> +<span class="fc" id="L738"> return ((OMDocument)node).getXMLEncoding();</span> } else { -<span class="fc" id="L736"> return null;</span> +<span class="fc" id="L740"> return null;</span> } } else { -<span class="fc" id="L739"> throw new IllegalStateException();</span> +<span class="fc" id="L743"> throw new IllegalStateException();</span> } } String getPITarget() { -<span class="fc bfc" id="L744" title="All 2 branches covered."> if (currentEvent == PROCESSING_INSTRUCTION) {</span> -<span class="fc" id="L745"> return ((OMProcessingInstruction)node).getTarget();</span> +<span class="fc bfc" id="L748" title="All 2 branches covered."> if (currentEvent == PROCESSING_INSTRUCTION) {</span> +<span class="fc" id="L749"> return ((OMProcessingInstruction)node).getTarget();</span> } else { -<span class="fc" id="L747"> throw new IllegalStateException();</span> +<span class="fc" id="L751"> throw new IllegalStateException();</span> } } String getPIData() { -<span class="fc bfc" id="L752" title="All 2 branches covered."> if (currentEvent == PROCESSING_INSTRUCTION) {</span> -<span class="fc" id="L753"> return ((OMProcessingInstruction)node).getValue();</span> +<span class="fc bfc" id="L756" title="All 2 branches covered."> if (currentEvent == PROCESSING_INSTRUCTION) {</span> +<span class="fc" id="L757"> return ((OMProcessingInstruction)node).getValue();</span> } else { -<span class="fc" id="L755"> throw new IllegalStateException();</span> +<span class="fc" id="L759"> throw new IllegalStateException();</span> } } @@ -765,48 +769,48 @@ import org.apache.commons.logging.LogFac */ public boolean isBinary() { -<span class="pc bpc" id="L768" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> -<span class="fc" id="L769"> return ((OMText)node).isBinary();</span> +<span class="pc bpc" id="L772" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> +<span class="fc" id="L773"> return ((OMText)node).isBinary();</span> } else { -<span class="nc" id="L771"> return false;</span> +<span class="nc" id="L775"> return false;</span> } } public boolean isOptimized() { -<span class="pc bpc" id="L776" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> -<span class="fc" id="L777"> return ((OMText)node).isOptimized();</span> +<span class="pc bpc" id="L780" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> +<span class="fc" id="L781"> return ((OMText)node).isOptimized();</span> } else { -<span class="nc" id="L779"> throw new IllegalStateException();</span> +<span class="nc" id="L783"> throw new IllegalStateException();</span> } } public boolean isDeferred() { -<span class="pc bpc" id="L784" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> +<span class="pc bpc" id="L788" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> // TODO: we should support deferred building of the DataHandler -<span class="fc" id="L786"> return false;</span> +<span class="fc" id="L790"> return false;</span> } else { -<span class="nc" id="L788"> throw new IllegalStateException();</span> +<span class="nc" id="L792"> throw new IllegalStateException();</span> } } public String getContentID() { -<span class="pc bpc" id="L793" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> -<span class="fc" id="L794"> return ((OMText)node).getContentID();</span> +<span class="pc bpc" id="L797" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> +<span class="fc" id="L798"> return ((OMText)node).getContentID();</span> } else { -<span class="nc" id="L796"> throw new IllegalStateException();</span> +<span class="nc" id="L800"> throw new IllegalStateException();</span> } } public DataHandler getDataHandler() throws XMLStreamException { -<span class="pc bpc" id="L801" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> -<span class="fc" id="L802"> return (DataHandler)((OMText)node).getDataHandler();</span> +<span class="pc bpc" id="L805" title="1 of 2 branches missed."> if (node instanceof OMText) {</span> +<span class="fc" id="L806"> return (DataHandler)((OMText)node).getDataHandler();</span> } else { -<span class="nc" id="L804"> throw new IllegalStateException();</span> +<span class="nc" id="L808"> throw new IllegalStateException();</span> } } public DataHandlerProvider getDataHandlerProvider() { -<span class="nc" id="L809"> throw new IllegalStateException();</span> +<span class="nc" id="L813"> throw new IllegalStateException();</span> } /* @@ -818,26 +822,26 @@ import org.apache.commons.logging.LogFac */ public String getRootName() { -<span class="pc bpc" id="L821" title="1 of 2 branches missed."> if (currentEvent == DTD) {</span> -<span class="fc" id="L822"> return ((OMDocType)node).getRootName();</span> +<span class="pc bpc" id="L825" title="1 of 2 branches missed."> if (currentEvent == DTD) {</span> +<span class="fc" id="L826"> return ((OMDocType)node).getRootName();</span> } else { -<span class="nc" id="L824"> throw new IllegalStateException();</span> +<span class="nc" id="L828"> throw new IllegalStateException();</span> } } public String getPublicId() { -<span class="pc bpc" id="L829" title="1 of 2 branches missed."> if (currentEvent == DTD) {</span> -<span class="fc" id="L830"> return ((OMDocType)node).getPublicId();</span> +<span class="pc bpc" id="L833" title="1 of 2 branches missed."> if (currentEvent == DTD) {</span> +<span class="fc" id="L834"> return ((OMDocType)node).getPublicId();</span> } else { -<span class="nc" id="L832"> throw new IllegalStateException();</span> +<span class="nc" id="L836"> throw new IllegalStateException();</span> } } public String getSystemId() { -<span class="pc bpc" id="L837" title="1 of 2 branches missed."> if (currentEvent == DTD) {</span> -<span class="fc" id="L838"> return ((OMDocType)node).getSystemId();</span> +<span class="pc bpc" id="L841" title="1 of 2 branches missed."> if (currentEvent == DTD) {</span> +<span class="fc" id="L842"> return ((OMDocType)node).getSystemId();</span> } else { -<span class="nc" id="L840"> throw new IllegalStateException();</span> +<span class="nc" id="L844"> throw new IllegalStateException();</span> } } @@ -848,60 +852,60 @@ import org.apache.commons.logging.LogFac */ private Map<String,String> getAllNamespaces(OMSerializable contextNode) { -<span class="fc bfc" id="L851" title="All 2 branches covered."> if (contextNode == null) {</span> -<span class="fc" id="L852"> return Collections.emptyMap();</span> +<span class="fc bfc" id="L855" title="All 2 branches covered."> if (contextNode == null) {</span> +<span class="fc" id="L856"> return Collections.emptyMap();</span> } OMContainer context; -<span class="fc bfc" id="L855" title="All 2 branches covered."> if (contextNode instanceof OMContainer) {</span> -<span class="fc" id="L856"> context = (OMContainer)contextNode;</span> -<span class="fc" id="L857"> } else {</span> -<span class="fc" id="L858"> context = ((OMNode)contextNode).getParent();</span> - } -<span class="fc" id="L860"> Map<String,String> nsMap = new LinkedHashMap<String,String>();</span> -<span class="fc bfc" id="L861" title="All 4 branches covered."> while (context != null && !(context instanceof OMDocument)) {</span> -<span class="fc" id="L862"> OMElement element = (OMElement) context;</span> -<span class="fc bfc" id="L863" title="All 2 branches covered."> for (Iterator it = element.getAllDeclaredNamespaces(); it.hasNext(); ) {</span> -<span class="fc" id="L864"> addNamespaceToMap((OMNamespace) it.next(), nsMap);</span> - } -<span class="fc bfc" id="L866" title="All 2 branches covered."> if (element.getNamespace() != null) {</span> -<span class="fc" id="L867"> addNamespaceToMap(element.getNamespace(), nsMap);</span> - } -<span class="fc bfc" id="L869" title="All 2 branches covered."> for (Iterator it = element.getAllAttributes(); it.hasNext(); ) {</span> -<span class="fc" id="L870"> OMAttribute attr = (OMAttribute) it.next();</span> -<span class="fc bfc" id="L871" title="All 2 branches covered."> if (attr.getNamespace() != null) {</span> -<span class="fc" id="L872"> addNamespaceToMap(attr.getNamespace(), nsMap);</span> +<span class="fc bfc" id="L859" title="All 2 branches covered."> if (contextNode instanceof OMContainer) {</span> +<span class="fc" id="L860"> context = (OMContainer)contextNode;</span> +<span class="fc" id="L861"> } else {</span> +<span class="fc" id="L862"> context = ((OMNode)contextNode).getParent();</span> + } +<span class="fc" id="L864"> Map<String,String> nsMap = new LinkedHashMap<String,String>();</span> +<span class="fc bfc" id="L865" title="All 4 branches covered."> while (context != null && !(context instanceof OMDocument)) {</span> +<span class="fc" id="L866"> OMElement element = (OMElement) context;</span> +<span class="fc bfc" id="L867" title="All 2 branches covered."> for (Iterator it = element.getAllDeclaredNamespaces(); it.hasNext(); ) {</span> +<span class="fc" id="L868"> addNamespaceToMap((OMNamespace) it.next(), nsMap);</span> + } +<span class="fc bfc" id="L870" title="All 2 branches covered."> if (element.getNamespace() != null) {</span> +<span class="fc" id="L871"> addNamespaceToMap(element.getNamespace(), nsMap);</span> + } +<span class="fc bfc" id="L873" title="All 2 branches covered."> for (Iterator it = element.getAllAttributes(); it.hasNext(); ) {</span> +<span class="fc" id="L874"> OMAttribute attr = (OMAttribute) it.next();</span> +<span class="fc bfc" id="L875" title="All 2 branches covered."> if (attr.getNamespace() != null) {</span> +<span class="fc" id="L876"> addNamespaceToMap(attr.getNamespace(), nsMap);</span> } } -<span class="fc" id="L875"> context = element.getParent();</span> +<span class="fc" id="L879"> context = element.getParent();</span> } -<span class="fc" id="L877"> return nsMap;</span> +<span class="fc" id="L881"> return nsMap;</span> } private void addNamespaceToMap(OMNamespace ns, Map<String,String> map) { -<span class="fc bfc" id="L881" title="All 2 branches covered."> if (map.get(ns.getPrefix()) == null) {</span> -<span class="fc" id="L882"> map.put(ns.getPrefix(), ns.getNamespaceURI());</span> +<span class="fc bfc" id="L885" title="All 2 branches covered."> if (map.get(ns.getPrefix()) == null) {</span> +<span class="fc" id="L886"> map.put(ns.getPrefix(), ns.getNamespaceURI());</span> } -<span class="fc" id="L884"> }</span> +<span class="fc" id="L888"> }</span> /** * @return OMDataSource associated with the current node or Null */ OMDataSource getDataSource() { -<span class="pc bpc" id="L890" title="3 of 4 branches missed."> if (log.isDebugEnabled() && ds != null) {</span> -<span class="nc" id="L891"> log.debug("Exposed OMDataSource: " + ds);</span> +<span class="pc bpc" id="L894" title="3 of 4 branches missed."> if (log.isDebugEnabled() && ds != null) {</span> +<span class="nc" id="L895"> log.debug("Exposed OMDataSource: " + ds);</span> } -<span class="fc" id="L893"> return ds;</span> +<span class="fc" id="L897"> return ds;</span> } void released() throws XMLStreamException { -<span class="fc" id="L897"> }</span> +<span class="fc" id="L901"> }</span> void restored() throws XMLStreamException { -<span class="fc" id="L900"> next();</span> -<span class="fc" id="L901"> }</span> +<span class="fc" id="L904"> next();</span> +<span class="fc" id="L905"> }</span> public String toString() { -<span class="nc" id="L904"> return super.toString() + "[cache=" + cache + ",document=" + (rootNode instanceof OMDocument) + "]";</span> +<span class="nc" id="L908"> return super.toString() + "[cache=" + cache + ",document=" + (rootNode instanceof OMDocument) + "]";</span> } } </pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.5.201505241946</span></div></body></html> \ No newline at end of file
Modified: webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/index.html URL: http://svn.apache.org/viewvc/webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/index.html?rev=1765178&r1=1765177&r2=1765178&view=diff ============================================================================== --- webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/index.html (original) +++ webservices/website/axiom-staging/code-coverage/org.apache.axiom.om.impl.common.serializer.pull/index.html Sun Oct 16 17:54:54 2016 @@ -1 +1 @@ -<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>org.apache.axiom.om.impl.common.serializer.pull</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Coverage Report</a> > <span class="el_package">org.apache.axiom.om.impl.common.serializer.pull</span></div><h1>org.apache.axiom.om.impl.common.seri alizer.pull</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="to ggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">604 of 2,636</td><td class="ctr2">77%</td><td class="bar">62 of 310</td><td class="ctr2">80%</td><td class="ctr1">140</td><td class="ctr2">443</td><td class="ctr1">137</td><td class="ctr2">669</td><td class="ctr1">86</td><td class="ctr2">286</td><td class="ctr1">2</td><td class="ctr2">12</td></tr></tfoot><tbody><tr><td id="a1"><a href="ClosedState.html" class="el_class">ClosedState</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="17" height="10" title="195" alt="195"/></td><td class="ctr2" id="c9">4%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f0">43</td><td class="ctr2" id="g3">45</td><td class="ctr1" id="h0">43</td><td class="ctr2" id="i3">45</td><td class="ctr1" id="j0">43</td><td class="ctr2" id="k3">45</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a4"><a href="Navigator.html" class="el_class">Navi gator</a></td><td class="bar" id="b1"><img src="../.resources/redbar.gif" width="11" height="10" title="135" alt="135"/><img src="../.resources/greenbar.gif" width="108" height="10" title="1,227" alt="1,227"/></td><td class="ctr2" id="c3">90%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="18" height="10" title="38" alt="38"/><img src="../.resources/greenbar.gif" width="101" height="10" title="203" alt="203"/></td><td class="ctr2" id="e1">84%</td><td class="ctr1" id="f1">39</td><td class="ctr2" id="g0">187</td><td class="ctr1" id="h1">26</td><td class="ctr2" id="i0">343</td><td class="ctr1" id="j7">2</td><td class="ctr2" id="k0">65</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a8"><a href="OMXMLStreamReaderExAdapter.html" class="el_class">OMXMLStreamReaderExAdapter</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="6" height="10" title="75" alt="75"/><img src="../.resources/greenbar.gif" width="1" he ight="10" title="20" alt="20"/></td><td class="ctr2" id="c8">21%</td><td class="bar" id="d1"><img src="../.resources/redbar.gif" width="6" height="10" title="14" alt="14"/></td><td class="ctr2" id="e4">0%</td><td class="ctr1" id="f4">10</td><td class="ctr2" id="g5">14</td><td class="ctr1" id="h2">21</td><td class="ctr2" id="i5">28</td><td class="ctr1" id="j5">3</td><td class="ctr2" id="k6">7</td><td class="ctr1" id="l4">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a0"><a href="AbstractWrapper.html" class="el_class">AbstractWrapper</a></td><td class="bar" id="b3"><img src="../.resources/redbar.gif" width="4" height="10" title="55" alt="55"/><img src="../.resources/greenbar.gif" width="23" height="10" title="265" alt="265"/></td><td class="ctr2" id="c5">83%</td><td class="bar" id="d3"><img src="../.resources/redbar.gif" width="1" height="10" title="4" alt="4"/><img src="../.resources/greenbar.gif" width="10" height="10" title="21" alt="21"/></td><td class="ctr2" id="e2">84%</ td><td class="ctr1" id="f3">13</td><td class="ctr2" id="g2">59</td><td class="ctr1" id="h4">12</td><td class="ctr2" id="i2">80</td><td class="ctr1" id="j2">9</td><td class="ctr2" id="k2">46</td><td class="ctr1" id="l5">0</td><td class="ctr2" id="m3">1</td></tr><tr><td id="a2"><a href="EndDocumentState.html" class="el_class">EndDocumentState</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="4" height="10" title="47" alt="47"/><img src="../.resources/greenbar.gif" width="9" height="10" title="109" alt="109"/></td><td class="ctr2" id="c6">70%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f2">16</td><td class="ctr2" id="g4">45</td><td class="ctr1" id="h3">16</td><td class="ctr2" id="i4">45</td><td class="ctr1" id="j1">16</td><td class="ctr2" id="k4">45</td><td class="ctr1" id="l6">0</td><td class="ctr2" id="m4">1</td></tr><tr><td id="a9"><a href="PullSerializer.html" class="el_class">PullSerializer</a></td><td class="bar" id= "b5"><img src="../.resources/redbar.gif" width="3" height="10" title="45" alt="45"/><img src="../.resources/greenbar.gif" width="30" height="10" title="351" alt="351"/></td><td class="ctr2" id="c4">89%</td><td class="bar" id="d2"><img src="../.resources/redbar.gif" width="2" height="10" title="6" alt="6"/><img src="../.resources/greenbar.gif" width="9" height="10" title="20" alt="20"/></td><td class="ctr2" id="e3">77%</td><td class="ctr1" id="f5">6</td><td class="ctr2" id="g1">70</td><td class="ctr1" id="h5">6</td><td class="ctr2" id="i1">97</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k1">57</td><td class="ctr1" id="l7">0</td><td class="ctr2" id="m5">1</td></tr><tr><td id="a6"><a href="NullDataHandlerReader.html" class="el_class">NullDataHandlerReader</a></td><td class="bar" id="b6"><img src="../.resources/redbar.gif" width="1" height="10" title="20" alt="20"/></td><td class="ctr2" id="c7">33%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f6">5</td><td class="ctr2" id="g6">8</td><td class="ctr1" id="h6">5</td><td class="ctr2" id="i7">8</td><td class="ctr1" id="j3">5</td><td class="ctr2" id="k5">8</td><td class="ctr1" id="l8">0</td><td class="ctr2" id="m6">1</td></tr><tr><td id="a7"><a href="NullDTDReader.html" class="el_class">NullDTDReader</a></td><td class="bar" id="b7"><img src="../.resources/redbar.gif" width="1" height="10" title="20" alt="20"/></td><td class="ctr2" id="c10">0%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f7">5</td><td class="ctr2" id="g7">5</td><td class="ctr1" id="h7">5</td><td class="ctr2" id="i8">5</td><td class="ctr1" id="j4">5</td><td class="ctr2" id="k7">5</td><td class="ctr1" id="l0">1</td><td class="ctr2" id="m7">1</td></tr><tr><td id="a5"><a href="NullCharacterDataReader.html" class="el_class">NullCharacterDataReader</a></td><td class="bar" id="b8"><img src="../.resources/redbar.gif" width="1" height="10" title="12" alt="12"/></td><td class="c tr2" id="c11">0%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f8">3</td><td class="ctr2" id="g9">3</td><td class="ctr1" id="h8">3</td><td class="ctr2" id="i10">3</td><td class="ctr1" id="j6">3</td><td class="ctr2" id="k8">3</td><td class="ctr1" id="l1">1</td><td class="ctr2" id="m8">1</td></tr><tr><td id="a11"><a href="PullThroughWrapper.html" class="el_class">PullThroughWrapper</a></td><td class="bar" id="b9"><img src="../.resources/greenbar.gif" width="2" height="10" title="29" alt="29"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d4"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g8">4</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i6">10</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">2</td><td class="ctr1" id="l9">0</td><td class="ctr2" id="m9">1</td></tr><tr><td id="a3"><a href="Incl udeWrapper.html" class="el_class">IncludeWrapper</a></td><td class="bar" id="b10"/><td class="ctr2" id="c1">100%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g10">2</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i9">4</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">2</td><td class="ctr1" id="l10">0</td><td class="ctr2" id="m10">1</td></tr><tr><td id="a10"><a href="PullSerializerState.html" class="el_class">PullSerializerState</a></td><td class="bar" id="b11"/><td class="ctr2" id="c2">100%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i11">1</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td><td class="ctr1" id="l11">0</td><td class="ctr2" id="m11">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http ://www.eclemma.org/jacoco">JaCoCo</a> 0.7.5.201505241946</span></div></body></html> \ No newline at end of file +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>org.apache.axiom.om.impl.common.serializer.pull</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Coverage Report</a> > <span class="el_package">org.apache.axiom.om.impl.common.serializer.pull</span></div><h1>org.apache.axiom.om.impl.common.seri alizer.pull</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="to ggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">603 of 2,642</td><td class="ctr2">77%</td><td class="bar">61 of 312</td><td class="ctr2">80%</td><td class="ctr1">139</td><td class="ctr2">444</td><td class="ctr1">136</td><td class="ctr2">672</td><td class="ctr1">86</td><td class="ctr2">286</td><td class="ctr1">2</td><td class="ctr2">12</td></tr></tfoot><tbody><tr><td id="a1"><a href="ClosedState.html" class="el_class">ClosedState</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="17" height="10" title="195" alt="195"/></td><td class="ctr2" id="c9">4%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f0">43</td><td class="ctr2" id="g3">45</td><td class="ctr1" id="h0">43</td><td class="ctr2" id="i3">45</td><td class="ctr1" id="j0">43</td><td class="ctr2" id="k3">45</td><td class="ctr1" id="l2">0</td><td class="ctr2" id="m0">1</td></tr><tr><td id="a4"><a href="Navigator.html" class="el_class">Navi gator</a></td><td class="bar" id="b1"><img src="../.resources/redbar.gif" width="11" height="10" title="134" alt="134"/><img src="../.resources/greenbar.gif" width="108" height="10" title="1,234" alt="1,234"/></td><td class="ctr2" id="c3">90%</td><td class="bar" id="d0"><img src="../.resources/redbar.gif" width="18" height="10" title="37" alt="37"/><img src="../.resources/greenbar.gif" width="101" height="10" title="206" alt="206"/></td><td class="ctr2" id="e1">85%</td><td class="ctr1" id="f1">38</td><td class="ctr2" id="g0">188</td><td class="ctr1" id="h1">25</td><td class="ctr2" id="i0">346</td><td class="ctr1" id="j7">2</td><td class="ctr2" id="k0">65</td><td class="ctr1" id="l3">0</td><td class="ctr2" id="m1">1</td></tr><tr><td id="a8"><a href="OMXMLStreamReaderExAdapter.html" class="el_class">OMXMLStreamReaderExAdapter</a></td><td class="bar" id="b2"><img src="../.resources/redbar.gif" width="6" height="10" title="75" alt="75"/><img src="../.resources/greenbar.gif" width="1" he ight="10" title="20" alt="20"/></td><td class="ctr2" id="c8">21%</td><td class="bar" id="d1"><img src="../.resources/redbar.gif" width="6" height="10" title="14" alt="14"/></td><td class="ctr2" id="e4">0%</td><td class="ctr1" id="f4">10</td><td class="ctr2" id="g5">14</td><td class="ctr1" id="h2">21</td><td class="ctr2" id="i5">28</td><td class="ctr1" id="j5">3</td><td class="ctr2" id="k6">7</td><td class="ctr1" id="l4">0</td><td class="ctr2" id="m2">1</td></tr><tr><td id="a0"><a href="AbstractWrapper.html" class="el_class">AbstractWrapper</a></td><td class="bar" id="b3"><img src="../.resources/redbar.gif" width="4" height="10" title="55" alt="55"/><img src="../.resources/greenbar.gif" width="23" height="10" title="265" alt="265"/></td><td class="ctr2" id="c5">83%</td><td class="bar" id="d3"><img src="../.resources/redbar.gif" width="1" height="10" title="4" alt="4"/><img src="../.resources/greenbar.gif" width="10" height="10" title="21" alt="21"/></td><td class="ctr2" id="e2">84%</ td><td class="ctr1" id="f3">13</td><td class="ctr2" id="g2">59</td><td class="ctr1" id="h4">12</td><td class="ctr2" id="i2">80</td><td class="ctr1" id="j2">9</td><td class="ctr2" id="k2">46</td><td class="ctr1" id="l5">0</td><td class="ctr2" id="m3">1</td></tr><tr><td id="a2"><a href="EndDocumentState.html" class="el_class">EndDocumentState</a></td><td class="bar" id="b4"><img src="../.resources/redbar.gif" width="4" height="10" title="47" alt="47"/><img src="../.resources/greenbar.gif" width="9" height="10" title="109" alt="109"/></td><td class="ctr2" id="c6">70%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f2">16</td><td class="ctr2" id="g4">45</td><td class="ctr1" id="h3">16</td><td class="ctr2" id="i4">45</td><td class="ctr1" id="j1">16</td><td class="ctr2" id="k4">45</td><td class="ctr1" id="l6">0</td><td class="ctr2" id="m4">1</td></tr><tr><td id="a9"><a href="PullSerializer.html" class="el_class">PullSerializer</a></td><td class="bar" id= "b5"><img src="../.resources/redbar.gif" width="3" height="10" title="45" alt="45"/><img src="../.resources/greenbar.gif" width="30" height="10" title="351" alt="351"/></td><td class="ctr2" id="c4">89%</td><td class="bar" id="d2"><img src="../.resources/redbar.gif" width="2" height="10" title="6" alt="6"/><img src="../.resources/greenbar.gif" width="9" height="10" title="20" alt="20"/></td><td class="ctr2" id="e3">77%</td><td class="ctr1" id="f5">6</td><td class="ctr2" id="g1">70</td><td class="ctr1" id="h5">6</td><td class="ctr2" id="i1">97</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k1">57</td><td class="ctr1" id="l7">0</td><td class="ctr2" id="m5">1</td></tr><tr><td id="a6"><a href="NullDataHandlerReader.html" class="el_class">NullDataHandlerReader</a></td><td class="bar" id="b6"><img src="../.resources/redbar.gif" width="1" height="10" title="20" alt="20"/></td><td class="ctr2" id="c7">33%</td><td class="bar" id="d7"/><td class="ctr2" id="e7">n/a</td><td class="ctr1" id="f6">5</td><td class="ctr2" id="g6">8</td><td class="ctr1" id="h6">5</td><td class="ctr2" id="i7">8</td><td class="ctr1" id="j3">5</td><td class="ctr2" id="k5">8</td><td class="ctr1" id="l8">0</td><td class="ctr2" id="m6">1</td></tr><tr><td id="a7"><a href="NullDTDReader.html" class="el_class">NullDTDReader</a></td><td class="bar" id="b7"><img src="../.resources/redbar.gif" width="1" height="10" title="20" alt="20"/></td><td class="ctr2" id="c10">0%</td><td class="bar" id="d8"/><td class="ctr2" id="e8">n/a</td><td class="ctr1" id="f7">5</td><td class="ctr2" id="g7">5</td><td class="ctr1" id="h7">5</td><td class="ctr2" id="i8">5</td><td class="ctr1" id="j4">5</td><td class="ctr2" id="k7">5</td><td class="ctr1" id="l0">1</td><td class="ctr2" id="m7">1</td></tr><tr><td id="a5"><a href="NullCharacterDataReader.html" class="el_class">NullCharacterDataReader</a></td><td class="bar" id="b8"><img src="../.resources/redbar.gif" width="1" height="10" title="12" alt="12"/></td><td class="c tr2" id="c11">0%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f8">3</td><td class="ctr2" id="g9">3</td><td class="ctr1" id="h8">3</td><td class="ctr2" id="i10">3</td><td class="ctr1" id="j6">3</td><td class="ctr2" id="k8">3</td><td class="ctr1" id="l1">1</td><td class="ctr2" id="m8">1</td></tr><tr><td id="a11"><a href="PullThroughWrapper.html" class="el_class">PullThroughWrapper</a></td><td class="bar" id="b9"><img src="../.resources/greenbar.gif" width="2" height="10" title="29" alt="29"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d4"><img src="../.resources/greenbar.gif" width="1" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g8">4</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i6">10</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">2</td><td class="ctr1" id="l9">0</td><td class="ctr2" id="m9">1</td></tr><tr><td id="a3"><a href="Incl udeWrapper.html" class="el_class">IncludeWrapper</a></td><td class="bar" id="b10"/><td class="ctr2" id="c1">100%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g10">2</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i9">4</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">2</td><td class="ctr1" id="l10">0</td><td class="ctr2" id="m10">1</td></tr><tr><td id="a10"><a href="PullSerializerState.html" class="el_class">PullSerializerState</a></td><td class="bar" id="b11"/><td class="ctr2" id="c2">100%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i11">1</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td><td class="ctr1" id="l11">0</td><td class="ctr2" id="m11">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http ://www.eclemma.org/jacoco">JaCoCo</a> 0.7.5.201505241946</span></div></body></html> \ No newline at end of file