Package org.opencastproject.smil.api
Interface SmilResponse
-
public interface SmilResponse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SmilObject[]getEntities()ReturnsSmilObjects if there are any or throwsSmilException.intgetEntitiesCount()Returns number of entities defined with this response.SmilObjectgetEntity()ReturnsSmilObjectif only one entity stored.SmilgetSmil()ReturnsSmilobject from response.StringtoXml()Return XML serialized instance of thisSmilResponse.
-
-
-
Method Detail
-
getEntitiesCount
int getEntitiesCount()
Returns number of entities defined with this response.- Returns:
- number of entities
-
getEntity
SmilObject getEntity() throws SmilException
ReturnsSmilObjectif only one entity stored. ThrowsSmilExceptionotherwise.- Returns:
SmilObject- Throws:
SmilException- if entities count not one
-
getEntities
SmilObject[] getEntities() throws SmilException
ReturnsSmilObjects if there are any or throwsSmilException.- Returns:
SmilObjects as array- Throws:
SmilException- if there are no entities defined by response.
-
toXml
String toXml() throws javax.xml.bind.JAXBException
Return XML serialized instance of thisSmilResponse.- Returns:
SmilResponseas XML- Throws:
javax.xml.bind.JAXBException- if serialization failed
-
-