Package org.apache.padaf.xmpbox.type

Examples of org.apache.padaf.xmpbox.type.TextType


  public void setMailaddr(String name, String domain) {
    ComplexPropertyContainer field = new ComplexPropertyContainer(metadata,
        localPrefix, MAIL_ADR);
    field.setAttribute(new Attribute(null, "rdf", "parseType", "Resource"));
    TextType namePart = new TextType(metadata, "madn", "name", name);
    TextType domainPart = new TextType(metadata, "madn", "domain", domain);
    field.addProperty(namePart);
    field.addProperty(domainPart);
    addProperty(field);

  }
View Full Code Here


    }
    return null;
  }

  public String getMailName() {
    TextType name = getTextType("name");
    if (name != null) {
      return name.getStringValue();
    }
    return null;
  }
View Full Code Here

    }
    return null;
  }

  public String getMailDomain() {
    TextType name = getTextType("domain");
    if (name != null) {
      return name.getStringValue();
    }
    return null;
  }
View Full Code Here

   *
   * @param url
   *            the Base url value to set
   */
  public void setBaseURLValue(String url) {
    addProperty(new TextType(metadata, localPrefix, BASEURL, url));
  }
View Full Code Here

   *
   * @param creatorTool
   *            the creator tool value to set
   */
  public void setCreatorToolValue(String creatorTool) {
    addProperty(new TextType(metadata, localPrefix, CREATORTOOL,
        creatorTool));
  }
View Full Code Here

   *
   * @param text
   *            the label value to set
   */
  public void setLabelValue(String text) {
    addProperty(new TextType(metadata, localPrefix, LABEL, text));
  }
View Full Code Here

   *
   * @param text
   *            the Nickname value to set
   */
  public void setNicknameValue(String text) {
    addProperty(new TextType(metadata, localPrefix, NICKNAME, text));
  }
View Full Code Here

   * Get the BaseURL property value
   *
   * @return the base url value
   */
  public String getBaseURLValue() {
    TextType tt = ((TextType) getProperty(localPrefixSep + BASEURL));
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here

   * Get the CreationTool property value
   *
   * @return the CreationTool value
   */
  public String getCreatorToolValue() {
    TextType tt = ((TextType) getProperty(localPrefixSep + CREATORTOOL));
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here

   * Get the label property value
   *
   * @return the label value
   */
  public String getLabelValue() {
    TextType tt = ((TextType) getProperty(localPrefixSep + LABEL));
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here

TOP

Related Classes of org.apache.padaf.xmpbox.type.TextType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.