/** * Gets all of the SubDescriptor objects corresponding to this HeaderPartition object that are referenced by all * the source packages in this header partition * @return list of SubDescriptor objects referenced by the Source Packages in this HeaderPartition */ public List<InterchangeObject.InterchangeObjectBO> getSubDescriptors(){ List<InterchangeObject.InterchangeObjectBO> sourcePackageBOs = this.interchangeObjectBOsMap.get(SourcePackage.SourcePackageBO.class.getSimpleName()); List<InterchangeObject.InterchangeObjectBO>subDescriptors = new ArrayList<>(); for(int i=0; i<sourcePackageBOs.size(); i++){ SourcePackage.SourcePackageBO sourcePackageBO = (SourcePackage.SourcePackageBO) sourcePackageBOs.get(i); GenericDescriptor.GenericDescriptorBO genericDescriptorBO = (GenericDescriptor.GenericDescriptorBO)uidToBOs.get(sourcePackageBO.getDescriptorUID()); CompoundDataTypes.MXFCollections.MXFCollection<InterchangeObject.InterchangeObjectBO.StrongRef> strongRefsCollection = genericDescriptorBO.getSubdescriptors(); if(strongRefsCollection != null) { List<InterchangeObject.InterchangeObjectBO.StrongRef> strongRefs = strongRefsCollection.getEntries(); for (InterchangeObject.InterchangeObjectBO.StrongRef strongRef : strongRefs) { if(uidToBOs.get(strongRef.getInstanceUID()) != null) { subDescriptors.add(uidToBOs.get(strongRef.getInstanceUID())); } } } } return subDescriptors; }
/** * Gets the SubDescriptors in this HeaderPartition object that correspond to the specified StrongRefCollection * @param strongRefCollection collection strong references corresponding to the SubDescriptors * @return list of SubDescriptors corresponding to the collection of strong references passed in */ List<InterchangeObject.InterchangeObjectBO> getSubDescriptors(CompoundDataTypes.MXFCollections.MXFCollection<InterchangeObject.InterchangeObjectBO.StrongRef> strongRefCollection){ List<InterchangeObject.InterchangeObjectBO>subDescriptors = new ArrayList<>(); if(strongRefCollection != null) { /*There might be essences that have no SubDescriptors*/ List<InterchangeObject.InterchangeObjectBO.StrongRef> strongRefList = strongRefCollection.getEntries(); for (InterchangeObject.InterchangeObjectBO.StrongRef strongRef : strongRefList) { if(uidToBOs.get(strongRef.getInstanceUID()) != null) { subDescriptors.add(uidToBOs.get(strongRef.getInstanceUID())); } } } return subDescriptors; }
/** * Getter for the PackageInstanceUIDs * @return a List of UID references to all the packages used in the MXF file */ public List<MXFUID> getPackageInstanceUIDs() { List<MXFUID> packageInstanceUIDs = new ArrayList<MXFUID>(); for (InterchangeObjectBO.StrongRef strongRef : this.contentStorageBO.packages.getEntries()) { packageInstanceUIDs.add(strongRef.getInstanceUID()); } return packageInstanceUIDs; }
if(collection.getEntries().get(0) instanceof InterchangeObject.InterchangeObjectBO.StrongRef) { CompoundDataTypes.MXFCollections.MXFCollection<InterchangeObject.InterchangeObjectBO.StrongRef> collectionStrongRefs = (CompoundDataTypes.MXFCollections.MXFCollection<InterchangeObject.InterchangeObjectBO.StrongRef>) object; for (InterchangeObject.InterchangeObjectBO.StrongRef entry : collectionStrongRefs.getEntries()) { dependentUIDs.add(entry.getInstanceUID()); else if(collection.getEntries().get(0) instanceof UL){ CompoundDataTypes.MXFCollections.MXFCollection<UL> collectionULs = (CompoundDataTypes.MXFCollections.MXFCollection<UL>) object; for (UL entry : collectionULs.getEntries()) { dependentUIDs.add(entry.getULAsMXFUid());
for (StrongRef strongRef : this.packages.getEntries()) for (StrongRef strongRef : this.essencecontainer_data.getEntries())
for (StrongRef strongRef : this.structural_components.getEntries())
for (StrongRef strongRef : this.tracks.getEntries())
for (StrongRef strongRef : this.tracks.getEntries())
/** * Getter for the list of tracks referred by this Source Package * @return the list of tracks referred by this Source Package represented as MXFUid objects */ public List<MXFUID> getTrackInstanceUIDs() { List<MXFUID> trackInstanceUIDs = new ArrayList<MXFUID>(); for (InterchangeObjectBO.StrongRef strongRef : this.sourcePackageBO.tracks.getEntries()) { trackInstanceUIDs.add(strongRef.getInstanceUID()); } return trackInstanceUIDs; }
public List<MXFUID> getTrackInstanceUIDs() { List<MXFUID> trackInstanceUIDs = new ArrayList<MXFUID>(); for (InterchangeObjectBO.StrongRef strongRef : this.materialPackageBO.tracks.getEntries()) { trackInstanceUIDs.add(strongRef.getInstanceUID()); } return trackInstanceUIDs; }
/** * Getter for the instance UID of a SourceClip structural component in the list of structural components referred by this Sequence object * @param index - the index in the list corresponding to the SourceClip structural component * @return the source clips */ public MXFUID getSourceClipUID(int index) { return this.sequenceBO.structural_components.getEntries().get(index).getInstanceUID(); }