blob: 57b146a335a8e043c01c7daa9ca27f68e0364537 [file] [log] [blame]
<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath2.processor.internal.utils</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath2.processor.internal.utils</strong></font><br>
Class TypePromoter</h2><br><hr><pre>public class <strong>TypePromoter</strong>
extends java.lang.Object</pre>Generic type promoter for handling subtype substitution and type promotions for functions and operators.<hr><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_TypePromoter">TypePromoter</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType</code></td><td width="" align="left"><code><a href="#method_atomize">atomize</a>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType at)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>protected boolean</code></td><td width="" align="left"><code><a href="#method_checkCombination">checkCombination</a>(java.lang.Class newType)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_considerSequence">considerSequence</a>(org.eclipse.wst.xml.xpath2.processor.ResultSequence sequenceToConsider)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_considerType">considerType</a>(java.lang.Class typeToConsider)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_considerTypes">considerTypes</a>(java.util.Collection typesToConsider)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_considerValue">considerValue</a>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType at)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType</code></td><td width="" align="left"><code><a href="#method_doPromote">doPromote</a>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType value)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public java.lang.Class</code></td><td width="" align="left"><code><a href="#method_getTargetType">getTargetType</a>()</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType</code></td><td width="" align="left"><code><a href="#method_promote">promote</a>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType value)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>protected void</code></td><td width="" align="left"><code><a href="#method_setTargetType">setTargetType</a>(java.lang.Class class1)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr><tr valign="top"><td width="20%" align="right"><code>protected java.lang.Class</code></td><td width="" align="left"><code><a href="#method_substitute">substitute</a>(java.lang.Class typeToConsider)</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
Constructor Detail
</h2></td></tr></table><h2><a name="con_TypePromoter">TypePromoter</a></h2><p><code>public <strong>TypePromoter</strong>()</code></p><p></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
Methods Detail
</h2></td></tr></table><h2><a name="method_atomize">atomize</a></h2><p><code>public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType <strong>atomize</strong>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType at)</code></p><p></p><h3>Parameters</h3><p><code>at</code></p><h3>Returns</h3><p><code>org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType</code></p><hr><h2><a name="method_checkCombination">checkCombination</a></h2><p><code>protected boolean <strong>checkCombination</strong>(java.lang.Class newType)</code></p><p></p><h3>Parameters</h3><p><code>newType</code></p><h3>Returns</h3><p><code>boolean</code></p><hr><h2><a name="method_considerSequence">considerSequence</a></h2><p><code>public void <strong>considerSequence</strong>(org.eclipse.wst.xml.xpath2.processor.ResultSequence sequenceToConsider)</code></p><p></p><h3>Parameters</h3><p><code>sequenceToConsider</code></p><h3>Throws:</h3><p><code>org.eclipse.wst.xml.xpath2.processor.DynamicError</code></p><hr><h2><a name="method_considerType">considerType</a></h2><p><code>public void <strong>considerType</strong>(java.lang.Class typeToConsider)</code></p><p></p><h3>Parameters</h3><p><code>typeToConsider</code></p><h3>Throws:</h3><p><code>org.eclipse.wst.xml.xpath2.processor.DynamicError</code></p><hr><h2><a name="method_considerTypes">considerTypes</a></h2><p><code>public void <strong>considerTypes</strong>(java.util.Collection typesToConsider)</code></p><p></p><h3>Parameters</h3><p><code>typesToConsider</code></p><h3>Throws:</h3><p><code>org.eclipse.wst.xml.xpath2.processor.DynamicError</code></p><hr><h2><a name="method_considerValue">considerValue</a></h2><p><code>public void <strong>considerValue</strong>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType at)</code></p><p></p><h3>Parameters</h3><p><code>at</code></p><h3>Throws:</h3><p><code>org.eclipse.wst.xml.xpath2.processor.DynamicError</code></p><hr><h2><a name="method_doPromote">doPromote</a></h2><p><code>public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType <strong>doPromote</strong>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType value)</code></p><p></p><h3>Parameters</h3><p><code>value</code></p><h3>Returns</h3><p><code>org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType</code></p><h3>Throws:</h3><p><code>org.eclipse.wst.xml.xpath2.processor.DynamicError</code></p><hr><h2><a name="method_getTargetType">getTargetType</a></h2><p><code>public java.lang.Class <strong>getTargetType</strong>()</code></p><p></p><h3>Returns</h3><p><code>java.lang.Class</code></p><hr><h2><a name="method_promote">promote</a></h2><p><code>public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType <strong>promote</strong>(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType value)</code></p><p></p><h3>Parameters</h3><p><code>value</code></p><h3>Returns</h3><p><code>org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType</code></p><h3>Throws:</h3><p><code>org.eclipse.wst.xml.xpath2.processor.DynamicError</code></p><hr><h2><a name="method_setTargetType">setTargetType</a></h2><p><code>protected void <strong>setTargetType</strong>(java.lang.Class class1)</code></p><p></p><h3>Parameters</h3><p><code>class1</code></p><hr><h2><a name="method_substitute">substitute</a></h2><p><code>protected java.lang.Class <strong>substitute</strong>(java.lang.Class typeToConsider)</code></p><p></p><h3>Parameters</h3><p><code>typeToConsider</code> - The</p><h3>Returns</h3><p><code>java.lang.Class</code> - The supertype to treat it as (i.e. if a xs:nonNegativeInteger is treated as xs:number)</p><hr></body></html>