📄 moduleclassid.html
字号:
<B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="id"><!-- --></A><H3>id</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/UUID/IDBytes.html" title="class in net.jxta.impl.id.UUID">IDBytes</A> <B>id</B></PRE><DL><DD>The id data<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"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ModuleClassID(net.jxta.impl.id.UUID.IDBytes)"><!-- --></A><H3>ModuleClassID</H3><PRE>protected <B>ModuleClassID</B>(<A HREF="../../../../../net/jxta/impl/id/UUID/IDBytes.html" title="class in net.jxta.impl.id.UUID">IDBytes</A> id)</PRE><DL><DD>Constructor. Intializes contents from provided ID.<P><DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID data</DL><HR><A NAME="ModuleClassID(net.jxta.impl.id.UUID.UUID, net.jxta.impl.id.UUID.UUID)"><!-- --></A><H3>ModuleClassID</H3><PRE>protected <B>ModuleClassID</B>(<A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A> classUUID, <A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A> roleUUID)</PRE><DL><DD>Constructor. Creates a ModuleClassID in a given class, with a given class unique id. A UUID of a class and another UUID are provided.<P><DT><B>Parameters:</B><DD><CODE>classUUID</CODE> - the class to which this will belong.<DD><CODE>roleUUID</CODE> - the unique id of this role in that class.</DL><HR><A NAME="ModuleClassID()"><!-- --></A><H3>ModuleClassID</H3><PRE>public <B>ModuleClassID</B>()</PRE><DL><DD>See <A HREF="../../../../../net/jxta/id/IDFactory.Instantiator.html#newModuleClassID()"><CODE>IDFactory.Instantiator.newModuleClassID()</CODE></A>. <p/>A new class UUID is created. The role ID is left null. This is the only way to create a new class without supplying a new UUID explicitly. <p/>Note that a null role is just as valid as any other, it just has a shorter string representation. So it is not mandatory to create a new role in a new class.<P></DL><HR><A NAME="ModuleClassID(net.jxta.impl.id.UUID.ModuleClassID)"><!-- --></A><H3>ModuleClassID</H3><PRE>public <B>ModuleClassID</B>(<A HREF="../../../../../net/jxta/impl/id/UUID/ModuleClassID.html" title="class in net.jxta.impl.id.UUID">ModuleClassID</A> classID)</PRE><DL><DD>See <A HREF="../../../../../net/jxta/id/IDFactory.Instantiator.html#newModuleClassID(net.jxta.platform.ModuleClassID)"><CODE>IDFactory.Instantiator.newModuleClassID(net.jxta.platform.ModuleClassID)</CODE></A>.<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="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object target)</PRE><DL><DD><P><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><P><DD><DL></DL></DD></DL><HR><A NAME="getIDFormat()"><!-- --></A><H3>getIDFormat</H3><PRE>public java.lang.String <B>getIDFormat</B>()</PRE><DL><DD>Returns a string identifier which indicates which ID format is used by this ID instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/id/ID.html#getIDFormat()">getIDFormat</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string identifier which indicates which ID format is used by this ID instance.</DL></DD></DL><HR><A NAME="getUniqueValue()"><!-- --></A><H3>getUniqueValue</H3><PRE>public java.lang.Object <B>getUniqueValue</B>()</PRE><DL><DD>Returns an object containing the unique value of the ID. This object must provide implementations of toString() and hashCode() that are canonical and consistent from run-to-run given the same input values. Beyond this nothing should be assumed about the nature of this object. For some implementations the object returned may be <code>this</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/id/ID.html#getUniqueValue()">getUniqueValue</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Object which can provide canonical representations of the ID.</DL></DD></DL><HR><A NAME="getURL()"><!-- --></A><H3>getURL</H3><PRE>public java.net.URL <B>getURL</B>()</PRE><DL><DD>Returns a URI (URL in Java nomenclature) representation of the ID. <CODE>URLs</CODE> are the prefered way of externalizing and presenting JXTA IDs. The <A HREF="../../../../../net/jxta/id/IDFactory.html" title="class in net.jxta.id"><CODE>JXTA ID Factory</CODE></A> can be used to construct ID Objects from URLs containing JXTA IDs.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/id/ID.html#getURL()">getURL</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>URL Object containing the URI<DT><B>See Also:</B><DD><CODE>URL</CODE>, <A HREF="../../../../../net/jxta/id/IDFactory.html#fromURL(java.net.URL)"><CODE>IDFactory.fromURL( java.net.URL )</CODE></A></DL></DD></DL><HR><A NAME="getBaseClass()"><!-- --></A><H3>getBaseClass</H3><PRE>public <A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> <B>getBaseClass</B>()</PRE><DL><DD>Return a ModuleClassID of the same base class but with the role portion set to zero. aka "the base class".<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/platform/ModuleClassID.html#getBaseClass()">getBaseClass</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>ModuleClassID the base class.</DL></DD></DL><HR><A NAME="isOfSameBaseClass(net.jxta.platform.ModuleClassID)"><!-- --></A><H3>isOfSameBaseClass</H3><PRE>public boolean <B>isOfSameBaseClass</B>(<A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> classId)</PRE><DL><DD>Returns true if this ModuleClassID is of the same base class than the given class. Note: This method is NOT named "isOfClass" because a ModuleClassID may have two UUID; one that denotes a "base" class proper, and an optional second one that denotes a "Role", or subclass. Compatibility between ClassIDs is based on the "base" portion, hence the "isOfSame" naming. This routine can be used for comparison with a base class since a base class is just a class which role portion happens to be zero.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/platform/ModuleClassID.html#isOfSameBaseClass(net.jxta.platform.ModuleClassID)">isOfSameBaseClass</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>classId</CODE> - Module class id to compare with<DT><B>Returns:</B><DD>boolean true if equals</DL></DD></DL><HR><A NAME="isOfSameBaseClass(net.jxta.platform.ModuleSpecID)"><!-- --></A><H3>isOfSameBaseClass</H3><PRE>public boolean <B>isOfSameBaseClass</B>(<A HREF="../../../../../net/jxta/platform/ModuleSpecID.html" title="class in net.jxta.platform">ModuleSpecID</A> specId)</PRE><DL><DD>Returns true if this ModuleClassID is of the same class than the the given ModuleSpecID.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/platform/ModuleClassID.html#isOfSameBaseClass(net.jxta.platform.ModuleSpecID)">isOfSameBaseClass</A></CODE> in class <CODE><A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>specId</CODE> - Module spec id to compare with<DT><B>Returns:</B><DD>boolean true if equals</DL></DD></DL><HR><A NAME="getClassUUID()"><!-- --></A><H3>getClassUUID</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A> <B>getClassUUID</B>()</PRE><DL><DD>get the class' unique id<P><DD><DL><DT><B>Returns:</B><DD>UUID module class' unique id</DL></DD></DL><HR><A NAME="getRoleUUID()"><!-- --></A><H3>getRoleUUID</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/UUID/UUID.html" title="class in net.jxta.impl.id.UUID">UUID</A> <B>getRoleUUID</B>()</PRE><DL><DD>get the role unique id<P><DD><DL><DT><B>Returns:</B><DD>UUID module role unique id</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="class-use/ModuleClassID.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/jxta/impl/id/UUID/Instantiator.html" title="class in net.jxta.impl.id.UUID"><B>PREV CLASS</B></A> <A HREF="../../../../../net/jxta/impl/id/UUID/ModuleSpecID.html" title="class in net.jxta.impl.id.UUID"><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="ModuleClassID.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -