Package org.opencastproject.smil.api
Interface SmilResponse
public interface SmilResponse
-
Method Summary
Modifier and TypeMethodDescriptionReturnsSmilObjects if there are any or throwsSmilException.intReturns number of entities defined with this response.ReturnsSmilObjectif only one entity stored.getSmil()ReturnsSmilobject from response.toXml()Return XML serialized instance of thisSmilResponse.
-
Method Details
-
getSmil
Smil getSmil()ReturnsSmilobject from response.- Returns:
Smilobject
-
getEntitiesCount
int getEntitiesCount()Returns number of entities defined with this response.- Returns:
- number of entities
-
getEntity
ReturnsSmilObjectif only one entity stored. ThrowsSmilExceptionotherwise.- Returns:
SmilObject- Throws:
SmilException- if entities count not one
-
getEntities
ReturnsSmilObjects if there are any or throwsSmilException.- Returns:
SmilObjects as array- Throws:
SmilException- if there are no entities defined by response.
-
toXml
Return XML serialized instance of thisSmilResponse.- Returns:
SmilResponseas XML- Throws:
javax.xml.bind.JAXBException- if serialization failed
-