Package org.apache.padaf.xmpbox.type

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


     *            The full qualified name of the property wanted
     * @return the property wanted
     */
    protected AbstractField getProperty(String qualifiedName) {
        Iterator<AbstractField> it = getAllProperties().iterator();
        AbstractField tmp;
        while (it.hasNext()) {
            tmp = it.next();
            if (tmp.getQualifiedName().equals(qualifiedName)) {
                return tmp;
            }
        }
        return null;
    }
View Full Code Here


   *            the Name of property wanted
   * @return value of the property wanted which describe this property
   */
  private String getValueTypeProperty(String qualifiedName) {
    Iterator<AbstractField> it = content.getAllProperties().iterator();
    AbstractField tmp;
    while (it.hasNext()) {
      tmp = it.next();
      if (tmp.getQualifiedName().equals(qualifiedName)) {
        return ((TextType) tmp).getStringValue();
      }
    }
    return null;
  }
View Full Code Here

   *            the name of the property wanted
   * @return the property wanted
   */
  private TextType getTypeProperty(String qualifiedName) {
    Iterator<AbstractField> it = content.getAllProperties().iterator();
    AbstractField tmp;
    while (it.hasNext()) {
      tmp = it.next();
      if (tmp.getQualifiedName().equals(qualifiedName)) {
        return (TextType) tmp;
      }
    }
    return null;
  }
View Full Code Here

    addProperty(field);

  }

  private ComplexPropertyContainer getMailField() {
    AbstractField afield = this.getPropertyAsSimple(MAIL_ADR);
    if (afield == null) {
      return null;
    }
    if (afield instanceof ComplexPropertyContainer) {
      return (ComplexPropertyContainer) afield;
View Full Code Here

  }

  private TextType getTextType(String nameProp) {
    ComplexPropertyContainer field = getMailField();
    Iterator<AbstractField> it = field.getAllProperties().iterator();
    AbstractField aProp;
    while (it.hasNext()) {
      aProp = it.next();
      if (aProp.getPropertyName().equals(nameProp)) {
        if (aProp instanceof TextType) {
          return (TextType) aProp;
        } else {
          throw new IllegalArgumentException(
              nameProp
View Full Code Here

   * Give the PDF Keywords property
   *
   * @return The property object
   */
  public TextType getKeywords() {
    AbstractField tmp = getProperty(localPrefixSep + KEYWORDS);
    if (tmp != null) {
      if (tmp instanceof TextType) {
        return (TextType) tmp;
      }
    }
View Full Code Here

   * Give the PDF Keywords property value (string)
   *
   * @return The property value
   */
  public String getKeywordsValue() {
    AbstractField tmp = getProperty(localPrefixSep + KEYWORDS);
    if (tmp != null) {
      if (tmp instanceof TextType) {
        return ((TextType) tmp).getStringValue();
      }
    }
View Full Code Here

   * Give the PDFVersion property
   *
   * @return The property object
   */
  public TextType getPDFVersion() {
    AbstractField tmp = getProperty(localPrefixSep + PDF_VERSION);
    if (tmp != null) {
      if (tmp instanceof TextType) {
        return (TextType) tmp;
      }
    }
View Full Code Here

   * Give the PDFVersion property value (string)
   *
   * @return The property value
   */
  public String getPDFVersionValue() {
    AbstractField tmp = getProperty(localPrefixSep + PDF_VERSION);
    if (tmp != null) {
      if (tmp instanceof TextType) {
        return ((TextType) tmp).getStringValue();
      }
    }
View Full Code Here

   * Give the producer property
   *
   * @return The property object
   */
  public TextType getProducer() {
    AbstractField tmp = getProperty(localPrefixSep + PRODUCER);
    if (tmp != null) {
      if (tmp instanceof TextType) {
        return (TextType) tmp;
      }
    }
View Full Code Here

TOP

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

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.