Examples of ComplexProperty


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

  protected void parseSeqProperty(XMPMetadata metadata, QName seqName,
      XmpPropertyType stype, ComplexPropertyContainer container)
          throws XmpUnexpectedTypeException, XmpParsingException,
          XMLStreamException, XmpUnknownPropertyTypeException,
          XmpPropertyFormatException {
    ComplexProperty seq = new ComplexProperty(metadata,
        seqName.getPrefix(), seqName.getLocalPart(),
        ComplexProperty.ORDERED_ARRAY);
    container.addProperty(seq);
    // <rdf:Bag>
    expectNextSpecificTag(XMLStreamReader.START_ELEMENT, SEQ_NAME,
        "Expected Seq Declaration");
    // Each property definition
    int elmtType = reader.get().nextTag();
    while ((elmtType != XMLStreamReader.END_ELEMENT)
        && !reader.get().getName().getLocalPart().equals(SEQ_NAME)) {
      parseXmpSimpleProperty(metadata, reader.get().getName(), stype, seq
          .getContainer());
      elmtType = reader.get().nextTag();

    }
    expectNextSpecificTag(XMLStreamReader.END_ELEMENT, seqName
View Full Code Here

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

  protected void parseAltProperty(XMPMetadata metadata, QName altName,
      XmpPropertyType stype, ComplexPropertyContainer container)
          throws XmpUnexpectedTypeException, XmpParsingException,
          XMLStreamException, XmpUnknownPropertyTypeException,
          XmpPropertyFormatException {
    ComplexProperty alt = new ComplexProperty(metadata,
        altName.getPrefix(), altName.getLocalPart(),
        ComplexProperty.ALTERNATIVE_ARRAY);
    container.addProperty(alt);
    // <rdf:Alt>
    expectNextSpecificTag(XMLStreamReader.START_ELEMENT, ALT_NAME,
        "Expected Alt Declaration");
    int elmtType = reader.get().nextTag();
    while (!((elmtType == XMLStreamReader.END_ELEMENT) && reader.get()
        .getName().getLocalPart().equals(ALT_NAME))) {
      parseXmpSimpleProperty(metadata, reader.get().getName(), stype, alt
          .getContainer());
      elmtType = reader.get().nextTag();

    }
    // <dc:description><rdf:Alt><rdf:li>sujet</rdf:li></rdf:Alt></dc:description>
View Full Code Here

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

  private void parseAltThumbnailProperty(XMPMetadata metadata, QName altName,
      ComplexPropertyContainer container)
          throws XmpUnexpectedTypeException, XmpParsingException,
          XMLStreamException, XmpUnknownPropertyTypeException,
          XmpPropertyFormatException {
    ComplexProperty alt = new ComplexProperty(metadata,
        altName.getPrefix(), altName.getLocalPart(),
        ComplexProperty.ALTERNATIVE_ARRAY);
    container.addProperty(alt);
    // <rdf:Alt>
    expectNextSpecificTag(XMLStreamReader.START_ELEMENT, ALT_NAME,
        "Expected Alt Declaration");
    int elmtType = reader.get().nextTag();
    while (!((elmtType == XMLStreamReader.END_ELEMENT) && reader.get()
        .getName().getLocalPart().equals(ALT_NAME))) {
      parseThumbnailProperty(metadata, reader.get().getName(), alt
          .getContainer());
      elmtType = reader.get().nextTag();
    }

    // <dc:description><rdf:Alt><rdf:li>sujet</rdf:li></rdf:Alt></dc:description>
View Full Code Here

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

   *            Image data
   */
  public void addThumbnails(Integer height, Integer width, String format,
      String img) {
    if (altThumbs == null) {
      altThumbs = new ComplexProperty(metadata, localPrefix, THUMBNAILS,
          ComplexProperty.ALTERNATIVE_ARRAY);
      addProperty(altThumbs);
    }
    ThumbnailType thumb = new ThumbnailType(metadata, "rdf", "li");
    /*
 
View Full Code Here

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

    }

    public void addJob(String id , String name, String url) {
        if (bagJobs == null) {
            bagJobs = new ComplexProperty(metadata, localPrefix, JOB_REF,
                    ComplexProperty.UNORDERED_ARRAY);
            addProperty(bagJobs);
        }
        JobType job = new JobType(metadata, "rdf", "li");
        job.setId("stJob", id);
View Full Code Here

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

    return getBagValueList(localPrefixSep + SUPPLEMENTAL_CATEGORIES);
  }
 
  public void addTextLayers(String layerName, String layerText) {
    if (seqLayer == null) {
      seqLayer = new ComplexProperty(metadata, localPrefix, TEXT_LAYERS,
          ComplexProperty.ORDERED_ARRAY);
      addProperty(seqLayer);
    }
    LayerType layer = new LayerType(metadata, "rdf", "li");
    layer.setLayerName(PREFERRED_PHOTISHOP_PREFIX, "LayerName", layerName);
View Full Code Here

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

  public boolean analyseRights(XMPMetadata metadata, PDFontDescriptor fontDesc, List<ValidationError> ve)
  throws ValidationException {

    DublinCoreSchema dc = metadata.getDublinCoreSchema();
    if (dc != null) {
      ComplexProperty copyrights = dc.getRights();
      if (copyrights == null || copyrights.getContainer() == null
          || copyrights.getContainer().getAllProperties().isEmpty()) {
        ve
        .add(new ValidationError(
            ValidationConstants.ERROR_METADATA_PROPERTY_MISSING,
        "CopyRights is missing from the XMP information (dc:rights) of the Font File Stream."));
        return false;
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.property.ComplexProperty

   */
  private void addLayoutProperties(List<Property> properties) throws Exception {
    // prepare layout complex property
    if (m_complexProperty == null) {
      String text = "(" + getTitle() + ")";
      m_complexProperty = new ComplexProperty("Layout", text) {
        @Override
        public boolean isModified() throws Exception {
          return true;
        }

View Full Code Here

Examples of org.eclipse.wb.internal.core.model.property.ComplexProperty

      {
        Class<?> componentClass = getDescription().getComponentClass();
        text = "(" + componentClass.getName() + ")";
      }
      // prepare ComplexProperty
      m_complexProperty = new ComplexProperty("LayoutData", text) {
        @Override
        public boolean isModified() throws Exception {
          return true;
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.property.ComplexProperty

      WidgetInfo widget,
      boolean horizontal,
      String locationTitle) {
    Location location = getLocation(widget, horizontal);
    //
    ComplexProperty complexProperty;
    {
      @SuppressWarnings("unchecked")
      Map<String, ComplexProperty> complexProperties =
          (Map<String, ComplexProperty>) widget.getArbitraryValue(this);
      if (complexProperties == null) {
        complexProperties = Maps.newTreeMap();
        widget.putArbitraryValue(this, complexProperties);
      }
      complexProperty = complexProperties.get(locationTitle);
      if (complexProperty == null) {
        complexProperty = new ComplexProperty(locationTitle, "<properties>");
        complexProperty.setCategory(PropertyCategory.system(10));
        complexProperties.put(locationTitle, complexProperty);
      }
      properties.add(complexProperty);
    }
    // prepare sub-properties
    List<Property> subProperties = Lists.newArrayList();
    if (location.leading != null) {
      String title = location.leading.attribute;
      subProperties.add(new LocationValue_Property(title, location.leading));
      subProperties.add(new LocationUnit_Property(title + " unit", location.leading));
    }
    if (location.trailing != null) {
      String title = location.trailing.attribute;
      subProperties.add(new LocationValue_Property(title, location.trailing));
      subProperties.add(new LocationUnit_Property(title + " unit", location.trailing));
    }
    if (location.size != null) {
      String title = location.size.attribute;
      subProperties.add(new LocationValue_Property(title, location.size));
      subProperties.add(new LocationUnit_Property(title + " unit", location.size));
    }
    complexProperty.setProperties(subProperties);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.