Class SmilObjectImpl

java.lang.Object
org.opencastproject.smil.entity.SmilObjectImpl
All Implemented Interfaces:
org.opencastproject.smil.entity.api.SmilObject
Direct Known Subclasses:
SmilBodyImpl, SmilHeadImpl, SmilImpl, SmilMediaObjectImpl, SmilMediaParamGroupImpl, SmilMediaParamImpl, SmilMetaImpl

public abstract class SmilObjectImpl extends Object implements org.opencastproject.smil.entity.api.SmilObject
Implementation of SmilObject.
  • Constructor Details

    • SmilObjectImpl

      public SmilObjectImpl()
      Constructor. Generate a new Id.
    • SmilObjectImpl

      public SmilObjectImpl(String id)
      Constructor.
      Parameters:
      id - Id to set
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.opencastproject.smil.entity.api.SmilObject
    • getIdPrefix

      protected abstract String getIdPrefix()
      Returns SmilObject Id prefix (must begin with alphanumeric charackter).
      Returns:
      Id prefix
    • getElementOrNull

      public abstract org.opencastproject.smil.entity.api.SmilObject getElementOrNull(String elementId)
      Returns element with given elementId or null.
      Parameters:
      elementId - element Id
      Returns:
      element with given elementId or null
    • putAllChilds

      public abstract void putAllChilds(List<org.opencastproject.smil.entity.api.SmilObject> elements)
      Put all containing elements into List given as parameter.
      Parameters:
      elements - List where to pul child elements to
    • removeElement

      public abstract org.opencastproject.smil.entity.api.SmilObject removeElement(String elementId)
      Remove element with given Id and returns it. Returns null if there is no element with given Id.
      Parameters:
      elementId - element Id
      Returns:
      removed element or null