Package org.apache.padaf.xmpbox.type

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


   *
   * @param desc
   *            The value to set
   */
  public void setDescriptionValue(String desc) {
    content.addProperty(new TextType(metadata, PDFATYPEPREFIX, DESCRIPTION,
        desc));
  }
View Full Code Here


    TextType tt = ((TextType) getProperty(localPrefix + SOURCE));
    return tt == null ? null : tt.getStringValue();
  }
 
  public void setSourceValue(String text) {
    addProperty(new TextType(metadata, localPrefix, SOURCE, text));
  }
View Full Code Here

  public TextType getState() {
    return (TextType) getProperty(localPrefix + STATE);
  }
 
  public String getStateValue() {
    TextType tt = ((TextType) getProperty(localPrefix + STATE));
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here

    TextType tt = ((TextType) getProperty(localPrefix + STATE));
    return tt == null ? null : tt.getStringValue();
  }
 
  public void setStateValue(String text) {
    addProperty(new TextType(metadata, localPrefix, STATE, text));
  }
View Full Code Here

  public TextType getTransmissionReference() {
    return (TextType) getProperty(localPrefix + TRANSMISSION_REFERENCE);
  }
 
  public String getTransmissionReferenceValue() {
    TextType tt = ((TextType) getProperty(localPrefix + TRANSMISSION_REFERENCE));
    return tt == null ? null : tt.getStringValue();
  }
View Full Code Here

    TextType tt = ((TextType) getProperty(localPrefix + TRANSMISSION_REFERENCE));
    return tt == null ? null : tt.getStringValue();
  }
 
  public void setTransmissionReferenceValue(String text) {
    addProperty(new TextType(metadata, localPrefix, TRANSMISSION_REFERENCE, text));
  }
View Full Code Here

    String schemaNamespace = schema.getNamespaceValue();
    String prefix = attr.getPrefix() != null ? attr.getPrefix() : schema.getPrefix();
    String type = this.nsMap.getSpecifiedPropertyType(schemaNamespace, new QName(schemaNamespace, attr.getLocalName(), prefix));
    if (type != null) {
      if (type.equals("Text")) {
        schema.getContent().addProperty(new TextType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      } else if (type.equals("Integer")) {
        schema.getContent().addProperty(new IntegerType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      } else if (type.equals("Boolean")) {
        schema.getContent().addProperty(new BooleanType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      } else if (type.equals("Real")) {
        schema.getContent().addProperty(new RealType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      } else if (type.equals("Date")) {
        schema.getContent().addProperty(new DateType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      } else if (type.equals("URI")) {
        schema.getContent().addProperty(new TextType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      } else if (type.equals("URL")) {
        schema.getContent().addProperty(new TextType(metadata, prefix, attr.getLocalName(), attr.getValue()));
        added = true;
      }
    }
    return added;
  }
View Full Code Here

      if (reader.get().getLocalName().equals("schema")
          || reader.get().getLocalName().equals("namespaceURI")
          || reader.get().getLocalName().equals("prefix")) {
        try {
          // System.out.println(reader.get().getPrefix()+";"+reader.get().getLocalName()+";"+reader.get().getElementText());
          desc.addProperty(new TextType(metadata, reader.get()
              .getPrefix(), reader.get().getLocalName(), reader
              .get().getElementText()));
        } catch (IllegalArgumentException e) {
          throw new XmpPropertyFormatException(
              "Unexpected value for '"
View Full Code Here

            .getAttributePrefix(i), reader.get()
            .getAttributeLocalName(i), reader.get()
            .getAttributeValue(i)));
      }
      if (stype == XmpPropertyType.Text) {
        prop = new TextType(metadata, propertyName.getPrefix(),
            propertyName.getLocalPart(), reader.get()
            .getElementText());
      } else if (stype == XmpPropertyType.Integer) {
        prop = new IntegerType(metadata, propertyName.getPrefix(),
            propertyName.getLocalPart(), reader.get()
View Full Code Here

    tmp.addSequenceValue("test:SeqContainer", "Value1");
    tmp.addSequenceValue("test:SeqContainer", "Value2");
    tmp.addSequenceValue("test:SeqContainer", "Value3");

    tmp
        .addProperty(new TextType(metadata, "test", "simpleProperty",
            "YEP"));

    tmp2 = new XMPSchema(metadata, "space", "http://www.space.org/schem/");
    tmp2.addSequenceValue("test:SeqSpContainer", "ValueSpace1");
    tmp2.addSequenceValue("test:SeqSpContainer", "ValueSpace2");
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.