📄 typemapping.html
字号:
<!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getSupportedEncodings()"><!-- --></A><H3>getSupportedEncodings</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] <B>getSupportedEncodings</B>()</PRE><DL><DD>Returns the encodingStyle URIs (as String[]) supported by this TypeMapping instance. A TypeMapping that contains only encoding style independent serializers and deserializers returns <code>null</code> from this method.<P><DD><DL><DT><B>Returns:</B><DD>Array of encodingStyle URIs for the supported encoding styles</DL></DD></DL><HR><A NAME="setSupportedEncodings(java.lang.String[])"><!-- --></A><H3>setSupportedEncodings</H3><PRE>public void <B>setSupportedEncodings</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] encodingStyleURIs)</PRE><DL><DD>Sets the encodingStyle URIs supported by this TypeMapping instance. A TypeMapping that contains only encoding independent serializers and deserializers requires <code>null</code> as the parameter for this method.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>encodingStyleURIs</CODE> - Array of encodingStyle URIs for the supported encoding styles</DL></DD></DL><HR><A NAME="isRegistered(java.lang.Class, javax.xml.namespace.QName)"><!-- --></A><H3>isRegistered</H3><PRE>public boolean <B>isRegistered</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType)</PRE><DL><DD>Checks whether or not type mapping between specified XML type and Java type is registered.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>javaType</CODE> - Class of the Java type<DT><B>Returns:</B><DD>boolean; <code>true</code> if type mapping between the specified XML type and Java type is registered; otherwise <code>false</code></DL></DD></DL><HR><A NAME="register(java.lang.Class, javax.xml.namespace.QName, javax.xml.rpc.encoding.SerializerFactory, javax.xml.rpc.encoding.DeserializerFactory)"><!-- --></A><H3>register</H3><PRE>public void <B>register</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType, <A HREF="../../../../javax/xml/rpc/encoding/SerializerFactory.html" title="interface in javax.xml.rpc.encoding">SerializerFactory</A> sf, <A HREF="../../../../javax/xml/rpc/encoding/DeserializerFactory.html" title="interface in javax.xml.rpc.encoding">DeserializerFactory</A> dsf)</PRE><DL><DD>Registers SerializerFactory and DeserializerFactory for a specific type mapping between an XML type and Java type. This method replaces any existing registered SerializerFactory DeserializerFactory instances.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>javaType</CODE> - Class of the Java type<DD><CODE>sf</CODE> - SerializerFactory<DD><CODE>dsf</CODE> - DeserializerFactory<DT><B>Throws:</B><DD><CODE><A HREF="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - If any error during the registration</DL></DD></DL><HR><A NAME="getSerializer(java.lang.Class, javax.xml.namespace.QName)"><!-- --></A><H3>getSerializer</H3><PRE>public <A HREF="../../../../javax/xml/rpc/encoding/SerializerFactory.html" title="interface in javax.xml.rpc.encoding">SerializerFactory</A> <B>getSerializer</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType)</PRE><DL><DD>Gets the SerializerFactory registered for the specified pair of Java type and XML data type.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>javaType</CODE> - Class of the Java type<DT><B>Returns:</B><DD>Registered SerializerFactory or <code>null</code> if there is no registered factory</DL></DD></DL><HR><A NAME="getDeserializer(java.lang.Class, javax.xml.namespace.QName)"><!-- --></A><H3>getDeserializer</H3><PRE>public <A HREF="../../../../javax/xml/rpc/encoding/DeserializerFactory.html" title="interface in javax.xml.rpc.encoding">DeserializerFactory</A> <B>getDeserializer</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType)</PRE><DL><DD>Gets the DeserializerFactory registered for the specified pair of Java type and XML data type.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>javaType</CODE> - Class of the Java type<DT><B>Returns:</B><DD>Registered DeserializerFactory or <code>null</code> if there is no registered factory</DL></DD></DL><HR><A NAME="removeSerializer(java.lang.Class, javax.xml.namespace.QName)"><!-- --></A><H3>removeSerializer</H3><PRE>public void <B>removeSerializer</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType)</PRE><DL><DD>Removes the SerializerFactory registered for the specified pair of Java type and XML data type.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - If there is error in removing the registered SerializerFactory</DL></DD></DL><HR><A NAME="removeDeserializer(java.lang.Class, javax.xml.namespace.QName)"><!-- --></A><H3>removeDeserializer</H3><PRE>public void <B>removeDeserializer</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> javaType, <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> xmlType)</PRE><DL><DD>Removes the DeserializerFactory registered for the specified pair of Java type and XML data type.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../javax/xml/rpc/JAXRPCException.html" title="class in javax.xml.rpc">JAXRPCException</A></CODE> - If there is error in removing the registered DeserializerFactory</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=3 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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../javax/xml/rpc/encoding/SerializerFactory.html" title="interface in javax.xml.rpc.encoding"><B>PREV CLASS</B></A> <A HREF="../../../../javax/xml/rpc/encoding/TypeMappingRegistry.html" title="interface in javax.xml.rpc.encoding"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TypeMapping.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -