<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Sat Dec 04 05:26:31 UTC 2010 --> <TITLE> DatatypeConverter </TITLE> <META NAME="date" CONTENT="2010-12-04"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="DatatypeConverter"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../javax/xml/bind/DatatypeConverterInterface.html" title="interface in javax.xml.bind"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/xml/bind/DatatypeConverter.html" target="_top"><B>FRAMES</B></A> <A HREF="DatatypeConverter.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> javax.xml.bind</FONT> <BR> Class DatatypeConverter</H2> <PRE> java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>javax.xml.bind.DatatypeConverter</B> </PRE> <HR> <DL> <DT><PRE>public final class <B>DatatypeConverter</B><DT>extends java.lang.Object</DL> </PRE> <P> <p>This is a helper class for customized datatypes. It provides a set of static methods which may be useful in custom methods for parsing and printing values.</p> <p>The JAXB provider is responsible to initialize the <code>DatatypeConverter</code> class by invoking <A HREF="../../../javax/xml/bind/DatatypeConverter.html#setDatatypeConverter(javax.xml.bind.DatatypeConverterInterface)"><CODE>setDatatypeConverter(DatatypeConverterInterface)</CODE></A> as soon as possible.</p> <P> <P> <DL> <DT><B>Since:</B></DT> <DD>JAXB1.0</DD> <DT><B>Author:</B></DT> <DD>JSR-31</DD> </DL> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#DatatypeConverter()">DatatypeConverter</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseAnySimpleType(java.lang.String)">parseAnySimpleType</A></B>(java.lang.String pLexicalXSDAnySimpleType)</CODE> <BR> Returns the lexical representation of the input string, which is the unmodified input string.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static byte[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseBase64Binary(java.lang.String)">parseBase64Binary</A></B>(java.lang.String pLexicalXSDBase64Binary)</CODE> <BR> Parses the lexical representation of the given byte array, which is encoded in base 64.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseBoolean(java.lang.String)">parseBoolean</A></B>(java.lang.String pLexicalXSDBoolean)</CODE> <BR> Parses the lexical representation of the given boolean value and converts it into a primitive <code>boolean</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static byte</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseByte(java.lang.String)">parseByte</A></B>(java.lang.String pLexicalXSDByte)</CODE> <BR> Parses the lexical representation of the given 8 bit integer value and converts it into a primitive <code>byte</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.util.Calendar</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseDate(java.lang.String)">parseDate</A></B>(java.lang.String pLexicalXSDDate)</CODE> <BR> Parses the lexical representation of the given date value and converts it into an instance of <CODE>Calendar</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.util.Calendar</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseDateTime(java.lang.String)">parseDateTime</A></B>(java.lang.String pLexicalXSDDateTime)</CODE> <BR> Parses the lexical representation of the given dateTime value and converts it into an instance of <CODE>Calendar</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.math.BigDecimal</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseDecimal(java.lang.String)">parseDecimal</A></B>(java.lang.String pLexicalXSDDecimal)</CODE> <BR> Parses the lexical representation of the given decimal value (arbitrary precision) and converts it into an instance of <CODE>BigDecimal</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseDouble(java.lang.String)">parseDouble</A></B>(java.lang.String pLexicalXSDDouble)</CODE> <BR> Parses the lexical representation of the given 64 bit floating point value and converts it into a primitive <code>double</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static float</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseFloat(java.lang.String)">parseFloat</A></B>(java.lang.String pLexicalXSDFloat)</CODE> <BR> Parses the lexical representation of the given 32 bit floating point value and converts it into a primitive <code>float</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static byte[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseHexBinary(java.lang.String)">parseHexBinary</A></B>(java.lang.String pLexicalXSDHexBinary)</CODE> <BR> Parses the lexical representation of the given byte array, which is encoded in hex digits.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseInt(java.lang.String)">parseInt</A></B>(java.lang.String pLexicalXSDInt)</CODE> <BR> Parses the lexical representation of the given 32 bit integer value and converts it into a primitive <code>int</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.math.BigInteger</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseInteger(java.lang.String)">parseInteger</A></B>(java.lang.String pLexicalXSDInteger)</CODE> <BR> Parses the lexical representation of the given integer value (arbitrary precision) and converts it into an instance of <CODE>BigInteger</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static long</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseLong(java.lang.String)">parseLong</A></B>(java.lang.String pLexicalXSDLong)</CODE> <BR> Parses the lexical representation of the given 64 bit integer value and converts it into a primitive <code>long</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseQName(java.lang.String, javax.xml.namespace.NamespaceContext)">parseQName</A></B>(java.lang.String pLexicalXSDQName, <A HREF="../../../javax/xml/namespace/NamespaceContext.html" title="interface in javax.xml.namespace">NamespaceContext</A> pNamespaceContext)</CODE> <BR> Parses the lexical representation of the given qualified name and converts it into an instance of <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace"><CODE>QName</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static short</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseShort(java.lang.String)">parseShort</A></B>(java.lang.String pLexicalXSDShort)</CODE> <BR> Parses the lexical representation of the given 16 bit integer value and converts it into a primitive <code>short</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseString(java.lang.String)">parseString</A></B>(java.lang.String pLexicalXSDString)</CODE> <BR> Parses the lexical representation and converts it into a String.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.util.Calendar</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseTime(java.lang.String)">parseTime</A></B>(java.lang.String pLexicalXSDTime)</CODE> <BR> Parses the lexical representation of the given time value and converts it into an instance of <CODE>Calendar</CODE>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static long</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseUnsignedInt(java.lang.String)">parseUnsignedInt</A></B>(java.lang.String pLexicalXSDUnsignedInt)</CODE> <BR> Parses the lexical representation of the given 32 bit unsignet integer value and converts it into a primitive <code>long</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#parseUnsignedShort(java.lang.String)">parseUnsignedShort</A></B>(java.lang.String pLexicalXSDUnsignedShort)</CODE> <BR> Parses the lexical representation of the given 16 bit unsignet integer value and converts it into a primitive <code>int</code> value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printAnySimpleType(java.lang.String)">printAnySimpleType</A></B>(java.lang.String pValue)</CODE> <BR> Returns a lexical representation of the given input string, which is the unmodified input string.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printBase64Binary(byte[])">printBase64Binary</A></B>(byte[] pValue)</CODE> <BR> Returns a lexical representation of the given byte array.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printBoolean(boolean)">printBoolean</A></B>(boolean pValue)</CODE> <BR> Returns a lexical representation of the given primitive boolean value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printByte(byte)">printByte</A></B>(byte pValue)</CODE> <BR> Returns a lexical representation of the given primitive 8 bit integer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printDate(java.util.Calendar)">printDate</A></B>(java.util.Calendar pValue)</CODE> <BR> Returns a lexical representation of the given date value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printDateTime(java.util.Calendar)">printDateTime</A></B>(java.util.Calendar pValue)</CODE> <BR> Returns a lexical representation of the given dateTime value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printDecimal(java.math.BigDecimal)">printDecimal</A></B>(java.math.BigDecimal pValue)</CODE> <BR> Returns a lexical representation of the given instance of <CODE>BigDecimal</CODE>, which is a decimal number in arbitrary precision.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printDouble(double)">printDouble</A></B>(double pValue)</CODE> <BR> Returns a lexical representation of the given primitive 64 bit floating point number.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printFloat(float)">printFloat</A></B>(float pValue)</CODE> <BR> Returns a lexical representation of the given primitive 32 bit floating point number.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printHexBinary(byte[])">printHexBinary</A></B>(byte[] pValue)</CODE> <BR> Returns a lexical representation of the given byte array.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printInt(int)">printInt</A></B>(int pValue)</CODE> <BR> Returns a lexical representation of the given primitive 32 bit integer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printInteger(java.math.BigInteger)">printInteger</A></B>(java.math.BigInteger pValue)</CODE> <BR> Returns a lexical representation of the given instance of <CODE>BigInteger</CODE>, which is an integer in arbitrary precision.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printLong(long)">printLong</A></B>(long pValue)</CODE> <BR> Returns a lexical representation of the given primitive 64 bit integer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printQName(javax.xml.namespace.QName, javax.xml.namespace.NamespaceContext)">printQName</A></B>(<A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> pValue, <A HREF="../../../javax/xml/namespace/NamespaceContext.html" title="interface in javax.xml.namespace">NamespaceContext</A> pNamespaceContext)</CODE> <BR> Returns a lexical representation of the given qualified name, which is a combination of namespace URI and local name.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printShort(short)">printShort</A></B>(short pValue)</CODE> <BR> Returns a lexical representation of the given primitive 16 bit integer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printString(java.lang.String)">printString</A></B>(java.lang.String pValue)</CODE> <BR> Returns a lexical representation of the given input string, which is the unmodified input string.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printTime(java.util.Calendar)">printTime</A></B>(java.util.Calendar pValue)</CODE> <BR> Returns a lexical representation of the given time value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printUnsignedInt(long)">printUnsignedInt</A></B>(long pValue)</CODE> <BR> Returns a lexical representation of the given primitive, unsigned 32 bit integer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#printUnsignedShort(int)">printUnsignedShort</A></B>(int pValue)</CODE> <BR> Returns a lexical representation of the given primitive, unsigned 16 bit integer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../javax/xml/bind/DatatypeConverter.html#setDatatypeConverter(javax.xml.bind.DatatypeConverterInterface)">setDatatypeConverter</A></B>(<A HREF="../../../javax/xml/bind/DatatypeConverterInterface.html" title="interface in javax.xml.bind">DatatypeConverterInterface</A> pConverter)</CODE> <BR> This method must be invoked by the JAXB provider to set the actual instance, which is invoked by the static methods.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_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>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="DatatypeConverter()"><!-- --></A><H3> DatatypeConverter</H3> <PRE> public <B>DatatypeConverter</B>()</PRE> <DL> </DL> <!-- ============ 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="setDatatypeConverter(javax.xml.bind.DatatypeConverterInterface)"><!-- --></A><H3> setDatatypeConverter</H3> <PRE> public static void <B>setDatatypeConverter</B>(<A HREF="../../../javax/xml/bind/DatatypeConverterInterface.html" title="interface in javax.xml.bind">DatatypeConverterInterface</A> pConverter)</PRE> <DL> <DD><p>This method must be invoked by the JAXB provider to set the actual instance, which is invoked by the static methods. Subsequent invocations of the method are ignored: First come, first wins.</p> <P> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.lang.IllegalArgumentException</CODE> - The parameter was null.</DL> </DD> </DL> <HR> <A NAME="parseString(java.lang.String)"><!-- --></A><H3> parseString</H3> <PRE> public static java.lang.String <B>parseString</B>(java.lang.String pLexicalXSDString)</PRE> <DL> <DD><p>Parses the lexical representation and converts it into a String.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDString</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The unmodified input string.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseInteger(java.lang.String)"><!-- --></A><H3> parseInteger</H3> <PRE> public static java.math.BigInteger <B>parseInteger</B>(java.lang.String pLexicalXSDInteger)</PRE> <DL> <DD><p>Parses the lexical representation of the given integer value (arbitrary precision) and converts it into an instance of <CODE>BigInteger</CODE>.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDInteger</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into an instance of <CODE>BigInteger</CODE>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseInt(java.lang.String)"><!-- --></A><H3> parseInt</H3> <PRE> public static int <B>parseInt</B>(java.lang.String pLexicalXSDInt)</PRE> <DL> <DD><p>Parses the lexical representation of the given 32 bit integer value and converts it into a primitive <code>int</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDInt</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>int</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseLong(java.lang.String)"><!-- --></A><H3> parseLong</H3> <PRE> public static long <B>parseLong</B>(java.lang.String pLexicalXSDLong)</PRE> <DL> <DD><p>Parses the lexical representation of the given 64 bit integer value and converts it into a primitive <code>long</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDLong</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>long</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseShort(java.lang.String)"><!-- --></A><H3> parseShort</H3> <PRE> public static short <B>parseShort</B>(java.lang.String pLexicalXSDShort)</PRE> <DL> <DD><p>Parses the lexical representation of the given 16 bit integer value and converts it into a primitive <code>short</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDShort</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>short</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseDecimal(java.lang.String)"><!-- --></A><H3> parseDecimal</H3> <PRE> public static java.math.BigDecimal <B>parseDecimal</B>(java.lang.String pLexicalXSDDecimal)</PRE> <DL> <DD><p>Parses the lexical representation of the given decimal value (arbitrary precision) and converts it into an instance of <CODE>BigDecimal</CODE>.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDDecimal</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into an instance of <CODE>BigDecimal</CODE>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseFloat(java.lang.String)"><!-- --></A><H3> parseFloat</H3> <PRE> public static float <B>parseFloat</B>(java.lang.String pLexicalXSDFloat)</PRE> <DL> <DD><p>Parses the lexical representation of the given 32 bit floating point value and converts it into a primitive <code>float</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDFloat</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>float</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseDouble(java.lang.String)"><!-- --></A><H3> parseDouble</H3> <PRE> public static double <B>parseDouble</B>(java.lang.String pLexicalXSDDouble)</PRE> <DL> <DD><p>Parses the lexical representation of the given 64 bit floating point value and converts it into a primitive <code>double</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDDouble</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>double</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseBoolean(java.lang.String)"><!-- --></A><H3> parseBoolean</H3> <PRE> public static boolean <B>parseBoolean</B>(java.lang.String pLexicalXSDBoolean)</PRE> <DL> <DD><p>Parses the lexical representation of the given boolean value and converts it into a primitive <code>boolean</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDBoolean</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>boolean</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseByte(java.lang.String)"><!-- --></A><H3> parseByte</H3> <PRE> public static byte <B>parseByte</B>(java.lang.String pLexicalXSDByte)</PRE> <DL> <DD><p>Parses the lexical representation of the given 8 bit integer value and converts it into a primitive <code>byte</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDByte</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>byte</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseQName(java.lang.String, javax.xml.namespace.NamespaceContext)"><!-- --></A><H3> parseQName</H3> <PRE> public static <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> <B>parseQName</B>(java.lang.String pLexicalXSDQName, <A HREF="../../../javax/xml/namespace/NamespaceContext.html" title="interface in javax.xml.namespace">NamespaceContext</A> pNamespaceContext)</PRE> <DL> <DD><p>Parses the lexical representation of the given qualified name and converts it into an instance of <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace"><CODE>QName</CODE></A>. The <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace"><CODE>QName</CODE></A> consists of a namespace URI and a local name.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDQName</CODE> - The input string being parsed, an optional namespace prefix, followed by the local name, if any. If a prefix is present, they are separated by a colon.<DD><CODE>pNamespaceContext</CODE> - The namespace context is used to query mappings between prefixes and namespace URI's. <DT><B>Returns:</B><DD>The input string converted into an instance of <A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace"><CODE>QName</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseDateTime(java.lang.String)"><!-- --></A><H3> parseDateTime</H3> <PRE> public static java.util.Calendar <B>parseDateTime</B>(java.lang.String pLexicalXSDDateTime)</PRE> <DL> <DD><p>Parses the lexical representation of the given dateTime value and converts it into an instance of <CODE>Calendar</CODE>. Valid lexical representations of a dateTime value include <pre> YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00 </pre> The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDDateTime</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into an instance of <CODE>Calendar</CODE>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseBase64Binary(java.lang.String)"><!-- --></A><H3> parseBase64Binary</H3> <PRE> public static byte[] <B>parseBase64Binary</B>(java.lang.String pLexicalXSDBase64Binary)</PRE> <DL> <DD><p>Parses the lexical representation of the given byte array, which is encoded in base 64.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDBase64Binary</CODE> - The input string being parsed, a base 64 encoded array of bytes. <DT><B>Returns:</B><DD>The decoded byte array.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseHexBinary(java.lang.String)"><!-- --></A><H3> parseHexBinary</H3> <PRE> public static byte[] <B>parseHexBinary</B>(java.lang.String pLexicalXSDHexBinary)</PRE> <DL> <DD><p>Parses the lexical representation of the given byte array, which is encoded in hex digits.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDHexBinary</CODE> - The input string being parsed, an array of bytes encoded in hex digits. <DT><B>Returns:</B><DD>The decoded byte array.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseUnsignedInt(java.lang.String)"><!-- --></A><H3> parseUnsignedInt</H3> <PRE> public static long <B>parseUnsignedInt</B>(java.lang.String pLexicalXSDUnsignedInt)</PRE> <DL> <DD><p>Parses the lexical representation of the given 32 bit unsignet integer value and converts it into a primitive <code>long</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDUnsignedInt</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into a primitive <code>long</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseUnsignedShort(java.lang.String)"><!-- --></A><H3> parseUnsignedShort</H3> <PRE> public static int <B>parseUnsignedShort</B>(java.lang.String pLexicalXSDUnsignedShort)</PRE> <DL> <DD><p>Parses the lexical representation of the given 16 bit unsignet integer value and converts it into a primitive <code>int</code> value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDUnsignedShort</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string conve rted into a primitive <code>int</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseTime(java.lang.String)"><!-- --></A><H3> parseTime</H3> <PRE> public static java.util.Calendar <B>parseTime</B>(java.lang.String pLexicalXSDTime)</PRE> <DL> <DD><p>Parses the lexical representation of the given time value and converts it into an instance of <CODE>Calendar</CODE>. Valid lexical representations of a time value include <pre> hh:mm:ss hh:mm:ss.sss hh:mm:ssZ hh:mm:ss-01:00 </pre> The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDTime</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into an instance of <CODE>Calendar</CODE>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseDate(java.lang.String)"><!-- --></A><H3> parseDate</H3> <PRE> public static java.util.Calendar <B>parseDate</B>(java.lang.String pLexicalXSDDate)</PRE> <DL> <DD><p>Parses the lexical representation of the given date value and converts it into an instance of <CODE>Calendar</CODE>. Valid lexical representations of a date value include <pre> YYYY-MM-DD YYYY-MM-DDZ YYYY-MM-DD-01:00 </pre> The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDDate</CODE> - The input string being parsed. <DT><B>Returns:</B><DD>The input string converted into an instance of <CODE>Calendar</CODE>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="parseAnySimpleType(java.lang.String)"><!-- --></A><H3> parseAnySimpleType</H3> <PRE> public static java.lang.String <B>parseAnySimpleType</B>(java.lang.String pLexicalXSDAnySimpleType)</PRE> <DL> <DD><p>Returns the lexical representation of the input string, which is the unmodified input string.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pLexicalXSDAnySimpleType</CODE> - An input string in lexical representation. <DT><B>Returns:</B><DD>The unmodified input string.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/ParseConversionEvent.html" title="interface in javax.xml.bind"><CODE>ParseConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printString(java.lang.String)"><!-- --></A><H3> printString</H3> <PRE> public static java.lang.String <B>printString</B>(java.lang.String pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given input string, which is the unmodified input string.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The input string. <DT><B>Returns:</B><DD>The unmodified input string.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printInteger(java.math.BigInteger)"><!-- --></A><H3> printInteger</H3> <PRE> public static java.lang.String <B>printInteger</B>(java.math.BigInteger pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given instance of <CODE>BigInteger</CODE>, which is an integer in arbitrary precision.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The integer value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printInt(int)"><!-- --></A><H3> printInt</H3> <PRE> public static java.lang.String <B>printInt</B>(int pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive 32 bit integer.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>int</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printLong(long)"><!-- --></A><H3> printLong</H3> <PRE> public static java.lang.String <B>printLong</B>(long pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive 64 bit integer.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>long</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printShort(short)"><!-- --></A><H3> printShort</H3> <PRE> public static java.lang.String <B>printShort</B>(short pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive 16 bit integer.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>short</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printDecimal(java.math.BigDecimal)"><!-- --></A><H3> printDecimal</H3> <PRE> public static java.lang.String <B>printDecimal</B>(java.math.BigDecimal pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given instance of <CODE>BigDecimal</CODE>, which is a decimal number in arbitrary precision.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The decimal value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printFloat(float)"><!-- --></A><H3> printFloat</H3> <PRE> public static java.lang.String <B>printFloat</B>(float pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive 32 bit floating point number.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>float</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printDouble(double)"><!-- --></A><H3> printDouble</H3> <PRE> public static java.lang.String <B>printDouble</B>(double pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive 64 bit floating point number.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>double</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printBoolean(boolean)"><!-- --></A><H3> printBoolean</H3> <PRE> public static java.lang.String <B>printBoolean</B>(boolean pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive boolean value.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>boolean</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printByte(byte)"><!-- --></A><H3> printByte</H3> <PRE> public static java.lang.String <B>printByte</B>(byte pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive 8 bit integer.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>byte</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printQName(javax.xml.namespace.QName, javax.xml.namespace.NamespaceContext)"><!-- --></A><H3> printQName</H3> <PRE> public static java.lang.String <B>printQName</B>(<A HREF="../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> pValue, <A HREF="../../../javax/xml/namespace/NamespaceContext.html" title="interface in javax.xml.namespace">NamespaceContext</A> pNamespaceContext)</PRE> <DL> <DD><p>Returns a lexical representation of the given qualified name, which is a combination of namespace URI and local name. The lexical representation is an optional prefix, which is currently mapped to namespace URI of the qualified name, followed by a colon and the local name. If the namespace URI is the current default namespace URI, then the prefix and the colon may be omitted.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The qualified name being converted.<DD><CODE>pNamespaceContext</CODE> - A mapping of prefixes to namespace URI's which may be used to determine a valid prefix. <DT><B>Returns:</B><DD>A lexical representation of the qualified name.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printDateTime(java.util.Calendar)"><!-- --></A><H3> printDateTime</H3> <PRE> public static java.lang.String <B>printDateTime</B>(java.util.Calendar pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given dateTime value. Valid lexical representations include: <pre> YYYY-MM-DDThh:mm:ss YYYY-MM-DDThh:mm:ss.sss YYYY-MM-DDThh:mm:ssZ YYYY-MM-DDThh:mm:ss-01:00 </pre> The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The dateTime value being converted <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printBase64Binary(byte[])"><!-- --></A><H3> printBase64Binary</H3> <PRE> public static java.lang.String <B>printBase64Binary</B>(byte[] pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given byte array. The lexical representation is obtained by application of the base 64 encoding.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The byte array being converted. <DT><B>Returns:</B><DD>The converted byte array.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printHexBinary(byte[])"><!-- --></A><H3> printHexBinary</H3> <PRE> public static java.lang.String <B>printHexBinary</B>(byte[] pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given byte array. The lexical representation is obtained by encoding any byte as two hex digits.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The byte array being converted. <DT><B>Returns:</B><DD>The converted byte array.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printUnsignedInt(long)"><!-- --></A><H3> printUnsignedInt</H3> <PRE> public static java.lang.String <B>printUnsignedInt</B>(long pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive, unsigned 32 bit integer.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>long</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printUnsignedShort(int)"><!-- --></A><H3> printUnsignedShort</H3> <PRE> public static java.lang.String <B>printUnsignedShort</B>(int pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given primitive, unsigned 16 bit integer.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The <code>short</code> value being converted. <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printTime(java.util.Calendar)"><!-- --></A><H3> printTime</H3> <PRE> public static java.lang.String <B>printTime</B>(java.util.Calendar pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given time value. Valid lexical representations include: <pre> hh:mm:ss hh:mm:ss.sss hh:mm:ssZ hh:mm:ss-01:00 </pre> The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The time value being converted <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printDate(java.util.Calendar)"><!-- --></A><H3> printDate</H3> <PRE> public static java.lang.String <B>printDate</B>(java.util.Calendar pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given date value. Valid lexical representations include: <pre> YYYY-MM-DD YYYY-MM-DDZ YYYY-MM-DD-01:00 </pre> The former examples are all specified in UTC time. The last example uses a negatice offset of one hour to UTC.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The date value being converted <DT><B>Returns:</B><DD>A lexical representation of the input value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <HR> <A NAME="printAnySimpleType(java.lang.String)"><!-- --></A><H3> printAnySimpleType</H3> <PRE> public static java.lang.String <B>printAnySimpleType</B>(java.lang.String pValue)</PRE> <DL> <DD><p>Returns a lexical representation of the given input string, which is the unmodified input string.</p> <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>pValue</CODE> - The input string. <DT><B>Returns:</B><DD>The unmodified input string.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/PrintConversionEvent.html" title="interface in javax.xml.bind"><CODE>PrintConversionEvent</CODE></A></DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../javax/xml/bind/DatatypeConverterInterface.html" title="interface in javax.xml.bind"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/xml/bind/DatatypeConverter.html" target="_top"><B>FRAMES</B></A> <A HREF="DatatypeConverter.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>