Package eu.planets_project.ifr.core.wdt.impl.data

Examples of eu.planets_project.ifr.core.wdt.impl.data.DetailEntry


   * @param o
   *        This is a digital object selected from the objects tree
   */
  public void fillDetails(DigitalObject o)
  {
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_TITLE, o.getTitle()));
    if (o.getPermanentUri() != null) {
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_PERMANENT_URI, o.getPermanentUri()
              .toString()));
    }
    if (o.getFormat() != null) {
      detailEntries.add(new DetailEntry(DOJCRConstants.PREMIS_FORMAT_URI,
          o.getFormat().toString()));
    }
   
    // fill meta data
    Iterator<Metadata> iterMetadata = o.getMetadata().iterator();
View Full Code Here


        .getProperties().iterator();
    while (iterProperties.hasNext()) {
      eu.planets_project.services.datatypes.Property property = iterProperties
          .next();
      if (property.getUri() != null) {
        detailEntries.add(new DetailEntry(
            DOJCRConstants.PREMIS_EVENT_PROPERTY_URI, property
                .getUri().toString()));
      }
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_EVENT_PROPERTY_NAME, property
              .getName()));
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_EVENT_PROPERTY_VALUE, property
              .getValue()));
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_EVENT_PROPERTY_DESCRIPTION, property
              .getDescription()));
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_EVENT_PROPERTY_UNIT, property
              .getUnit()));
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_EVENT_PROPERTY_TYPE, property
              .getType()));
    }
  }
View Full Code Here

   * @param metadata
   *        This is a digital object metadata
   */
  public void fillMetadata(Metadata metadata) {
    if (metadata.getType() != null) {
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_METADATA_TYPE, metadata.getType()
              .toString()));
    }
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_METADATA_CONTENT, metadata
            .getContent()));
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_METADATA_NAME, metadata
            .getName()));
  }
View Full Code Here

   *
   * @param agent
   *        This is a digital object event agent
   */
  public void fillAgent(Agent agent) {
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_EVENT_AGENT_ID,
        agent.getId()));
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_EVENT_AGENT_NAME,
        agent.getName()));
    if (agent.getType() != null) {
      detailEntries.add(new DetailEntry(
          DOJCRConstants.PREMIS_EVENT_AGENT_TYPE, agent.getType()));
    }
  }
View Full Code Here

   *
   * @param event
   *        This is a digital object event
   */
  public void fillEvent(Event event) {
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_EVENT_SUMMARY, event
            .getSummary()));
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_EVENT_DATETIME, event
            .getDatetime()));
    detailEntries.add(new DetailEntry(
        DOJCRConstants.PREMIS_EVENT_DURATION,
        Double.toString(event.getDuration())));
   
    // fill agent
    Agent agent = event.getAgent();
View Full Code Here

TOP

Related Classes of eu.planets_project.ifr.core.wdt.impl.data.DetailEntry

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.