⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contentmetadata.html

📁 jxta-cms-doc-2.4.zip是jxta-cms-SRC-2.4.zip配套的学习文档。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if query was not formatted properly.</DL></DD></DL><HR><A NAME="getConstructor()"><!-- --></A><H3>getConstructor</H3><PRE>public static <A HREF="../../../../net/jxta/share/metadata/ContentMetadataConstructor.html" title="interface in net.jxta.share.metadata">ContentMetadataConstructor</A> <B>getConstructor</B>()</PRE><DL><DD>Get a ContentMetadataConstructor that can be used to create instances of this class, or null if no such object can be created.  This method should be overridden if there is a way of constructing this ContentMetadata class using an Element.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="init(net.jxta.document.Element)"><!-- --></A><H3>init</H3><PRE>protected void <B>init</B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/Element.html" title="class or interface in net.jxta.document">Element</A>&nbsp;metadata)             throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Initialize the <code>name</code> <code>content_type</code> and <code>location</code> fields from a <code>&lt;metadata></code> block.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>metadata</CODE> - the <code>&lt;metadata></code> block<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>metadata.getKey().equals(EN_METADATA)</code> returns false.<DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>metadata</code> is null</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE><DL><DD>Return the name of the metadata scheme being used by this object, or null if unspecified.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getLocation()"><!-- --></A><H3>getLocation</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocation</B>()</PRE><DL><DD>Get the location of the resource that is needed to parse and query  metadata using this scheme.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String representation of the URL location of the resource, or null if unspecified</DL></DD></DL><HR><A NAME="getContentType()"><!-- --></A><H3>getContentType</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContentType</B>()</PRE><DL><DD>Get the content type of the metadata returned by getValue()<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getValue</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the string representation of the metadata payload, or null if it has no string representation.</DL></DD></DL><HR><A NAME="appendDocument(net.jxta.document.StructuredDocument, net.jxta.document.Element)"><!-- --></A><H3>appendDocument</H3><PRE>public void <B>appendDocument</B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/StructuredDocument.html" title="class or interface in net.jxta.document">StructuredDocument</A>&nbsp;adv,                           <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/Element.html" title="class or interface in net.jxta.document">Element</A>&nbsp;el)</PRE><DL><DD>Insert this metadata element into an advertisement<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - a StructuredDocument representation of the advertisement<DD><CODE>el</CODE> - the element in adv to insert this metadata element into</DL></DD></DL><HR><A NAME="appendElements(net.jxta.document.StructuredDocument, net.jxta.document.Element)"><!-- --></A><H3>appendElements</H3><PRE>protected void <B>appendElements</B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/StructuredDocument.html" title="class or interface in net.jxta.document">StructuredDocument</A>&nbsp;root,                              <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/Element.html" title="class or interface in net.jxta.document">Element</A>&nbsp;child)</PRE><DL><DD>This function defines how the child elements of this metadata element should be inserted into an element of a StructuredDocument.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>root</CODE> - the StructuredDocument which <code>child</code> is a part of<DD><CODE>child</CODE> - the Element object into which to insert the metadata</DL></DD></DL><HR><A NAME="getStructuredDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getStructuredDocument</H3><PRE>public <A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/StructuredDocument.html" title="class or interface in net.jxta.document">StructuredDocument</A> <B>getStructuredDocument</B>(<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/MimeMediaType.html" title="class or interface in net.jxta.document">MimeMediaType</A>&nbsp;mmt)</PRE><DL><DD>Generates a StructuredDocument representation of this metadata element<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mmt</CODE> - the mime type of the StructuredDocument to be returned<DT><B>Returns:</B><DD>a StructuredDocument of type <code>EN_METADATA</code> with containing all of the metadata information stored in this object.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>clone</B>()             throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CloneNotSupportedException.html" title="class or interface in java.lang">CloneNotSupportedException</A></PRE><DL><DD>A function for generating safe copies of this ContentMetadata object. This particular implementation of clone() will throw a CloneNotSupportedException every time, but it should be overridden if clone() functionality is needed in a subclass.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a safe copy of this ContentMetadata object<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CloneNotSupportedException.html" title="class or interface in java.lang">CloneNotSupportedException</A></CODE></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=2 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ContentMetadata.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA Java SE CMS</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../net/jxta/share/metadata/ContentMetadataConstructor.html" title="interface in net.jxta.share.metadata"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?net/jxta/share/metadata/ContentMetadata.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ContentMetadata.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -