Show DatatypeElement.html syntax highlighted
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>dom4j - 1.6.1</title>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style">
</head>
<body>
<TABLE cellspacing="0" cellpadding="2"><TBODY>
<!-- C:\ Projects\ dom4j_1.x_branch\ dom4j\ src\ java\ org\ dom4j\ datatype\ DatatypeElement.java -->
<TR>
<TD colspan="6" class="reportHeader">
<TABLE width="100%"><TR>
<TD valign="top" class="titleText">Clover coverage report - dom4j - 1.6.1 <DIV class="timestamp"><b>Coverage timestamp:</b> ma mei 16 2005 14:23:01 GMT+01:00</DIV>
<DIV class="navBar"><a href="../../../pkgs-summary.html"><b>Overview</b></a> <a href="pkg-summary.html"><b>Package</b></a> <font class="navBarCurrent">File</font></DIV>
<DIV class="navBarLink">
<A HREF="../../../index.html" TARGET="_top">FRAMES</A>
<A HREF="DatatypeElement.html" TARGET="_top">NO FRAMES</A>
</DIV>
</TD>
<td class="headerStats" valign="top" width="40%" align="right">
<table align="right">
<tr>
<td nowrap><b>file stats:</b></td>
<td align="right"><b>LOC:</b></td>
<td align="right">207</td>
<td width="10%"> </td>
<td align="right"><b>Methods:</b></td>
<td align="right">16</td>
</tr>
<tr>
<td></td>
<td align="right"><b>NCLOC:</b></td>
<td align="right">95</td>
<td width="10%"> </td>
<td align="right"><b>Classes:</b></td>
<td align="right">1</td>
</tr>
</table>
</td>
</TR></TABLE>
</TD>
</TR>
<TR><TD class="hbreak" colspan="6"> </TD></TR>
<TR>
<TD class="graphHeaderLeft"><b> Source file</b></TD>
<TD class="graphHeader">Conditionals</TD>
<TD class="graphHeader">Statements</TD>
<TD class="graphHeader">Methods</TD>
<TD class="graphHeader" align="left" colspan="2"><B>TOTAL</B></TD>
</TR>
<TR>
<TD class="graphItem">
DatatypeElement.java
</TD>
<TD class="graphPercent" align="center">40%</TD>
<TD class="graphPercent" align="center">60,5%</TD>
<TD class="graphPercent" align="center">50%</TD>
<TD class="graphBarLeft" align="center"><B>54,7%</B></TD>
<TD class="graphBar">
<TABLE class="barGraph" cellspacing="0">
<TBODY>
<TR>
<TD class="covered"><img alt="coverage" src="../../../img/trans.gif"
width="109" height="12"></TD>
<TD class="uncovered"><img alt="coverage" src="../../../img/trans.gif"
width="91" height="12"></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY></TABLE><TABLE cellspacing="0" cellpadding="0" class="srcView"><TBODY>
<TR><TD align="right" class="lineCount">
1</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">/*</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
2</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
3</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> *</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
4</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * This software is open source.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
5</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * See the bottom of this file for the licence.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
6</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
7</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
8</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">package</span> org.dom4j.datatype;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
9</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
10</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> com.sun.msv.datatype.DatabindableDatatype;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
11</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> com.sun.msv.datatype.SerializationContext;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
12</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> com.sun.msv.datatype.xsd.XSDatatype;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
13</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
14</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Element;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
15</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Namespace;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
16</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.Node;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
17</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.QName;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
18</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.dom4j.tree.DefaultElement;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
19</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
20</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.relaxng.datatype.DatatypeException;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
21</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">import</span> org.relaxng.datatype.ValidationContext;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
22</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
23</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
24</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <p></span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
25</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <code>DatatypeElement</code> represents an Element which supports the <a</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
26</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * href="http://www.w3.org/TR/xmlschema-2/">XML Schema Data Types </a></span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
27</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * specification.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
28</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </p></span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
29</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
30</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@author</span> <a href="mailto:james.strachan@metastuff.com">James Strachan </a></span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
31</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@version</span> $Revision: 1.1 $</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
32</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
<A name="DatatypeElement"> 33</A></TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="keyword">public</span> <span class="keyword">class</span> DatatypeElement <span class="keyword">extends</span> DefaultElement <span class="keyword">implements</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
34</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> SerializationContext, ValidationContext {</SPAN></TD></TR><TR><TD align="right" class="lineCount">
35</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">/** The <code>XSDatatype</code> of the <code>Attribute</code> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
36</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="keyword">private</span> XSDatatype datatype;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
37</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
38</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">/** The data (Object) value of the <code>Attribute</code> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
39</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="keyword">private</span> Object data;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
40</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
41</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 41: method entered 1305 times."> 1305</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 41: method entered 1305 times."> <span class="keyword">public</span> DatatypeElement(QName qname, XSDatatype datatype) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
42</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 42: statement executed 1305 times."> 1305</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 42: statement executed 1305 times."> <span class="keyword">super</span>(qname);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
43</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 43: statement executed 1305 times."> 1305</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 43: statement executed 1305 times."> <span class="keyword">this</span>.datatype = datatype;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
44</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
45</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
46</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 46: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 46: method not entered."> <span class="keyword">public</span> DatatypeElement(QName qname, <span class="keyword">int</span> attributeCount, XSDatatype type) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
47</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 47: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 47: statement not executed."> <span class="keyword">super</span>(qname, attributeCount);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
48</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 48: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 48: statement not executed."> <span class="keyword">this</span>.datatype = type;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
49</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
50</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
51</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 51: method entered 1 time."> 1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 51: method entered 1 time."> <span class="keyword">public</span> String toString() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
52</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 52: statement executed 1 time."> 1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 52: statement executed 1 time."> <span class="keyword">return</span> getClass().getName() + hashCode() + <span class="string">" [Element: <"</span></A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
53</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> + getQualifiedName() + <span class="string">" attributes: "</span> + attributeList()</SPAN></TD></TR><TR><TD align="right" class="lineCount">
54</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> + <span class="string">" data: "</span> + getData() + <span class="string">" />]"</span>;</SPAN></TD></TR><TR><TD align="right" class="lineCount">
55</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
56</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
57</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
58</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Returns the MSV XSDatatype for this node</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
59</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
60</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@return</span> DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
61</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
62</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 62: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 62: method not entered."> <span class="keyword">public</span> XSDatatype getXSDatatype() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
63</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 63: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 63: statement not executed."> <span class="keyword">return</span> datatype;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
64</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
65</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
66</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// SerializationContext interface</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
67</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
68</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 68: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 68: method not entered."> <span class="keyword">public</span> String getNamespacePrefix(String uri) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
69</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 69: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 69: statement not executed."> Namespace namespace = getNamespaceForURI(uri);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
70</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
71</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 71: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 71: statement not executed."> <span class="keyword">return</span> (namespace != <span class="keyword">null</span>) ? namespace.getPrefix() : <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
72</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
73</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
74</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// ValidationContext interface</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
75</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
76</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 76: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 76: method not entered."> <span class="keyword">public</span> String getBaseUri() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
77</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// XXXX: could we use a Document for this?</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
78</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 78: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 78: statement not executed."> <span class="keyword">return</span> <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
79</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
80</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
81</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 81: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 81: method not entered."> <span class="keyword">public</span> <span class="keyword">boolean</span> isNotation(String notationName) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
82</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// XXXX: no way to do this yet in dom4j so assume false</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
83</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 83: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 83: statement not executed."> <span class="keyword">return</span> <span class="keyword">false</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
84</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
85</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
86</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 86: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 86: method not entered."> <span class="keyword">public</span> <span class="keyword">boolean</span> isUnparsedEntity(String entityName) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
87</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// XXXX: no way to do this yet in dom4j so assume valid</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
88</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 88: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 88: statement not executed."> <span class="keyword">return</span> <span class="keyword">true</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
89</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
90</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
91</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 91: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 91: method not entered."> <span class="keyword">public</span> String resolveNamespacePrefix(String prefix) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
92</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 92: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 92: statement not executed."> Namespace namespace = getNamespaceForPrefix(prefix);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
93</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
94</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 94: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 94: statement not executed."> <span class="keyword">if</span> (namespace != <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
95</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 95: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 95: statement not executed."> <span class="keyword">return</span> namespace.getURI();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
96</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
97</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
98</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 98: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 98: statement not executed."> <span class="keyword">return</span> <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
99</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
100</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
101</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// Element interface</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
102</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
103</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 103: method entered 75 times."> 75</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 103: method entered 75 times."> <span class="keyword">public</span> Object getData() {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
104</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 104: expression evaluated to true 75 times, false 0 times."> 75</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 104: expression evaluated to true 75 times, false 0 times."> <span class="keyword">if</span> (data == <span class="keyword">null</span>) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
105</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 105: statement executed 75 times."> 75</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 105: statement executed 75 times."> String text = getTextTrim();</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
106</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
107</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 107: statement executed 75 times."> 75</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 107: statement executed 75 times."> <span class="keyword">if</span> ((text != <span class="keyword">null</span>) && (text.length() > 0)) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
108</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 108: expression evaluated to true 74 times, false 0 times."> 74</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 108: expression evaluated to true 74 times, false 0 times."> <span class="keyword">if</span> (datatype <span class="keyword">instanceof</span> DatabindableDatatype) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
109</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 109: statement executed 74 times."> 74</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 109: statement executed 74 times."> DatabindableDatatype bind = (DatabindableDatatype) datatype;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
110</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 110: statement executed 74 times."> 74</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 110: statement executed 74 times."> data = bind.createJavaObject(text, <span class="keyword">this</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
111</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> } <span class="keyword">else</span> {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
112</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 112: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 112: statement not executed."> data = datatype.createValue(text, <span class="keyword">this</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
113</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
114</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
115</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
116</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
117</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 117: statement executed 75 times."> 75</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 117: statement executed 75 times."> <span class="keyword">return</span> data;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
118</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
119</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
120</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 120: method entered 2 times."> 2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 120: method entered 2 times."> <span class="keyword">public</span> <span class="keyword">void</span> setData(Object data) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
121</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 121: statement executed 2 times."> 2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 121: statement executed 2 times."> String s = datatype.convertToLexicalValue(data, <span class="keyword">this</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
122</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 122: statement executed 2 times."> 2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 122: statement executed 2 times."> validate(s);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
123</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 123: statement executed 2 times."> 2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 123: statement executed 2 times."> <span class="keyword">this</span>.data = data;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
124</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 124: statement executed 2 times."> 2</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 124: statement executed 2 times."> setText(s);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
125</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
126</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
127</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 127: method entered 1307 times."> 1307</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 127: method entered 1307 times."> <span class="keyword">public</span> Element addText(String text) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
128</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 128: statement executed 1307 times."> 1307</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 128: statement executed 1307 times."> validate(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
129</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
130</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 130: statement executed 1307 times."> 1307</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 130: statement executed 1307 times."> <span class="keyword">return</span> <span class="keyword">super</span>.addText(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
131</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
132</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
133</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 133: method entered 4 times."> 4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 133: method entered 4 times."> <span class="keyword">public</span> <span class="keyword">void</span> setText(String text) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
134</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 134: statement executed 4 times."> 4</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 134: statement executed 4 times."> validate(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
135</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 135: statement executed 3 times."> 3</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 135: statement executed 3 times."> <span class="keyword">super</span>.setText(text);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
136</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
137</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
138</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// Implementation methods</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
139</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">// -------------------------------------------------------------------------</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
140</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
141</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
142</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Override to force lazy recreation of data object</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
143</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
144</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@param</span> node</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
145</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
146</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
147</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 147: method entered 1307 times."> 1307</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 147: method entered 1307 times."> <span class="keyword">protected</span> <span class="keyword">void</span> childAdded(Node node) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
148</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 148: statement executed 1307 times."> 1307</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 148: statement executed 1307 times."> data = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
149</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 149: statement executed 1307 times."> 1307</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 149: statement executed 1307 times."> <span class="keyword">super</span>.childAdded(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
150</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
151</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
152</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> <span class="comment">/**</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
153</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Override to force lazy recreation of data object</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
154</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
155</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * <span class="javadoc">@param</span> node</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
156</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * DOCUMENT ME!</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
157</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
158</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 158: method not entered."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 158: method not entered."> <span class="keyword">protected</span> <span class="keyword">void</span> childRemoved(Node node) {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
159</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 159: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 159: statement not executed."> data = <span class="keyword">null</span>;</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
160</TD>
<TD align="right" class="coverageCountHilight">
<A title="Line 160: statement not executed."> 0</A>
</TD><TD class="srcCell"><SPAN class="srcLineHilight"><A title="Line 160: statement not executed."> <span class="keyword">super</span>.childRemoved(node);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
161</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
162</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
163</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 163: method entered 1313 times."> 1313</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 163: method entered 1313 times."> <span class="keyword">protected</span> <span class="keyword">void</span> validate(String text) <span class="keyword">throws</span> IllegalArgumentException {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
164</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 164: statement executed 1313 times."> 1313</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 164: statement executed 1313 times."> <span class="keyword">try</span> {</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
165</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 165: statement executed 1313 times."> 1313</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 165: statement executed 1313 times."> datatype.checkValid(text, <span class="keyword">this</span>);</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
166</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> } <span class="keyword">catch</span> (DatatypeException e) {</SPAN></TD></TR><TR><TD align="right" class="lineCountHilight">
167</TD>
<TD align="right" class="lineCountHilight">
<A title="Line 167: statement executed 1 time."> 1</A>
</TD><TD class="srcCell"><SPAN class="srcLine"><A title="Line 167: statement executed 1 time."> <span class="keyword">throw</span> <span class="keyword">new</span> IllegalArgumentException(e.getMessage());</A>
</SPAN></TD></TR><TR><TD align="right" class="lineCount">
168</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
169</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"> }</SPAN></TD></TR><TR><TD align="right" class="lineCount">
170</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine">}</SPAN></TD></TR><TR><TD align="right" class="lineCount">
171</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"></SPAN></TD></TR><TR><TD align="right" class="lineCount">
172</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment">/*</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
173</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Redistribution and use of this software and associated documentation</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
174</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ("Software"), with or without modification, are permitted provided that the</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
175</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * following conditions are met:</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
176</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
177</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 1. Redistributions of source code must retain copyright statements and</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
178</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * notices. Redistributions must also contain a copy of this document.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
179</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
180</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
181</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * this list of conditions and the following disclaimer in the documentation</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
182</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * and/or other materials provided with the distribution.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
183</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
184</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 3. The name "DOM4J" must not be used to endorse or promote products derived</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
185</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * from this Software without prior written permission of MetaStuff, Ltd. For</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
186</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * written permission, please contact dom4j-info@metastuff.com.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
187</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
188</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 4. Products derived from this Software may not be called "DOM4J" nor may</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
189</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * "DOM4J" appear in their names without prior written permission of MetaStuff,</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
190</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
191</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
192</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
193</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
194</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
195</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
196</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
197</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
198</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
199</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
200</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
201</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
202</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
203</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
204</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
205</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * </span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
206</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.</span></SPAN></TD></TR><TR><TD align="right" class="lineCount">
207</TD>
<TD align="right" class="coverageCount">
</TD><TD class="srcCell"><SPAN class="srcLine"><span class="comment"> */</span></SPAN></TD></TR></TBODY></TABLE>
<TABLE width="100%"><TR><TD class="hbreak" colspan="6"> </TD></TR>
<TR><TD class="footer" colspan="6">
<table>
<tr>
<td><a target="_new" href="http://www.cenqua.com/clover"><img alt="Clover" src="../../../img/logo.gif" border="0"></a></td><td nowrap><i>Report generated by </i><a target="_new" href="http://www.cenqua.com/clover">Clover Code Coverage v1.3.5</a><i><BR>ma mei 16 2005 14:23:02 GMT+01:00</i>.</td>
<td> </td><td style="BORDER-LEFT: #9c9c9c 1px solid;"> </td><td>Open Source License registered to the dom4j Project. This license of Clover is provided to support the development of dom4j only. </td>
</tr>
</table>
</td>
</tr></TABLE>
See more files for this project here