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

📄 contentmetadata.html

📁 jxta-cms-doc-2.4.zip是jxta-cms-SRC-2.4.zip配套的学习文档。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function defines how the child elements of this metadata element should be inserted into an element of a StructuredDocument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#clone()">clone</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A function for generating safe copies of this ContentMetadata object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../net/jxta/share/metadata/ContentMetadataConstructor.html" title="interface in net.jxta.share.metadata">ContentMetadataConstructor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#getConstructor()">getConstructor</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a ContentMetadataConstructor that can be used to create instances of this class, or null if no such object can be created.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#getContentType()">getContentType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the content type of the metadata returned by getValue()</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#getLocation()">getLocation</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the location of the resource that is needed to parse and query  metadata using this scheme.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#getName()">getName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the name of the metadata scheme being used by this object, or null if unspecified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://platform.jxta.org/nonav/java/api/net/jxta/document/StructuredDocument.html" title="class or interface in net.jxta.document">StructuredDocument</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#getStructuredDocument(net.jxta.document.MimeMediaType)">getStructuredDocument</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates a StructuredDocument representation of this metadata element</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<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></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#getValue()">getValue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#init(net.jxta.document.Element)">init</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the <code>name</code> <code>content_type</code> and <code>location</code> fields from a <code>&lt;metadata></code> block.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../net/jxta/share/metadata/MetadataQuery.html" title="interface in net.jxta.share.metadata">MetadataQuery</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/share/metadata/ContentMetadata.html#newQuery(java.lang.String)">newQuery</A></B>(<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>&nbsp;query)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method for generating a new MetadataQuery object that can be used to query instances of this class.</TD></TR></TABLE>&nbsp;<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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<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="LOG"><!-- --></A><H3>LOG</H3><PRE>private static final transient <A HREF="http://logging.apache.org/log4j/docs/api/org/apache/log4j/Logger.html" title="class or interface in org.apache.log4j">Logger</A> <B>LOG</B></PRE><DL><DL></DL></DL><HR><A NAME="EN_METADATA"><!-- --></A><H3>EN_METADATA</H3><PRE>public static final <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>EN_METADATA</B></PRE><DL><DD>The name of the metadata element<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.share.metadata.ContentMetadata.EN_METADATA">Constant Field Values</A></DL></DL><HR><A NAME="EN_SCHEME"><!-- --></A><H3>EN_SCHEME</H3><PRE>public static final <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>EN_SCHEME</B></PRE><DL><DD>The name of the scheme element<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.share.metadata.ContentMetadata.EN_SCHEME">Constant Field Values</A></DL></DL><HR><A NAME="EN_NAME"><!-- --></A><H3>EN_NAME</H3><PRE>public static final <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>EN_NAME</B></PRE><DL><DD>The name of the name element<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.share.metadata.ContentMetadata.EN_NAME">Constant Field Values</A></DL></DL><HR><A NAME="EN_CONTENT_TYPE"><!-- --></A><H3>EN_CONTENT_TYPE</H3><PRE>public static final <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>EN_CONTENT_TYPE</B></PRE><DL><DD>The name of the content-type element<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.share.metadata.ContentMetadata.EN_CONTENT_TYPE">Constant Field Values</A></DL></DL><HR><A NAME="EN_LOCATION"><!-- --></A><H3>EN_LOCATION</H3><PRE>public static final <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>EN_LOCATION</B></PRE><DL><DD>The name of the location element<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.share.metadata.ContentMetadata.EN_LOCATION">Constant Field Values</A></DL></DL><HR><A NAME="name"><!-- --></A><H3>name</H3><PRE>protected <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>name</B></PRE><DL><DD>Stores the name of the metadata scheme used<P><DL></DL></DL><HR><A NAME="location"><!-- --></A><H3>location</H3><PRE>protected <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>location</B></PRE><DL><DD>Stores the location of information defining the metadata scheme<P><DL></DL></DL><HR><A NAME="content_type"><!-- --></A><H3>content_type</H3><PRE>protected <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>content_type</B></PRE><DL><DD>Stores the content type of the metadata<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="ContentMetadata()"><!-- --></A><H3>ContentMetadata</H3><PRE>public <B>ContentMetadata</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_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>Method Detail</B></FONT></TH></TR></TABLE><A NAME="newQuery(java.lang.String)"><!-- --></A><H3>newQuery</H3><PRE>public static <A HREF="../../../../net/jxta/share/metadata/MetadataQuery.html" title="interface in net.jxta.share.metadata">MetadataQuery</A> <B>newQuery</B>(<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>&nbsp;query)                              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>Factory method for generating a new MetadataQuery object that can be used to query instances of this class.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A MetadataQuery object that can be used to query instances of this class, or null if no such object can be generated.  In the case of ContentMetadata.newQuery(), null is always returned because ContentMetadata is a generic container for metadata and defines no means of being queried.<DT><B>Throws:</B>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -