Package org.apache.padaf.xmpbox.type

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


   * @param metadata
   *            Metadata where this SchemaDescription will be included
   */
  public SchemaDescription(XMPMetadata metadata) {
    this.metadata = metadata;
    content = new ComplexPropertyContainer(metadata, "rdf", "li");
    content
        .setAttribute(new Attribute(null, "rdf", "parseType",
            "Resource"));

    // <pdfaSchema:property><seq>
View Full Code Here


     *            The URI of the namespace, ie "http://ns.adobe.com/pdf/1.3/"
     *
     */
    public XMPSchema(XMPMetadata metadata, String namespaceName, String namespaceURI) {
        this.metadata = metadata;
        content = new ComplexPropertyContainer(metadata,
                "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdf",
        "Description");

        localPrefix = namespaceName;
        localPrefixSep = localPrefix + ":";
View Full Code Here

   * @param metadata
   *            The metadata to attach this schema
   */
  public PDFAValueTypeDescription(XMPMetadata metadata) {
    this.metadata = metadata;
    content = new ComplexPropertyContainer(metadata, "rdf", "li");
    content
        .setAttribute(new Attribute(null, "rdf", "parseType",
            "Resource"));
    fields = new FieldDescriptionContainer();
    content.getElement().appendChild(fields.getElement());
View Full Code Here

   */
  protected void parseFieldProperty(XMPMetadata metadata, QName propertyName,
      XMPSchema schema) throws XmpUnexpectedTypeException,
      XmpPropertyFormatException, XmpParsingException,
      XMLStreamException, XmpUnknownPropertyTypeException {
    ComplexPropertyContainer field = new ComplexPropertyContainer(metadata,
        propertyName.getPrefix(), propertyName.getLocalPart());
    schema.addProperty(field);
    field.setAttribute(new Attribute(null, "rdf", "parseType", "Resource"));
    String type;
    int elmtType = reader.get().nextTag();
    while ((elmtType != XMLStreamReader.END_ELEMENT)
        && !reader.get().getName().getLocalPart().equals(SEQ_NAME)) {

View Full Code Here

    return this.getTextProperty(localPrefixSep + LAST_NAME)
        .getStringValue();
  }

  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

          + " property found but not seems to be a field");
    }
  }

  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) {
View Full Code Here

   * @param metadata
   *            The metadata to attach this schema
   */
  public PDFAPropertyDescription(XMPMetadata metadata) {
    this.metadata = metadata;
    content = new ComplexPropertyContainer(metadata, "rdf", "li");
    content
        .setAttribute(new Attribute(null, "rdf", "parseType",
            "Resource"));
  }
View Full Code Here

   * @param metadata
   *            The metadata to attach this description
   */
  public PDFAFieldDescription(XMPMetadata metadata) {
    this.metadata = metadata;
    content = new ComplexPropertyContainer(metadata, "rdf", "li");
    content
        .setAttribute(new Attribute(null, "rdf", "parseType",
            "Resource"));
  }
View Full Code Here

TOP

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

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.