/** * Integrates the attachment into the media package. This mainly involves moving the attachment into the media package * file structure. * * @param attachment * the attachment to integrate */ private void integrateAttachment(Attachment attachment) { // Check (uniqueness of) attachment identifier String id = attachment.getIdentifier(); if (id == null || contains(id)) { attachment.setIdentifier(createElementIdentifier()); } integrate(attachment); }
/** * Integrates the catalog into the media package. This mainly involves moving the catalog into the media package file * structure. * * @param catalog * the catalog to integrate */ private void integrateCatalog(Catalog catalog) { // Check (uniqueness of) catalog identifier String id = catalog.getIdentifier(); if (id == null || contains(id)) { catalog.setIdentifier(createElementIdentifier()); } integrate(catalog); }
/** * Integrates the track into the media package. This mainly involves moving the track into the media package file * structure. * * @param track * the track to integrate */ private void integrateTrack(Track track) { // Check (uniqueness of) track identifier String id = track.getIdentifier(); if (id == null || contains(id)) { track.setIdentifier(createElementIdentifier()); } duration = null; integrate(track); }