Class SmilResponseImpl

java.lang.Object
org.opencastproject.smil.impl.SmilResponseImpl
All Implemented Interfaces:
org.opencastproject.smil.api.SmilResponse

public class SmilResponseImpl extends Object implements org.opencastproject.smil.api.SmilResponse
SmilResponse implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil)
    Constructor
    SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject entity)
    Constructor.
    SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject[] entities)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static org.opencastproject.smil.api.SmilResponse
    fromXml(InputStream smilResponseXml)
    Deserialize SmilResponse from XML.
    static org.opencastproject.smil.api.SmilResponse
    fromXml(String smilResponseXml)
    Deserialize SmilResponse from XML.
    org.opencastproject.smil.entity.api.SmilObject[]
    int
    org.opencastproject.smil.entity.api.SmilObject
    org.opencastproject.smil.entity.api.Smil

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SmilResponseImpl

      public SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil)
      Constructor
      Parameters:
      smil - to set
    • SmilResponseImpl

      public SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject entity)
      Constructor.
      Parameters:
      smil - to set
      entity - to set
    • SmilResponseImpl

      public SmilResponseImpl(org.opencastproject.smil.entity.api.Smil smil, org.opencastproject.smil.entity.api.SmilObject[] entities)
      Constructor.
      Parameters:
      smil - to set
      entities - to set
  • Method Details

    • getSmil

      public org.opencastproject.smil.entity.api.Smil getSmil()
      Specified by:
      getSmil in interface org.opencastproject.smil.api.SmilResponse
    • getEntitiesCount

      public int getEntitiesCount()
      Specified by:
      getEntitiesCount in interface org.opencastproject.smil.api.SmilResponse
    • getEntity

      public org.opencastproject.smil.entity.api.SmilObject getEntity() throws org.opencastproject.smil.api.SmilException
      Specified by:
      getEntity in interface org.opencastproject.smil.api.SmilResponse
      Throws:
      org.opencastproject.smil.api.SmilException
    • getEntities

      public org.opencastproject.smil.entity.api.SmilObject[] getEntities() throws org.opencastproject.smil.api.SmilException
      Specified by:
      getEntities in interface org.opencastproject.smil.api.SmilResponse
      Throws:
      org.opencastproject.smil.api.SmilException
    • toXml

      public String toXml() throws javax.xml.bind.JAXBException
      Specified by:
      toXml in interface org.opencastproject.smil.api.SmilResponse
      Throws:
      javax.xml.bind.JAXBException
    • fromXml

      public static org.opencastproject.smil.api.SmilResponse fromXml(String smilResponseXml) throws javax.xml.bind.JAXBException
      Deserialize SmilResponse from XML.
      Parameters:
      smilResponseXml - SmilResponse as XML
      Returns:
      SmilResponse object
      Throws:
      javax.xml.bind.JAXBException - if deserialization fail
    • fromXml

      protected static org.opencastproject.smil.api.SmilResponse fromXml(InputStream smilResponseXml) throws javax.xml.bind.JAXBException
      Deserialize SmilResponse from XML.
      Parameters:
      smilResponseXml - SmilResponse as XML InputStream
      Returns:
      SmilResponse object
      Throws:
      javax.xml.bind.JAXBException - if deserialization fail