📄 typemappingregistry.html
字号:
An example is "http://schemas.xmlsoap.org/soap/encoding/"<DD><CODE>mapping</CODE> - TypeMapping instance<DT><B>Returns:</B><DD>Previous TypeMapping associated with the specified <code>encodingStyleURI</code>, or <code>null</code> if there was no TypeMapping associated with the specified <code>encodingStyleURI</code><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 an error in the registration of the <code>TypeMapping</code> for the specified <code>encodingStyleURI</code>.</DL></DD></DL><HR><A NAME="registerDefault(javax.xml.rpc.encoding.TypeMapping)"><!-- --></A><H3>registerDefault</H3><PRE>public void <B>registerDefault</B>(<A HREF="../../../../javax/xml/rpc/encoding/TypeMapping.html" title="interface in javax.xml.rpc.encoding">TypeMapping</A> mapping)</PRE><DL><DD>Registers the <code>TypeMapping</code> instance that is default for all encoding styles supported by the <code>TypeMappingRegistry</code>. A default <code>TypeMapping</code> should include serializers and deserializers that are independent of and usable with any encoding style. Successive invocations of the <code>registerDefault</code> method replace any existing default <code>TypeMapping</code> instance. <p>If the default <code>TypeMapping</code> is registered, any other TypeMapping instances registered through the <code>TypeMappingRegistry.register</code> method (for a set of encodingStyle URIs) override the default <code>TypeMapping</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mapping</CODE> - TypeMapping instance<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 an error in the registration of the default <code>TypeMapping</code></DL></DD></DL><HR><A NAME="getDefaultTypeMapping()"><!-- --></A><H3>getDefaultTypeMapping</H3><PRE>public <A HREF="../../../../javax/xml/rpc/encoding/TypeMapping.html" title="interface in javax.xml.rpc.encoding">TypeMapping</A> <B>getDefaultTypeMapping</B>()</PRE><DL><DD>Gets the registered default <code>TypeMapping</code> instance. This method returns <code>null</code> if there is no registered default TypeMapping in the registry.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The registered default <code>TypeMapping</code> instance or <code>null</code></DL></DD></DL><HR><A NAME="getRegisteredEncodingStyleURIs()"><!-- --></A><H3>getRegisteredEncodingStyleURIs</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>getRegisteredEncodingStyleURIs</B>()</PRE><DL><DD>Returns a list of registered encodingStyle URIs in this <code>TypeMappingRegistry</code> instance.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Array of the registered encodingStyle URIs</DL></DD></DL><HR><A NAME="getTypeMapping(java.lang.String)"><!-- --></A><H3>getTypeMapping</H3><PRE>public <A HREF="../../../../javax/xml/rpc/encoding/TypeMapping.html" title="interface in javax.xml.rpc.encoding">TypeMapping</A> <B>getTypeMapping</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> encodingStyleURI)</PRE><DL><DD>Returns the registered <code>TypeMapping</code> for the specified encodingStyle URI. If there is no registered <code>TypeMapping</code> for the specified <code>encodingStyleURI</code>, this method returns <code>null</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>encodingStyleURI</CODE> - Encoding style specified as an URI<DT><B>Returns:</B><DD>TypeMapping for the specified encodingStyleURI or <code>null</code></DL></DD></DL><HR><A NAME="createTypeMapping()"><!-- --></A><H3>createTypeMapping</H3><PRE>public <A HREF="../../../../javax/xml/rpc/encoding/TypeMapping.html" title="interface in javax.xml.rpc.encoding">TypeMapping</A> <B>createTypeMapping</B>()</PRE><DL><DD>Creates a new empty <code>TypeMapping</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>TypeMapping instance</DL></DD></DL><HR><A NAME="unregisterTypeMapping(java.lang.String)"><!-- --></A><H3>unregisterTypeMapping</H3><PRE>public <A HREF="../../../../javax/xml/rpc/encoding/TypeMapping.html" title="interface in javax.xml.rpc.encoding">TypeMapping</A> <B>unregisterTypeMapping</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> encodingStyleURI)</PRE><DL><DD>Unregisters a TypeMapping instance, if present, from the specified encodingStyleURI.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>encodingStyleURI</CODE> - Encoding style specified as an URI<DT><B>Returns:</B><DD><code>TypeMapping</code> instance that has been unregistered or <code>null</code> if there was no TypeMapping registered for the specified <code>encodingStyleURI</code></DL></DD></DL><HR><A NAME="removeTypeMapping(javax.xml.rpc.encoding.TypeMapping)"><!-- --></A><H3>removeTypeMapping</H3><PRE>public boolean <B>removeTypeMapping</B>(<A HREF="../../../../javax/xml/rpc/encoding/TypeMapping.html" title="interface in javax.xml.rpc.encoding">TypeMapping</A> mapping)</PRE><DL><DD>Removes a <code>TypeMapping</code> from the TypeMappingRegistry. A <code>TypeMapping</code> is associated with 1 or more encodingStyleURIs. This method unregisters the specified <code>TypeMapping</code> instance from all associated <code>encodingStyleURIs</code> and then removes this TypeMapping instance from the registry.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mapping</CODE> - TypeMapping to be removed<DT><B>Returns:</B><DD><code>true</code> if specified <code>TypeMapping</code> is removed from the TypeMappingRegistry; <code>false</code> if the specified <code>TypeMapping</code> was not in the <code>TypeMappingRegistry</code></DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all registered TypeMappings and encodingStyleURIs from this TypeMappingRegistry.<P><DD><DL></DL></DD><DD><DL></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/TypeMapping.html" title="interface in javax.xml.rpc.encoding"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TypeMappingRegistry.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 + -