blob: 404d795c4ad11b9ad0c20aa617d8073f853e4b2d [file] [log] [blame]
<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"/><TITLE>EMMA Coverage Report</TITLE><STYLE TYPE="text/css"> TABLE,TD,TH {border-style:solid; border-color:black;} TD,TH {background:white;margin:0;line-height:100%;padding-left:0.5em;padding-right:0.5em;} TD {border-width:0 1px 0 0;} TH {border-width:1px 1px 1px 0;} TR TD.h {color:red;} TABLE {border-spacing:0; border-collapse:collapse;border-width:0 0 1px 1px;} P,H1,H2,H3,TH {font-family:verdana,arial,sans-serif;font-size:10pt;} TD {font-family:courier,monospace;font-size:10pt;} TABLE.hdft {border-spacing:0;border-collapse:collapse;border-style:none;} TABLE.hdft TH,TABLE.hdft TD {border-style:none;line-height:normal;} TABLE.hdft TH.tl,TABLE.hdft TD.tl {background:#6699CC;color:white;} TABLE.hdft TD.nv {background:#6633DD;color:white;} .nv A:link {color:white;} .nv A:visited {color:white;} .nv A:active {color:yellow;} TABLE.hdft A:link {color:white;} TABLE.hdft A:visited {color:white;} TABLE.hdft A:active {color:yellow;} .in {color:#356085;} TABLE.s TD {padding-left:0.25em;padding-right:0.25em;} TABLE.s TD.l {padding-left:0.25em;padding-right:0.25em;text-align:right;background:#F0F0F0;} TABLE.s TR.z TD {background:#FF9999;} TABLE.s TR.p TD {background:#FFFF88;} TABLE.s TR.c TD {background:#CCFFCC;} A:link {color:#0000EE;text-decoration:none;} A:visited {color:#0000EE;text-decoration:none;} A:hover {color:#0000EE;text-decoration:underline;} TABLE.cn {border-width:0 0 1px 0;} TABLE.s {border-width:1px 0 1px 1px;} TD.h {color:red;border-width:0 1px 0 0;} TD.f {border-width:0 1px 0 1px;} TD.hf {color:red;border-width:0 1px 0 1px;} TH.f {border-width:1px 1px 1px 1px;} TR.cis TD {background:#F0F0F0;} TR.cis TD {border-width:1px 1px 1px 0;} TR.cis TD.h {color:red;border-width:1px 1px 1px 0;} TR.cis TD.f {border-width:1px 1px 1px 1px;} TR.cis TD.hf {color:red;border-width:1px 1px 1px 1px;} TD.b {border-style:none;background:transparent;line-height:50%;} TD.bt {border-width:1px 0 0 0;background:transparent;line-height:50%;} TR.o TD {background:#F0F0F0;}TABLE.it {border-style:none;}TABLE.it TD,TABLE.it TH {border-style:none;}</STYLE></HEAD><BODY><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="tl"><A HREF="http://www.eclemma.org/">EMMA</A> Coverage Report (generated Fri Feb 20 18:44:54 GMT 2009)</TH></TR><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="c1.html">org.eclipse.wst.xsl.core.internal.modelhandler</A>]</TD></TR></TABLE><H2>COVERAGE SUMMARY FOR SOURCE FILE [<SPAN CLASS="in">ModelHandlerForXSL.java</SPAN>]</H2><TABLE CELLSPACING="0" WIDTH="100%"><TR><TH>name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD>ModelHandlerForXSL.java</TD><TD>100% (1/1)</TD><TD>80%  (4/5)</TD><TD>85%  (22/26)</TD><TD>90%  (9/10)</TD></TR></TABLE><H3>COVERAGE BREAKDOWN BY CLASS AND METHOD</H3><TABLE CLASS="cn" CELLSPACING="0" WIDTH="100%"><TR><TH CLASS="f">name</TH><TH>class, %</TH><TH>method, %</TH><TH>block, %</TH><TH>line, %</TH></TR><TR><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD><TD CLASS="b"> </TD></TR><TR CLASS="cis"><TD CLASS="f">class <A HREF="#0">ModelHandlerForXSL</A></TD><TD>100% (1/1)</TD><TD>80%  (4/5)</TD><TD>85%  (22/26)</TD><TD>90%  (9/10)</TD></TR><TR><TD CLASS="f"><A HREF="#1">getEncodingDetector (): IDocumentCharsetDetector</A></TD><TD> </TD><TD CLASS="h">0%   (0/1)</TD><TD CLASS="h">0%   (0/4)</TD><TD CLASS="h">0%   (0/1)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#0">&lt;static initializer&gt;</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (5/5)</TD><TD>100% (3/3)</TD></TR><TR><TD CLASS="f"><A HREF="#3">ModelHandlerForXSL (): void</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (9/9)</TD><TD>100% (4/4)</TD></TR><TR CLASS="o"><TD CLASS="f"><A HREF="#4">getDocumentLoader (): IDocumentLoader</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (4/4)</TD><TD>100% (1/1)</TD></TR><TR><TD CLASS="f"><A HREF="#5">getModelLoader (): IModelLoader</A></TD><TD> </TD><TD>100% (1/1)</TD><TD>100% (4/4)</TD><TD>100% (1/1)</TD></TR></TABLE><P></P><TABLE CLASS="s" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="l">1</TD><TD>/*******************************************************************************</TD></TR><TR><TD CLASS="l">2</TD><TD> * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.</TD></TR><TR><TD CLASS="l">3</TD><TD> * All rights reserved. This program and the accompanying materials</TD></TR><TR><TD CLASS="l">4</TD><TD> * are made available under the terms of the Eclipse Public License v1.0</TD></TR><TR><TD CLASS="l">5</TD><TD> * which accompanies this distribution, and is available at</TD></TR><TR><TD CLASS="l">6</TD><TD> * http://www.eclipse.org/legal/epl-v10.html</TD></TR><TR><TD CLASS="l">7</TD><TD> *</TD></TR><TR><TD CLASS="l">8</TD><TD> * Contributors:</TD></TR><TR><TD CLASS="l">9</TD><TD> *     David Carver - initial API and implementation</TD></TR><TR><TD CLASS="l">10</TD><TD> *     </TD></TR><TR><TD CLASS="l">11</TD><TD> *******************************************************************************/</TD></TR><TR><TD CLASS="l">12</TD><TD> </TD></TR><TR><TD CLASS="l">13</TD><TD>package org.eclipse.wst.xsl.core.internal.modelhandler;</TD></TR><TR><TD CLASS="l">14</TD><TD> </TD></TR><TR><TD CLASS="l">15</TD><TD>import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector;</TD></TR><TR><TD CLASS="l">16</TD><TD>import org.eclipse.wst.sse.core.internal.document.IDocumentLoader;</TD></TR><TR><TD CLASS="l">17</TD><TD>import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler;</TD></TR><TR><TD CLASS="l">18</TD><TD>import org.eclipse.wst.sse.core.internal.provisional.IModelLoader;</TD></TR><TR><TD CLASS="l">19</TD><TD>import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector;</TD></TR><TR><TD CLASS="l">20</TD><TD>import org.eclipse.wst.xml.core.internal.modelhandler.ModelHandlerForXML;</TD></TR><TR><TD CLASS="l">21</TD><TD>import org.eclipse.wst.xsl.core.XSLCore;</TD></TR><TR><TD CLASS="l">22</TD><TD>import org.eclipse.wst.xsl.core.internal.encoding.XSLDocumentLoader;</TD></TR><TR><TD CLASS="l">23</TD><TD> </TD></TR><TR><TD CLASS="l">24</TD><TD> </TD></TR><TR><TD CLASS="l">25</TD><TD>/**</TD></TR><TR><TD CLASS="l">26</TD><TD> * Provides generic XML model handling. It is also marked as the default</TD></TR><TR><TD CLASS="l">27</TD><TD> * content type handler. There should be only one implementation of the</TD></TR><TR><TD CLASS="l">28</TD><TD> * default.</TD></TR><TR><TD CLASS="l">29</TD><TD> */</TD></TR><TR CLASS="c"><TD CLASS="l">30</TD><TD>public class ModelHandlerForXSL extends ModelHandlerForXML implements IModelHandler {</TD></TR><TR><TD CLASS="l"><A NAME="0">31</A></TD><TD>        /**</TD></TR><TR><TD CLASS="l">32</TD><TD>         * Needs to match what's in plugin registry. In fact, can be overwritten</TD></TR><TR><TD CLASS="l">33</TD><TD>         * at run time with what's in registry! (so should never be 'final')</TD></TR><TR><TD CLASS="l">34</TD><TD>         */</TD></TR><TR CLASS="c"><TD CLASS="l">35</TD><TD>        static String AssociatedContentTypeID = XSLCore.XSL_CONTENT_TYPE;</TD></TR><TR><TD CLASS="l">36</TD><TD>        /**</TD></TR><TR><TD CLASS="l">37</TD><TD>         * Needs to match what's in plugin registry. In fact, can be overwritten</TD></TR><TR><TD CLASS="l">38</TD><TD>         * at run time with what's in registry! (so should never be 'final')</TD></TR><TR><TD CLASS="l"><A NAME="3">39</A></TD><TD>         */</TD></TR><TR CLASS="c"><TD CLASS="l">40</TD><TD>        private static String ModelHandlerID = &#34;org.eclipse.wst.xsl.core.modelhandler&#34;; //$NON-NLS-1$</TD></TR><TR><TD CLASS="l">41</TD><TD> </TD></TR><TR><TD CLASS="l">42</TD><TD>        public ModelHandlerForXSL() {</TD></TR><TR CLASS="c"><TD CLASS="l">43</TD><TD>                super();        </TD></TR><TR CLASS="c"><TD CLASS="l">44</TD><TD>                setId(ModelHandlerID);</TD></TR><TR CLASS="c"><TD CLASS="l">45</TD><TD>                setAssociatedContentTypeId(AssociatedContentTypeID);</TD></TR><TR CLASS="c"><TD CLASS="l"><A NAME="4">46</A></TD><TD>        }</TD></TR><TR><TD CLASS="l">47</TD><TD> </TD></TR><TR><TD CLASS="l">48</TD><TD>        @Override</TD></TR><TR><TD CLASS="l">49</TD><TD>        public IDocumentLoader getDocumentLoader() {</TD></TR><TR CLASS="c"><TD CLASS="l">50</TD><TD>                return new XSLDocumentLoader();</TD></TR><TR><TD CLASS="l"><A NAME="1">51</A></TD><TD>        }</TD></TR><TR><TD CLASS="l">52</TD><TD> </TD></TR><TR><TD CLASS="l">53</TD><TD>        @Override</TD></TR><TR><TD CLASS="l">54</TD><TD>        public IDocumentCharsetDetector getEncodingDetector() {</TD></TR><TR CLASS="z"><TD CLASS="l">55</TD><TD>                return new XMLDocumentCharsetDetector();</TD></TR><TR><TD CLASS="l"><A NAME="5">56</A></TD><TD>        }</TD></TR><TR><TD CLASS="l">57</TD><TD> </TD></TR><TR><TD CLASS="l">58</TD><TD>        @Override</TD></TR><TR><TD CLASS="l">59</TD><TD>        public IModelLoader getModelLoader() {</TD></TR><TR CLASS="c"><TD CLASS="l">60</TD><TD>                return new XSLModelLoader();</TD></TR><TR><TD CLASS="l">61</TD><TD>        }</TD></TR><TR><TD CLASS="l">62</TD><TD> </TD></TR><TR><TD CLASS="l">63</TD><TD>}</TD></TR></TABLE><P></P><TABLE CLASS="hdft" CELLSPACING="0" WIDTH="100%"><TR><TD CLASS="nv">[<A HREF="../xslUnitTestCoverage.html">all classes</A>][<A HREF="c1.html">org.eclipse.wst.xsl.core.internal.modelhandler</A>]</TD></TR><TR><TD CLASS="tl"><A HREF="http://www.eclemma.org/support.html">EMMA 2.0.5312 EclEmma Fix 1</A> (C) Vladimir Roubtsov</TD></TR></TABLE></BODY></HTML>