jaxbelement.html
来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 675 行 · 第 1/3 页
HTML
675 行
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#JAXBElement(javax.xml.namespace.QName, java.lang.Class, T)">JAXBElement</A></B>(<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> name, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><<A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A>> declaredType, <A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A> value)</CODE><BR> Construct an xml element instance.</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> <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><<A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#getDeclaredType()">getDeclaredType</A></B>()</CODE><BR> Returns the Java binding of the xml element declaration's type attribute.</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/javax/xml/namespace/QName.html" title="class or interface in javax.xml.namespace">QName</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#getName()">getName</A></B>()</CODE><BR> Returns the xml element tag name.</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/Class.html" title="class or interface in java.lang">Class</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#getScope()">getScope</A></B>()</CODE><BR> Returns scope of xml element declaration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#getValue()">getValue</A></B>()</CODE><BR> Return the content model and attribute values for this element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#isGlobalScope()">isGlobalScope</A></B>()</CODE><BR> Returns true iff this xml element declaration is global.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#isNil()">isNil</A></B>()</CODE><BR> Returns <tt>true</tt> iff this element instance content model is nil.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#isTypeSubstituted()">isTypeSubstituted</A></B>()</CODE><BR> Returns true iff this xml element instance's value has a different type than xml element declaration's declared type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#setNil(boolean)">setNil</A></B>(boolean value)</CODE><BR> Set whether this element has nil content.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/bind/JAXBElement.html#setValue(T)">setValue</A></B>(<A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A> t)</CODE><BR> Set the content model and attributes of this xml element.</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.<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="name"><!-- --></A><H3>name</H3><PRE>protected final <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>name</B></PRE><DL><DD>xml element tag name<P><DL></DL></DL><HR><A NAME="declaredType"><!-- --></A><H3>declaredType</H3><PRE>protected final <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><<A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A>> <B>declaredType</B></PRE><DL><DD>Java datatype binding for xml element declaration's type.<P><DL></DL></DL><HR><A NAME="scope"><!-- --></A><H3>scope</H3><PRE>protected final <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> <B>scope</B></PRE><DL><DD>Scope of xml element declaration representing this xml element instance. Can be one of the following values: - <A HREF="../../../javax/xml/bind/JAXBElement.GlobalScope.html" title="class in javax.xml.bind"><CODE>JAXBElement.GlobalScope</CODE></A> for global xml element declaration. - local element declaration has a scope set to the Java class representation of complex type defintion containing xml element declaration.<P><DL></DL></DL><HR><A NAME="value"><!-- --></A><H3>value</H3><PRE>protected <A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A> <B>value</B></PRE><DL><DD>xml element value. Represents content model and attributes of an xml element instance.<P><DL></DL></DL><HR><A NAME="nil"><!-- --></A><H3>nil</H3><PRE>protected boolean <B>nil</B></PRE><DL><DD>true iff the xml element instance has xsi:nil="true".<P><DL></DL></DL><!-- ========= 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="JAXBElement(javax.xml.namespace.QName,java.lang.Class,java.lang.Class,java.lang.Object)"><!-- --></A><A NAME="JAXBElement(javax.xml.namespace.QName, java.lang.Class, java.lang.Class, T)"><!-- --></A><H3>JAXBElement</H3><PRE>public <B>JAXBElement</B>(<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> name, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><<A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A>> declaredType, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> scope, <A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A> value)</PRE><DL><DD><p>Construct an xml element instance.</p><P><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - Java binding of xml element tag name<DD><CODE>declaredType</CODE> - Java binding of xml element declaration's type<DD><CODE>scope</CODE> - Java binding of scope of xml element declaration. Passing null is the same as passing <tt>GlobalScope.class</tt><DD><CODE>value</CODE> - Java instance representing xml element's value.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/bind/JAXBElement.html#getScope()"><CODE>getScope()</CODE></A>, <A HREF="../../../javax/xml/bind/JAXBElement.html#isTypeSubstituted()"><CODE>isTypeSubstituted()</CODE></A></DL></DL><HR><A NAME="JAXBElement(javax.xml.namespace.QName,java.lang.Class,java.lang.Object)"><!-- --></A><A NAME="JAXBElement(javax.xml.namespace.QName, java.lang.Class, T)"><!-- --></A><H3>JAXBElement</H3><PRE>public <B>JAXBElement</B>(<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> name, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><<A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A>> declaredType, <A HREF="../../../javax/xml/bind/JAXBElement.html" title="type parameter in JAXBElement">T</A> value)</PRE><DL><DD>Construct an xml element instance. This is just a convenience method for <tt>new JAXBElement(name,declaredType,GlobalScope.class,value)</tt><P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?