Package org.apache.padaf.xmpbox.type

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


   * return the unique identifier value of this resource
   *
   * @return the unique identifier value
   */
  public String getIdentifierValue() {
    TextType tt = (TextType) getProperty(localPrefixSep + IDENTIFIER);
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here


   * return the source value of this resource
   *
   * @return value of source property
   */
  public String getSourceValue() {
    TextType tt = (TextType) getProperty(localPrefixSep + SOURCE);
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here

   *
   * @param value
   *            The amendment identifier value to set
   */
  public void setAmdValue(String value) {
    TextType amd = new TextType(metadata, IDPREFIX, AMD, value);
    addProperty(amd);
  }
View Full Code Here

   * @throws BadFieldValueException
   *             If Conformance Value not 'A' or 'B'
   */
  public void setConformanceValue(String value) throws BadFieldValueException {
    if (value.equals("A") || value.equals("B")) {
      TextType conf = new TextType(metadata, IDPREFIX, CONFORMANCE, value);
      addProperty(conf);

    } else {
      throw new BadFieldValueException(
          "The property given not seems to be a PDF/A conformance level (must be A or B)");
View Full Code Here

   * Give the PDFA Amendment Id (as an String)
   *
   * @return Amendment Value
   */
  public String getAmdValue() {
    TextType tmp = getAmd();
    if (tmp==null) {
      for (Attribute attribute : getAllAttributes()) {
        if (attribute.getQualifiedName().equals(IDPREFIXSEP + AMD)) {
          return attribute.getValue();
        }
      }
      return null;
    } else {
      return tmp.getStringValue();
    }
  }
View Full Code Here

   * Give the Conformance id
   *
   * @return conformance id value
   */
  public String getConformanceValue() {
    TextType tt = getConformance();
    if (tt==null) {
      for (Attribute attribute : getAllAttributes()) {
        if (attribute.getQualifiedName().equals(IDPREFIXSEP + CONFORMANCE)) {
          return attribute.getValue();
        }
      }
      return null;
    } else {
      return tt.getStringValue();
    }
  }
View Full Code Here

   *
   * @param url
   *            resourceRef value to set
   */
  public void setResourceRefValue(String url) {
    setResourceRef(new TextType(metadata, localPrefix, RESOURCEREF, url));
  }
View Full Code Here

   * Get ResourceRef Value
   *
   * @return ResourceRef value
   */
  public String getResourceRefValue() {
    TextType tt = getResourceRef();
    return tt != null ? tt.getStringValue() : null;
  }
View Full Code Here

   *
   * @param url
   *            DocumentId value to set
   */
  public void setDocumentIDValue(String url) {
    setDocumentID(new TextType(metadata, localPrefix, DOCUMENTID, url));
  }
View Full Code Here

   * Get DocumentId value
   *
   * @return DocumentId value
   */
  public String getDocumentIDValue() {
    TextType tt = getDocumentID();
    return tt != null ? tt.getStringValue() : null;
  }
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.