Class SmilMediaParamImpl

java.lang.Object
org.opencastproject.smil.entity.SmilObjectImpl
org.opencastproject.smil.entity.media.param.SmilMediaParamImpl
All Implemented Interfaces:
SmilObject, SmilMediaParam

public class SmilMediaParamImpl extends SmilObjectImpl implements SmilMediaParam
SmilMediaParam implementation.
  • Constructor Details

    • SmilMediaParamImpl

      public SmilMediaParamImpl(String name, String value)
      Constructor.
      Parameters:
      name - param name
      value - param value
  • Method Details

    • getName

      public String getName()
      Returns param name.
      Specified by:
      getName in interface SmilMediaParam
      Returns:
      the name
    • setName

      protected void setName(String name)
      Set param name.
      Parameters:
      name - the name to set
    • getValue

      public String getValue()
      Returns param value.
      Specified by:
      getValue in interface SmilMediaParam
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Set param value.
      Parameters:
      value - the value to set
    • getIdPrefix

      protected String getIdPrefix()
      Returns SmilObject Id prefix (must begin with alphanumeric charackter).
      Specified by:
      getIdPrefix in class SmilObjectImpl
      Returns:
      Id prefix
    • removeElement

      public SmilObject removeElement(String elementId)
      Remove element with given Id and returns it. Returns null if there is no element with given Id.
      Specified by:
      removeElement in class SmilObjectImpl
      Parameters:
      elementId - element Id
      Returns:
      removed element or null
    • getElementOrNull

      public SmilObject getElementOrNull(String elementId)
      Returns element with given elementId or null.
      Specified by:
      getElementOrNull in class SmilObjectImpl
      Parameters:
      elementId - element Id
      Returns:
      element with given elementId or null
    • putAllChilds

      public void putAllChilds(List<SmilObject> elements)
      Put all containing elements into List given as parameter.
      Specified by:
      putAllChilds in class SmilObjectImpl
      Parameters:
      elements - List where to pul child elements to