congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SegmentType
Code IndexAdd Tabnine to your IDE (free)

How to use
SegmentType
in
com.netflix.imfutility.generated.imf._2013

Best Java code snippets using com.netflix.imfutility.generated.imf._2013.SegmentType (Showing top 3 results out of 315)

origin: DSRCorporation/imf-conversion

/**
 * Create an instance of {@link SegmentType }
 * 
 */
public SegmentType createSegmentType() {
  return new SegmentType();
}
origin: DSRCorporation/imf-conversion

@Override
protected void buildFromCpl() {
  // 1. get a composition edit rate (it's used if no specific edit rate is specified for a segment).
  this.compositionEditRate = ConversionHelper.parseEditRate(cpl2013.getEditRate());
  // 2. go through all segments and all sequences and build segment, sequence and resource contexts.
  for (SegmentType segment : cpl2013.getSegmentList().getSegment()) {
    this.currentSegmentUuid = SegmentUUID.create(segment.getId());
    contextProvider.getSegmentContext().initSegment(currentSegmentUuid);
    for (Object anySeqJaxb : segment.getSequenceList().getAny()) {
      if (!(anySeqJaxb instanceof JAXBElement)) {
        throw new ConversionException(String.format("Could not understand a sequence '%s'", anySeqJaxb.toString()));
      }
      JAXBElement jaxbElement = (JAXBElement) (anySeqJaxb);
      Object anySeq = jaxbElement.getValue();
      SequenceTypeCpl currentSequenceTypeCpl = SequenceTypeCpl.fromName(jaxbElement.getName().getLocalPart());
      if ((currentSequenceTypeCpl != null) && (anySeq instanceof SequenceType)) {
        this.currentSequence = (SequenceType) anySeq;
        this.currentSequenceType = currentSequenceTypeCpl.toSequenceType();
        this.currentSequenceUuid = SequenceUUID.create(currentSequence.getTrackId());
        processSequence();
      }
    }
  }
}
origin: DSRCorporation/imf-conversion

/**
 * Create an instance of {@link SegmentType }
 * 
 */
public SegmentType createSegmentType() {
  return new SegmentType();
}
com.netflix.imfutility.generated.imf._2013SegmentType

Most used methods

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getApplicationContext (Context)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • setRequestProperty (URLConnection)
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • Notification (javax.management)
    • BoxLayout (javax.swing)
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • Top Vim plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now