Inheritance: System.util.Properties
Exemple #1
0
 /**
  * Adds an rdf:Description.
  * @param s
  * @throws IOException
  */
 public void AddRdfDescription(XmpSchema s)
 {
     writer.Write("<rdf:Description rdf:about=\"");
     writer.Write(about);
     writer.Write("\" ");
     writer.Write(s.Xmlns);
     writer.Write(">");
     writer.Write(s.ToString());
     writer.Write("</rdf:Description>\n");
 }
Exemple #2
0
        /**
         * Returns the String representation of the XmpArray.
         * @return a String representation
         */
        public override String ToString()
        {
            StringBuilder buf = new StringBuilder("<");

            buf.Append(type);
            buf.Append('>');
            foreach (String s in this)
            {
                buf.Append("<rdf:li>");
                buf.Append(XmpSchema.Escape(s));
                buf.Append("</rdf:li>");
            }
            buf.Append("</");
            buf.Append(type);
            buf.Append('>');
            return(buf.ToString());
        }
Exemple #3
0
 virtual public void AddRdfDescription(XmpSchema s)
 {
     try {
         String str = "<rdf:RDF xmlns:rdf=\"" + XmpConst.NS_RDF + "\">" +
                      "<rdf:Description rdf:about=\"" + xmpMeta.ObjectName +
                      "\" " +
                      s.Xmlns +
                      ">" +
                      s.ToString() +
                      "</rdf:Description></rdf:RDF>\n";
         IXmpMeta extMeta = XmpMetaFactory.ParseFromString(str);
         XmpUtils.AppendProperties(extMeta, xmpMeta, true, true);
     }
     catch (XmpException xmpExc) {
         throw new IOException(xmpExc.Message);
     }
 }
 virtual public void AddRdfDescription(XmpSchema s) {
     try {
         String str = "<rdf:RDF xmlns:rdf=\"" + XmpConst.NS_RDF + "\">" +
                      "<rdf:Description rdf:about=\"" + xmpMeta.ObjectName +
                      "\" " +
                      s.Xmlns +
                      ">" +
                      s.ToString() +
                      "</rdf:Description></rdf:RDF>\n";
         IXmpMeta extMeta = XmpMetaFactory.ParseFromString(str);
         XmpUtils.AppendProperties(extMeta, xmpMeta, true, true);
     }
     catch (XmpException xmpExc) {
         throw new IOException(xmpExc.Message);
     }
 }
Exemple #5
0
 /**
 * Adds an rdf:Description.
 * @param s
 * @throws IOException
 */
 public void AddRdfDescription(XmpSchema s) {
     writer.Write("<rdf:Description rdf:about=\"");
     writer.Write(about);
     writer.Write("\" ");
     writer.Write(s.Xmlns);
     writer.Write(">");
     writer.Write(s.ToString());
     writer.Write("</rdf:Description>\n");
 }
Exemple #6
0
 /**
  * Add a language.
  */
 public void AddLanguage(String language, String value)
 {
     this[language] = XmpSchema.Escape(value);
 }