XmlSelector class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ The <var>XmlSelector</var> exception class describes an exception associated with To produce a <var>XmlSelector</var> exception for yourself, you typically use a...")
 
Line 21: Line 21:
</ul>
</ul>


==New constructor==
==List function==
{{Template:XmlSelector:New subtitle}}
{{Template:XmlSelector:List subtitle}}


This <var>Constructor</var> generates an instance of an <var>[[XmlSelector_class|XmlSelector]]</var> exception.   
This <var>Constructor</var> generates an instance of an <var>[[XmlSelector_class|XmlSelector]]</var> exception.   


===Syntax===
===Syntax===
{{Template:XmlSelector:New syntax}}
{{Template:XmlSelector:List syntax}}


====Syntax terms====
====Syntax terms====
Line 38: Line 38:
<tr><th><var>[%(XmlSelector):]</var></th>
<tr><th><var>[%(XmlSelector):]</var></th>
<td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|Usage notes]], below, for more information about invoking an <var>XmlSelector</var> <var>Constructor</var>.</td></tr>
<td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|Usage notes]], below, for more information about invoking an <var>XmlSelector</var> <var>Constructor</var>.</td></tr>
<tr><th>list</th>
<td> </td></tr>
</table>
</table>



Revision as of 15:19, 15 July 2014

The XmlSelector exception class describes an exception associated with

To produce a XmlSelector exception for yourself, you typically use a SOUL Throw statement with the New XmlSelector constructor. For example, the following statement throws a XmlSelector exception:

throw %(XmlSelector):new

In addition to the New constructor that creates an object instance, the class includes a Name property that returns the invalid statistic name.

The XmlSelector class is available as of Sirius Mods version 8.1.


The XmlSelector methods

Template:List of XmlSelector methods

The methods in the class are described in the subsections that follow. In addition:

List function

Construct a composite selector (XmlSelector class)


This Constructor generates an instance of an XmlSelector exception.

Syntax

%xmlSelector = [%(XmlSelector):]List( list)

Syntax terms

%xmlSelector An XmlSelector object variable.
[%(XmlSelector):] The class name in parentheses denotes a Constructor. See Usage notes, below, for more information about invoking an XmlSelector Constructor.
list

Usage notes

  • As described in Using New or other Constructors, New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:

    %xmlSelect = new %xmlSelect = %(XmlSelector):new %xmlSelect= %xmlSelect:new