jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From field...@apache.org
Subject svn commit: r149514 [11/13] - in incubator/jackrabbit/site: ./ apidocs/ apidocs/org/apache/jackrabbit/core/ apidocs/org/apache/jackrabbit/core/class-use/ apidocs/org/apache/jackrabbit/core/search/ apidocs/org/apache/jackrabbit/core/search/class-use/ apidocs/org/apache/jackrabbit/core/state/class-use/ apidocs/org/apache/jackrabbit/core/state/mem/ apidocs/org/apache/jackrabbit/core/state/obj/ apidocs/org/apache/jackrabbit/core/state/xml/ apidocs/org/apache/jackrabbit/core/version/ apidocs/org/apache/jackrabbit/core/xml/ xref-test/ xref-test/org/apache/jackrabbit/test/ xref-test/org/apache/jackrabbit/test/search/ xref/ xref/org/apache/jackrabbit/core/ xref/org/apache/jackrabbit/core/nodetype/ xref/org/apache/jackrabbit/core/search/ xref/org/apache/jackrabbit/core/search/lucene/ xref/org/apache/jackrabbit/core/version/
Date Wed, 02 Feb 2005 14:05:11 GMT
Modified: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/PropertyImpl.html
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/PropertyImpl.html?view=diff&r1=149513&r2=149514
==============================================================================
--- incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/PropertyImpl.html (original)
+++ incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/PropertyImpl.html Wed Feb  2 06:04:46 2005
@@ -191,8 +191,8 @@
 <a name="182" href="#182">182</a>         <em class="comment">// check state of this instance</em>
 <a name="183" href="#183">183</a>         sanityCheck();
 <a name="184" href="#184">184</a> 
-<a name="185" href="#185">185</a>         <em class="comment">// check if versioning allows write</em>
-<a name="186" href="#186">186</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="185" href="#185">185</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="186" href="#186">186</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="187" href="#187">187</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="188" href="#188">188</a>         }
 <a name="189" href="#189">189</a> 
@@ -244,8 +244,8 @@
 <a name="235" href="#235">235</a>         <em class="comment">// check state of this instance</em>
 <a name="236" href="#236">236</a>         sanityCheck();
 <a name="237" href="#237">237</a> 
-<a name="238" href="#238">238</a>         <em class="comment">// check if versioning allows write</em>
-<a name="239" href="#239">239</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="238" href="#238">238</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="239" href="#239">239</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="240" href="#240">240</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="241" href="#241">241</a>         }
 <a name="242" href="#242">242</a> 
@@ -536,8 +536,8 @@
 <a name="527" href="#527">527</a>         <em class="comment">// check state of this instance</em>
 <a name="528" href="#528">528</a>         sanityCheck();
 <a name="529" href="#529">529</a> 
-<a name="530" href="#530">530</a>         <em class="comment">// check if versioning allows write</em>
-<a name="531" href="#531">531</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="530" href="#530">530</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="531" href="#531">531</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="532" href="#532">532</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="533" href="#533">533</a>         }
 <a name="534" href="#534">534</a> 
@@ -583,8 +583,8 @@
 <a name="574" href="#574">574</a>         <em class="comment">// check state of this instance</em>
 <a name="575" href="#575">575</a>         sanityCheck();
 <a name="576" href="#576">576</a> 
-<a name="577" href="#577">577</a>         <em class="comment">// check if versioning allows write</em>
-<a name="578" href="#578">578</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="577" href="#577">577</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="578" href="#578">578</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="579" href="#579">579</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="580" href="#580">580</a>         }
 <a name="581" href="#581">581</a> 
@@ -625,8 +625,8 @@
 <a name="616" href="#616">616</a>         <em class="comment">// check state of this instance</em>
 <a name="617" href="#617">617</a>         sanityCheck();
 <a name="618" href="#618">618</a> 
-<a name="619" href="#619">619</a>         <em class="comment">// check if versioning allows write</em>
-<a name="620" href="#620">620</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="619" href="#619">619</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="620" href="#620">620</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="621" href="#621">621</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="622" href="#622">622</a>         }
 <a name="623" href="#623">623</a> 
@@ -678,8 +678,8 @@
 <a name="669" href="#669">669</a>         <em class="comment">// check state of this instance</em>
 <a name="670" href="#670">670</a>         sanityCheck();
 <a name="671" href="#671">671</a> 
-<a name="672" href="#672">672</a>         <em class="comment">// check if versioning allows write</em>
-<a name="673" href="#673">673</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="672" href="#672">672</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="673" href="#673">673</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="674" href="#674">674</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="675" href="#675">675</a>         }
 <a name="676" href="#676">676</a> 
@@ -724,8 +724,8 @@
 <a name="715" href="#715">715</a>         <em class="comment">// check state of this instance</em>
 <a name="716" href="#716">716</a>         sanityCheck();
 <a name="717" href="#717">717</a> 
-<a name="718" href="#718">718</a>         <em class="comment">// check if versioning allows write</em>
-<a name="719" href="#719">719</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="718" href="#718">718</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="719" href="#719">719</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="720" href="#720">720</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="721" href="#721">721</a>         }
 <a name="722" href="#722">722</a> 
@@ -777,8 +777,8 @@
 <a name="768" href="#768">768</a>         <em class="comment">// check state of this instance</em>
 <a name="769" href="#769">769</a>         sanityCheck();
 <a name="770" href="#770">770</a> 
-<a name="771" href="#771">771</a>         <em class="comment">// check if versioning allows write</em>
-<a name="772" href="#772">772</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="771" href="#771">771</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="772" href="#772">772</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="773" href="#773">773</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="774" href="#774">774</a>         }
 <a name="775" href="#775">775</a> 
@@ -819,8 +819,8 @@
 <a name="810" href="#810">810</a>         <em class="comment">// check state of this instance</em>
 <a name="811" href="#811">811</a>         sanityCheck();
 <a name="812" href="#812">812</a> 
-<a name="813" href="#813">813</a>         <em class="comment">// check if versioning allows write</em>
-<a name="814" href="#814">814</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="813" href="#813">813</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="814" href="#814">814</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="815" href="#815">815</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="816" href="#816">816</a>         }
 <a name="817" href="#817">817</a> 
@@ -873,8 +873,8 @@
 <a name="864" href="#864">864</a>         <em class="comment">// check state of this instance</em>
 <a name="865" href="#865">865</a>         sanityCheck();
 <a name="866" href="#866">866</a> 
-<a name="867" href="#867">867</a>         <em class="comment">// check if versioning allows write</em>
-<a name="868" href="#868">868</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="867" href="#867">867</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="868" href="#868">868</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="869" href="#869">869</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="870" href="#870">870</a>         }
 <a name="871" href="#871">871</a> 
@@ -915,8 +915,8 @@
 <a name="906" href="#906">906</a>         <em class="comment">// check state of this instance</em>
 <a name="907" href="#907">907</a>         sanityCheck();
 <a name="908" href="#908">908</a> 
-<a name="909" href="#909">909</a>         <em class="comment">// check if versioning allows write</em>
-<a name="910" href="#910">910</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="909" href="#909">909</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="910" href="#910">910</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="911" href="#911">911</a>             String msg = <span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath();
 <a name="912" href="#912">912</a>             log.error(msg);
 <a name="913" href="#913">913</a>             <strong>throw</strong> <strong>new</strong> VersionException(msg);
@@ -963,8 +963,8 @@
 <a name="954" href="#954">954</a>         <em class="comment">// check state of this instance</em>
 <a name="955" href="#955">955</a>         sanityCheck();
 <a name="956" href="#956">956</a> 
-<a name="957" href="#957">957</a>         <em class="comment">// check if versioning allows write</em>
-<a name="958" href="#958">958</a>         <strong>if</strong> (!((NodeImpl) getParent()).isCheckedOut(false)) { <em class="comment">// only cheap call yet</em>
+<a name="957" href="#957">957</a>         <em class="comment">// verify that parent node is checked-out</em>
+<a name="958" href="#958">958</a>         <strong>if</strong> (!((NodeImpl) getParent()).internalIsCheckedOut()) {
 <a name="959" href="#959">959</a>             <strong>throw</strong> <strong>new</strong> VersionException(<span class="string">"cannot set the value of a property of a checked-in node "</span> + safeGetJCRPath());
 <a name="960" href="#960">960</a>         }
 <a name="961" href="#961">961</a> 

Modified: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/SessionImpl.html
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/SessionImpl.html?view=diff&r1=149513&r2=149514
==============================================================================
--- incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/SessionImpl.html (original)
+++ incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/SessionImpl.html Wed Feb  2 06:04:46 2005
@@ -838,8 +838,8 @@
 <a name="829" href="#829">829</a>         }
 <a name="830" href="#830">830</a>         <a href="../../../../org/apache/jackrabbit/core/NodeImpl.html">NodeImpl</a> parent = (NodeImpl) item;
 <a name="831" href="#831">831</a> 
-<a name="832" href="#832">832</a>         <em class="comment">// check if versioning allows write (only cheap call)</em>
-<a name="833" href="#833">833</a>         <strong>if</strong> (!parent.isCheckedOut(false)) {
+<a name="832" href="#832">832</a>         <em class="comment">// verify that parent node is checked-out </em>
+<a name="833" href="#833">833</a>         <strong>if</strong> (!parent.internalIsCheckedOut()) {
 <a name="834" href="#834">834</a>             String msg = parentAbsPath + <span class="string">": cannot add a child to a checked-in node"</span>;
 <a name="835" href="#835">835</a>             log.error(msg);
 <a name="836" href="#836">836</a>             <strong>throw</strong> <strong>new</strong> VersionException(msg);

Modified: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/WorkspaceImpl.html
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/WorkspaceImpl.html?view=diff&r1=149513&r2=149514
==============================================================================
--- incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/WorkspaceImpl.html (original)
+++ incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/WorkspaceImpl.html Wed Feb  2 06:04:46 2005
@@ -121,7 +121,7 @@
 <a name="112" href="#112">112</a>         <strong>return</strong> rep;
 <a name="113" href="#113">113</a>     }
 <a name="114" href="#114">114</a> 
-<a name="115" href="#115">115</a>     <strong>public</strong> <a href="../../../../org/apache/jackrabbit/core/state/LocalItemStateManager.html">LocalItemStateManager</a> getItemStateManager() {
+<a name="115" href="#115">115</a>     <a href="../../../../org/apache/jackrabbit/core/state/LocalItemStateManager.html">LocalItemStateManager</a> getItemStateManager() {
 <a name="116" href="#116">116</a>         <strong>return</strong> stateMgr;
 <a name="117" href="#117">117</a>     }
 <a name="118" href="#118">118</a> 

Modified: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.html
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.html?view=diff&r1=149513&r2=149514
==============================================================================
--- incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.html (original)
+++ incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeDefStore.html Wed Feb  2 06:04:46 2005
@@ -55,13 +55,13 @@
 <a name="46" href="#46">46</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String ROOT_ELEMENT = <span class="string">"nodeTypes"</span>;
 <a name="47" href="#47">47</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String NODETYPE_ELEMENT = <span class="string">"nodeType"</span>;
 <a name="48" href="#48">48</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String NAME_ATTRIBUTE = <span class="string">"name"</span>;
-<a name="49" href="#49">49</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String MIXIN_ATTRIBUTE = <span class="string">"mixin"</span>;
+<a name="49" href="#49">49</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String ISMIXIN_ATTRIBUTE = <span class="string">"isMixin"</span>;
 <a name="50" href="#50">50</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String ORDERABLECHILDNODES_ATTRIBUTE = <span class="string">"orderableChildNodes"</span>;
 <a name="51" href="#51">51</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String PRIMARYITEMNAME_ATTRIBUTE = <span class="string">"primaryItemName"</span>;
 <a name="52" href="#52">52</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String SUPERTYPES_ELEMENT = <span class="string">"supertypes"</span>;
 <a name="53" href="#53">53</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String SUPERTYPE_ELEMENT = <span class="string">"supertype"</span>;
 <a name="54" href="#54">54</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String PROPERTYDEF_ELEMENT = <span class="string">"propertyDef"</span>;
-<a name="55" href="#55">55</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String TYPE_ATTRIBUTE = <span class="string">"type"</span>;
+<a name="55" href="#55">55</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String REQUIREDTYPE_ATTRIBUTE = <span class="string">"requiredType"</span>;
 <a name="56" href="#56">56</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String VALUECONSTRAINTS_ELEMENT = <span class="string">"valueConstraints"</span>;
 <a name="57" href="#57">57</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String VALUECONSTRAINT_ELEMENT = <span class="string">"valueConstraint"</span>;
 <a name="58" href="#58">58</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> String DEFAULTVALUES_ELEMENT = <span class="string">"defaultValues"</span>;
@@ -265,8 +265,8 @@
 <a name="256" href="#256">256</a>             }
 <a name="257" href="#257">257</a>         }
 <a name="258" href="#258">258</a> 
-<a name="259" href="#259">259</a>         <em class="comment">// mixin</em>
-<a name="260" href="#260">260</a>         String mixin = ntElem.getAttributeValue(MIXIN_ATTRIBUTE);
+<a name="259" href="#259">259</a>         <em class="comment">// isMixin</em>
+<a name="260" href="#260">260</a>         String mixin = ntElem.getAttributeValue(ISMIXIN_ATTRIBUTE);
 <a name="261" href="#261">261</a>         <strong>if</strong> (mixin != <strong>null</strong> &amp;&amp; mixin.length() > 0) {
 <a name="262" href="#262">262</a>             ntDef.setMixin(Boolean.valueOf(mixin).booleanValue());
 <a name="263" href="#263">263</a>         }
@@ -310,8 +310,8 @@
 <a name="301" href="#301">301</a>             } <strong>else</strong> {
 <a name="302" href="#302">302</a>                 pd.setName(ChildItemDef.ANY_NAME);
 <a name="303" href="#303">303</a>             }
-<a name="304" href="#304">304</a>             <em class="comment">// type</em>
-<a name="305" href="#305">305</a>             String typeName = elem.getAttributeValue(TYPE_ATTRIBUTE);
+<a name="304" href="#304">304</a>             <em class="comment">// requiredType</em>
+<a name="305" href="#305">305</a>             String typeName = elem.getAttributeValue(REQUIREDTYPE_ATTRIBUTE);
 <a name="306" href="#306">306</a>             <strong>int</strong> type = PropertyType.UNDEFINED;
 <a name="307" href="#307">307</a>             <strong>if</strong> (typeName != <strong>null</strong> &amp;&amp; typeName.length() > 0) {
 <a name="308" href="#308">308</a>                 <strong>try</strong> {
@@ -525,8 +525,8 @@
 <a name="516" href="#516">516</a>                 }
 <a name="517" href="#517">517</a>             }
 <a name="518" href="#518">518</a> 
-<a name="519" href="#519">519</a>             <em class="comment">// mixin</em>
-<a name="520" href="#520">520</a>             ntElem.setAttribute(MIXIN_ATTRIBUTE, Boolean.toString(ntd.isMixin()));
+<a name="519" href="#519">519</a>             <em class="comment">// isMixin</em>
+<a name="520" href="#520">520</a>             ntElem.setAttribute(ISMIXIN_ATTRIBUTE, Boolean.toString(ntd.isMixin()));
 <a name="521" href="#521">521</a> 
 <a name="522" href="#522">522</a>             <em class="comment">// orderableChildNodes</em>
 <a name="523" href="#523">523</a>             ntElem.setAttribute(ORDERABLECHILDNODES_ATTRIBUTE, Boolean.toString(ntd.hasOrderableChildNodes()));
@@ -545,8 +545,8 @@
 <a name="536" href="#536">536</a>                 <em class="comment">// name</em>
 <a name="537" href="#537">537</a>                 String name = pd.definesResidual() ? WILDCARD : pd.getName().toJCRName(nsResolver);
 <a name="538" href="#538">538</a>                 elem.setAttribute(NAME_ATTRIBUTE, name);
-<a name="539" href="#539">539</a>                 <em class="comment">// type</em>
-<a name="540" href="#540">540</a>                 elem.setAttribute(TYPE_ATTRIBUTE, PropertyType.nameFromValue(pd.getRequiredType()));
+<a name="539" href="#539">539</a>                 <em class="comment">// requiredType</em>
+<a name="540" href="#540">540</a>                 elem.setAttribute(REQUIREDTYPE_ATTRIBUTE, PropertyType.nameFromValue(pd.getRequiredType()));
 <a name="541" href="#541">541</a>                 <em class="comment">// valueConstraints</em>
 <a name="542" href="#542">542</a>                 <a href="../../../../../org/apache/jackrabbit/core/nodetype/ValueConstraint.html">ValueConstraint</a>[] vca = pd.getValueConstraints();
 <a name="543" href="#543">543</a>                 <strong>if</strong> (vca != <strong>null</strong> &amp;&amp; vca.length != 0) {

Modified: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.html
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.html?view=diff&r1=149513&r2=149514
==============================================================================
--- incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.html (original)
+++ incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.html Wed Feb  2 06:04:46 2005
@@ -302,244 +302,245 @@
 <a name="293" href="#293">293</a> <em>     */</em>
 <a name="294" href="#294">294</a>     <strong>public</strong> String getPrimaryItemName() {
 <a name="295" href="#295">295</a>         <strong>try</strong> {
-<a name="296" href="#296">296</a>             <strong>return</strong> ntd.getPrimaryItemName().toJCRName(nsResolver);
-<a name="297" href="#297">297</a>         } <strong>catch</strong> (NoPrefixDeclaredException npde) {
-<a name="298" href="#298">298</a>             <em class="comment">// should never get here</em>
-<a name="299" href="#299">299</a>             log.error(<span class="string">"encountered unregistered namespace in name of primary item"</span>, npde);
-<a name="300" href="#300">300</a>             <strong>return</strong> ntd.getName().toString();
-<a name="301" href="#301">301</a>         }
-<a name="302" href="#302">302</a>     }
-<a name="303" href="#303">303</a> 
-<a name="304" href="#304">304</a>     <em>/**<em>*</em></em>
-<a name="305" href="#305">305</a> <em>     * @see NodeType#isMixin</em>
-<a name="306" href="#306">306</a> <em>     */</em>
-<a name="307" href="#307">307</a>     <strong>public</strong> <strong>boolean</strong> isMixin() {
-<a name="308" href="#308">308</a>         <strong>return</strong> ntd.isMixin();
-<a name="309" href="#309">309</a>     }
-<a name="310" href="#310">310</a> 
-<a name="311" href="#311">311</a>     <em>/**<em>*</em></em>
-<a name="312" href="#312">312</a> <em>     * @see NodeType#isNodeType(String)</em>
-<a name="313" href="#313">313</a> <em>     */</em>
-<a name="314" href="#314">314</a>     <strong>public</strong> <strong>boolean</strong> isNodeType(String nodeTypeName) {
-<a name="315" href="#315">315</a>         <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> ntName;
-<a name="316" href="#316">316</a>         <strong>try</strong> {
-<a name="317" href="#317">317</a>             ntName = QName.fromJCRName(nodeTypeName, nsResolver);
-<a name="318" href="#318">318</a>         } <strong>catch</strong> (IllegalNameException ine) {
-<a name="319" href="#319">319</a>             log.warn(<span class="string">"invalid node type name: "</span> + nodeTypeName, ine);
-<a name="320" href="#320">320</a>             <strong>return</strong> false;
-<a name="321" href="#321">321</a>         } <strong>catch</strong> (UnknownPrefixException upe) {
-<a name="322" href="#322">322</a>             log.warn(<span class="string">"invalid node type name: "</span> + nodeTypeName, upe);
-<a name="323" href="#323">323</a>             <strong>return</strong> false;
-<a name="324" href="#324">324</a>         }
-<a name="325" href="#325">325</a>         <strong>if</strong> (getQName().equals(ntName) || isDerivedFrom(ntName)) {
-<a name="326" href="#326">326</a>             <strong>return</strong> <strong>true</strong>;
-<a name="327" href="#327">327</a>         } <strong>else</strong> {
-<a name="328" href="#328">328</a>             <strong>return</strong> false;
-<a name="329" href="#329">329</a>         }
-<a name="330" href="#330">330</a>     }
-<a name="331" href="#331">331</a> 
-<a name="332" href="#332">332</a>     <em>/**<em>*</em></em>
-<a name="333" href="#333">333</a> <em>     * @see NodeType#hasOrderableChildNodes</em>
-<a name="334" href="#334">334</a> <em>     */</em>
-<a name="335" href="#335">335</a>     <strong>public</strong> <strong>boolean</strong> hasOrderableChildNodes() {
-<a name="336" href="#336">336</a>         <strong>return</strong> ntd.hasOrderableChildNodes();
-<a name="337" href="#337">337</a>     }
-<a name="338" href="#338">338</a> 
-<a name="339" href="#339">339</a>     <em>/**<em>*</em></em>
-<a name="340" href="#340">340</a> <em>     * @see NodeType#getSupertypes</em>
-<a name="341" href="#341">341</a> <em>     */</em>
-<a name="342" href="#342">342</a>     <strong>public</strong> NodeType[] getSupertypes() {
-<a name="343" href="#343">343</a>         <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a>[] ntNames = ent.getInheritedNodeTypes();
-<a name="344" href="#344">344</a>         NodeType[] supertypes = <strong>new</strong> NodeType[ntNames.length];
-<a name="345" href="#345">345</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; ntNames.length; i++) {
-<a name="346" href="#346">346</a>             <strong>try</strong> {
-<a name="347" href="#347">347</a>                 supertypes[i] = ntMgr.getNodeType(ntNames[i]);
-<a name="348" href="#348">348</a>             } <strong>catch</strong> (NoSuchNodeTypeException e) {
-<a name="349" href="#349">349</a>                 <em class="comment">// should never get here</em>
-<a name="350" href="#350">350</a>                 log.error(<span class="string">"undefined supertype"</span>, e);
-<a name="351" href="#351">351</a>                 <strong>return</strong> <strong>new</strong> NodeType[0];
-<a name="352" href="#352">352</a>             }
-<a name="353" href="#353">353</a>         }
-<a name="354" href="#354">354</a>         <strong>return</strong> supertypes;
-<a name="355" href="#355">355</a>     }
-<a name="356" href="#356">356</a> 
-<a name="357" href="#357">357</a>     <em>/**<em>*</em></em>
-<a name="358" href="#358">358</a> <em>     * @see NodeType#getChildNodeDefs</em>
-<a name="359" href="#359">359</a> <em>     */</em>
-<a name="360" href="#360">360</a>     <strong>public</strong> NodeDef[] getChildNodeDefs() {
-<a name="361" href="#361">361</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/ChildNodeDef.html">ChildNodeDef</a>[] cnda = ent.getAllNodeDefs();
-<a name="362" href="#362">362</a>         NodeDef[] nodeDefs = <strong>new</strong> NodeDef[cnda.length];
-<a name="363" href="#363">363</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; cnda.length; i++) {
-<a name="364" href="#364">364</a>             nodeDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/NodeDefImpl.html">NodeDefImpl</a>(cnda[i], ntMgr, nsResolver);
-<a name="365" href="#365">365</a>         }
-<a name="366" href="#366">366</a>         <strong>return</strong> nodeDefs;
-<a name="367" href="#367">367</a>     }
-<a name="368" href="#368">368</a> 
-<a name="369" href="#369">369</a>     <em>/**<em>*</em></em>
-<a name="370" href="#370">370</a> <em>     * @see NodeType#getPropertyDefs</em>
-<a name="371" href="#371">371</a> <em>     */</em>
-<a name="372" href="#372">372</a>     <strong>public</strong> PropertyDef[] getPropertyDefs() {
-<a name="373" href="#373">373</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropDef.html">PropDef</a>[] pda = ent.getAllPropDefs();
-<a name="374" href="#374">374</a>         PropertyDef[] propDefs = <strong>new</strong> PropertyDef[pda.length];
-<a name="375" href="#375">375</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; pda.length; i++) {
-<a name="376" href="#376">376</a>             propDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a>(pda[i], ntMgr, nsResolver);
-<a name="377" href="#377">377</a>         }
-<a name="378" href="#378">378</a>         <strong>return</strong> propDefs;
-<a name="379" href="#379">379</a>     }
-<a name="380" href="#380">380</a> 
-<a name="381" href="#381">381</a>     <em>/**<em>*</em></em>
-<a name="382" href="#382">382</a> <em>     * @see NodeType#getDeclaredSupertypes</em>
-<a name="383" href="#383">383</a> <em>     */</em>
-<a name="384" href="#384">384</a>     <strong>public</strong> NodeType[] getDeclaredSupertypes() {
-<a name="385" href="#385">385</a>         <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a>[] ntNames = ntd.getSupertypes();
-<a name="386" href="#386">386</a>         NodeType[] supertypes = <strong>new</strong> NodeType[ntNames.length];
-<a name="387" href="#387">387</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; ntNames.length; i++) {
-<a name="388" href="#388">388</a>             <strong>try</strong> {
-<a name="389" href="#389">389</a>                 supertypes[i] = ntMgr.getNodeType(ntNames[i]);
-<a name="390" href="#390">390</a>             } <strong>catch</strong> (NoSuchNodeTypeException e) {
-<a name="391" href="#391">391</a>                 <em class="comment">// should never get here</em>
-<a name="392" href="#392">392</a>                 log.error(<span class="string">"undefined supertype"</span>, e);
-<a name="393" href="#393">393</a>                 <strong>return</strong> <strong>new</strong> NodeType[0];
-<a name="394" href="#394">394</a>             }
-<a name="395" href="#395">395</a>         }
-<a name="396" href="#396">396</a>         <strong>return</strong> supertypes;
-<a name="397" href="#397">397</a>     }
-<a name="398" href="#398">398</a> 
-<a name="399" href="#399">399</a>     <em>/**<em>*</em></em>
-<a name="400" href="#400">400</a> <em>     * @see NodeType#getDeclaredChildNodeDefs</em>
-<a name="401" href="#401">401</a> <em>     */</em>
-<a name="402" href="#402">402</a>     <strong>public</strong> NodeDef[] getDeclaredChildNodeDefs() {
-<a name="403" href="#403">403</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/ChildNodeDef.html">ChildNodeDef</a>[] cnda = ntd.getChildNodeDefs();
-<a name="404" href="#404">404</a>         NodeDef[] nodeDefs = <strong>new</strong> NodeDef[cnda.length];
-<a name="405" href="#405">405</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; cnda.length; i++) {
-<a name="406" href="#406">406</a>             nodeDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/NodeDefImpl.html">NodeDefImpl</a>(cnda[i], ntMgr, nsResolver);
-<a name="407" href="#407">407</a>         }
-<a name="408" href="#408">408</a>         <strong>return</strong> nodeDefs;
-<a name="409" href="#409">409</a>     }
-<a name="410" href="#410">410</a> 
-<a name="411" href="#411">411</a>     <em>/**<em>*</em></em>
-<a name="412" href="#412">412</a> <em>     * @see NodeType#canSetProperty(String, Value)</em>
-<a name="413" href="#413">413</a> <em>     */</em>
-<a name="414" href="#414">414</a>     <strong>public</strong> <strong>boolean</strong> canSetProperty(String propertyName, Value value) {
-<a name="415" href="#415">415</a>         <strong>if</strong> (value == <strong>null</strong>) {
-<a name="416" href="#416">416</a>             <em class="comment">// setting a property to null is equivalent of removing it</em>
-<a name="417" href="#417">417</a>             <strong>return</strong> canRemoveItem(propertyName);
-<a name="418" href="#418">418</a>         }
-<a name="419" href="#419">419</a>         <strong>try</strong> {
-<a name="420" href="#420">420</a>             <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> name = QName.fromJCRName(propertyName, nsResolver);
-<a name="421" href="#421">421</a>             <strong>int</strong> type = (value == <strong>null</strong>) ? PropertyType.UNDEFINED : value.getType();
-<a name="422" href="#422">422</a>             <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a> def = getApplicablePropertyDef(name, type, false);
-<a name="423" href="#423">423</a>             <strong>if</strong> (def.isProtected()) {
-<a name="424" href="#424">424</a>                 <strong>return</strong> false;
-<a name="425" href="#425">425</a>             }
-<a name="426" href="#426">426</a>             <strong>if</strong> (def.isMultiple()) {
-<a name="427" href="#427">427</a>                 <strong>return</strong> false;
-<a name="428" href="#428">428</a>             }
-<a name="429" href="#429">429</a>             <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a> internalValue = InternalValue.create(value, nsResolver);
-<a name="430" href="#430">430</a>             checkSetPropertyValueConstraints(def, <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a>[]{internalValue});
-<a name="431" href="#431">431</a>             <strong>return</strong> <strong>true</strong>;
-<a name="432" href="#432">432</a>         } <strong>catch</strong> (BaseException be) {
-<a name="433" href="#433">433</a>             <em class="comment">// implementation specific exception, fall through</em>
-<a name="434" href="#434">434</a>         } <strong>catch</strong> (RepositoryException re) {
-<a name="435" href="#435">435</a>             <em class="comment">// fall through</em>
-<a name="436" href="#436">436</a>         }
-<a name="437" href="#437">437</a>         <strong>return</strong> false;
-<a name="438" href="#438">438</a>     }
-<a name="439" href="#439">439</a> 
-<a name="440" href="#440">440</a>     <em>/**<em>*</em></em>
-<a name="441" href="#441">441</a> <em>     * @see NodeType#canSetProperty(String, Value[])</em>
-<a name="442" href="#442">442</a> <em>     */</em>
-<a name="443" href="#443">443</a>     <strong>public</strong> <strong>boolean</strong> canSetProperty(String propertyName, Value[] values) {
-<a name="444" href="#444">444</a>         <strong>if</strong> (values == <strong>null</strong>) {
-<a name="445" href="#445">445</a>             <em class="comment">// setting a property to null is equivalent of removing it</em>
-<a name="446" href="#446">446</a>             <strong>return</strong> canRemoveItem(propertyName);
-<a name="447" href="#447">447</a>         }
-<a name="448" href="#448">448</a>         <strong>try</strong> {
-<a name="449" href="#449">449</a>             <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> name = QName.fromJCRName(propertyName, nsResolver);
-<a name="450" href="#450">450</a>             <strong>int</strong> type = (values == <strong>null</strong> || values.length == 0) ? PropertyType.UNDEFINED : values[0].getType();
-<a name="451" href="#451">451</a>             <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a> def = getApplicablePropertyDef(name, type, <strong>true</strong>);
-<a name="452" href="#452">452</a>             <strong>if</strong> (def.isProtected()) {
-<a name="453" href="#453">453</a>                 <strong>return</strong> false;
-<a name="454" href="#454">454</a>             }
-<a name="455" href="#455">455</a>             <strong>if</strong> (!def.isMultiple()) {
-<a name="456" href="#456">456</a>                 <strong>return</strong> false;
-<a name="457" href="#457">457</a>             }
-<a name="458" href="#458">458</a>             ArrayList list = <strong>new</strong> ArrayList();
-<a name="459" href="#459">459</a>             <em class="comment">// convert values and compact array (purge null entries)</em>
-<a name="460" href="#460">460</a>             <strong>for</strong> (<strong>int</strong> i = 0; i &lt; values.length; i++) {
-<a name="461" href="#461">461</a>                 <strong>if</strong> (values[i] != <strong>null</strong>) {
-<a name="462" href="#462">462</a>                     <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a> internalValue = InternalValue.create(values[i], nsResolver);
-<a name="463" href="#463">463</a>                     list.add(internalValue);
-<a name="464" href="#464">464</a>                 }
-<a name="465" href="#465">465</a>             }
-<a name="466" href="#466">466</a>             <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a>[] internalValues = (InternalValue[]) list.toArray(<strong>new</strong> InternalValue[list.size()]);
-<a name="467" href="#467">467</a>             checkSetPropertyValueConstraints(def, internalValues);
-<a name="468" href="#468">468</a>             <strong>return</strong> <strong>true</strong>;
-<a name="469" href="#469">469</a>         } <strong>catch</strong> (BaseException be) {
-<a name="470" href="#470">470</a>             <em class="comment">// implementation specific exception, fall through</em>
-<a name="471" href="#471">471</a>         } <strong>catch</strong> (RepositoryException re) {
-<a name="472" href="#472">472</a>             <em class="comment">// fall through</em>
-<a name="473" href="#473">473</a>         }
-<a name="474" href="#474">474</a>         <strong>return</strong> false;
-<a name="475" href="#475">475</a>     }
-<a name="476" href="#476">476</a> 
-<a name="477" href="#477">477</a>     <em>/**<em>*</em></em>
-<a name="478" href="#478">478</a> <em>     * @see NodeType#canAddChildNode(String)</em>
-<a name="479" href="#479">479</a> <em>     */</em>
-<a name="480" href="#480">480</a>     <strong>public</strong> <strong>boolean</strong> canAddChildNode(String childNodeName) {
-<a name="481" href="#481">481</a>         <strong>try</strong> {
-<a name="482" href="#482">482</a>             ent.checkAddNodeConstraints(QName.fromJCRName(childNodeName, nsResolver));
-<a name="483" href="#483">483</a>             <strong>return</strong> <strong>true</strong>;
-<a name="484" href="#484">484</a>         } <strong>catch</strong> (BaseException be) {
-<a name="485" href="#485">485</a>             <em class="comment">// implementation specific exception, fall through</em>
-<a name="486" href="#486">486</a>         } <strong>catch</strong> (RepositoryException re) {
-<a name="487" href="#487">487</a>             <em class="comment">// fall through</em>
-<a name="488" href="#488">488</a>         }
-<a name="489" href="#489">489</a>         <strong>return</strong> false;
-<a name="490" href="#490">490</a>     }
-<a name="491" href="#491">491</a> 
-<a name="492" href="#492">492</a>     <em>/**<em>*</em></em>
-<a name="493" href="#493">493</a> <em>     * @see NodeType#canAddChildNode(String, String)</em>
-<a name="494" href="#494">494</a> <em>     */</em>
-<a name="495" href="#495">495</a>     <strong>public</strong> <strong>boolean</strong> canAddChildNode(String childNodeName, String nodeTypeName) {
-<a name="496" href="#496">496</a>         <strong>try</strong> {
-<a name="497" href="#497">497</a>             ent.checkAddNodeConstraints(QName.fromJCRName(childNodeName, nsResolver), QName.fromJCRName(nodeTypeName, nsResolver));
-<a name="498" href="#498">498</a>             <strong>return</strong> <strong>true</strong>;
-<a name="499" href="#499">499</a>         } <strong>catch</strong> (BaseException be) {
-<a name="500" href="#500">500</a>             <em class="comment">// implementation specific exception, fall through</em>
-<a name="501" href="#501">501</a>         } <strong>catch</strong> (RepositoryException re) {
-<a name="502" href="#502">502</a>             <em class="comment">// fall through</em>
-<a name="503" href="#503">503</a>         }
-<a name="504" href="#504">504</a>         <strong>return</strong> false;
-<a name="505" href="#505">505</a>     }
-<a name="506" href="#506">506</a> 
-<a name="507" href="#507">507</a>     <em>/**<em>*</em></em>
-<a name="508" href="#508">508</a> <em>     * @see NodeType#canRemoveItem(String)</em>
-<a name="509" href="#509">509</a> <em>     */</em>
-<a name="510" href="#510">510</a>     <strong>public</strong> <strong>boolean</strong> canRemoveItem(String itemName) {
-<a name="511" href="#511">511</a>         <strong>try</strong> {
-<a name="512" href="#512">512</a>             ent.checkRemoveItemConstraints(QName.fromJCRName(itemName, nsResolver));
-<a name="513" href="#513">513</a>             <strong>return</strong> <strong>true</strong>;
-<a name="514" href="#514">514</a>         } <strong>catch</strong> (BaseException be) {
-<a name="515" href="#515">515</a>             <em class="comment">// implementation specific exception, fall through</em>
-<a name="516" href="#516">516</a>         } <strong>catch</strong> (RepositoryException re) {
-<a name="517" href="#517">517</a>             <em class="comment">// fall through</em>
-<a name="518" href="#518">518</a>         }
-<a name="519" href="#519">519</a>         <strong>return</strong> false;
-<a name="520" href="#520">520</a>     }
-<a name="521" href="#521">521</a> 
-<a name="522" href="#522">522</a>     <em>/**<em>*</em></em>
-<a name="523" href="#523">523</a> <em>     * @see NodeType#getDeclaredPropertyDefs</em>
-<a name="524" href="#524">524</a> <em>     */</em>
-<a name="525" href="#525">525</a>     <strong>public</strong> PropertyDef[] getDeclaredPropertyDefs() {
-<a name="526" href="#526">526</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropDef.html">PropDef</a>[] pda = ntd.getPropertyDefs();
-<a name="527" href="#527">527</a>         PropertyDef[] propDefs = <strong>new</strong> PropertyDef[pda.length];
-<a name="528" href="#528">528</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; pda.length; i++) {
-<a name="529" href="#529">529</a>             propDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a>(pda[i], ntMgr, nsResolver);
-<a name="530" href="#530">530</a>         }
-<a name="531" href="#531">531</a>         <strong>return</strong> propDefs;
-<a name="532" href="#532">532</a>     }
-<a name="533" href="#533">533</a> }
+<a name="296" href="#296">296</a>             <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> piName = ntd.getPrimaryItemName();
+<a name="297" href="#297">297</a>             <strong>return</strong> piName == <strong>null</strong> ? <strong>null</strong> : piName.toJCRName(nsResolver);
+<a name="298" href="#298">298</a>         } <strong>catch</strong> (NoPrefixDeclaredException npde) {
+<a name="299" href="#299">299</a>             <em class="comment">// should never get here</em>
+<a name="300" href="#300">300</a>             log.error(<span class="string">"encountered unregistered namespace in name of primary item"</span>, npde);
+<a name="301" href="#301">301</a>             <strong>return</strong> ntd.getName().toString();
+<a name="302" href="#302">302</a>         }
+<a name="303" href="#303">303</a>     }
+<a name="304" href="#304">304</a> 
+<a name="305" href="#305">305</a>     <em>/**<em>*</em></em>
+<a name="306" href="#306">306</a> <em>     * @see NodeType#isMixin</em>
+<a name="307" href="#307">307</a> <em>     */</em>
+<a name="308" href="#308">308</a>     <strong>public</strong> <strong>boolean</strong> isMixin() {
+<a name="309" href="#309">309</a>         <strong>return</strong> ntd.isMixin();
+<a name="310" href="#310">310</a>     }
+<a name="311" href="#311">311</a> 
+<a name="312" href="#312">312</a>     <em>/**<em>*</em></em>
+<a name="313" href="#313">313</a> <em>     * @see NodeType#isNodeType(String)</em>
+<a name="314" href="#314">314</a> <em>     */</em>
+<a name="315" href="#315">315</a>     <strong>public</strong> <strong>boolean</strong> isNodeType(String nodeTypeName) {
+<a name="316" href="#316">316</a>         <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> ntName;
+<a name="317" href="#317">317</a>         <strong>try</strong> {
+<a name="318" href="#318">318</a>             ntName = QName.fromJCRName(nodeTypeName, nsResolver);
+<a name="319" href="#319">319</a>         } <strong>catch</strong> (IllegalNameException ine) {
+<a name="320" href="#320">320</a>             log.warn(<span class="string">"invalid node type name: "</span> + nodeTypeName, ine);
+<a name="321" href="#321">321</a>             <strong>return</strong> false;
+<a name="322" href="#322">322</a>         } <strong>catch</strong> (UnknownPrefixException upe) {
+<a name="323" href="#323">323</a>             log.warn(<span class="string">"invalid node type name: "</span> + nodeTypeName, upe);
+<a name="324" href="#324">324</a>             <strong>return</strong> false;
+<a name="325" href="#325">325</a>         }
+<a name="326" href="#326">326</a>         <strong>if</strong> (getQName().equals(ntName) || isDerivedFrom(ntName)) {
+<a name="327" href="#327">327</a>             <strong>return</strong> <strong>true</strong>;
+<a name="328" href="#328">328</a>         } <strong>else</strong> {
+<a name="329" href="#329">329</a>             <strong>return</strong> false;
+<a name="330" href="#330">330</a>         }
+<a name="331" href="#331">331</a>     }
+<a name="332" href="#332">332</a> 
+<a name="333" href="#333">333</a>     <em>/**<em>*</em></em>
+<a name="334" href="#334">334</a> <em>     * @see NodeType#hasOrderableChildNodes</em>
+<a name="335" href="#335">335</a> <em>     */</em>
+<a name="336" href="#336">336</a>     <strong>public</strong> <strong>boolean</strong> hasOrderableChildNodes() {
+<a name="337" href="#337">337</a>         <strong>return</strong> ntd.hasOrderableChildNodes();
+<a name="338" href="#338">338</a>     }
+<a name="339" href="#339">339</a> 
+<a name="340" href="#340">340</a>     <em>/**<em>*</em></em>
+<a name="341" href="#341">341</a> <em>     * @see NodeType#getSupertypes</em>
+<a name="342" href="#342">342</a> <em>     */</em>
+<a name="343" href="#343">343</a>     <strong>public</strong> NodeType[] getSupertypes() {
+<a name="344" href="#344">344</a>         <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a>[] ntNames = ent.getInheritedNodeTypes();
+<a name="345" href="#345">345</a>         NodeType[] supertypes = <strong>new</strong> NodeType[ntNames.length];
+<a name="346" href="#346">346</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; ntNames.length; i++) {
+<a name="347" href="#347">347</a>             <strong>try</strong> {
+<a name="348" href="#348">348</a>                 supertypes[i] = ntMgr.getNodeType(ntNames[i]);
+<a name="349" href="#349">349</a>             } <strong>catch</strong> (NoSuchNodeTypeException e) {
+<a name="350" href="#350">350</a>                 <em class="comment">// should never get here</em>
+<a name="351" href="#351">351</a>                 log.error(<span class="string">"undefined supertype"</span>, e);
+<a name="352" href="#352">352</a>                 <strong>return</strong> <strong>new</strong> NodeType[0];
+<a name="353" href="#353">353</a>             }
+<a name="354" href="#354">354</a>         }
+<a name="355" href="#355">355</a>         <strong>return</strong> supertypes;
+<a name="356" href="#356">356</a>     }
+<a name="357" href="#357">357</a> 
+<a name="358" href="#358">358</a>     <em>/**<em>*</em></em>
+<a name="359" href="#359">359</a> <em>     * @see NodeType#getChildNodeDefs</em>
+<a name="360" href="#360">360</a> <em>     */</em>
+<a name="361" href="#361">361</a>     <strong>public</strong> NodeDef[] getChildNodeDefs() {
+<a name="362" href="#362">362</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/ChildNodeDef.html">ChildNodeDef</a>[] cnda = ent.getAllNodeDefs();
+<a name="363" href="#363">363</a>         NodeDef[] nodeDefs = <strong>new</strong> NodeDef[cnda.length];
+<a name="364" href="#364">364</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; cnda.length; i++) {
+<a name="365" href="#365">365</a>             nodeDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/NodeDefImpl.html">NodeDefImpl</a>(cnda[i], ntMgr, nsResolver);
+<a name="366" href="#366">366</a>         }
+<a name="367" href="#367">367</a>         <strong>return</strong> nodeDefs;
+<a name="368" href="#368">368</a>     }
+<a name="369" href="#369">369</a> 
+<a name="370" href="#370">370</a>     <em>/**<em>*</em></em>
+<a name="371" href="#371">371</a> <em>     * @see NodeType#getPropertyDefs</em>
+<a name="372" href="#372">372</a> <em>     */</em>
+<a name="373" href="#373">373</a>     <strong>public</strong> PropertyDef[] getPropertyDefs() {
+<a name="374" href="#374">374</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropDef.html">PropDef</a>[] pda = ent.getAllPropDefs();
+<a name="375" href="#375">375</a>         PropertyDef[] propDefs = <strong>new</strong> PropertyDef[pda.length];
+<a name="376" href="#376">376</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; pda.length; i++) {
+<a name="377" href="#377">377</a>             propDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a>(pda[i], ntMgr, nsResolver);
+<a name="378" href="#378">378</a>         }
+<a name="379" href="#379">379</a>         <strong>return</strong> propDefs;
+<a name="380" href="#380">380</a>     }
+<a name="381" href="#381">381</a> 
+<a name="382" href="#382">382</a>     <em>/**<em>*</em></em>
+<a name="383" href="#383">383</a> <em>     * @see NodeType#getDeclaredSupertypes</em>
+<a name="384" href="#384">384</a> <em>     */</em>
+<a name="385" href="#385">385</a>     <strong>public</strong> NodeType[] getDeclaredSupertypes() {
+<a name="386" href="#386">386</a>         <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a>[] ntNames = ntd.getSupertypes();
+<a name="387" href="#387">387</a>         NodeType[] supertypes = <strong>new</strong> NodeType[ntNames.length];
+<a name="388" href="#388">388</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; ntNames.length; i++) {
+<a name="389" href="#389">389</a>             <strong>try</strong> {
+<a name="390" href="#390">390</a>                 supertypes[i] = ntMgr.getNodeType(ntNames[i]);
+<a name="391" href="#391">391</a>             } <strong>catch</strong> (NoSuchNodeTypeException e) {
+<a name="392" href="#392">392</a>                 <em class="comment">// should never get here</em>
+<a name="393" href="#393">393</a>                 log.error(<span class="string">"undefined supertype"</span>, e);
+<a name="394" href="#394">394</a>                 <strong>return</strong> <strong>new</strong> NodeType[0];
+<a name="395" href="#395">395</a>             }
+<a name="396" href="#396">396</a>         }
+<a name="397" href="#397">397</a>         <strong>return</strong> supertypes;
+<a name="398" href="#398">398</a>     }
+<a name="399" href="#399">399</a> 
+<a name="400" href="#400">400</a>     <em>/**<em>*</em></em>
+<a name="401" href="#401">401</a> <em>     * @see NodeType#getDeclaredChildNodeDefs</em>
+<a name="402" href="#402">402</a> <em>     */</em>
+<a name="403" href="#403">403</a>     <strong>public</strong> NodeDef[] getDeclaredChildNodeDefs() {
+<a name="404" href="#404">404</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/ChildNodeDef.html">ChildNodeDef</a>[] cnda = ntd.getChildNodeDefs();
+<a name="405" href="#405">405</a>         NodeDef[] nodeDefs = <strong>new</strong> NodeDef[cnda.length];
+<a name="406" href="#406">406</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; cnda.length; i++) {
+<a name="407" href="#407">407</a>             nodeDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/NodeDefImpl.html">NodeDefImpl</a>(cnda[i], ntMgr, nsResolver);
+<a name="408" href="#408">408</a>         }
+<a name="409" href="#409">409</a>         <strong>return</strong> nodeDefs;
+<a name="410" href="#410">410</a>     }
+<a name="411" href="#411">411</a> 
+<a name="412" href="#412">412</a>     <em>/**<em>*</em></em>
+<a name="413" href="#413">413</a> <em>     * @see NodeType#canSetProperty(String, Value)</em>
+<a name="414" href="#414">414</a> <em>     */</em>
+<a name="415" href="#415">415</a>     <strong>public</strong> <strong>boolean</strong> canSetProperty(String propertyName, Value value) {
+<a name="416" href="#416">416</a>         <strong>if</strong> (value == <strong>null</strong>) {
+<a name="417" href="#417">417</a>             <em class="comment">// setting a property to null is equivalent of removing it</em>
+<a name="418" href="#418">418</a>             <strong>return</strong> canRemoveItem(propertyName);
+<a name="419" href="#419">419</a>         }
+<a name="420" href="#420">420</a>         <strong>try</strong> {
+<a name="421" href="#421">421</a>             <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> name = QName.fromJCRName(propertyName, nsResolver);
+<a name="422" href="#422">422</a>             <strong>int</strong> type = (value == <strong>null</strong>) ? PropertyType.UNDEFINED : value.getType();
+<a name="423" href="#423">423</a>             <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a> def = getApplicablePropertyDef(name, type, false);
+<a name="424" href="#424">424</a>             <strong>if</strong> (def.isProtected()) {
+<a name="425" href="#425">425</a>                 <strong>return</strong> false;
+<a name="426" href="#426">426</a>             }
+<a name="427" href="#427">427</a>             <strong>if</strong> (def.isMultiple()) {
+<a name="428" href="#428">428</a>                 <strong>return</strong> false;
+<a name="429" href="#429">429</a>             }
+<a name="430" href="#430">430</a>             <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a> internalValue = InternalValue.create(value, nsResolver);
+<a name="431" href="#431">431</a>             checkSetPropertyValueConstraints(def, <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a>[]{internalValue});
+<a name="432" href="#432">432</a>             <strong>return</strong> <strong>true</strong>;
+<a name="433" href="#433">433</a>         } <strong>catch</strong> (BaseException be) {
+<a name="434" href="#434">434</a>             <em class="comment">// implementation specific exception, fall through</em>
+<a name="435" href="#435">435</a>         } <strong>catch</strong> (RepositoryException re) {
+<a name="436" href="#436">436</a>             <em class="comment">// fall through</em>
+<a name="437" href="#437">437</a>         }
+<a name="438" href="#438">438</a>         <strong>return</strong> false;
+<a name="439" href="#439">439</a>     }
+<a name="440" href="#440">440</a> 
+<a name="441" href="#441">441</a>     <em>/**<em>*</em></em>
+<a name="442" href="#442">442</a> <em>     * @see NodeType#canSetProperty(String, Value[])</em>
+<a name="443" href="#443">443</a> <em>     */</em>
+<a name="444" href="#444">444</a>     <strong>public</strong> <strong>boolean</strong> canSetProperty(String propertyName, Value[] values) {
+<a name="445" href="#445">445</a>         <strong>if</strong> (values == <strong>null</strong>) {
+<a name="446" href="#446">446</a>             <em class="comment">// setting a property to null is equivalent of removing it</em>
+<a name="447" href="#447">447</a>             <strong>return</strong> canRemoveItem(propertyName);
+<a name="448" href="#448">448</a>         }
+<a name="449" href="#449">449</a>         <strong>try</strong> {
+<a name="450" href="#450">450</a>             <a href="../../../../../org/apache/jackrabbit/core/QName.html">QName</a> name = QName.fromJCRName(propertyName, nsResolver);
+<a name="451" href="#451">451</a>             <strong>int</strong> type = (values == <strong>null</strong> || values.length == 0) ? PropertyType.UNDEFINED : values[0].getType();
+<a name="452" href="#452">452</a>             <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a> def = getApplicablePropertyDef(name, type, <strong>true</strong>);
+<a name="453" href="#453">453</a>             <strong>if</strong> (def.isProtected()) {
+<a name="454" href="#454">454</a>                 <strong>return</strong> false;
+<a name="455" href="#455">455</a>             }
+<a name="456" href="#456">456</a>             <strong>if</strong> (!def.isMultiple()) {
+<a name="457" href="#457">457</a>                 <strong>return</strong> false;
+<a name="458" href="#458">458</a>             }
+<a name="459" href="#459">459</a>             ArrayList list = <strong>new</strong> ArrayList();
+<a name="460" href="#460">460</a>             <em class="comment">// convert values and compact array (purge null entries)</em>
+<a name="461" href="#461">461</a>             <strong>for</strong> (<strong>int</strong> i = 0; i &lt; values.length; i++) {
+<a name="462" href="#462">462</a>                 <strong>if</strong> (values[i] != <strong>null</strong>) {
+<a name="463" href="#463">463</a>                     <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a> internalValue = InternalValue.create(values[i], nsResolver);
+<a name="464" href="#464">464</a>                     list.add(internalValue);
+<a name="465" href="#465">465</a>                 }
+<a name="466" href="#466">466</a>             }
+<a name="467" href="#467">467</a>             <a href="../../../../../org/apache/jackrabbit/core/InternalValue.html">InternalValue</a>[] internalValues = (InternalValue[]) list.toArray(<strong>new</strong> InternalValue[list.size()]);
+<a name="468" href="#468">468</a>             checkSetPropertyValueConstraints(def, internalValues);
+<a name="469" href="#469">469</a>             <strong>return</strong> <strong>true</strong>;
+<a name="470" href="#470">470</a>         } <strong>catch</strong> (BaseException be) {
+<a name="471" href="#471">471</a>             <em class="comment">// implementation specific exception, fall through</em>
+<a name="472" href="#472">472</a>         } <strong>catch</strong> (RepositoryException re) {
+<a name="473" href="#473">473</a>             <em class="comment">// fall through</em>
+<a name="474" href="#474">474</a>         }
+<a name="475" href="#475">475</a>         <strong>return</strong> false;
+<a name="476" href="#476">476</a>     }
+<a name="477" href="#477">477</a> 
+<a name="478" href="#478">478</a>     <em>/**<em>*</em></em>
+<a name="479" href="#479">479</a> <em>     * @see NodeType#canAddChildNode(String)</em>
+<a name="480" href="#480">480</a> <em>     */</em>
+<a name="481" href="#481">481</a>     <strong>public</strong> <strong>boolean</strong> canAddChildNode(String childNodeName) {
+<a name="482" href="#482">482</a>         <strong>try</strong> {
+<a name="483" href="#483">483</a>             ent.checkAddNodeConstraints(QName.fromJCRName(childNodeName, nsResolver));
+<a name="484" href="#484">484</a>             <strong>return</strong> <strong>true</strong>;
+<a name="485" href="#485">485</a>         } <strong>catch</strong> (BaseException be) {
+<a name="486" href="#486">486</a>             <em class="comment">// implementation specific exception, fall through</em>
+<a name="487" href="#487">487</a>         } <strong>catch</strong> (RepositoryException re) {
+<a name="488" href="#488">488</a>             <em class="comment">// fall through</em>
+<a name="489" href="#489">489</a>         }
+<a name="490" href="#490">490</a>         <strong>return</strong> false;
+<a name="491" href="#491">491</a>     }
+<a name="492" href="#492">492</a> 
+<a name="493" href="#493">493</a>     <em>/**<em>*</em></em>
+<a name="494" href="#494">494</a> <em>     * @see NodeType#canAddChildNode(String, String)</em>
+<a name="495" href="#495">495</a> <em>     */</em>
+<a name="496" href="#496">496</a>     <strong>public</strong> <strong>boolean</strong> canAddChildNode(String childNodeName, String nodeTypeName) {
+<a name="497" href="#497">497</a>         <strong>try</strong> {
+<a name="498" href="#498">498</a>             ent.checkAddNodeConstraints(QName.fromJCRName(childNodeName, nsResolver), QName.fromJCRName(nodeTypeName, nsResolver));
+<a name="499" href="#499">499</a>             <strong>return</strong> <strong>true</strong>;
+<a name="500" href="#500">500</a>         } <strong>catch</strong> (BaseException be) {
+<a name="501" href="#501">501</a>             <em class="comment">// implementation specific exception, fall through</em>
+<a name="502" href="#502">502</a>         } <strong>catch</strong> (RepositoryException re) {
+<a name="503" href="#503">503</a>             <em class="comment">// fall through</em>
+<a name="504" href="#504">504</a>         }
+<a name="505" href="#505">505</a>         <strong>return</strong> false;
+<a name="506" href="#506">506</a>     }
+<a name="507" href="#507">507</a> 
+<a name="508" href="#508">508</a>     <em>/**<em>*</em></em>
+<a name="509" href="#509">509</a> <em>     * @see NodeType#canRemoveItem(String)</em>
+<a name="510" href="#510">510</a> <em>     */</em>
+<a name="511" href="#511">511</a>     <strong>public</strong> <strong>boolean</strong> canRemoveItem(String itemName) {
+<a name="512" href="#512">512</a>         <strong>try</strong> {
+<a name="513" href="#513">513</a>             ent.checkRemoveItemConstraints(QName.fromJCRName(itemName, nsResolver));
+<a name="514" href="#514">514</a>             <strong>return</strong> <strong>true</strong>;
+<a name="515" href="#515">515</a>         } <strong>catch</strong> (BaseException be) {
+<a name="516" href="#516">516</a>             <em class="comment">// implementation specific exception, fall through</em>
+<a name="517" href="#517">517</a>         } <strong>catch</strong> (RepositoryException re) {
+<a name="518" href="#518">518</a>             <em class="comment">// fall through</em>
+<a name="519" href="#519">519</a>         }
+<a name="520" href="#520">520</a>         <strong>return</strong> false;
+<a name="521" href="#521">521</a>     }
+<a name="522" href="#522">522</a> 
+<a name="523" href="#523">523</a>     <em>/**<em>*</em></em>
+<a name="524" href="#524">524</a> <em>     * @see NodeType#getDeclaredPropertyDefs</em>
+<a name="525" href="#525">525</a> <em>     */</em>
+<a name="526" href="#526">526</a>     <strong>public</strong> PropertyDef[] getDeclaredPropertyDefs() {
+<a name="527" href="#527">527</a>         <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropDef.html">PropDef</a>[] pda = ntd.getPropertyDefs();
+<a name="528" href="#528">528</a>         PropertyDef[] propDefs = <strong>new</strong> PropertyDef[pda.length];
+<a name="529" href="#529">529</a>         <strong>for</strong> (<strong>int</strong> i = 0; i &lt; pda.length; i++) {
+<a name="530" href="#530">530</a>             propDefs[i] = <strong>new</strong> <a href="../../../../../org/apache/jackrabbit/core/nodetype/PropertyDefImpl.html">PropertyDefImpl</a>(pda[i], ntMgr, nsResolver);
+<a name="531" href="#531">531</a>         }
+<a name="532" href="#532">532</a>         <strong>return</strong> propDefs;
+<a name="533" href="#533">533</a>     }
+<a name="534" href="#534">534</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Added: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html?view=auto&rev=149514
==============================================================================
--- incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html (added)
+++ incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html Wed Feb  2 06:04:46 2005
@@ -0,0 +1,85 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>DefaultQueryNodeVisitor xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004-2005 The Apache Software Foundation or its licensors,</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *                     as applicable.</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * you may not use this file except in compliance with the License.</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * You may obtain a copy of the License at</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *</em>
+<a name="9" href="#9">9</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="10" href="#10">10</a>  <em class="comment"> *</em>
+<a name="11" href="#11">11</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="12" href="#12">12</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * See the License for the specific language governing permissions and</em>
+<a name="15" href="#15">15</a>  <em class="comment"> * limitations under the License.</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> <a href="../../../../../org/apache/jackrabbit/core/search/package-summary.html">org.apache.jackrabbit.core.search</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</a>  <em> * Implements the &lt;code>QueryNodeVisitor&lt;/code> interface with default behaviour.</em>
+<a name="21" href="#21">21</a>  <em> * All methods are no-ops and return the &lt;code>data&lt;/code> argument.</em>
+<a name="22" href="#22">22</a>  <em> */</em>
+<a name="23" href="#23">23</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html">DefaultQueryNodeVisitor</a> implements <a href="../../../../../org/apache/jackrabbit/core/search/QueryNodeVisitor.html">QueryNodeVisitor</a> {
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/QueryRootNode.html">QueryRootNode</a> node, Object data) {
+<a name="26" href="#26">26</a>          <strong>return</strong> data;
+<a name="27" href="#27">27</a>      }
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/OrQueryNode.html">OrQueryNode</a> node, Object data) {
+<a name="30" href="#30">30</a>          <strong>return</strong> data;
+<a name="31" href="#31">31</a>      }
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/AndQueryNode.html">AndQueryNode</a> node, Object data) {
+<a name="34" href="#34">34</a>          <strong>return</strong> data;
+<a name="35" href="#35">35</a>      }
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/NotQueryNode.html">NotQueryNode</a> node, Object data) {
+<a name="38" href="#38">38</a>          <strong>return</strong> data;
+<a name="39" href="#39">39</a>      }
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/ExactQueryNode.html">ExactQueryNode</a> node, Object data) {
+<a name="42" href="#42">42</a>          <strong>return</strong> data;
+<a name="43" href="#43">43</a>      }
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/NodeTypeQueryNode.html">NodeTypeQueryNode</a> node, Object data) {
+<a name="46" href="#46">46</a>          <strong>return</strong> data;
+<a name="47" href="#47">47</a>      }
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/RangeQueryNode.html">RangeQueryNode</a> node, Object data) {
+<a name="50" href="#50">50</a>          <strong>return</strong> data;
+<a name="51" href="#51">51</a>      }
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/TextsearchQueryNode.html">TextsearchQueryNode</a> node, Object data) {
+<a name="54" href="#54">54</a>          <strong>return</strong> data;
+<a name="55" href="#55">55</a>      }
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/PathQueryNode.html">PathQueryNode</a> node, Object data) {
+<a name="58" href="#58">58</a>          <strong>return</strong> data;
+<a name="59" href="#59">59</a>      }
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/LocationStepQueryNode.html">LocationStepQueryNode</a> node, Object data) {
+<a name="62" href="#62">62</a>          <strong>return</strong> data;
+<a name="63" href="#63">63</a>      }
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/RelationQueryNode.html">RelationQueryNode</a> node, Object data) {
+<a name="66" href="#66">66</a>          <strong>return</strong> data;
+<a name="67" href="#67">67</a>      }
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>      <strong>public</strong> Object visit(<a href="../../../../../org/apache/jackrabbit/core/search/OrderQueryNode.html">OrderQueryNode</a> node, Object data) {
+<a name="70" href="#70">70</a>          <strong>return</strong> data;
+<a name="71" href="#71">71</a>      }
+<a name="72" href="#72">72</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Propchange: incubator/jackrabbit/site/xref/org/apache/jackrabbit/core/search/DefaultQueryNodeVisitor.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message