You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2016/02/20 19:30:05 UTC
svn commit: r1731437 [6/50] - in /webservices/website/axiom-staging: ./
apidocs/ apidocs/org/apache/axiom/mime/ apidocs/org/apache/axiom/om/
apidocs/org/apache/axiom/om/impl/builder/
apidocs/org/apache/axiom/om/impl/builder/class-use/ axiom-compat/ axi...
Modified: webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMElement.java.html
URL: http://svn.apache.org/viewvc/webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMElement.java.html?rev=1731437&r1=1731436&r2=1731437&view=diff
==============================================================================
--- webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMElement.java.html (original)
+++ webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMElement.java.html Sat Feb 20 18:30:02 2016
@@ -60,7 +60,6 @@ import org.apache.axiom.core.CoreChildNo
import org.apache.axiom.core.CoreNSAwareElement;
import org.apache.axiom.core.ElementMatcher;
import org.apache.axiom.fom.AbderaElement;
-import org.apache.axiom.fom.FOMExceptionTranslator;
import org.apache.axiom.fom.FOMList;
import org.apache.axiom.fom.FOMSemantics;
import org.apache.axiom.fom.IRIUtil;
@@ -77,450 +76,449 @@ import org.apache.axiom.om.OMText;
import org.apache.axiom.om.impl.intf.AxiomElement;
@SuppressWarnings("unchecked")
-<span class="fc" id="L80">public class FOMElement extends FOMChildNode implements AbderaElement, AxiomElement {</span>
+<span class="fc" id="L79">public class FOMElement extends FOMChildNode implements AbderaElement, AxiomElement {</span>
public void _addChild(AbderaElement element) {
-<span class="fc" id="L82"> coreAppendChild(element, false);</span>
-<span class="fc" id="L83"> }</span>
+<span class="fc" id="L81"> coreAppendChild(element, false);</span>
+<span class="fc" id="L82"> }</span>
protected void setParentDocument(Document parent) {
-<span class="nc" id="L86"> ((OMContainer)parent).addChild(this);</span>
-<span class="nc" id="L87"> }</span>
+<span class="nc" id="L85"> ((OMContainer)parent).addChild(this);</span>
+<span class="nc" id="L86"> }</span>
public <T extends Element> T setParentElement(Element parent) {
-<span class="nc bnc" id="L90" title="All 2 branches missed."> if (parent instanceof ElementWrapper) {</span>
-<span class="nc" id="L91"> parent = ((ElementWrapper)parent).getInternal();</span>
+<span class="nc bnc" id="L89" title="All 2 branches missed."> if (parent instanceof ElementWrapper) {</span>
+<span class="nc" id="L90"> parent = ((ElementWrapper)parent).getInternal();</span>
}
-<span class="nc" id="L93"> ((FOMElement)parent).addChild(this);</span>
-<span class="nc" id="L94"> return (T)this;</span>
+<span class="nc" id="L92"> ((FOMElement)parent).addChild(this);</span>
+<span class="nc" id="L93"> return (T)this;</span>
}
public <T extends Element> T getPreviousSibling() {
-<span class="nc" id="L98"> OMNode el = this.getPreviousOMSibling();</span>
-<span class="nc bnc" id="L99" title="All 2 branches missed."> while (el != null) {</span>
-<span class="nc bnc" id="L100" title="All 2 branches missed."> if (el instanceof Element)</span>
-<span class="nc" id="L101"> return (T)getWrapped((Element)el);</span>
+<span class="nc" id="L97"> OMNode el = this.getPreviousOMSibling();</span>
+<span class="nc bnc" id="L98" title="All 2 branches missed."> while (el != null) {</span>
+<span class="nc bnc" id="L99" title="All 2 branches missed."> if (el instanceof Element)</span>
+<span class="nc" id="L100"> return (T)getWrapped((Element)el);</span>
else
-<span class="nc" id="L103"> el = el.getPreviousOMSibling();</span>
+<span class="nc" id="L102"> el = el.getPreviousOMSibling();</span>
}
-<span class="nc" id="L105"> return null;</span>
+<span class="nc" id="L104"> return null;</span>
}
public <T extends Element> T getNextSibling() {
-<span class="fc" id="L109"> OMNode el = this.getNextOMSibling();</span>
-<span class="fc bfc" id="L110" title="All 2 branches covered."> while (el != null) {</span>
-<span class="pc bpc" id="L111" title="1 of 2 branches missed."> if (el instanceof Element)</span>
-<span class="fc" id="L112"> return (T)getWrapped((Element)el);</span>
+<span class="fc" id="L108"> OMNode el = this.getNextOMSibling();</span>
+<span class="fc bfc" id="L109" title="All 2 branches covered."> while (el != null) {</span>
+<span class="pc bpc" id="L110" title="1 of 2 branches missed."> if (el instanceof Element)</span>
+<span class="fc" id="L111"> return (T)getWrapped((Element)el);</span>
else
-<span class="nc" id="L114"> el = el.getNextOMSibling();</span>
+<span class="nc" id="L113"> el = el.getNextOMSibling();</span>
}
-<span class="fc" id="L116"> return null;</span>
+<span class="fc" id="L115"> return null;</span>
}
public <T extends Element> T getFirstChild() {
-<span class="fc" id="L120"> return (T)getWrapped((Element)this.getFirstElement());</span>
+<span class="fc" id="L119"> return (T)getWrapped((Element)this.getFirstElement());</span>
}
public <T extends Element> T getPreviousSibling(QName qname) {
-<span class="nc" id="L124"> Element el = getPreviousSibling();</span>
-<span class="nc bnc" id="L125" title="All 2 branches missed."> while (el != null) {</span>
-<span class="nc" id="L126"> OMElement omel = (OMElement)el;</span>
-<span class="nc bnc" id="L127" title="All 2 branches missed."> if (omel.getQName().equals(qname))</span>
-<span class="nc" id="L128"> return (T)getWrapped((Element)omel);</span>
-<span class="nc" id="L129"> el = el.getPreviousSibling();</span>
+<span class="nc" id="L123"> Element el = getPreviousSibling();</span>
+<span class="nc bnc" id="L124" title="All 2 branches missed."> while (el != null) {</span>
+<span class="nc" id="L125"> OMElement omel = (OMElement)el;</span>
+<span class="nc bnc" id="L126" title="All 2 branches missed."> if (omel.getQName().equals(qname))</span>
+<span class="nc" id="L127"> return (T)getWrapped((Element)omel);</span>
+<span class="nc" id="L128"> el = el.getPreviousSibling();</span>
}
-<span class="nc" id="L131"> return null;</span>
+<span class="nc" id="L130"> return null;</span>
}
public <T extends Element> T getNextSibling(QName qname) {
-<span class="fc" id="L135"> Element el = getNextSibling();</span>
-<span class="pc bpc" id="L136" title="1 of 2 branches missed."> while (el != null) {</span>
-<span class="fc" id="L137"> OMElement omel = (OMElement)el;</span>
-<span class="pc bpc" id="L138" title="1 of 2 branches missed."> if (omel.getQName().equals(qname))</span>
-<span class="fc" id="L139"> return (T)getWrapped((Element)omel);</span>
-<span class="nc" id="L140"> el = el.getNextSibling();</span>
+<span class="fc" id="L134"> Element el = getNextSibling();</span>
+<span class="pc bpc" id="L135" title="1 of 2 branches missed."> while (el != null) {</span>
+<span class="fc" id="L136"> OMElement omel = (OMElement)el;</span>
+<span class="pc bpc" id="L137" title="1 of 2 branches missed."> if (omel.getQName().equals(qname))</span>
+<span class="fc" id="L138"> return (T)getWrapped((Element)omel);</span>
+<span class="nc" id="L139"> el = el.getNextSibling();</span>
}
-<span class="nc" id="L142"> return null;</span>
+<span class="nc" id="L141"> return null;</span>
}
public <T extends Element> T getFirstChild(QName qname) {
-<span class="fc" id="L146"> return (T)getWrapped(_getFirstChildWithName(qname));</span>
+<span class="fc" id="L145"> return (T)getWrapped(_getFirstChildWithName(qname));</span>
}
public Lang getLanguageTag() {
-<span class="fc" id="L150"> String lang = getLanguage();</span>
-<span class="pc bpc" id="L151" title="1 of 2 branches missed."> return (lang != null) ? new Lang(lang) : null;</span>
+<span class="fc" id="L149"> String lang = getLanguage();</span>
+<span class="pc bpc" id="L150" title="1 of 2 branches missed."> return (lang != null) ? new Lang(lang) : null;</span>
}
public String getLanguage() {
-<span class="fc" id="L155"> String lang = getAttributeValue(LANG);</span>
-<span class="fc" id="L156"> Base parent = this.getParentElement();</span>
-<span class="pc bpc" id="L157" title="5 of 6 branches missed."> return (lang != null) ? lang : (parent != null && parent instanceof Element) ? ((Element)parent).getLanguage()</span>
-<span class="nc bnc" id="L158" title="All 4 branches missed."> : (parent != null && parent instanceof Document) ? ((Document)parent).getLanguage() : null;</span>
+<span class="fc" id="L154"> String lang = getAttributeValue(LANG);</span>
+<span class="fc" id="L155"> Base parent = this.getParentElement();</span>
+<span class="pc bpc" id="L156" title="5 of 6 branches missed."> return (lang != null) ? lang : (parent != null && parent instanceof Element) ? ((Element)parent).getLanguage()</span>
+<span class="nc bnc" id="L157" title="All 4 branches missed."> : (parent != null && parent instanceof Document) ? ((Document)parent).getLanguage() : null;</span>
}
public <T extends Element> T setLanguage(String language) {
-<span class="fc" id="L162"> setAttributeValue(LANG, language);</span>
-<span class="fc" id="L163"> return (T)this;</span>
+<span class="fc" id="L161"> setAttributeValue(LANG, language);</span>
+<span class="fc" id="L162"> return (T)this;</span>
}
public IRI getBaseUri() {
-<span class="fc" id="L167"> IRI uri = IRIUtil.getUriValue(getAttributeValue(BASE));</span>
-<span class="pc bpc" id="L168" title="2 of 4 branches missed."> if (IRIHelper.isJavascriptUri(uri) || IRIHelper.isMailtoUri(uri)) {</span>
-<span class="nc" id="L169"> uri = null;</span>
- }
-<span class="pc bpc" id="L171" title="1 of 2 branches missed."> if (uri == null) {</span>
-<span class="nc" id="L172"> OMContainer parent = getParent();</span>
-<span class="nc bnc" id="L173" title="All 2 branches missed."> if (parent instanceof Element) {</span>
-<span class="nc" id="L174"> uri = ((Element)parent).getBaseUri();</span>
-<span class="nc bnc" id="L175" title="All 2 branches missed."> } else if (parent instanceof Document) {</span>
-<span class="nc" id="L176"> uri = ((Document)parent).getBaseUri();</span>
+<span class="fc" id="L166"> IRI uri = IRIUtil.getUriValue(getAttributeValue(BASE));</span>
+<span class="pc bpc" id="L167" title="2 of 4 branches missed."> if (IRIHelper.isJavascriptUri(uri) || IRIHelper.isMailtoUri(uri)) {</span>
+<span class="nc" id="L168"> uri = null;</span>
+ }
+<span class="pc bpc" id="L170" title="1 of 2 branches missed."> if (uri == null) {</span>
+<span class="nc" id="L171"> OMContainer parent = getParent();</span>
+<span class="nc bnc" id="L172" title="All 2 branches missed."> if (parent instanceof Element) {</span>
+<span class="nc" id="L173"> uri = ((Element)parent).getBaseUri();</span>
+<span class="nc bnc" id="L174" title="All 2 branches missed."> } else if (parent instanceof Document) {</span>
+<span class="nc" id="L175"> uri = ((Document)parent).getBaseUri();</span>
}
}
-<span class="fc" id="L179"> return uri;</span>
+<span class="fc" id="L178"> return uri;</span>
}
public IRI getResolvedBaseUri() {
-<span class="fc" id="L183"> IRI baseUri = null;</span>
-<span class="fc" id="L184"> IRI uri = IRIUtil.getUriValue(getAttributeValue(BASE));</span>
-<span class="pc bpc" id="L185" title="2 of 4 branches missed."> if (IRIHelper.isJavascriptUri(uri) || IRIHelper.isMailtoUri(uri)) {</span>
-<span class="nc" id="L186"> uri = null;</span>
- }
-<span class="fc" id="L188"> OMContainer parent = getParent();</span>
-<span class="fc bfc" id="L189" title="All 2 branches covered."> if (parent instanceof Element)</span>
-<span class="fc" id="L190"> baseUri = ((Element)parent).getResolvedBaseUri();</span>
-<span class="fc bfc" id="L191" title="All 2 branches covered."> else if (parent instanceof Document)</span>
-<span class="fc" id="L192"> baseUri = ((Document)parent).getBaseUri();</span>
-<span class="fc bfc" id="L193" title="All 4 branches covered."> if (uri != null && baseUri != null) {</span>
-<span class="fc" id="L194"> uri = baseUri.resolve(uri);</span>
-<span class="fc bfc" id="L195" title="All 2 branches covered."> } else if (uri == null) {</span>
-<span class="fc" id="L196"> uri = baseUri;</span>
+<span class="fc" id="L182"> IRI baseUri = null;</span>
+<span class="fc" id="L183"> IRI uri = IRIUtil.getUriValue(getAttributeValue(BASE));</span>
+<span class="pc bpc" id="L184" title="2 of 4 branches missed."> if (IRIHelper.isJavascriptUri(uri) || IRIHelper.isMailtoUri(uri)) {</span>
+<span class="nc" id="L185"> uri = null;</span>
+ }
+<span class="fc" id="L187"> OMContainer parent = getParent();</span>
+<span class="fc bfc" id="L188" title="All 2 branches covered."> if (parent instanceof Element)</span>
+<span class="fc" id="L189"> baseUri = ((Element)parent).getResolvedBaseUri();</span>
+<span class="fc bfc" id="L190" title="All 2 branches covered."> else if (parent instanceof Document)</span>
+<span class="fc" id="L191"> baseUri = ((Document)parent).getBaseUri();</span>
+<span class="fc bfc" id="L192" title="All 4 branches covered."> if (uri != null && baseUri != null) {</span>
+<span class="fc" id="L193"> uri = baseUri.resolve(uri);</span>
+<span class="fc bfc" id="L194" title="All 2 branches covered."> } else if (uri == null) {</span>
+<span class="fc" id="L195"> uri = baseUri;</span>
}
-<span class="fc" id="L198"> return uri;</span>
+<span class="fc" id="L197"> return uri;</span>
}
public <T extends Element> T setBaseUri(IRI base) {
-<span class="fc" id="L202"> setAttributeValue(BASE, IRIUtil.getStringValue(base));</span>
-<span class="fc" id="L203"> return (T)this;</span>
+<span class="fc" id="L201"> setAttributeValue(BASE, IRIUtil.getStringValue(base));</span>
+<span class="fc" id="L202"> return (T)this;</span>
}
public <T extends Element> T setBaseUri(String base) {
-<span class="pc bpc" id="L207" title="1 of 2 branches missed."> setBaseUri((base != null) ? new IRI(base) : null);</span>
-<span class="fc" id="L208"> return (T)this;</span>
+<span class="pc bpc" id="L206" title="1 of 2 branches missed."> setBaseUri((base != null) ? new IRI(base) : null);</span>
+<span class="fc" id="L207"> return (T)this;</span>
}
public String getAttributeValue(QName qname) {
-<span class="fc" id="L212"> OMAttribute attr = getAttribute(qname);</span>
-<span class="fc bfc" id="L213" title="All 2 branches covered."> String value = (attr != null) ? attr.getAttributeValue() : null;</span>
-<span class="pc bpc" id="L214" title="3 of 4 branches missed."> return getMustPreserveWhitespace() || value == null ? value : value.trim();</span>
+<span class="fc" id="L211"> OMAttribute attr = getAttribute(qname);</span>
+<span class="fc bfc" id="L212" title="All 2 branches covered."> String value = (attr != null) ? attr.getAttributeValue() : null;</span>
+<span class="pc bpc" id="L213" title="3 of 4 branches missed."> return getMustPreserveWhitespace() || value == null ? value : value.trim();</span>
}
public <T extends Element> T setAttributeValue(QName qname, String value) {
-<span class="fc bfc" id="L218" title="All 2 branches covered."> if (value == null) {</span>
-<span class="fc" id="L219"> coreRemoveAttribute(FOMSemantics.ATTRIBUTE_MATCHER, qname.getNamespaceURI(), qname.getLocalPart(), FOMSemantics.INSTANCE);</span>
-<span class="fc" id="L220"> } else {</span>
-<span class="fc" id="L221"> coreSetAttribute(FOMSemantics.ATTRIBUTE_MATCHER, qname.getNamespaceURI(), qname.getLocalPart(), qname.getPrefix(), value);</span>
+<span class="fc bfc" id="L217" title="All 2 branches covered."> if (value == null) {</span>
+<span class="fc" id="L218"> coreRemoveAttribute(FOMSemantics.ATTRIBUTE_MATCHER, qname.getNamespaceURI(), qname.getLocalPart(), FOMSemantics.INSTANCE);</span>
+<span class="fc" id="L219"> } else {</span>
+<span class="fc" id="L220"> coreSetAttribute(FOMSemantics.ATTRIBUTE_MATCHER, qname.getNamespaceURI(), qname.getLocalPart(), qname.getPrefix(), value);</span>
}
-<span class="fc" id="L223"> return (T)this;</span>
+<span class="fc" id="L222"> return (T)this;</span>
}
public final Iterator<AbderaElement> _getChildrenWithName(QName qname) {
-<span class="fc" id="L227"> return coreGetElements(Axis.CHILDREN, AbderaElement.class, ElementMatcher.BY_QNAME,</span>
-<span class="fc" id="L228"> qname.getNamespaceURI(), qname.getLocalPart(), FOMExceptionTranslator.INSTANCE,</span>
-<span class="fc" id="L229"> FOMSemantics.INSTANCE);</span>
+<span class="fc" id="L226"> return coreGetElements(Axis.CHILDREN, AbderaElement.class, ElementMatcher.BY_QNAME,</span>
+<span class="fc" id="L227"> qname.getNamespaceURI(), qname.getLocalPart(), FOMSemantics.INSTANCE);</span>
}
public <E extends Element> List<E> _getChildrenAsSet(QName qname) {
-<span class="fc" id="L233"> FOMFactory factory = (FOMFactory)getFactory();</span>
-<span class="fc" id="L234"> return new FOMList(new FOMElementIteratorWrapper(factory, _getChildrenWithName(qname)));</span>
+<span class="fc" id="L231"> FOMFactory factory = (FOMFactory)getFactory();</span>
+<span class="fc" id="L232"> return new FOMList(new FOMElementIteratorWrapper(factory, _getChildrenWithName(qname)));</span>
}
public final AbderaElement _getFirstChildWithName(QName qname) {
-<span class="fc" id="L238"> CoreChildNode child = coreGetFirstChild();</span>
-<span class="fc bfc" id="L239" title="All 2 branches covered."> while (child != null) {</span>
-<span class="fc bfc" id="L240" title="All 2 branches covered."> if (child instanceof AbderaElement) {</span>
-<span class="fc" id="L241"> AbderaElement candidate = (AbderaElement)child;</span>
-<span class="fc bfc" id="L242" title="All 2 branches covered."> if (candidate.coreGetLocalName().equals(qname.getLocalPart())</span>
-<span class="pc bpc" id="L243" title="1 of 2 branches missed."> && candidate.coreGetNamespaceURI().equals(qname.getNamespaceURI())) {</span>
-<span class="fc" id="L244"> return candidate;</span>
+<span class="fc" id="L236"> CoreChildNode child = coreGetFirstChild();</span>
+<span class="fc bfc" id="L237" title="All 2 branches covered."> while (child != null) {</span>
+<span class="fc bfc" id="L238" title="All 2 branches covered."> if (child instanceof AbderaElement) {</span>
+<span class="fc" id="L239"> AbderaElement candidate = (AbderaElement)child;</span>
+<span class="fc bfc" id="L240" title="All 2 branches covered."> if (candidate.coreGetLocalName().equals(qname.getLocalPart())</span>
+<span class="pc bpc" id="L241" title="1 of 2 branches missed."> && candidate.coreGetNamespaceURI().equals(qname.getNamespaceURI())) {</span>
+<span class="fc" id="L242"> return candidate;</span>
}
}
-<span class="fc" id="L247"> child = child.coreGetNextSibling();</span>
+<span class="fc" id="L245"> child = child.coreGetNextSibling();</span>
}
-<span class="fc" id="L249"> return null;</span>
+<span class="fc" id="L247"> return null;</span>
}
public void _setChild(QName qname, Element element) {
-<span class="fc" id="L253"> AbderaElement e = _getFirstChildWithName(qname);</span>
-<span class="pc bpc" id="L254" title="1 of 4 branches missed."> if (e == null && element != null) {</span>
-<span class="fc" id="L255"> coreAppendChild((AbderaElement)element, false);</span>
-<span class="pc bpc" id="L256" title="1 of 4 branches missed."> } else if (e != null && element != null) {</span>
-<span class="fc" id="L257"> e.coreReplaceWith((AbderaElement)element, FOMSemantics.INSTANCE);</span>
-<span class="pc bpc" id="L258" title="2 of 4 branches missed."> } else if (e != null && element == null) {</span>
-<span class="fc" id="L259"> e.coreDetach(FOMSemantics.INSTANCE);</span>
+<span class="fc" id="L251"> AbderaElement e = _getFirstChildWithName(qname);</span>
+<span class="pc bpc" id="L252" title="1 of 4 branches missed."> if (e == null && element != null) {</span>
+<span class="fc" id="L253"> coreAppendChild((AbderaElement)element, false);</span>
+<span class="pc bpc" id="L254" title="1 of 4 branches missed."> } else if (e != null && element != null) {</span>
+<span class="fc" id="L255"> e.coreReplaceWith((AbderaElement)element, FOMSemantics.INSTANCE);</span>
+<span class="pc bpc" id="L256" title="2 of 4 branches missed."> } else if (e != null && element == null) {</span>
+<span class="fc" id="L257"> e.coreDetach(FOMSemantics.INSTANCE);</span>
}
-<span class="fc" id="L261"> }</span>
+<span class="fc" id="L259"> }</span>
public void writeTo(OutputStream out, WriterOptions options) throws IOException {
-<span class="nc" id="L264"> Writer writer = this.getFactory().getAbdera().getWriter();</span>
-<span class="nc" id="L265"> writer.writeTo(this, out, options);</span>
-<span class="nc" id="L266"> }</span>
+<span class="nc" id="L262"> Writer writer = this.getFactory().getAbdera().getWriter();</span>
+<span class="nc" id="L263"> writer.writeTo(this, out, options);</span>
+<span class="nc" id="L264"> }</span>
public void writeTo(java.io.Writer out, WriterOptions options) throws IOException {
-<span class="nc" id="L269"> Writer writer = this.getFactory().getAbdera().getWriter();</span>
-<span class="nc" id="L270"> writer.writeTo(this, out, options);</span>
-<span class="nc" id="L271"> }</span>
+<span class="nc" id="L267"> Writer writer = this.getFactory().getAbdera().getWriter();</span>
+<span class="nc" id="L268"> writer.writeTo(this, out, options);</span>
+<span class="nc" id="L269"> }</span>
public void writeTo(Writer writer, OutputStream out) throws IOException {
-<span class="nc" id="L274"> writer.writeTo(this, out);</span>
-<span class="nc" id="L275"> }</span>
+<span class="nc" id="L272"> writer.writeTo(this, out);</span>
+<span class="nc" id="L273"> }</span>
public void writeTo(Writer writer, java.io.Writer out) throws IOException {
-<span class="fc" id="L278"> writer.writeTo(this, out);</span>
-<span class="fc" id="L279"> }</span>
+<span class="fc" id="L276"> writer.writeTo(this, out);</span>
+<span class="fc" id="L277"> }</span>
public void writeTo(Writer writer, OutputStream out, WriterOptions options) throws IOException {
-<span class="nc" id="L282"> writer.writeTo(this, out, options);</span>
-<span class="nc" id="L283"> }</span>
+<span class="nc" id="L280"> writer.writeTo(this, out, options);</span>
+<span class="nc" id="L281"> }</span>
public void writeTo(Writer writer, java.io.Writer out, WriterOptions options) throws IOException {
-<span class="nc" id="L286"> writer.writeTo(this, out, options);</span>
-<span class="nc" id="L287"> }</span>
+<span class="nc" id="L284"> writer.writeTo(this, out, options);</span>
+<span class="nc" id="L285"> }</span>
public void writeTo(OutputStream out) throws IOException {
-<span class="fc" id="L290"> Document doc = getDocument();</span>
-<span class="pc bpc" id="L291" title="1 of 2 branches missed."> String charset = doc != null ? doc.getCharset() : "UTF-8";</span>
-<span class="fc" id="L292"> Writer writer = this.getFactory().getAbdera().getWriter();</span>
-<span class="fc" id="L293"> writeTo(writer, new OutputStreamWriter(out, charset));</span>
-<span class="fc" id="L294"> }</span>
+<span class="fc" id="L288"> Document doc = getDocument();</span>
+<span class="pc bpc" id="L289" title="1 of 2 branches missed."> String charset = doc != null ? doc.getCharset() : "UTF-8";</span>
+<span class="fc" id="L290"> Writer writer = this.getFactory().getAbdera().getWriter();</span>
+<span class="fc" id="L291"> writeTo(writer, new OutputStreamWriter(out, charset));</span>
+<span class="fc" id="L292"> }</span>
public void writeTo(java.io.Writer writer) throws IOException {
-<span class="fc" id="L297"> Writer out = getFactory().getAbdera().getWriter();</span>
-<span class="pc bpc" id="L298" title="1 of 2 branches missed."> if (!(out instanceof FOMWriter)) {</span>
-<span class="nc" id="L299"> out.writeTo(this, writer);</span>
-<span class="nc" id="L300"> } else {</span>
+<span class="fc" id="L295"> Writer out = getFactory().getAbdera().getWriter();</span>
+<span class="pc bpc" id="L296" title="1 of 2 branches missed."> if (!(out instanceof FOMWriter)) {</span>
+<span class="nc" id="L297"> out.writeTo(this, writer);</span>
+<span class="nc" id="L298"> } else {</span>
try {
-<span class="fc" id="L302"> OMOutputFormat outputFormat = new OMOutputFormat();</span>
-<span class="pc bpc" id="L303" title="2 of 4 branches missed."> if (getDocument() != null && getDocument().getCharset() != null)</span>
-<span class="fc" id="L304"> outputFormat.setCharSetEncoding(getDocument().getCharset());</span>
-<span class="fc" id="L305"> serialize(writer, outputFormat);</span>
-<span class="pc" id="L306"> } catch (XMLStreamException e) {</span>
-<span class="nc" id="L307"> throw new FOMException(e);</span>
+<span class="fc" id="L300"> OMOutputFormat outputFormat = new OMOutputFormat();</span>
+<span class="pc bpc" id="L301" title="2 of 4 branches missed."> if (getDocument() != null && getDocument().getCharset() != null)</span>
+<span class="fc" id="L302"> outputFormat.setCharSetEncoding(getDocument().getCharset());</span>
+<span class="fc" id="L303"> serialize(writer, outputFormat);</span>
+<span class="pc" id="L304"> } catch (XMLStreamException e) {</span>
+<span class="nc" id="L305"> throw new FOMException(e);</span>
}
}
-<span class="fc" id="L310"> }</span>
+<span class="fc" id="L308"> }</span>
public <T extends Element> Document<T> getDocument() {
-<span class="fc" id="L313"> Document<T> document = null;</span>
-<span class="fc" id="L314"> OMContainer parent = getParent();</span>
-<span class="pc bpc" id="L315" title="1 of 2 branches missed."> if (parent != null) {</span>
-<span class="fc bfc" id="L316" title="All 2 branches covered."> if (parent instanceof Element) {</span>
-<span class="fc" id="L317"> document = ((Element)parent).getDocument();</span>
-<span class="pc bpc" id="L318" title="1 of 2 branches missed."> } else if (parent instanceof Document) {</span>
-<span class="fc" id="L319"> document = (Document<T>)parent;</span>
+<span class="fc" id="L311"> Document<T> document = null;</span>
+<span class="fc" id="L312"> OMContainer parent = getParent();</span>
+<span class="pc bpc" id="L313" title="1 of 2 branches missed."> if (parent != null) {</span>
+<span class="fc bfc" id="L314" title="All 2 branches covered."> if (parent instanceof Element) {</span>
+<span class="fc" id="L315"> document = ((Element)parent).getDocument();</span>
+<span class="pc bpc" id="L316" title="1 of 2 branches missed."> } else if (parent instanceof Document) {</span>
+<span class="fc" id="L317"> document = (Document<T>)parent;</span>
}
}
-<span class="fc" id="L322"> return document;</span>
+<span class="fc" id="L320"> return document;</span>
}
public String getAttributeValue(String name) {
-<span class="nc" id="L326"> return getAttributeValue(new QName(name));</span>
+<span class="nc" id="L324"> return getAttributeValue(new QName(name));</span>
}
public <T extends Element> T setAttributeValue(String name, String value) {
-<span class="fc" id="L330"> setAttributeValue(new QName(name), value);</span>
-<span class="fc" id="L331"> return (T)this;</span>
+<span class="fc" id="L328"> setAttributeValue(new QName(name), value);</span>
+<span class="fc" id="L329"> return (T)this;</span>
}
public void _setElementValue(QName qname, String value) {
-<span class="fc" id="L335"> OMElement element = (OMElement)_getFirstChildWithName(qname);</span>
-<span class="pc bpc" id="L336" title="3 of 4 branches missed."> if (element != null && value != null) {</span>
-<span class="nc" id="L337"> element.setText(value);</span>
-<span class="pc bpc" id="L338" title="3 of 4 branches missed."> } else if (element != null && value == null) {</span>
-<span class="nc bnc" id="L339" title="All 2 branches missed."> for (Iterator i = element.getChildren(); i.hasNext();) {</span>
-<span class="nc" id="L340"> OMNode node = (OMNode)i.next();</span>
-<span class="nc" id="L341"> node.discard();</span>
+<span class="fc" id="L333"> OMElement element = (OMElement)_getFirstChildWithName(qname);</span>
+<span class="pc bpc" id="L334" title="3 of 4 branches missed."> if (element != null && value != null) {</span>
+<span class="nc" id="L335"> element.setText(value);</span>
+<span class="pc bpc" id="L336" title="3 of 4 branches missed."> } else if (element != null && value == null) {</span>
+<span class="nc bnc" id="L337" title="All 2 branches missed."> for (Iterator i = element.getChildren(); i.hasNext();) {</span>
+<span class="nc" id="L338"> OMNode node = (OMNode)i.next();</span>
+<span class="nc" id="L339"> node.discard();</span>
}
-<span class="pc bpc" id="L343" title="2 of 4 branches missed."> } else if (element == null && value != null) {</span>
-<span class="fc" id="L344"> element = getOMFactory().createOMElement(qname, this);</span>
-<span class="fc" id="L345"> element.setText(value);</span>
-<span class="fc" id="L346"> this.addChild(element);</span>
+<span class="pc bpc" id="L341" title="2 of 4 branches missed."> } else if (element == null && value != null) {</span>
+<span class="fc" id="L342"> element = getOMFactory().createOMElement(qname, this);</span>
+<span class="fc" id="L343"> element.setText(value);</span>
+<span class="fc" id="L344"> this.addChild(element);</span>
}
-<span class="fc" id="L348"> }</span>
+<span class="fc" id="L346"> }</span>
public String _getElementValue(QName qname) {
-<span class="fc" id="L351"> String value = null;</span>
-<span class="fc" id="L352"> AbderaElement element = _getFirstChildWithName(qname);</span>
-<span class="pc bpc" id="L353" title="1 of 2 branches missed."> if (element != null)</span>
-<span class="fc" id="L354"> value = element.getText();</span>
-<span class="pc bpc" id="L355" title="3 of 4 branches missed."> return getMustPreserveWhitespace() || value == null ? value : value.trim();</span>
+<span class="fc" id="L349"> String value = null;</span>
+<span class="fc" id="L350"> AbderaElement element = _getFirstChildWithName(qname);</span>
+<span class="pc bpc" id="L351" title="1 of 2 branches missed."> if (element != null)</span>
+<span class="fc" id="L352"> value = element.getText();</span>
+<span class="pc bpc" id="L353" title="3 of 4 branches missed."> return getMustPreserveWhitespace() || value == null ? value : value.trim();</span>
}
public final <T extends Text> T getTextElement(QName qname) {
-<span class="fc" id="L359"> return (T)_getFirstChildWithName(qname);</span>
+<span class="fc" id="L357"> return (T)_getFirstChildWithName(qname);</span>
}
public final <T extends Text> void setTextElement(QName qname, T text, boolean many) {
-<span class="fc" id="L363"> _setChild(qname, text);</span>
-<span class="fc" id="L364"> }</span>
+<span class="fc" id="L361"> _setChild(qname, text);</span>
+<span class="fc" id="L362"> }</span>
public void setText(String text) {
-<span class="pc bpc" id="L367" title="1 of 2 branches missed."> if (text != null) {</span>
-<span class="fc" id="L368"> OMNode child = this.getFirstOMChild();</span>
-<span class="pc bpc" id="L369" title="1 of 2 branches missed."> while (child != null) {</span>
-<span class="nc bnc" id="L370" title="All 2 branches missed."> if (child.getType() == OMNode.TEXT_NODE) {</span>
-<span class="nc" id="L371"> child.detach();</span>
+<span class="pc bpc" id="L365" title="1 of 2 branches missed."> if (text != null) {</span>
+<span class="fc" id="L366"> OMNode child = this.getFirstOMChild();</span>
+<span class="pc bpc" id="L367" title="1 of 2 branches missed."> while (child != null) {</span>
+<span class="nc bnc" id="L368" title="All 2 branches missed."> if (child.getType() == OMNode.TEXT_NODE) {</span>
+<span class="nc" id="L369"> child.detach();</span>
}
-<span class="nc" id="L373"> child = child.getNextOMSibling();</span>
+<span class="nc" id="L371"> child = child.getNextOMSibling();</span>
}
-<span class="fc" id="L375"> getOMFactory().createOMText(this, text);</span>
-<span class="fc" id="L376"> } else</span>
-<span class="nc" id="L377"> _removeAllChildren();</span>
+<span class="fc" id="L373"> getOMFactory().createOMText(this, text);</span>
+<span class="fc" id="L374"> } else</span>
+<span class="nc" id="L375"> _removeAllChildren();</span>
// return (T)this;
-<span class="fc" id="L379"> }</span>
+<span class="fc" id="L377"> }</span>
public String getText() {
-<span class="fc" id="L382"> StringBuilder buf = new StringBuilder();</span>
-<span class="fc" id="L383"> Iterator i = getChildren();</span>
-<span class="fc bfc" id="L384" title="All 2 branches covered."> while (i.hasNext()) {</span>
-<span class="fc" id="L385"> OMNode node = (OMNode)i.next();</span>
-<span class="fc bfc" id="L386" title="All 2 branches covered."> if (node instanceof OMText) {</span>
-<span class="fc" id="L387"> buf.append(((OMText)node).getText());</span>
+<span class="fc" id="L380"> StringBuilder buf = new StringBuilder();</span>
+<span class="fc" id="L381"> Iterator i = getChildren();</span>
+<span class="fc bfc" id="L382" title="All 2 branches covered."> while (i.hasNext()) {</span>
+<span class="fc" id="L383"> OMNode node = (OMNode)i.next();</span>
+<span class="fc bfc" id="L384" title="All 2 branches covered."> if (node instanceof OMText) {</span>
+<span class="fc" id="L385"> buf.append(((OMText)node).getText());</span>
} else {
// for now, let's ignore other elements. eventually, we
// should make this work like innerHTML in browsers... stripping
// out all markup but leaving all text, even in child nodes
}
}
-<span class="fc" id="L394"> String value = buf.toString();</span>
-<span class="pc bpc" id="L395" title="1 of 2 branches missed."> return getMustPreserveWhitespace() ? value : value.trim();</span>
+<span class="fc" id="L392"> String value = buf.toString();</span>
+<span class="pc bpc" id="L393" title="1 of 2 branches missed."> return getMustPreserveWhitespace() ? value : value.trim();</span>
}
public final String getText(QName qname) {
-<span class="fc" id="L399"> Text text = getTextElement(qname);</span>
-<span class="fc bfc" id="L400" title="All 2 branches covered."> return (text != null) ? text.getValue() : null;</span>
+<span class="fc" id="L397"> Text text = getTextElement(qname);</span>
+<span class="fc bfc" id="L398" title="All 2 branches covered."> return (text != null) ? text.getValue() : null;</span>
}
public List<QName> getAttributes() {
-<span class="fc" id="L404"> List<QName> list = new ArrayList<QName>();</span>
-<span class="fc bfc" id="L405" title="All 2 branches covered."> for (Iterator i = getAllAttributes(); i.hasNext();) {</span>
-<span class="fc" id="L406"> OMAttribute attr = (OMAttribute)i.next();</span>
-<span class="fc" id="L407"> list.add(attr.getQName());</span>
+<span class="fc" id="L402"> List<QName> list = new ArrayList<QName>();</span>
+<span class="fc bfc" id="L403" title="All 2 branches covered."> for (Iterator i = getAllAttributes(); i.hasNext();) {</span>
+<span class="fc" id="L404"> OMAttribute attr = (OMAttribute)i.next();</span>
+<span class="fc" id="L405"> list.add(attr.getQName());</span>
}
-<span class="fc" id="L409"> return Collections.unmodifiableList(list);</span>
+<span class="fc" id="L407"> return Collections.unmodifiableList(list);</span>
}
public List<QName> getExtensionAttributes() {
-<span class="nc" id="L413"> List<QName> list = new ArrayList<QName>();</span>
-<span class="nc bnc" id="L414" title="All 2 branches missed."> for (Iterator i = getAllAttributes(); i.hasNext();) {</span>
-<span class="nc" id="L415"> OMAttribute attr = (OMAttribute)i.next();</span>
-<span class="nc bnc" id="L416" title="All 2 branches missed."> String namespace = (attr.getNamespace() != null) ? attr.getNamespace().getNamespaceURI() : "";</span>
-<span class="nc bnc" id="L417" title="All 4 branches missed."> if (!namespace.equals(getNamespace().getNamespaceURI()) && !namespace.equals(""))</span>
-<span class="nc" id="L418"> list.add(attr.getQName());</span>
+<span class="nc" id="L411"> List<QName> list = new ArrayList<QName>();</span>
+<span class="nc bnc" id="L412" title="All 2 branches missed."> for (Iterator i = getAllAttributes(); i.hasNext();) {</span>
+<span class="nc" id="L413"> OMAttribute attr = (OMAttribute)i.next();</span>
+<span class="nc bnc" id="L414" title="All 2 branches missed."> String namespace = (attr.getNamespace() != null) ? attr.getNamespace().getNamespaceURI() : "";</span>
+<span class="nc bnc" id="L415" title="All 4 branches missed."> if (!namespace.equals(getNamespace().getNamespaceURI()) && !namespace.equals(""))</span>
+<span class="nc" id="L416"> list.add(attr.getQName());</span>
}
-<span class="nc" id="L420"> return Collections.unmodifiableList(list);</span>
+<span class="nc" id="L418"> return Collections.unmodifiableList(list);</span>
}
protected Element _parse(String value, IRI baseUri) throws ParseException, UnsupportedEncodingException {
-<span class="pc bpc" id="L424" title="1 of 2 branches missed."> if (value == null)</span>
-<span class="nc" id="L425"> return null;</span>
-<span class="fc" id="L426"> Factory fomfactory = getFactory();</span>
-<span class="fc" id="L427"> Parser parser = fomfactory.newParser();</span>
-<span class="fc" id="L428"> ParserOptions options = parser.getDefaultParserOptions();</span>
-<span class="fc" id="L429"> options.setFactory(fomfactory);</span>
-<span class="pc bpc" id="L430" title="1 of 2 branches missed."> Document doc = parser.parse(new StringReader(value), (baseUri != null) ? baseUri.toString() : null, options);</span>
-<span class="fc" id="L431"> return doc.getRoot();</span>
+<span class="pc bpc" id="L422" title="1 of 2 branches missed."> if (value == null)</span>
+<span class="nc" id="L423"> return null;</span>
+<span class="fc" id="L424"> Factory fomfactory = getFactory();</span>
+<span class="fc" id="L425"> Parser parser = fomfactory.newParser();</span>
+<span class="fc" id="L426"> ParserOptions options = parser.getDefaultParserOptions();</span>
+<span class="fc" id="L427"> options.setFactory(fomfactory);</span>
+<span class="pc bpc" id="L428" title="1 of 2 branches missed."> Document doc = parser.parse(new StringReader(value), (baseUri != null) ? baseUri.toString() : null, options);</span>
+<span class="fc" id="L429"> return doc.getRoot();</span>
}
public <T extends Element> T removeAttribute(QName qname) {
-<span class="fc" id="L435"> OMAttribute attr = getAttribute(qname);</span>
-<span class="fc bfc" id="L436" title="All 2 branches covered."> if (attr != null)</span>
-<span class="fc" id="L437"> removeAttribute(attr);</span>
-<span class="fc" id="L438"> return (T)this;</span>
+<span class="fc" id="L433"> OMAttribute attr = getAttribute(qname);</span>
+<span class="fc bfc" id="L434" title="All 2 branches covered."> if (attr != null)</span>
+<span class="fc" id="L435"> removeAttribute(attr);</span>
+<span class="fc" id="L436"> return (T)this;</span>
}
public <T extends Element> T removeAttribute(String name) {
-<span class="nc" id="L442"> OMAttribute attr = getAttribute(new QName(name));</span>
-<span class="nc bnc" id="L443" title="All 2 branches missed."> if (attr != null)</span>
-<span class="nc" id="L444"> getAttribute(new QName(name));</span>
-<span class="nc" id="L445"> return (T)this;</span>
+<span class="nc" id="L440"> OMAttribute attr = getAttribute(new QName(name));</span>
+<span class="nc bnc" id="L441" title="All 2 branches missed."> if (attr != null)</span>
+<span class="nc" id="L442"> getAttribute(new QName(name));</span>
+<span class="nc" id="L443"> return (T)this;</span>
}
public void _removeChildren(QName qname, boolean many) {
-<span class="fc" id="L449"> CoreChildNode child = coreGetFirstChild();</span>
-<span class="fc bfc" id="L450" title="All 2 branches covered."> while (child != null) {</span>
-<span class="pc bpc" id="L451" title="1 of 2 branches missed."> if (child instanceof CoreNSAwareElement) {</span>
-<span class="fc" id="L452"> CoreNSAwareElement element = (CoreNSAwareElement)child;</span>
-<span class="fc bfc" id="L453" title="All 2 branches covered."> if (element.coreGetLocalName().equals(qname.getLocalPart())</span>
-<span class="fc bfc" id="L454" title="All 2 branches covered."> && element.coreGetNamespaceURI().equals(qname.getNamespaceURI())) {</span>
-<span class="fc" id="L455"> child = child.coreGetNextSibling();</span>
-<span class="fc" id="L456"> element.coreDetach(FOMSemantics.INSTANCE);</span>
-<span class="pc bpc" id="L457" title="1 of 2 branches missed."> if (many) {</span>
-<span class="fc" id="L458"> continue;</span>
+<span class="fc" id="L447"> CoreChildNode child = coreGetFirstChild();</span>
+<span class="fc bfc" id="L448" title="All 2 branches covered."> while (child != null) {</span>
+<span class="pc bpc" id="L449" title="1 of 2 branches missed."> if (child instanceof CoreNSAwareElement) {</span>
+<span class="fc" id="L450"> CoreNSAwareElement element = (CoreNSAwareElement)child;</span>
+<span class="fc bfc" id="L451" title="All 2 branches covered."> if (element.coreGetLocalName().equals(qname.getLocalPart())</span>
+<span class="fc bfc" id="L452" title="All 2 branches covered."> && element.coreGetNamespaceURI().equals(qname.getNamespaceURI())) {</span>
+<span class="fc" id="L453"> child = child.coreGetNextSibling();</span>
+<span class="fc" id="L454"> element.coreDetach(FOMSemantics.INSTANCE);</span>
+<span class="pc bpc" id="L455" title="1 of 2 branches missed."> if (many) {</span>
+<span class="fc" id="L456"> continue;</span>
} else {
-<span class="nc" id="L460"> return;</span>
+<span class="nc" id="L458"> return;</span>
}
}
}
-<span class="fc" id="L464"> child = child.coreGetNextSibling();</span>
+<span class="fc" id="L462"> child = child.coreGetNextSibling();</span>
}
-<span class="fc" id="L466"> }</span>
+<span class="fc" id="L464"> }</span>
public Object clone() {
-<span class="fc" id="L469"> OMElement el = _create(this);</span>
-<span class="fc" id="L470"> _copyElement(this, el);</span>
-<span class="fc" id="L471"> return el;</span>
+<span class="fc" id="L467"> OMElement el = _create(this);</span>
+<span class="fc" id="L468"> _copyElement(this, el);</span>
+<span class="fc" id="L469"> return el;</span>
}
protected OMElement _copyElement(OMElement src, OMElement dest) {
-<span class="fc" id="L476"> OMFactory factory = getOMFactory();</span>
-<span class="fc bfc" id="L477" title="All 2 branches covered."> for (Iterator i = src.getAllAttributes(); i.hasNext();) {</span>
-<span class="fc" id="L478"> OMAttribute attr = (OMAttribute)i.next();</span>
-<span class="fc" id="L479"> dest.addAttribute(attr);</span>
-<span class="fc" id="L480"> dest.addAttribute(factory.createOMAttribute(attr.getLocalName(), attr.getNamespace(), attr</span>
-<span class="fc" id="L481"> .getAttributeValue()));</span>
- }
-<span class="fc bfc" id="L483" title="All 2 branches covered."> for (Iterator i = src.getChildren(); i.hasNext();) {</span>
-<span class="fc" id="L484"> OMNode node = (OMNode)i.next();</span>
-<span class="fc bfc" id="L485" title="All 2 branches covered."> if (node.getType() == OMNode.ELEMENT_NODE) {</span>
-<span class="fc" id="L486"> OMElement element = (OMElement)node;</span>
-<span class="fc" id="L487"> OMElement child = _create(element);</span>
-<span class="pc bpc" id="L488" title="1 of 2 branches missed."> if (child != null) {</span>
-<span class="fc" id="L489"> _copyElement(element, child);</span>
-<span class="fc" id="L490"> dest.addChild(child);</span>
+<span class="fc" id="L474"> OMFactory factory = getOMFactory();</span>
+<span class="fc bfc" id="L475" title="All 2 branches covered."> for (Iterator i = src.getAllAttributes(); i.hasNext();) {</span>
+<span class="fc" id="L476"> OMAttribute attr = (OMAttribute)i.next();</span>
+<span class="fc" id="L477"> dest.addAttribute(attr);</span>
+<span class="fc" id="L478"> dest.addAttribute(factory.createOMAttribute(attr.getLocalName(), attr.getNamespace(), attr</span>
+<span class="fc" id="L479"> .getAttributeValue()));</span>
+ }
+<span class="fc bfc" id="L481" title="All 2 branches covered."> for (Iterator i = src.getChildren(); i.hasNext();) {</span>
+<span class="fc" id="L482"> OMNode node = (OMNode)i.next();</span>
+<span class="fc bfc" id="L483" title="All 2 branches covered."> if (node.getType() == OMNode.ELEMENT_NODE) {</span>
+<span class="fc" id="L484"> OMElement element = (OMElement)node;</span>
+<span class="fc" id="L485"> OMElement child = _create(element);</span>
+<span class="pc bpc" id="L486" title="1 of 2 branches missed."> if (child != null) {</span>
+<span class="fc" id="L487"> _copyElement(element, child);</span>
+<span class="fc" id="L488"> dest.addChild(child);</span>
}
-<span class="pc bpc" id="L492" title="1 of 2 branches missed."> } else if (node.getType() == OMNode.CDATA_SECTION_NODE) {</span>
-<span class="nc" id="L493"> OMText text = (OMText)node;</span>
-<span class="nc" id="L494"> factory.createOMText(dest, text.getText(), OMNode.CDATA_SECTION_NODE);</span>
-<span class="pc bpc" id="L495" title="1 of 2 branches missed."> } else if (node.getType() == OMNode.TEXT_NODE) {</span>
-<span class="fc" id="L496"> OMText text = (OMText)node;</span>
-<span class="fc" id="L497"> factory.createOMText(dest, text.getText());</span>
-<span class="pc bnc" id="L498" title="All 2 branches missed."> } else if (node.getType() == OMNode.COMMENT_NODE) {</span>
-<span class="nc" id="L499"> OMComment comment = (OMComment)node;</span>
-<span class="nc" id="L500"> factory.createOMComment(dest, comment.getValue());</span>
-<span class="nc bnc" id="L501" title="All 2 branches missed."> } else if (node.getType() == OMNode.PI_NODE) {</span>
-<span class="nc" id="L502"> OMProcessingInstruction pi = (OMProcessingInstruction)node;</span>
-<span class="nc" id="L503"> factory.createOMProcessingInstruction(dest, pi.getTarget(), pi.getValue());</span>
-<span class="nc bnc" id="L504" title="All 2 branches missed."> } else if (node.getType() == OMNode.SPACE_NODE) {</span>
-<span class="nc" id="L505"> OMText text = (OMText)node;</span>
-<span class="nc" id="L506"> factory.createOMText(dest, text.getText(), OMNode.SPACE_NODE);</span>
-<span class="nc bnc" id="L507" title="All 2 branches missed."> } else if (node.getType() == OMNode.ENTITY_REFERENCE_NODE) {</span>
-<span class="nc" id="L508"> OMText text = (OMText)node;</span>
-<span class="nc" id="L509"> factory.createOMText(dest, text.getText(), OMNode.ENTITY_REFERENCE_NODE);</span>
+<span class="pc bpc" id="L490" title="1 of 2 branches missed."> } else if (node.getType() == OMNode.CDATA_SECTION_NODE) {</span>
+<span class="nc" id="L491"> OMText text = (OMText)node;</span>
+<span class="nc" id="L492"> factory.createOMText(dest, text.getText(), OMNode.CDATA_SECTION_NODE);</span>
+<span class="pc bpc" id="L493" title="1 of 2 branches missed."> } else if (node.getType() == OMNode.TEXT_NODE) {</span>
+<span class="fc" id="L494"> OMText text = (OMText)node;</span>
+<span class="fc" id="L495"> factory.createOMText(dest, text.getText());</span>
+<span class="pc bnc" id="L496" title="All 2 branches missed."> } else if (node.getType() == OMNode.COMMENT_NODE) {</span>
+<span class="nc" id="L497"> OMComment comment = (OMComment)node;</span>
+<span class="nc" id="L498"> factory.createOMComment(dest, comment.getValue());</span>
+<span class="nc bnc" id="L499" title="All 2 branches missed."> } else if (node.getType() == OMNode.PI_NODE) {</span>
+<span class="nc" id="L500"> OMProcessingInstruction pi = (OMProcessingInstruction)node;</span>
+<span class="nc" id="L501"> factory.createOMProcessingInstruction(dest, pi.getTarget(), pi.getValue());</span>
+<span class="nc bnc" id="L502" title="All 2 branches missed."> } else if (node.getType() == OMNode.SPACE_NODE) {</span>
+<span class="nc" id="L503"> OMText text = (OMText)node;</span>
+<span class="nc" id="L504"> factory.createOMText(dest, text.getText(), OMNode.SPACE_NODE);</span>
+<span class="nc bnc" id="L505" title="All 2 branches missed."> } else if (node.getType() == OMNode.ENTITY_REFERENCE_NODE) {</span>
+<span class="nc" id="L506"> OMText text = (OMText)node;</span>
+<span class="nc" id="L507"> factory.createOMText(dest, text.getText(), OMNode.ENTITY_REFERENCE_NODE);</span>
}
}
-<span class="fc" id="L512"> return dest;</span>
+<span class="fc" id="L510"> return dest;</span>
}
protected OMElement _create(OMElement src) {
-<span class="fc" id="L516"> FOMFactory fomfactory = (FOMFactory)getOMFactory();</span>
-<span class="fc" id="L517"> OMElement el = fomfactory.createElement(src.getQName(), (OMContainer)fomfactory.newDocument());</span>
-<span class="fc bfc" id="L518" title="All 2 branches covered."> if (src instanceof Content) {</span>
-<span class="fc" id="L519"> ((Content)el).setContentType(((Content)src).getContentType());</span>
-<span class="fc bfc" id="L520" title="All 2 branches covered."> } else if (src instanceof Text) {</span>
-<span class="fc" id="L521"> ((Text)el).setTextType(((Text)src).getTextType());</span>
+<span class="fc" id="L514"> FOMFactory fomfactory = (FOMFactory)getOMFactory();</span>
+<span class="fc" id="L515"> OMElement el = fomfactory.createElement(src.getQName(), (OMContainer)fomfactory.newDocument());</span>
+<span class="fc bfc" id="L516" title="All 2 branches covered."> if (src instanceof Content) {</span>
+<span class="fc" id="L517"> ((Content)el).setContentType(((Content)src).getContentType());</span>
+<span class="fc bfc" id="L518" title="All 2 branches covered."> } else if (src instanceof Text) {</span>
+<span class="fc" id="L519"> ((Text)el).setTextType(((Text)src).getTextType());</span>
}
-<span class="fc" id="L523"> return el;</span>
+<span class="fc" id="L521"> return el;</span>
}
// This appears to no longer be necessary with Axiom 1.2
@@ -542,108 +540,108 @@ import org.apache.axiom.om.impl.intf.Axi
// }
public <T extends Base> T addComment(String value) {
-<span class="nc" id="L545"> getOMFactory().createOMComment(this, value);</span>
-<span class="nc" id="L546"> return (T)this;</span>
+<span class="nc" id="L543"> getOMFactory().createOMComment(this, value);</span>
+<span class="nc" id="L544"> return (T)this;</span>
}
public Locale getLocale() {
-<span class="fc" id="L550"> String tag = getLanguage();</span>
-<span class="pc bpc" id="L551" title="1 of 4 branches missed."> if (tag == null || tag.length() == 0)</span>
-<span class="fc" id="L552"> return null;</span>
-<span class="fc" id="L553"> String[] tokens = tag.split("-");</span>
-<span class="fc" id="L554"> Locale locale = null;</span>
-<span class="pc bpc" id="L555" title="2 of 4 branches missed."> switch (tokens.length) {</span>
+<span class="fc" id="L548"> String tag = getLanguage();</span>
+<span class="pc bpc" id="L549" title="1 of 4 branches missed."> if (tag == null || tag.length() == 0)</span>
+<span class="fc" id="L550"> return null;</span>
+<span class="fc" id="L551"> String[] tokens = tag.split("-");</span>
+<span class="fc" id="L552"> Locale locale = null;</span>
+<span class="pc bpc" id="L553" title="2 of 4 branches missed."> switch (tokens.length) {</span>
case 0:
-<span class="nc" id="L557"> break;</span>
+<span class="nc" id="L555"> break;</span>
case 1:
-<span class="fc" id="L559"> locale = new Locale(tokens[0]);</span>
-<span class="fc" id="L560"> break;</span>
+<span class="fc" id="L557"> locale = new Locale(tokens[0]);</span>
+<span class="fc" id="L558"> break;</span>
case 2:
-<span class="fc" id="L562"> locale = new Locale(tokens[0], tokens[1]);</span>
-<span class="fc" id="L563"> break;</span>
+<span class="fc" id="L560"> locale = new Locale(tokens[0], tokens[1]);</span>
+<span class="fc" id="L561"> break;</span>
default:
-<span class="nc" id="L565"> locale = new Locale(tokens[0], tokens[1], tokens[2]);</span>
+<span class="nc" id="L563"> locale = new Locale(tokens[0], tokens[1], tokens[2]);</span>
break;
}
-<span class="fc" id="L568"> return locale;</span>
+<span class="fc" id="L566"> return locale;</span>
}
public <T extends Element> T declareNS(String uri, String prefix) {
-<span class="nc bnc" id="L572" title="All 2 branches missed."> if (!isDeclared(uri, prefix)) {</span>
-<span class="nc" id="L573"> declareNamespace(uri, prefix);</span>
+<span class="nc bnc" id="L570" title="All 2 branches missed."> if (!isDeclared(uri, prefix)) {</span>
+<span class="nc" id="L571"> declareNamespace(uri, prefix);</span>
}
-<span class="nc" id="L575"> return (T)this;</span>
+<span class="nc" id="L573"> return (T)this;</span>
}
protected boolean isDeclared(String ns, String prefix) {
-<span class="nc bnc" id="L579" title="All 2 branches missed."> for (Iterator i = this.getAllDeclaredNamespaces(); i.hasNext();) {</span>
-<span class="nc" id="L580"> OMNamespace omn = (OMNamespace)i.next();</span>
-<span class="nc bnc" id="L581" title="All 6 branches missed."> if (omn.getNamespaceURI().equals(ns) && (omn.getPrefix() != null && omn.getPrefix().equals(prefix)))</span>
-<span class="nc" id="L582"> return true;</span>
- }
-<span class="nc" id="L584"> Base parent = this.getParentElement();</span>
-<span class="nc bnc" id="L585" title="All 4 branches missed."> if (parent != null && parent instanceof FOMElement) {</span>
-<span class="nc" id="L586"> return ((FOMElement)parent).isDeclared(ns, prefix);</span>
+<span class="nc bnc" id="L577" title="All 2 branches missed."> for (Iterator i = this.getAllDeclaredNamespaces(); i.hasNext();) {</span>
+<span class="nc" id="L578"> OMNamespace omn = (OMNamespace)i.next();</span>
+<span class="nc bnc" id="L579" title="All 6 branches missed."> if (omn.getNamespaceURI().equals(ns) && (omn.getPrefix() != null && omn.getPrefix().equals(prefix)))</span>
+<span class="nc" id="L580"> return true;</span>
+ }
+<span class="nc" id="L582"> Base parent = this.getParentElement();</span>
+<span class="nc bnc" id="L583" title="All 4 branches missed."> if (parent != null && parent instanceof FOMElement) {</span>
+<span class="nc" id="L584"> return ((FOMElement)parent).isDeclared(ns, prefix);</span>
} else
-<span class="nc" id="L588"> return false;</span>
+<span class="nc" id="L586"> return false;</span>
}
protected void declareIfNecessary(String ns, String prefix) {
-<span class="pc bpc" id="L592" title="4 of 6 branches missed."> if (prefix != null && !prefix.equals("") && !isDeclared(ns, prefix)) {</span>
-<span class="nc" id="L593"> declareNS(ns, prefix);</span>
+<span class="pc bpc" id="L590" title="4 of 6 branches missed."> if (prefix != null && !prefix.equals("") && !isDeclared(ns, prefix)) {</span>
+<span class="nc" id="L591"> declareNS(ns, prefix);</span>
}
-<span class="fc" id="L595"> }</span>
+<span class="fc" id="L593"> }</span>
public Map<String, String> getNamespaces() {
-<span class="nc" id="L598"> Map<String, String> namespaces = new HashMap<String, String>();</span>
-<span class="nc" id="L599"> OMElement current = this;</span>
-<span class="nc bnc" id="L600" title="All 2 branches missed."> while (current != null) {</span>
-<span class="nc" id="L601"> Iterator i = current.getAllDeclaredNamespaces();</span>
-<span class="nc bnc" id="L602" title="All 2 branches missed."> while (i.hasNext()) {</span>
-<span class="nc" id="L603"> OMNamespace ns = (OMNamespace)i.next();</span>
-<span class="nc" id="L604"> String prefix = ns.getPrefix();</span>
-<span class="nc" id="L605"> String uri = ns.getNamespaceURI();</span>
-<span class="nc bnc" id="L606" title="All 2 branches missed."> if (!namespaces.containsKey(prefix))</span>
-<span class="nc" id="L607"> namespaces.put(prefix, uri);</span>
+<span class="nc" id="L596"> Map<String, String> namespaces = new HashMap<String, String>();</span>
+<span class="nc" id="L597"> OMElement current = this;</span>
+<span class="nc bnc" id="L598" title="All 2 branches missed."> while (current != null) {</span>
+<span class="nc" id="L599"> Iterator i = current.getAllDeclaredNamespaces();</span>
+<span class="nc bnc" id="L600" title="All 2 branches missed."> while (i.hasNext()) {</span>
+<span class="nc" id="L601"> OMNamespace ns = (OMNamespace)i.next();</span>
+<span class="nc" id="L602"> String prefix = ns.getPrefix();</span>
+<span class="nc" id="L603"> String uri = ns.getNamespaceURI();</span>
+<span class="nc bnc" id="L604" title="All 2 branches missed."> if (!namespaces.containsKey(prefix))</span>
+<span class="nc" id="L605"> namespaces.put(prefix, uri);</span>
}
-<span class="nc" id="L609"> OMContainer parent = current.getParent();</span>
-<span class="nc bnc" id="L610" title="All 4 branches missed."> current = (OMElement)((parent != null && parent instanceof OMElement) ? parent : null);</span>
+<span class="nc" id="L607"> OMContainer parent = current.getParent();</span>
+<span class="nc bnc" id="L608" title="All 4 branches missed."> current = (OMElement)((parent != null && parent instanceof OMElement) ? parent : null);</span>
}
-<span class="nc" id="L612"> return Collections.unmodifiableMap(namespaces);</span>
+<span class="nc" id="L610"> return Collections.unmodifiableMap(namespaces);</span>
}
public <T extends Element> List<T> getElements() {
-<span class="fc" id="L616"> return new FOMList<T>(new FOMElementIteratorWrapper((FOMFactory)getOMFactory(), getChildElements()));</span>
+<span class="fc" id="L614"> return new FOMList<T>(new FOMElementIteratorWrapper((FOMFactory)getOMFactory(), getChildElements()));</span>
}
public boolean getMustPreserveWhitespace() {
-<span class="fc" id="L620"> OMAttribute attr = getAttribute(SPACE);</span>
-<span class="pc bpc" id="L621" title="1 of 2 branches missed."> String space = (attr != null) ? attr.getAttributeValue() : null;</span>
-<span class="fc" id="L622"> Base parent = this.getParentElement();</span>
-
-<span class="pc bpc" id="L624" title="3 of 4 branches missed."> return space != null && space.equalsIgnoreCase("preserve") ? true</span>
-<span class="fc bfc" id="L625" title="All 4 branches covered."> : (parent != null && parent instanceof Element) ? ((Element)parent).getMustPreserveWhitespace()</span>
-<span class="pc bpc" id="L626" title="1 of 4 branches missed."> : (parent != null && parent instanceof Document) ? ((Document)parent).getMustPreserveWhitespace()</span>
-<span class="fc" id="L627"> : true;</span>
+<span class="fc" id="L618"> OMAttribute attr = getAttribute(SPACE);</span>
+<span class="pc bpc" id="L619" title="1 of 2 branches missed."> String space = (attr != null) ? attr.getAttributeValue() : null;</span>
+<span class="fc" id="L620"> Base parent = this.getParentElement();</span>
+
+<span class="pc bpc" id="L622" title="3 of 4 branches missed."> return space != null && space.equalsIgnoreCase("preserve") ? true</span>
+<span class="fc bfc" id="L623" title="All 4 branches covered."> : (parent != null && parent instanceof Element) ? ((Element)parent).getMustPreserveWhitespace()</span>
+<span class="pc bpc" id="L624" title="1 of 4 branches missed."> : (parent != null && parent instanceof Document) ? ((Document)parent).getMustPreserveWhitespace()</span>
+<span class="fc" id="L625"> : true;</span>
}
public <T extends Element> T setMustPreserveWhitespace(boolean preserve) {
-<span class="nc bnc" id="L631" title="All 4 branches missed."> if (preserve && !getMustPreserveWhitespace()) {</span>
-<span class="nc" id="L632"> setAttributeValue(SPACE, "preserve");</span>
-<span class="nc bnc" id="L633" title="All 4 branches missed."> } else if (!preserve && getMustPreserveWhitespace()) {</span>
-<span class="nc" id="L634"> setAttributeValue(SPACE, "default");</span>
+<span class="nc bnc" id="L629" title="All 4 branches missed."> if (preserve && !getMustPreserveWhitespace()) {</span>
+<span class="nc" id="L630"> setAttributeValue(SPACE, "preserve");</span>
+<span class="nc bnc" id="L631" title="All 4 branches missed."> } else if (!preserve && getMustPreserveWhitespace()) {</span>
+<span class="nc" id="L632"> setAttributeValue(SPACE, "default");</span>
}
-<span class="nc" id="L636"> return (T)this;</span>
+<span class="nc" id="L634"> return (T)this;</span>
}
public <T extends Element> T setText(DataHandler handler) {
-<span class="nc" id="L640"> _removeAllChildren();</span>
-<span class="nc" id="L641"> addChild(getOMFactory().createOMText(handler, true));</span>
-<span class="nc" id="L642"> return (T)this;</span>
+<span class="nc" id="L638"> _removeAllChildren();</span>
+<span class="nc" id="L639"> addChild(getOMFactory().createOMText(handler, true));</span>
+<span class="nc" id="L640"> return (T)this;</span>
}
public WriterOptions getDefaultWriterOptions() {
-<span class="fc" id="L646"> return new FOMWriter().getDefaultWriterOptions();</span>
+<span class="fc" id="L644"> return new FOMWriter().getDefaultWriterOptions();</span>
}
/**
@@ -653,41 +651,41 @@ import org.apache.axiom.om.impl.intf.Axi
* consumed, only that that particular element has been completely parsed.
*/
public <T extends Base> T complete() {
-<span class="nc bnc" id="L656" title="All 4 branches missed."> if (!isComplete() && getBuilder() != null)</span>
-<span class="nc" id="L657"> build();</span>
-<span class="nc" id="L658"> return (T)this;</span>
+<span class="nc bnc" id="L654" title="All 4 branches missed."> if (!isComplete() && getBuilder() != null)</span>
+<span class="nc" id="L655"> build();</span>
+<span class="nc" id="L656"> return (T)this;</span>
}
/**
* Iterate over all child elements
*/
public Iterator<Element> iterator() {
-<span class="nc" id="L665"> return getElements().iterator();</span>
+<span class="nc" id="L663"> return getElements().iterator();</span>
}
public void writeTo(String writer, OutputStream out) throws IOException {
-<span class="nc" id="L669"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out);</span>
-<span class="nc" id="L670"> }</span>
+<span class="nc" id="L667"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out);</span>
+<span class="nc" id="L668"> }</span>
public void writeTo(String writer, java.io.Writer out) throws IOException {
-<span class="nc" id="L673"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out);</span>
-<span class="nc" id="L674"> }</span>
+<span class="nc" id="L671"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out);</span>
+<span class="nc" id="L672"> }</span>
public void writeTo(String writer, OutputStream out, WriterOptions options) throws IOException {
-<span class="nc" id="L677"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out, options);</span>
-<span class="nc" id="L678"> }</span>
+<span class="nc" id="L675"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out, options);</span>
+<span class="nc" id="L676"> }</span>
public void writeTo(String writer, java.io.Writer out, WriterOptions options) throws IOException {
-<span class="nc" id="L681"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out, options);</span>
-<span class="nc" id="L682"> }</span>
+<span class="nc" id="L679"> writeTo(getFactory().getAbdera().getWriterFactory().getWriter(writer), out, options);</span>
+<span class="nc" id="L680"> }</span>
public String toFormattedString() {
try {
-<span class="nc" id="L686"> ByteArrayOutputStream out = new ByteArrayOutputStream();</span>
-<span class="nc" id="L687"> writeTo("prettyxml", out);</span>
-<span class="nc" id="L688"> return new String(out.toByteArray(), "UTF-8");</span>
-<span class="nc" id="L689"> } catch (Exception e) {</span>
-<span class="nc" id="L690"> return toString();</span>
+<span class="nc" id="L684"> ByteArrayOutputStream out = new ByteArrayOutputStream();</span>
+<span class="nc" id="L685"> writeTo("prettyxml", out);</span>
+<span class="nc" id="L686"> return new String(out.toByteArray(), "UTF-8");</span>
+<span class="nc" id="L687"> } catch (Exception e) {</span>
+<span class="nc" id="L688"> return toString();</span>
}
}
}
Modified: webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser$1.html
URL: http://svn.apache.org/viewvc/webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser%241.html?rev=1731437&r1=1731436&r2=1731437&view=diff
==============================================================================
--- webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser$1.html (original)
+++ webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser$1.html Sat Feb 20 18:30:02 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>FOMParser.new StAXParserConfiguration() {...}</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Coverage Report</a> > <a href="index.html" class="el_package">org.apache.abdera.parser.stax</a> > <span class="el_class">FOMParser.new StAXParserConfiguration() {...}</span></div><h1>FOMParser.new StAXParserConfiguration() {.
..}</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></tr></thead><tfoot><tr><td>Total</td><td class="bar">2 of 11</td><td class="ctr2">82%</td><td class="bar">0 of 0</td><td c
lass="ctr2">n/a</td><td class="ctr1">1</td><td class="ctr2">3</td><td class="ctr1">1</td><td class="ctr2">5</td><td class="ctr1">1</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a1"><a href="FOMParser.java.html#L55" class="el_method">toString()</a></td><td class="bar" id="b0"><img src="../.resources/redbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">1</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="FOMParser.java.html#L48" class="el_method">configure(XMLInputFactory, StAXDialect)</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="120" height="10" title="6" alt="6"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0
</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i0">2</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="FOMParser.java.html#L1" class="el_method">{...}</a></td><td class="bar" id="b2"><img src="../.resources/greenbar.gif" width="60" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i1">2</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">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>FOMParser.new StAXParserConfiguration() {...}</title><script type="text/javascript" src="../.resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Coverage Report</a> > <a href="index.html" class="el_package">org.apache.abdera.parser.stax</a> > <span class="el_class">FOMParser.new StAXParserConfiguration() {...}</span></div><h1>FOMParser.new StAXParserConfiguration() {.
..}</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></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 11</td><td class="ctr2">100%</td><td class="bar">0 of 0</td><td
class="ctr2">n/a</td><td class="ctr1">0</td><td class="ctr2">3</td><td class="ctr1">0</td><td class="ctr2">5</td><td class="ctr1">0</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a0"><a href="FOMParser.java.html#L48" class="el_method">configure(XMLInputFactory, StAXDialect)</a></td><td class="bar" id="b0"><img src="../.resources/greenbar.gif" width="120" height="10" title="6" alt="6"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">0</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">2</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="FOMParser.java.html#L1" class="el_method">{...}</a></td><td class="bar" id="b1"><img src="../.resources/greenbar.gif" width="60" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0<
/td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">2</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a1"><a href="FOMParser.java.html#L55" class="el_method">toString()</a></td><td class="bar" id="b2"><img src="../.resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">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
Modified: webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser.java.html
URL: http://svn.apache.org/viewvc/webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser.java.html?rev=1731437&r1=1731436&r2=1731437&view=diff
==============================================================================
--- webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser.java.html (original)
+++ webservices/website/axiom-staging/code-coverage/org.apache.abdera.parser.stax/FOMParser.java.html Sat Feb 20 18:30:02 2016
@@ -52,7 +52,7 @@ public class FOMParser extends AbstractP
// This is used in log statements inside Axiom
@Override
public String toString() {
-<span class="nc" id="L55"> return "ABDERA";</span>
+<span class="fc" id="L55"> return "ABDERA";</span>
}
<span class="fc" id="L57"> };</span>