bixstypeconverter.xml

来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· XML 代码 · 共 138 行

XML
138
字号
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="api.xsl"?><class name="BiXsTypeConverter" extends="BiObject">	<description>This class contains static methods that converts XML Schema types to Javascript types as well as converting strings formatted according to the XML Schema to Javascript values.<br>		</br>		<br>		</br> The following type relations are used<br>		</br> XS type name - JS type name - JS class "negativeInteger"  - "number" - Number "unsignedShort"    - "number" - Number "unsignedByte"     - "number" - Number "unsignedLong"     - "number" - Number "unsignedInt"      - "number" - Number "decimal"          - "number" - Number "boolean"          - "number" - Number "integer"          - "number" - Number "double"           - "number" - Number "float"            - "number" - Number "short"            - "number" - Number "byte"             - "number" - Number "long"             - "number" - Number "int"              - "number" - Number "QName"            - "string" - String "string"           - "string" - String "normalizedString" - "string" - String "dateTime"         - "date" - Date "date"             - "date" - Date "time"             - "date" - Date</description>	<arguments>	</arguments>	<staticMethods>		<method name="getJsType">			<description>Takes the XML Schema type name and returns the Javacsript type (class, constructor). For example if you pass <code>"time"</code> you will get <code>Date</code> as the result.</description>			<arguments>				<argument name="sXsType">					<description>The XML Schema type name</description>					<type>String</type>				</argument>			</arguments>			<returns>				<type>Function</type>			</returns>		</method>		<method name="getJsTypeName">			<description>Takes the XML Schema type name and returns the Javacsript type name. For example if you pass <code>"time"</code> you will get <code>"date"</code> as the result.</description>			<arguments>				<argument name="sXsType">					<description>The XML Schema type name</description>					<type>String</type>				</argument>			</arguments>			<returns>				<type>String</type>			</returns>		</method>		<method name="getJsValue">			<description>This takes a string and an XML schema type representing a value and then converts this string to the correct Javascript value.</description>			<arguments>				<argument name="sValue">					<description>A string describing the value expressed using the 								correct syntax according to the schema</description>					<type>String</type>				</argument>				<argument name="sXsType">					<description>The XML schema type name</description>					<type>String</type>				</argument>			</arguments>			<returns>				<type>Object</type>			</returns>		</method>		<method name="decodeIsoDateTime">			<description>Takes a string formatted according to the XML Schema datatime type (this is the ISO standard format).<br>				</br>				<br>				</br> Example: YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)</description>			<arguments>				<argument name="s">					<description>The string representing the ISO date time.</description>					<type>String</type>				</argument>			</arguments>			<returns>				<type>Date</type>			</returns>		</method>		<method name="decodeIsoDate">			<description>Takes a string formatted according to the XML Schema data type (this is the ISO standard format).</description>			<arguments>				<argument name="s">					<description>The string representing the ISO date.</description>					<type>String</type>				</argument>			</arguments>			<returns>				<type>Data</type>			</returns>		</method>		<method name="decodeIsoTime">			<description>Takes a string formatted according to the XML Schema time type (this is the ISO standard format).</description>			<arguments>				<argument name="s">					<description>The string representing the ISO date time.</description>					<type>String</type>				</argument>			</arguments>			<returns>				<type>Date</type>			</returns>		</method>	</staticMethods>	<staticFields>	</staticFields>	<methods>	</methods>	<properties>	</properties>	<events>	</events>	<remarks>	</remarks></class>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?