📄 platformconfig.html
字号:
<CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html#getIndexFields()">getIndexFields</A></B>()</CODE><BR> returns an array of String fields to index the advertisement on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html#getName()">getName</A></B>()</CODE><BR> returns the name of the peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html#getPeerID()">getPeerID</A></B>()</CODE><BR> Returns the id of the peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html#handleElement(net.jxta.document.Element)">handleElement</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> raw)</CODE><BR> Process an individual element from the document during parse. Normally, implementations will allow the base advertisments a chance to handle the element before attempting ot handle the element themselves. ie. <p/><pre><code> protected boolean handleElement( Element elem ) { if ( super.handleElement() ) { // it's been handled. return true; } <i>... handle elements here ...</i> // we don't know how to handle the element return false; } </code></pre></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="../../../../net/jxta/impl/protocol/PlatformConfig.html#setDebugLevel(java.lang.String)">setDebugLevel</A></B>(java.lang.String debugLevel)</CODE><BR> sets the debugLevel</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="../../../../net/jxta/impl/protocol/PlatformConfig.html#setDesc(net.jxta.document.Element)">setDesc</A></B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> desc)</CODE><BR> sets the description</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="../../../../net/jxta/impl/protocol/PlatformConfig.html#setDescription(java.lang.String)">setDescription</A></B>(java.lang.String description)</CODE><BR> sets the description</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="../../../../net/jxta/impl/protocol/PlatformConfig.html#setName(java.lang.String)">setName</A></B>(java.lang.String name)</CODE><BR> sets the name of the peer.</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="../../../../net/jxta/impl/protocol/PlatformConfig.html#setPeerID(net.jxta.peer.PeerID)">setPeerID</A></B>(<A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> pid)</CODE><BR> Sets the id of the peer.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.protocol.ConfigParams"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.protocol.<A HREF="../../../../net/jxta/protocol/ConfigParams.html" title="class in net.jxta.protocol">ConfigParams</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/protocol/ConfigParams.html#addDocumentElements(net.jxta.document.StructuredDocument)">addDocumentElements</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#getBaseAdvType()">getBaseAdvType</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#getModCount()">getModCount</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#getServiceParam(net.jxta.id.ID)">getServiceParam</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#getServiceParamsEntrySet()">getServiceParamsEntrySet</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#incModCount()">incModCount</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#putServiceParam(net.jxta.id.ID, net.jxta.document.Element)">putServiceParam</A>, <A HREF="../../../../net/jxta/protocol/ConfigParams.html#removeServiceParam(net.jxta.id.ID)">removeServiceParam</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.document.Advertisement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.document.<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#toString()">toString</A></CODE></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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="PlatformConfig()"><!-- --></A><H3>PlatformConfig</H3><PRE><B>PlatformConfig</B>()</PRE><DL><DD>Use the Instantiator through the factory<P></DL><HR><A NAME="PlatformConfig(net.jxta.document.Element)"><!-- --></A><H3>PlatformConfig</H3><PRE><B>PlatformConfig</B>(<A HREF="../../../../net/jxta/document/Element.html" title="interface in net.jxta.document">Element</A> root)</PRE><DL><DD>Use the Instantiator through the factory<P></DL><!-- ============ 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="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Make a safe clone of this PlatformConfig.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Object an object of class PlatformConfig that is a deep-enough copy of this one.</DL></DD></DL><HR><A NAME="getAdvertisementType()"><!-- --></A><H3>getAdvertisementType</H3><PRE>public static java.lang.String <B>getAdvertisementType</B>()</PRE><DL><DD>returns the advertisement type<P><DD><DL><DT><B>Returns:</B><DD>string type</DL></DD></DL><HR><A NAME="getAdvType()"><!-- --></A><H3>getAdvType</H3><PRE>public java.lang.String <B>getAdvType</B>()</PRE><DL><DD>Returns the identifying type of this Advertisement. Unlike <A HREF="../../../../net/jxta/document/Advertisement.html#getAdvertisementType()"><CODE>Advertisement.getAdvertisementType()</CODE></A> this method will return the correct runtime type of an Advertisement object. <p/>This implementation is provided so as to NOT break the code of existing advertisements. In most cases you should provide your own implementation for efficeiny reasons.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../net/jxta/document/Advertisement.html#getAdvType()">getAdvType</A></CODE> in class <CODE><A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the identifying type of this Advertisement</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>returns the name of the peer.<P><DD><DL><DT><B>Returns:</B><DD>String name of the peer.<DT><B>Since:</B></DT> <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(java.lang.String name)</PRE><DL><DD>sets the name of the peer.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - name of the peer.<DT><B>Since:</B></DT> <DD>JXTA 1.0</DD></DL></DD></DL><HR><A NAME="getPeerID()"><!-- --></A><H3>getPeerID</H3><PRE>public <A HREF="../../../../net/jxta/peer/PeerID.html" title="class in net.jxta.peer">PeerID</A> <B>getPeerID</B>()</PRE><DL><DD>Returns the id of the peer.<P><DD><DL><DT><B>Returns:</B><DD>PeerID the peer id<DT><B>Since:</B></DT> <DD>JXTA 1.0</DD></DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -