📄 moduleclassbinaryid.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object target)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getBaseClass()">getBaseClass</A></B>()</CODE><BR> Return a ModuleClassID of the same base class but with the role portion set to zero. aka "the base class".</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getBaseClassID()">getBaseClassID</A></B>()</CODE><BR> Getter for property parentClassID.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getClassID()">getClassID</A></B>()</CODE><BR> get the class' unique id</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getID()">getID</A></B>()</CODE><BR> returns the coded ID without the binaryid tag.</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/id/binaryID/ModuleClassBinaryID.html#getIDFormat()">getIDFormat</A></B>()</CODE><BR> Returns a string identifier which indicates which ID format is used by this ID instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getPeerGroupID()">getPeerGroupID</A></B>()</CODE><BR> {@inheritDoc}</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getRoleID()">getRoleID</A></B>()</CODE><BR> get the role unique id</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getUniqueValue()">getUniqueValue</A></B>()</CODE><BR> 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>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#getURL()">getURL</A></B>()</CODE><BR> 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#hashCode()">hashCode</A></B>()</CODE><BR> </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="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#isOfSameBaseClass(net.jxta.platform.ModuleClassID)">isOfSameBaseClass</A></B>(<A HREF="../../../../../net/jxta/platform/ModuleClassID.html" title="class in net.jxta.platform">ModuleClassID</A> classId)</CODE><BR> 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.</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="../../../../../net/jxta/impl/id/binaryID/ModuleClassBinaryID.html#isOfSameBaseClass(net.jxta.platform.ModuleSpecID)">isOfSameBaseClass</A></B>(<A HREF="../../../../../net/jxta/platform/ModuleSpecID.html" title="class in net.jxta.platform">ModuleSpecID</A> specId)</CODE><BR> Returns true if this ModuleClassID is of the same class than the the given ModuleSpecID.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_net.jxta.id.ID"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class net.jxta.id.<A HREF="../../../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../net/jxta/id/ID.html#clone()">clone</A>, <A HREF="../../../../../net/jxta/id/ID.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>finalize, getClass, notify, notifyAll, wait, wait, wait</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"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="classID"><!-- --></A><H3>classID</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> <B>classID</B></PRE><DL><DD>The id data<P><DL></DL></DL><HR><A NAME="parentClassID"><!-- --></A><H3>parentClassID</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> <B>parentClassID</B></PRE><DL><DL></DL></DL><HR><A NAME="roleID"><!-- --></A><H3>roleID</H3><PRE>protected <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> <B>roleID</B></PRE><DL><DL></DL></DL><HR><A NAME="peerGroupID"><!-- --></A><H3>peerGroupID</H3><PRE>protected <A HREF="../../../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> <B>peerGroupID</B></PRE><DL><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="ModuleClassBinaryID(java.lang.String)"><!-- --></A><H3>ModuleClassBinaryID</H3><PRE>protected <B>ModuleClassBinaryID</B>(java.lang.String id)</PRE><DL><DD>Constructor. Intializes contents from provided ID.<P><DT><B>Parameters:</B><DD><CODE>id</CODE> - the ID data<DT><B>Since:</B></DT> <DD>JXTA 1.0</DD></DL><HR><A NAME="ModuleClassBinaryID(net.jxta.impl.id.binaryID.BinaryID, net.jxta.impl.id.binaryID.BinaryID, net.jxta.impl.id.binaryID.BinaryID, net.jxta.peergroup.PeerGroupID)"><!-- --></A><H3>ModuleClassBinaryID</H3><PRE>protected <B>ModuleClassBinaryID</B>(<A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> classID, <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> parentClassID, <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> roleID, <A HREF="../../../../../net/jxta/peergroup/PeerGroupID.html" title="class in net.jxta.peergroup">PeerGroupID</A> peerGroupID)</PRE><DL><DD>Constructor. Creates a ModuleClassID in a given class, with a given class unique id. A BinaryID of a class and another BinaryID are provided.<P><DT><B>Since:</B></DT> <DD>JXTA 1.0</DD></DL><HR><A NAME="ModuleClassBinaryID(net.jxta.impl.id.binaryID.BinaryID, net.jxta.impl.id.binaryID.BinaryID, net.jxta.impl.id.binaryID.BinaryID, net.jxta.impl.id.binaryID.BinaryID)"><!-- --></A><H3>ModuleClassBinaryID</H3><PRE>protected <B>ModuleClassBinaryID</B>(<A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> classID, <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> parentClassID, <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> roleID, <A HREF="../../../../../net/jxta/impl/id/binaryID/BinaryID.html" title="class in net.jxta.impl.id.binaryID">BinaryID</A> peerGroupID)</PRE><DL></DL><HR><A NAME="ModuleClassBinaryID()"><!-- --></A><H3>ModuleClassBinaryID</H3><PRE>public <B>ModuleClassBinaryID</B>()</PRE><DL><DD>Constructor for creating a new ModuleClassID. A new class BinaryID is created. The role ID is left null. This is the only way to create a new class without supplying a new BinaryID explicitly. To create a new role in an existing class, one must use one of the other constructors. 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><DT><B>Since:</B></DT> <DD>JXTA 1.0</DD></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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -