datatypeconverterinterface.html
来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 1,236 行 · 第 1/5 页
HTML
1,236 行
<CODE> <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverterInterface.html#printUnsignedInt(long)">printUnsignedInt</A></B>(long val)</CODE><BR> Converts a long value into a string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverterInterface.html#printUnsignedShort(int)">printUnsignedShort</A></B>(int val)</CODE><BR> Converts an int value into a string.</TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="parseString(java.lang.String)"><!-- --></A><H3>parseString</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>parseString</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDString)</PRE><DL><DD><p> Convert the string argument into a string.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDString</CODE> - A lexical representation of the XML Schema datatype xsd:string<DT><B>Returns:</B><DD>A string that is the same as the input string.</DL></DD></DL><HR><A NAME="parseInteger(java.lang.String)"><!-- --></A><H3>parseInteger</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/math/BigInteger.html" title="class or interface in java.math">BigInteger</A> <B>parseInteger</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDInteger)</PRE><DL><DD><p> Convert the string argument into a BigInteger value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDInteger</CODE> - A string containing a lexical representation of xsd:integer.<DT><B>Returns:</B><DD>A BigInteger value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDInteger</code> is not a valid string representation of a <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/math/BigInteger.html" title="class or interface in java.math"><CODE>BigInteger</CODE></A> value.</DL></DD></DL><HR><A NAME="parseInt(java.lang.String)"><!-- --></A><H3>parseInt</H3><PRE>int <B>parseInt</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDInt)</PRE><DL><DD><p> Convert the string argument into an int value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDInt</CODE> - A string containing a lexical representation of xsd:int.<DT><B>Returns:</B><DD>An int value represented byte the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDInt</code> is not a valid string representation of an <code>int</code> value.</DL></DD></DL><HR><A NAME="parseLong(java.lang.String)"><!-- --></A><H3>parseLong</H3><PRE>long <B>parseLong</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDLong)</PRE><DL><DD><p> Converts the string argument into a long value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDLong</CODE> - A string containing lexical representation of xsd:long.<DT><B>Returns:</B><DD>A long value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDLong</code> is not a valid string representation of a <code>long</code> value.</DL></DD></DL><HR><A NAME="parseShort(java.lang.String)"><!-- --></A><H3>parseShort</H3><PRE>short <B>parseShort</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDShort)</PRE><DL><DD><p> Converts the string argument into a short value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDShort</CODE> - A string containing lexical representation of xsd:short.<DT><B>Returns:</B><DD>A short value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDShort</code> is not a valid string representation of a <code>short</code> value.</DL></DD></DL><HR><A NAME="parseDecimal(java.lang.String)"><!-- --></A><H3>parseDecimal</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/math/BigDecimal.html" title="class or interface in java.math">BigDecimal</A> <B>parseDecimal</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDDecimal)</PRE><DL><DD><p> Converts the string argument into a BigDecimal value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDDecimal</CODE> - A string containing lexical representation of xsd:decimal.<DT><B>Returns:</B><DD>A BigDecimal value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDDecimal</code> is not a valid string representation of <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/math/BigDecimal.html" title="class or interface in java.math"><CODE>BigDecimal</CODE></A>.</DL></DD></DL><HR><A NAME="parseFloat(java.lang.String)"><!-- --></A><H3>parseFloat</H3><PRE>float <B>parseFloat</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDFloat)</PRE><DL><DD><p> Converts the string argument into a float value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDFloat</CODE> - A string containing lexical representation of xsd:float.<DT><B>Returns:</B><DD>A float value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDFloat</code> is not a valid string representation of a <code>float</code> value.</DL></DD></DL><HR><A NAME="parseDouble(java.lang.String)"><!-- --></A><H3>parseDouble</H3><PRE>double <B>parseDouble</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDDouble)</PRE><DL><DD><p> Converts the string argument into a double value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDDouble</CODE> - A string containing lexical representation of xsd:double.<DT><B>Returns:</B><DD>A double value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDDouble</code> is not a valid string representation of a <code>double</code> value.</DL></DD></DL><HR><A NAME="parseBoolean(java.lang.String)"><!-- --></A><H3>parseBoolean</H3><PRE>boolean <B>parseBoolean</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDBoolean)</PRE><DL><DD><p> Converts the string argument into a boolean value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDBoolean</CODE> - A string containing lexical representation of xsd:boolean.<DT><B>Returns:</B><DD>A boolean value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:boolean.</DL></DD></DL><HR><A NAME="parseByte(java.lang.String)"><!-- --></A><H3>parseByte</H3><PRE>byte <B>parseByte</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDByte)</PRE><DL><DD><p> Converts the string argument into a byte value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDByte</CODE> - A string containing lexical representation of xsd:byte.<DT><B>Returns:</B><DD>A byte value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - <code>lexicalXSDByte</code> does not contain a parseable byte.<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:byte.</DL></DD></DL><HR><A NAME="parseQName(java.lang.String, javax.xml.namespace.NamespaceContext)"><!-- --></A><H3>parseQName</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/QName.html" title="class or interface in javax.xml.namespace">QName</A> <B>parseQName</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDQName, <A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/NamespaceContext.html" title="class or interface in javax.xml.namespace">NamespaceContext</A> nsc)</PRE><DL><DD><p> Converts the string argument into a QName value. <p> String parameter <tt>lexicalXSDQname</tt> must conform to lexical value space specifed at <a href="http://www.w3.org/TR/xmlschema-2/#QName">XML Schema Part 2:Datatypes specification:QNames</a><P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDQName</CODE> - A string containing lexical representation of xsd:QName.<DD><CODE>nsc</CODE> - A namespace context for interpreting a prefix within a QName.<DT><B>Returns:</B><DD>A QName value represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if string parameter does not conform to XML Schema Part 2 specification or if namespace prefix of <tt>lexicalXSDQname</tt> is not bound to a URI in NamespaceContext <tt>nsc</tt>.</DL></DD></DL><HR><A NAME="parseDateTime(java.lang.String)"><!-- --></A><H3>parseDateTime</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Calendar.html" title="class or interface in java.util">Calendar</A> <B>parseDateTime</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> lexicalXSDDateTime)</PRE><DL><DD><p> Converts the string argument into a Calendar value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lexicalXSDDateTime</CODE> - A string containing lexical representation of xsd:datetime.<DT><B>Returns:</B><DD>A Calendar object represented by the string argument.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:dateTime.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?