/** * @see java.util.Properties#setProperty(java.lang.String, java.lang.String) */ public Object setProperty(String key, String value) { return super.setProperty(key, escape(value)); }
/** * The String representation of the contents. * @return a String representation. */ public String toString() { StringBuffer buf = new StringBuffer(); for (Enumeration e = this.propertyNames(); e.hasMoreElements(); ) { process(buf, e.nextElement()); } return buf.toString(); } /**
/** * @param key * @param value * @return the previous property (null if there wasn't one) */ public Object addProperty(String key, String value) { return this.setProperty(key, value); }
/** * Adds an rdf:Description. * @param s * @throws IOException */ public void addRdfDescription(XmpSchema s) throws IOException { writer.write("<rdf:Description rdf:about=\""); writer.write(about); writer.write("\" "); writer.write(s.getXmlns()); writer.write(">"); writer.write(s.toString()); writer.write("</rdf:Description>\n"); }
/** * Processes a property * @param buf * @param p */ protected void process(StringBuffer buf, Object p) { buf.append('<'); buf.append(p); buf.append('>'); buf.append(this.get(p)); buf.append("</"); buf.append(p); buf.append('>'); } /**
/** * Adds an rdf:Description. * @param s * @throws IOException */ public void addRdfDescription(XmpSchema s) throws IOException { writer.write("<rdf:Description rdf:about=\""); writer.write(about); writer.write("\" "); writer.write(s.getXmlns()); writer.write(">"); writer.write(s.toString()); writer.write("</rdf:Description>\n"); }
/** * Processes a property * @param buf * @param p */ protected void process(StringBuffer buf, Object p) { buf.append('<'); buf.append(p); buf.append('>'); buf.append(this.get(p)); buf.append("</"); buf.append(p); buf.append('>'); } /**
/** * The String representation of the contents. * @return a String representation. */ public String toString() { StringBuffer buf = new StringBuffer(); for (Enumeration e = this.propertyNames(); e.hasMoreElements(); ) { process(buf, e.nextElement()); } return buf.toString(); } /**
/** * Adds an rdf:Description. * @param s * @throws IOException */ public void addRdfDescription(XmpSchema s) throws IOException { writer.write("<rdf:Description rdf:about=\""); writer.write(about); writer.write("\" "); writer.write(s.getXmlns()); writer.write(">"); writer.write(s.toString()); writer.write("</rdf:Description>\n"); }
/** * @see java.util.Properties#setProperty(java.lang.String, java.lang.String) */ public Object setProperty(String key, String value) { return super.setProperty(key, escape(value)); }
/** * @param key * @param value * @return the previous property (null if there wasn't one) */ public Object addProperty(String key, String value) { return this.setProperty(key, value); }
/** * Processes a property * @param buf * @param p */ protected void process(StringBuffer buf, Object p) { buf.append('<'); buf.append(p); buf.append('>'); buf.append(this.get(p)); buf.append("</"); buf.append(p); buf.append('>'); } /**
/** * The String representation of the contents. * @return a String representation. */ public String toString() { StringBuffer buf = new StringBuffer(); for (Enumeration e = this.propertyNames(); e.hasMoreElements(); ) { process(buf, e.nextElement()); } return buf.toString(); } /**
/** * @see java.util.Properties#setProperty(java.lang.String, java.lang.String) */ public Object setProperty(String key, String value) { return super.setProperty(key, escape(value)); }
/** * @param key * @param value * @return the previous property (null if there wasn't one) */ public Object addProperty(String key, String value) { return this.setProperty(key, value); }
/** * Add a language. */ public void addLanguage(String language, String value) { setProperty(language, XmpSchema.escape(value)); }
/** * Add a language. */ public void addLanguage(String language, String value) { setProperty(language, XmpSchema.escape(value)); }
/** * Add a language. */ public void addLanguage(String language, String value) { setProperty(language, XmpSchema.escape(value)); }
/** * Returns the String representation of the XmpArray. * @return a String representation */ public String toString() { StringBuffer buf = new StringBuffer("<"); buf.append(type); buf.append('>'); String s; for (Iterator i = iterator(); i.hasNext(); ) { s = (String) i.next(); buf.append("<rdf:li>"); buf.append(XmpSchema.escape(s)); buf.append("</rdf:li>"); } buf.append("</"); buf.append(type); buf.append('>'); return buf.toString(); } }
/** * Returns the String representation of the XmpArray. * @return a String representation */ public String toString() { StringBuffer buf = new StringBuffer("<"); buf.append(type); buf.append('>'); String s; for (Iterator i = iterator(); i.hasNext(); ) { s = (String) i.next(); buf.append("<rdf:li>"); buf.append(XmpSchema.escape(s)); buf.append("</rdf:li>"); } buf.append("</"); buf.append(type); buf.append('>'); return buf.toString(); } }